|
-
Apr 7th, 2002, 02:46 PM
#1
Thread Starter
Registered User
Clearing a Picturebox, lol
Wow, I'm just holding that new baby in my hands.
Well, it seems like vb.net has flashed my mind, could
you please help me on how to clear the content of a
picturebox (formerly known as cls)? I'm really
ashamed of asking such a silly question after such
a long vb experience.
-
Apr 7th, 2002, 02:54 PM
#2
PowerPoster
Here ya go..
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PictureBox1.Image = Nothing
End Sub
-
Apr 7th, 2002, 03:00 PM
#3
Thread Starter
Registered User
Ok, thank you, that looked pretty simle. 
But how about the hdc ?. For example if I
use Rectangle(....) I will need the hdc.
-
Apr 7th, 2002, 03:54 PM
#4
The Rectangle API? I hope you realize that you don't need to do that, because you could use the CreateGraphics method to get a Graphics object and do your drawing through that.
-
Apr 7th, 2002, 04:00 PM
#5
Thread Starter
Registered User
yeah, i've just seen it in the help, thx Tygur
-
Apr 7th, 2002, 04:01 PM
#6
Thread Starter
Registered User
Btw, is it possible to convert vb.net code into c#?
Maybe I should rewrite it to learn c#....
-
Apr 8th, 2002, 01:09 PM
#7
Frenzied Member
Yeah it's defenitaly possible to convert VB.Net to C# code, actually it's really easy, just the syntax is a bit different... defenitely word doing in my opinion!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|