|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
IsIconic in VB2003Can anyone tell me why this always returns False? I've got one instance
of notepad running. It's minimized and showing in the task bar. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim procArray() As System.Diagnostics.Process procArray = System.Diagnostics.Process.GetProcessesByName("notepad") If procArray.Length > 0 Then MessageBox.Show(IsIconic(procArray(0).Handle)) End If End Sub "cj" <cj@nospam.nospam> schrieb: 'Handle' will return the process handle. You may want to use > Can anyone tell me why this always returns False? I've got one instance > of notepad running. It's minimized and showing in the task bar. > > Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As > System.EventArgs) Handles Button3.Click > Dim procArray() As System.Diagnostics.Process > > procArray = System.Diagnostics.Process.GetProcessesByName("notepad") > If procArray.Length > 0 Then > MessageBox.Show(IsIconic(procArray(0).Handle)) 'MainWindowHandle' instead. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Beautiful. Thanks!
Herfried K. Wagner [MVP] wrote: Show quoteHide quote > "cj" <cj@nospam.nospam> schrieb: >> Can anyone tell me why this always returns False? I've got one >> instance of notepad running. It's minimized and showing in the task bar. >> >> Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As >> System.EventArgs) Handles Button3.Click >> Dim procArray() As System.Diagnostics.Process >> >> procArray = System.Diagnostics.Process.GetProcessesByName("notepad") >> If procArray.Length > 0 Then >> MessageBox.Show(IsIconic(procArray(0).Handle)) > > 'Handle' will return the process handle. You may want to use > 'MainWindowHandle' instead. >
How do I increment a byte with out casting?
Capturing mouse events (Mouse up and down on the desktop) Loading CrystalReports.rpt, I Am Asked To Enter Login ID And Password DAAB problem most natural behavior on mouse wheel Cancel Constructor (Me = Nothing) Parent child binding question RichTextBox in Vs2005 Vb.Net shows unformatted RTF Rollover button sampel how do I get date and time of compilation |
|||||||||||||||||||||||