Results 1 to 4 of 4

Thread: clearing a picture box area

  1. #1

    Thread Starter
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225

    clearing a picture box area

    is there any API / method to clear a particular area of a picture box .. I have the start and end co-ordinate and i want to clear that particular area of a picture . i think some API like sendmessage can do it by taking pictrue box handle.Write now i m using another pic box and placing it above that area to clear that area but it is causing some problem for other operation ..
    is there any way to do it by coding ??

    thanks in advance ..
    Chander
    Email:[email protected]

  2. #2
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467
    i just can tell you that Use BitBlt API function.
    It just for what you have stated in your problem.

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    It isnt really necessary to bother with API. Just use the Line command
    VB Code:
    1. Private Sub Command1_Click()
    2.     'x1,y1 to x2, y2, req'd colour, B for box and F for fill
    3.     Picture1.Line (0, 0)-(500, 500), Picture1.BackColor, BF
    4. End Sub
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  4. #4

    Thread Starter
    Addicted Member chander's Avatar
    Join Date
    Nov 2000
    Location
    New Delhi , India
    Posts
    225
    ya that showing rectangle over selected part will work with fill color and forecolor same say white..
    Chander
    Email:[email protected]

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