|
-
Aug 28th, 2006, 04:34 PM
#1
Thread Starter
Lively Member
Reload or Refresh Form
Hi,
I would like to know how I can reload a form or repopulate a textbox after button click event.
Here is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SelectedItem As String = ComboBox1.Text '("Whats your f color")
Select Case LCase(ComboBox1.Text)
Case "blue"
MsgBox("we have blue")
Case "yellow"
MsgBox("we have yellow")
TextBox1.Text = (SelectedItem)
Me.Refresh()
End Select
End Sub
So after user selects yellow, a msg box appears display we have yellow, I all so want texbox1.text to be updated with the selectedItem, which will be yellow.
Thanks,
Mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|