Computing.Net > Forums > Programming > vb.net FindWindow function

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vb.net FindWindow function

Reply to Message Icon

Name: jhunt303
Date: May 8, 2006 at 09:29:00 Pacific
OS: xp
CPU/Ram: 2.8 768
Product: HP
Comment:

Does anyone know how to import the FindWindow function into a vb.net application? I'm not having much luck finding it in the references section.



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: May 8, 2006 at 11:03:40 Pacific
Reply:

you need to learn how to google: this is from the first link when i typed in "FindWindow vb.net"

[System.Runtime.InteropServices.DllImport("user32.dll",
CharSet=System.Runtime.InteropServices.CharSet.Auto)]
public static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);

Chi

They mostly come at night...mostly.


0

Response Number 2
Name: SN
Date: May 8, 2006 at 11:25:34 Pacific
Reply:

pinvoke.net is a handy site for all your .NET dll import needs.

-SN


0

Response Number 3
Name: jhunt303
Date: May 9, 2006 at 01:42:33 Pacific
Reply:

Yes Chi, I hadn't thought of using Google...
Have you tried that code??
Think you'll find it doesn't work...


Thanks SN, that site is top notch, found the a decent example of the DllImport function



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Finstr command in Dos Lock Textbox once focus c...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vb.net FindWindow function

Vb.net www.computing.net/answers/programming/vbnet/4055.html

creating dword registry in vb.net www.computing.net/answers/programming/creating-dword-registry-in-vbnet/12742.html

VB .Net - Connection object www.computing.net/answers/programming/vb-net-connection-object/13065.html