|
-
Nov 3rd, 2005, 10:30 PM
#1
Thread Starter
New Member
System.Graphics.FromHwnd function missing! Is there a SP I don't know about?
Hello,
I've been programming VB.net for a couple of years now and I recently wanted to try some graphics programming. I bought a book, but the very first example requires me to use this function:
Graphics.FromHwnd(...)
Every place I've checked online talks about it like it is supposed to be there, but it simply does not show up at all. It isn't in the object browser under the graphics object either.
I noticed on MSDN that it is one of a few "static" functions, none of which are available to me.
I'm assuming there's a gdi update or some other sdk I can download, but nothing I have tried has worked so far.
vb.net is fully updated and all sdk's I can find associated with this type of function are installed.
Thanks for your help,
Brian
-
Nov 4th, 2005, 04:39 AM
#2
Re: System.Graphics.FromHwnd function missing! Is there a SP I don't know about?
Depending on what version you are using it doesn't always show static members when you are using certian objects (2005 won't let you call MyInstance.MyStatic() for example).
Have you jsut tried typing it in without intellisense's help and just compiling it anyway?
In VB 2003 Form.SetStyle() doesn't show up in intellisense but it is there and it does work if you just type it.
Otherwise show us your code, it may be another problem causing intellisense to act strangely.
I don't live here any more.
-
Nov 4th, 2005, 06:40 AM
#3
Re: System.Graphics.FromHwnd function missing! Is there a SP I don't know about?
I think you left out a namespace..
System.Drawing.Graphics.FromHwnd()
Bill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|