1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please guide me on how to get textBox values from subTabControl into maintabControl.

Discussion in 'C' started by Alice86, Oct 27, 2009.

  1. Alice86

    Alice86 New Member

    Joined:
    Oct 23, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,
    I want to get textBox values from subTabControl into maintabControl. Follwing is my code that i written in mainTabControl:
    IDC_EDITMCNO_SUB is textbox in subTabControl and MacNo_Sub is variable for IDC_EDITMCNO_SUB, i trying to get value from IDC_EDITMCNO_SUB and assign the value to textbox in mainTabControl which namely IDC_EDITMCNO_MAIN. McNo_Main is variable for IDC_EDITMCNO_MAIN.
    Code:
    // Get text box values
    CString MacNo_Sub;
    GetDlgItemText(IDC_EDITMCNO_SUB ,MacNo_Sub);
    CString McNo_Main = MacNo_Sub;
    SetDlgItemText(IDC_EDITMCNO_MAIN, McNo_Main);
    when compile this program, it succeeded and no return error. but when i run this program, it does't return any value in IDC_EDITMCNO_MAIN.
    can anyone help me to get the value from IDC_EDITMCNO_SUB??
    Please show me some guide to solve this problem..its very urgent for me..
    I very appreciate your help..
    Thanks very much .
    Regards:
    Alice
     
    Last edited by a moderator: Oct 27, 2009
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Last edited: Oct 29, 2009
  3. Alice86

    Alice86 New Member

    Joined:
    Oct 23, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Re: Please guide me on how to get textBox values from subTabControl into maintabContr

    hi, thanks for your replay..
    i will look through on it..:pleased:

    regards :
    alice
     

Share This Page