E
E Goforth
Hello,
I have a VB6 app that calls a VB.NET app via named pipes and a third
party component. Inside the VB.NET app I'm trying to force a form to
the top, at least temporarily. Inside a form's public sub I'm doing:
Public Sub ThisIsMySub(TheseAreMyArguments)
Me.Show
Me.WindowState = FormWindowState.Normal
Me.TopMost = True
Me.TopMost = False
End Sub
However, my form doesn't pop on top like I'd expect it to. BTW the form
is an MDIParent.
I wrote a simple proof-of-concept VB.NET application with a timer
control on an MDI Parent form. I do the same steps as above it works as
I'd expect. When the timer_tick event fires my MDIParent form pops on
top. I can then move another app on top of it or minimize my MDIParent
form. The next time the timer_tick event fires it pops back on top.
The only thing that I could figure out is that another form in my app
had it's TopMost property set to True. I have a StatusBar form that
does this, but I did some checking and its unloaded by the time I do my
"Me.TopMost = True
" Any idea what could be going on?
Thanks,
Eric
I have a VB6 app that calls a VB.NET app via named pipes and a third
party component. Inside the VB.NET app I'm trying to force a form to
the top, at least temporarily. Inside a form's public sub I'm doing:
Public Sub ThisIsMySub(TheseAreMyArguments)
Me.Show
Me.WindowState = FormWindowState.Normal
Me.TopMost = True
Me.TopMost = False
End Sub
However, my form doesn't pop on top like I'd expect it to. BTW the form
is an MDIParent.
I wrote a simple proof-of-concept VB.NET application with a timer
control on an MDI Parent form. I do the same steps as above it works as
I'd expect. When the timer_tick event fires my MDIParent form pops on
top. I can then move another app on top of it or minimize my MDIParent
form. The next time the timer_tick event fires it pops back on top.
The only thing that I could figure out is that another form in my app
had it's TopMost property set to True. I have a StatusBar form that
does this, but I did some checking and its unloaded by the time I do my
"Me.TopMost = True
" Any idea what could be going on?
Thanks,
Eric