473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how can you erase a picture box by clicking the mouse at runtime

I want to reproduce the behavior of one sudoka game in which small numbers distributed regularly on a square can be erased by clicking on them
Sep 2 '10 #1
3 1040
Guido Geurs
767 Expert 512MB
You can use:
Expand|Select|Wrap|Line Numbers
  1. Picture1.Picture = LoadPicture("")
or
Expand|Select|Wrap|Line Numbers
  1. Set Picture1.Picture = Nothing
Sep 2 '10 #2
Killer42
8,435 Expert 8TB
If I remember correctly, you can also use Picture1.Cls
Sep 3 '10 #3
Guido Geurs
767 Expert 512MB
Cls clears text and graphics generated at run time by graphics and printing statements. Backgroundbitmaps set using the Picture property and controls placed on a Form at design time aren't affected by Cls.
Sep 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: William Bub | last post by:
I am using VB 6.0 Working Model (the one with no help files). I have a form. On a portion of the form I have a Picture Box. On the PicBox I want to draw something to follow the mouse. I can detect...
1
by: C. Alexander | last post by:
Hey all. I have a whiteboard type program. I have 2 picturebox's (needed for their mousemove/mousedown events) Picture1.Picture = MyPicture ' Here is my hidden picture used to replace (on...
3
by: Steen Gellett | last post by:
Hey...........is it possible to move a picture around the form with the mouse ? I have a form with one picture on it........when I hold down the mouse I would like the picture to follow the...
1
by: Sakharam Phapale | last post by:
Hi All, How to capture Mouse Single click and mouse double click event on Commnad Button. I am doing as follows. Private void Button1_MouseUp(Object sender,...
6
by: Sakharam Phapale | last post by:
Hi All, How to capture Mouse Single click and mouse double click event on Commnad Button. I am doing as follows. Private Sub Button1_MouseUp(ByVal sender As Object, ByVal e As...
2
by: micky | last post by:
i'd like to check clicking mouse such as left click , right click , and middle click in addition, check wheel moving....how should i do?
4
by: sobman | last post by:
Where can i find a scrip for a left clicking mouse? I want it to click in intervles of 10 seconds
1
by: bharathik | last post by:
Hi, i am new to vb.net.i have one picturebox and it has to move in upward direction in slow motion by clicking the runtime button. can you please let me know the solution. thanks in advance
14
by: raghunadhs | last post by:
HI All! I am developing a V.B application. in this application, user is able to drag and drop a picture(user control) at run time also. for this purpose, i used form's "dragdrop" event....
4
by: zahraZ | last post by:
Hello i put a picture in the dialog box, i want to move this picture on mouse move. and also show new position of this picture in this dialog box. what should i do? regard,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.