msgbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Just a quick question...
does anyone know how i can include the value of a combobox into my message that appears in my messagebox?

i.e if my combobox contains USA, how do i write 'you are in the USA site' ??

thx
 
C# code:

string myMessage;
myMessage = "You are in the " + myComboBox.SelectedText + " site.";
MessageBox.Show(myMessage);

VB.Net code
Dim myMessage as String
myMessage = "You are in the " & myComboBox.SelectedText & " site."
MessageBox.Show(myMessage)

David
 
Back
Top