A project's main form is Form1 and eventually Form2 is loaded following a button click,
Form2.Show 1
I thought I'd make the main form invisible until control be returned to it by inserting another 2 statements:
Me.Visible = False
Form2.Show 1
Me.Visible = True
But then, with Form2 already loaded, I tried to cycle through some other applications I was running at the same time by hitting Alt/Tab, but it turned out the VB application was hidden and couldn't be selected, all because of those 2 Me.Visible statements above.
I wonder if there's a way to circumvent this inconvenience. Not that I absolutely need to hideForm1 but I'm curious to know.
Form2.Show 1
I thought I'd make the main form invisible until control be returned to it by inserting another 2 statements:
Me.Visible = False
Form2.Show 1
Me.Visible = True
But then, with Form2 already loaded, I tried to cycle through some other applications I was running at the same time by hitting Alt/Tab, but it turned out the VB application was hidden and couldn't be selected, all because of those 2 Me.Visible statements above.
I wonder if there's a way to circumvent this inconvenience. Not that I absolutely need to hideForm1 but I'm curious to know.