About form doesnt show on top

B

Bails

Hi all, I just added an About form to my VB.NET EXPRESS application
and whilst it does show, it doesnt appear in front of my main form,
rather behind it.

So far I have tried the following with no success:

Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal
hWnd As IntPtr) As Boolean
then - SetForegroundWindow(Me.Handle)

Me.SetTopLevel(True)
Me.BringToFront()
Me.Refresh()
Me.Refresh()

ANY suggestions would be very welcome.

Cheers

bails
 
H

Herfried K. Wagner [MVP]

Bails said:
Hi all, I just added an About form to my VB.NET EXPRESS application
and whilst it does show, it doesnt appear in front of my main form,
rather behind it.


In the main form:

\\\
Using f As New AboutForm()
f.ShowDialog()
End Using
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top