Results 1 to 5 of 5

Thread: Clearing PictureBox

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    4

    Clearing PictureBox

    i loaded a bitmap picture in PictureBox...now i have a Close File button..by clicking that PictureBox should be cleared and file should be closed...

    how can i do that?

    thanks in advance

  2. #2
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    I would guess
    VB Code:
    1. PictureBox1.Image=Nothing

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    4
    ryyyyyyyyyyyyght.
    i will try this at home...coz trying at office can be harmful
    hehehheh

    thanks anyway

  4. #4
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    code luck.

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Picturebox1.CreateGraphics.Clear(Color.White)

    RTFMSDN!
    I don't live here any more.

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