Form Size and Location Questions
I have a form that I wish to be:
- borderless
- draggble
- have windows remember its last postion (ie if you open IE and drag it somewhere, next time you start IE it will remember the position it was last in).
- right clickable
I set formborder to none
I set startposition to WindowsDefaultBounds (based on MSDN this remembers default windows location and size - I think that is what I want)
I cant drag the window?
Right clicking on the form or the taskbar does nothing. If I click the context menu property dropdown the only choice is none?
Any help appreciated. :)
Re: Form Size and Location Questions
My workaround is to have a button that changes that toggles the formborderstyle between none and sizable.
Re: Form Size and Location Questions
You have no choices from the context menu since you removed the titlebar by setting the form to borderless. What you would have to do is detect the forms click action and sinulate the click is on the titlebar so it will be draggable.
Re: Form Size and Location Questions
Quote:
Originally Posted by RobDog888
You have no choices from the context menu since you removed the titlebar by setting the form to borderless. What you would have to do is detect the forms click action and sinulate the click is on the titlebar so it will be draggable.
I still can't it to remember position each time I start? Do I have to use Application Settings for that?
Re: Form Size and Location Questions
Use the Formss StartupPostiion of Maunal and then set the .Location in code from your Settings. Save the settings again upon FormClising event.