msgbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Massy

    #1

    msgbox

    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
  • dm_dal

    #2
    Re: msgbox

    C# code:

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

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

    David

    "Massy" <anonymous@disc ussions.microso ft.com> wrote in message
    news:719CE8A0-4414-434F-8AD9-C899B2570890@mi crosoft.com...[color=blue]
    > Hi all,
    >
    > Just a quick question...
    > does anyone know how i can include the value of a combobox into my message[/color]
    that appears in my messagebox?[color=blue]
    >
    > i.e if my combobox contains USA, how do i write 'you are in the USA site'[/color]
    ??[color=blue]
    >
    > thx[/color]


    Comment

    Working...