Results 1 to 3 of 3

Thread: System.Graphics.FromHwnd function missing! Is there a SP I don't know about?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    1

    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

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  3. #3
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    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
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width