| | |
Keep main form open and visible
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
Hi everyone,
I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens in front of it (and the main form is still visible). Then I click on a button on the second form to open a third form and the main form minimises and is not visible to the user while the third form only is visible to the user. I need the main form to remain open and visible in the background when the user is using the other forms. I have tried using this.visible = true but I cannot get the main form to stay visible.
Does anyone have any ideas as to how I might be able to overcome this problem? thanks in advance.
SubProf
I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens in front of it (and the main form is still visible). Then I click on a button on the second form to open a third form and the main form minimises and is not visible to the user while the third form only is visible to the user. I need the main form to remain open and visible in the background when the user is using the other forms. I have tried using this.visible = true but I cannot get the main form to stay visible.
Does anyone have any ideas as to how I might be able to overcome this problem? thanks in advance.
SubProf
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
just make sure not to call form.Hide()
you might also show other forms as dialogs depending on your needs
you might also show other forms as dialogs depending on your needs
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
I guess it depends a little why you would have such a structure, however, if the forms have to remain forms, but work except the main form, you can of course disable it.. and have a counter so that when you close the other forms, they decrease the counter so that you can then use the main form when and only when all the blocking forms have closed.
The bad side of that is you would also need to be careful come the windows shutdown message
The bad side of that is you would also need to be careful come the windows shutdown message
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- trying to use one form to open another form (Pascal and Delphi)
- I can't retrieve my variable with Get method (Visual Basic 4 / 5 / 6)
- Open HTML (VB.NET)
- Why javascript does not work on firefox? (JavaScript / DHTML / AJAX)
- Voice Recogntion VB06 newbie asking (Visual Basic 4 / 5 / 6)
- Splash Screen (VB.NET)
- web form not working please help (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: Display a number in binary
- Next Thread: Error: Missing an assembly reference
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation visualstudio webbrowser windows winforms wpf xml






