473,434 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

IsIconic in VB2003

cj
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("not epad")
If procArray.Length > 0 Then
MessageBox.Show(IsIconic(procArray(0).Handle))
End If
End Sub
Jun 6 '06 #1
2 2359
"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("not epad")
If procArray.Length > 0 Then
MessageBox.Show(IsIconic(procArray(0).Handle))


'Handle' will return the process handle. You may want to use
'MainWindowHandle' instead.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 6 '06 #2
cj
Beautiful. Thanks!

Herfried K. Wagner [MVP] wrote:
"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("not epad")
If procArray.Length > 0 Then
MessageBox.Show(IsIconic(procArray(0).Handle))


'Handle' will return the process handle. You may want to use
'MainWindowHandle' instead.

Jun 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Neoharuo | last post by:
I am working on a VB2003 project that accesses a SQL Server database. The first two forms (frmA, frmB) are almost identicle as far as the processes and data access and updating. I've set it up so...
1
by: | last post by:
Hi, I'm running VC++ 2002 and i've just got VB 2003. I have a large application in C++ and wanted to build a small VB component that I could call from it. I have a feeling that this is not...
1
by: Schultz | last post by:
Hi, i am trying to make a fully editable dataGrid and was using the "Top Ten Questions about the DataGrid Control" article in the MSDN Library as a guide. The following is my current vb code. I ran...
5
by: John | last post by:
Hi How difficult is it to upgrade a vb2003 database app to vb2005? Thanks Regards
4
by: John Dann | last post by:
Couple of questions about upgrading an existing installation of VB2003 (Pro) to 2005 (Pro): 1. Not having dabbled in VB2005 yet, I'd feel more comfortable also keeping a working VB2003...
5
by: SStory | last post by:
What do most of the group think about 2005 in comparison to 2003? Slower? How painful is it to upgrade decent sized 2003 apps to 2005? Are there more gotchas? Past experience has shown me...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I selected BorderStyle = Fixed3D for a textbox on a form in VB2005, but the textbox looks flat. In VB2003 the textbox has the same borderStyle = Fixed3D and has a 3D appearance. Is it...
5
by: Don | last post by:
Can anyone recommend a good book for learning to use VB2003? I'm interested in something like Rocky Lhotka's "Business Object" books. I know he wrote one for VB2005 but I'd like a VB2003 specific...
6
by: Dave Marden | last post by:
I currently use this routine in vbscript to ping computers and get the status of ping to determine whether to try to backup a machine, I am trying to change it to work with vb2003.net I am...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.