View Single Post
  #2 (permalink)  
Old 06-25-2009, 2:29 AM
jmcilhinney's Avatar
jmcilhinney jmcilhinney is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,108
Reputation: 541
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

You're supposed to be handling the Paint event of the PictureBox, not the Buttons. Take a look at [ame="http://www.vbforums.com/showthread.php?t=426684"]this[/ame].

Also, I suggest that you don't use Button controls there but rather RadioButtons. You can set the Appearance property to Button so that they look just like regular Buttons, but they will behave like RadioButtons in that only one will be depressed at a time and clicking one will leave it depressed until another is clicked. You test the Checked property just as you do with any other RadioButtons to see which is depressed. There's no point having two Boolean variables because as soon as you test one you know for a fact the value of the other.
Reply With Quote