Hi,
I need to create a popup form what will not steal focus. I've searched
the net and I managed to put some code together.
Below is the result of my code, but I have a single question .... how
can I prevent form2 to show in taskbar? I've tried to set the
ShowInTaskBar to false, but then an exception is thrown.
Here's my code:
Form1 (master form):
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e
As_
System.EventArg s) Handles Button1.Click
Dim frm2 As New Form2
frm2.Show()
End Sub
Form2 (popup form):
Protected Overrides ReadOnly Property CreateParams() As_
System.Windows. Forms.CreatePar ams
Get
Dim cp As CreateParams = MyBase.CreatePa rams
cp.Style = cp.Style Or &H56000000
Return cp
End Get
End Property
How can I prevent the form to be shown in the taskbar?
Thank you in advance!!
M O J O