public void RemoveBorder() { int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE); WinAPI.SetWindowLong(this.Handle, WinAPI.GWL_STYLE, (style & ~WinAPI.WS_THICKFRAME)); }
void MapBasicWindowForm_Load(object sender, EventArgs e) //void MapBasicWindowForm_Load() { //Set the parent of Mpabsic window to a picture box on the form. _mapBasicWindow.Parent = this._pictureBoxWindow.Handle; _mapBasicWindow.RemoveCaptionBar(); _mapBasicWindow.RemoveBorder(); _mapBasicWindow.Maximize(); //Add one to the width to update the control. Width += 1; //InteropHelper.Do("Alter Button ID 2005 Disable"); }