Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21278

Main form not visible means it's not available when Alt/Tabbing

$
0
0
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.

Viewing all articles
Browse latest Browse all 21278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>