Results 1 to 6 of 6

Thread: Draw a line

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275

    Draw a line

    Hey,

    I want to draw a line on the screen not on a form. How can this be done?

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, windows is a window-based OS, so in effect, you should really use a window (form) to draw graphics.

    You can use a clipped-region, stay-on-top form..

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    Thats not a option.

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    How bout you describe why you want the line on the screen and I can tell you how it may be or may not be an option.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    It is not. OK? Is it too much to ask just for you guys to give me a anwser?

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You cannot draw to the desktop using .Net without using API's.

    So if you know how to do it in VB6, use the same method. My only concern would be Explorer may just overpaint next time somebody move's a window.

    I can make a form that consists entirely of just a straight horizontal line... but if that's not an option (you haven't said why), then you will have to use the Win 32API's.

    You will get the best answer to your question if you describe what you are trying to do and in what context.

    Are you trying to draw a Media Player type of overlay, that hangs in front of everything?

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