Say i had a comx right?
And then i wanted a TextBox to be visible once a certain item of the Comx is selected. How would i do that.
Thanks MJ, i'll test now
Mj's code will visible on any selected change
Try , For a specific item it will be
[php]
If Combobox1.selecteditem = "Item Here" Then
Textbox1.Visible = true
End if
[/php]
or use selected index (knowing which index you want it to display on)
[php]
If combobox1.SelectedIndex = 1 Then 'or the index you want to display the textbox
TextBox1.visible=true
else
textbox1.visible=False
end if
[/php]
Thanks NextGen, i think its working nao =D
LOL, That was just an example on how to change visibility using indexes
I was so tired that writing a single line was difficult for me at that time hehe
I would try if my vb worked :P
Thanks this will become helpful
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Idk why but I prefer using textchanged
Code:Private Sub ComboBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.TextChanged If ComboBox2.Text = "Whatever" Then textbox1.visible = true else textbox1.visible = false end if End Sub
That could work, but in my case i'd prefer to use NextGen's solution. Thanks for sharing though Blubb =D
My pleasure...
Fine, both solutions are possible :P
Depends on what you prefer
Yes! And also the situation!
Not a problem, Marked Solved
Left Open for other users