AdeHall Posted October 30, 2003 Posted October 30, 2003 I am creating a form that I want the user to be able to resize. However I don't want the normal Windows Title bar displayed at the top. If I set the Borderstyle to none to get rid of the title bar I of course loose the size grip control. I suppose I have two options: Find a way of not displaying the Windows title bar on a sizeable form. or Add my own size grip control to a borderless form ( my preferred option ). I have tried the latter but I think the form is refusing to be resized manually because it is set to borderless. Can any one offer some advice please? Quote
*Gurus* divil Posted October 30, 2003 *Gurus* Posted October 30, 2003 The most effective way is probably to draw your own, then subclass for WM_NCHITTEST so you can tell Windows about your new size grips when it looks for them. Read up on this message in MSDN and that should help. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
donnacha Posted November 3, 2003 Posted November 3, 2003 Hi you can do this by setting the borderstyle to sizeable and then setting the contrplbox to false and the text of the form to blank. Quote Hamlet
AdeHall Posted November 3, 2003 Author Posted November 3, 2003 Thanks both of you. I was developing a solution using the WM_NCITTEST which was fine until you started docking panels to the bottom fo the form. However with donnacha's information I think I have it sorted - thanks again. Quote
AlexCode Posted November 4, 2003 Posted November 4, 2003 I just want to add a way of thinking of a Windows App... Unless you're really doing some king of app that will overlap all windows UI you shouldn't change the way the users interact with the SO windows... It should be a standard that all apps should implement so every single user that knows how to work with windows, also know how to work with your app. I think every one should read the speifications Microsoft advises developers to use (controls positions, sizes ...) Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.