About form doesnt show on top

  • Thread starter Thread starter Bails
  • Start date Start date
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
 
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
///
 
Back
Top