Tabcontrol within form

Hello,

I've a tabcontrol with 4 tabpages (in design mode).

Each tabpage has elements. Above the tabcontrol, there is an button. I want to save the values of the elements in a database. That works, but one problem.

Only the values of the elements in the activated tabpage will be known when I click on the button. The elements of the rest of the tabpages are known, but their values are empty. What's the problem




Answer this question

Tabcontrol within form

  • ArturPereira

    What is the save button actually doing As you have seen it seems as it is only working on the active form. The solution is probably to change the behaviour of the save button to include all pages of the tabcontrol.

  • Rick Broider

    I've the following solution.

    In the function 'behind' the save button, I activate the first tab. After that, I read the selected value. I can't read the selected value when another tab is activated.



  • ymhtp

    hi,

    Is your problem solved

    Thank you,
    Bhanu.



  • Tabcontrol within form