❓ need some help :)

Posts 1–9 of 9 · Page 1 of 1
❓ need some help :)
can hlp me solve this ? picture below
Get the labels closer? Write both numbers on one label? Use another font? ._.
get the label closer no use...the label 1 will block by label 2 @.@
then take the damn middle suggestion and use the same label. Best solution anyways >.>
Instead of TWO labels, you put ONE label. You don't even need to code anything to do that, just delete one in the IDE.

Then:
Code:
label1.Text = "23"
My god that was hard!
Quote Originally Posted by Jason View Post
Instead of TWO labels, you put ONE label. You don't even need to code anything to do that, just delete one in the IDE.

Then:
Code:
label1.Text = "23"
My god that was hard!
I believe he means, "How would I code it so it changes when the radio buttons change?". In which case i'd do something like this:
Code:
sub changeDatDankLabel()
label1.text = ""
if radiobutton1.checked then
label1.text &= "<string/number to display here>"
else
label1.text &= "<string/number to display here>"
end if

if radiobutton3.checked then
label1.text &= "<string/number to display here>"
else
label1.text &= "<string/number to display here>"
end if
end sub
Quote Originally Posted by LilGho$t View Post
I believe he means, "How would I code it so it changes when the radio buttons change?". In which case i'd do something like this:
Code:
sub changeDatDankLabel()
label1.text = ""
if radiobutton1.checked then
label1.text &= "<string/number to display here>"
else
label1.text &= "<string/number to display here>"
end if

if radiobutton3.checked then
label1.text &= "<string/number to display here>"
else
label1.text &= "<string/number to display here>"
end if
end sub


but how to do if when i click another radiobutton it wont add the same number again and again ??
i wanna it change itself and no to add like 1...11....111
i wanna change like 1...2....3....
and then the other radiobutton....i wanna continue behind the previous number like 11...12...13
Quote Originally Posted by tamanyayasan01 View Post
but how to do if when i click another radiobutton it wont add the same number again and again ??
i wanna it change itself and no to add like 1...11....111
i wanna change like 1...2....3....
and then the other radiobutton....i wanna continue behind the previous number like 11...12...13
I'm not fully understanding the purpose of what your asking, or even what your asking fully, but...
Code:
    Private Sub some_shizzle(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        Label1.Text = String.Empty
        Dim booleans As Array = {RadioButton1.Checked, RadioButton2.Checked, RadioButton3.Checked} 'add more items for more radio buttons, and for quick add/remove runtime use an arraylist
        Dim i As UInt16 = 0
        For Each item In booleans
            If item Then
                Label1.Text = Label1.Text & i
            End If
            i = i + 1
        Next
    End Sub
This is of course implying you'll be going in the 123 order.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us