Making a form go to window-mode when trying to open another form
Hello,
I have a webbrowser form and another form connected to the webbrowserform. The reason why they are connected is because I use regex to parse data from the current page the webbrowser is visiting.
I have a problem with this though. If I maximize the webbrowser window the other regexwindow will not show up. The only way I can make both of the forms visible is by having the 2 forms in window mode.
Is there a way to programatically do this in VB? The idea is to make the webbrowser automatically go to window-mode if i try to open the other regex-form.
Regards
Felix
Re: Making a form go to window-mode when trying to open another form
You can do that by putting this code just before the code to open the next form.
vb.net Code:
Me.WindowState = FormWindowState.Normal
Re: Making a form go to window-mode when trying to open another form
Re: Making a form go to window-mode when trying to open another form
What exactly do you mean by "connected"? It seems to me like you're trying to solve the wrong problem as the fact that one form is maximised is no reason for another form not to display. Most likely the other form is just behind it. You should probably be making the second form an owned form because an owned form will always display in front of its owner. To make a form owned, you simply set its Owner property.