[.net] ShowDialog window hiding behind other windows...

Started by
9 comments, last by GutsFun 14 years, 9 months ago
Thanks a lot Cryogenic for this response !! It help me a lot !

For those who search the equivalent in VB.NET here it is :

Declare Auto Function SetForegroundWindow Lib "user32" (ByVal hwnd As IntPtr) As Integer

Private Sub OnShown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
SetForegroundWindow(Me.Handle)
End Sub

This topic is closed to new replies.

Advertisement