RadioButton & text
2013-11-28, 10:59 AM,
(This post was last modified: 2013-11-28, 11:24 AM by JaxTeller.)
#1
For example with textbox is simple, what text i add in the TextBox1 that will appear in the Label1, the code is this:

If ProgressBar1.Value = 100 Then
Label1.Text = TextBox1.Text & " points added to your account"
End If

But how to do for RadioButton because i have 3 of them, if i choose Label1.Text = RadioButton1.Text & " points added to your account" it will take the first radio button if i choose Label1.Text = RadioButton2.Text & " points added to your account" it will take the second etc. I want what radio button i select that should apper in Label1. Thanks

NVM i managed to find it myself with 0 knowledge in vb, i just used common sense, if this is checked, this should appear here. This is the code if someone will ever need it

If ProgressBar1.Value = 100 Then
If RadioButton1.Checked Then Label1.Text = "x points added to your account"
If RadioButton2.Checked Then Label1.Text = "xx points added to your account"
If RadioButton3.Checked Then Label1.Text = "xxx points added to your account"
End If
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  60 Premium 3D Text Effect Styles M!st3r XX 18 2,305 2015-11-13, 08:56 PM
Last Post: dontbejello87
  How can i add status text under progress-bar in visual basic 2010 Helix 12 2,511 2014-04-15, 04:31 PM
Last Post: LeoMessi19
  [question] VB help with text box Nem 2 283 2014-04-11, 10:45 PM
Last Post: Nem
  [SOURCE] on-the-live Lowercase to Uppercase & Vice Versa Text Converter (Multiline) Peakfire 0 381 2014-02-24, 08:50 PM
Last Post: Peakfire
  Wall of Text into the Website Biosade 1 319 2014-01-11, 09:46 PM
Last Post: dvLden




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top