Forms and lablels - DOTNET

This is a discussion on Forms and lablels - DOTNET ; I wonder if you could help. The event handler code below, will allow the user to change the phone number and write it on a label of a message box. I want to replace the message box with a dialog ...

+ Reply to Thread
Results 1 to 2 of 2

Forms and lablels

  1. Default Forms and lablels

    I wonder if you could help.

    The event handler code below, will allow the user to change the phone number
    and write it on a label of a message box. I want to replace the message box
    with a dialog box.

    Can anybody help me replace the message box below to a dialog box. In other
    words. I want to write the new phone number on a label (named "labe1")of a
    dialog box (named "dialog2),instead of writing the new phone number on the
    label of a message box.

    private: System::Void dialogBtnItem_Click(System::Object * sender,
    System::EventArgs * e)

    {

    // Create the dialog

    MyDialog* box = new MyDialog();


    //Fill in the initial data

    box->Phone = S"(650)123-3456)"; // <------ This is the phone number to be
    changed

    //Show dialog

    if (box->ShowDialog() == DialogResult::OK)

    {

    MessageBox::Show(box->Phone); //<-----I tried to change this line


    }

    }



  2. Default Re: Forms and lablels

    In the future, please don't multi-post. If you want to post to multiple
    newsgroups, *cross-post* -- post them all at once. This way if someone in
    one group answers your post, all the groups see it. Multi-posting can
    irritate people and lessen the chances of you getting a response.

    Just FYI.
    Robin S.
    ---------------------------
    "Allen Maki" <allenmaki@sbcglobal.net> wrote in message
    news:FHUWh.833$im2.421@newssvr22.news.prodigy.net...
    >I wonder if you could help.
    >
    > The event handler code below, will allow the user to change the phone
    > number and write it on a label of a message box. I want to replace the
    > message box with a dialog box.
    >
    > Can anybody help me replace the message box below to a dialog box. In
    > other words. I want to write the new phone number on a label (named
    > "labe1")of a dialog box (named "dialog2),instead of writing the new phone
    > number on the label of a message box.
    >
    > private: System::Void dialogBtnItem_Click(System::Object * sender,
    > System::EventArgs * e)
    >
    > {
    >
    > // Create the dialog
    >
    > MyDialog* box = new MyDialog();
    >
    >
    > //Fill in the initial data
    >
    > box->Phone = S"(650)123-3456)"; // <------ This is the phone number to be
    > changed
    >
    > //Show dialog
    >
    > if (box->ShowDialog() == DialogResult::OK)
    >
    > {
    >
    > MessageBox::Show(box->Phone); //<-----I tried to change this line
    >
    >
    > }
    >
    > }
    >
    >




+ Reply to Thread

Similar Threads

  1. Rendering Pictures with Web Forms vs Windows Forms from server
    By Application Development in forum DOTNET
    Replies: 5
    Last Post: 08-23-2007, 05:08 PM
  2. Forms and Lablels
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 04-22-2007, 09:21 PM
  3. Acrobat 8 Pro Forms: distributing secure forms
    By Application Development in forum Adobe Acrobat
    Replies: 6
    Last Post: 12-27-2006, 11:21 AM
  4. Replies: 24
    Last Post: 10-10-2003, 01:55 AM
  5. Cotsec Forms released - J2EE EJB Struts forms and Swing forms
    By Application Development in forum Java
    Replies: 0
    Last Post: 08-16-2003, 03:29 PM