Originally Posted by
Runaway
I don't know much about vb... but hopefully an analogy can help you out
If you can check the "caption" (not entirely sure what it would be called in vb) then you could do something like:
Simba Code:
// Assuming your ComboBoxes are stored in an array
if (ComboBoxes[0].caption = Lowercase('helm of neitiznot')) then
HelmofneitiznotPicturebox.visible;
And to clear it would be something alone the lines of:
Simba Code:
for i := 0 to 10 do
ComboBoxes[i].caption := '';
Of course, this is all assuming that caption refers to the current value
That was wayyy over my head . VisualBasic is very... basic .
It's really prebuilt. All I really know how to do is when I want to code for something, i.e. the reset button, I double click on it. Then it brings me to the code, and it shows the code for if that click event is fired. Then I just type my remarks and type things simply. I have really never done any "if then" or any other "statements"
The only "code" I have done for that whole thing is..
SCAR Code:
Public Class Form1
Private Sub ResetButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ResetButton.Click
'Reset's the combo boxes for all equipment
'(make sure resetting all combo boxes to default also resets the pictures associated with them to not visible too)
StatsTextBox.Clear()
End Sub
End Class
^The top part is put there from me double clicking (or "firing") the click even, the reset button. Then the green of obviously my remarks, and the only "coding" I've done was to clear the textbox when I hit the reset button, which is the .Clear method I used. I'll have to include whatever methods to clear the combo boxes in that sub, but Idk how