Results 1 to 4 of 4

Thread: Making a form go to window-mode when trying to open another form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2015
    Posts
    5

    Question 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

  2. #2
    Hyperactive Member Vexslasher's Avatar
    Join Date
    Feb 2010
    Posts
    429

    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:
    1. Me.WindowState = FormWindowState.Normal
    Last edited by Vexslasher; Jun 8th, 2016 at 01:20 PM.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2015
    Posts
    5

    Re: Making a form go to window-mode when trying to open another form

    Thank you for the reply!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width