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

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

vb.net FindWindow function

Reply to Message Icon

Original Message
Name: jhunt303
Date: May 8, 2006 at 09:29:00 Pacific
Subject: vb.net FindWindow function
OS: xp
CPU/Ram: 2.8 768
Model/Manufacturer: 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.


Report Offensive Message For Removal


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

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.


Report Offensive Follow Up For Removal

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

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

-SN


Report Offensive Follow Up For Removal

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

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



Report Offensive Follow Up For Removal







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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software