Load Form With Out Focus In Windows Forms
My New Task
For some reason you want form to be shown without focus on it. you can have ShowWithoutActivation() Property. there is trick to use this property
Currently this tied with form Object [Me.ShowWithoutActivation] but you cannot use this. As this Readonly property. So to perform this
Following Steps has to be performed
1.Open the form Designer file. [Form1.Designer.vb]
2.Place this code in last line of the file
What it does. This overrides the built in method for form
Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
Get
Return True
End Get
End Property
Note :- I have used this to shown popup message in systray
Comments
Post a Comment