Hi,
Am trying to create a multipage (or multitab) user form and each one of page (tab) has several textboxes in it. After user enters the input in the textboxes, the data goes into an xml file. All I wannna know is, what is the syntax for getting inputs from a textbox on some tab say Tab1. I tried this,

"
Dim Var as Double
Var = TabControl1.Textbox1.text
"
It doesnt work. "TabControl1" is the name of tabcontrol i have inserted and "textbox1" is the name of textbox, the value from which I am trying to read.

Please help !!

'// 1 tabcontrol, 3 textboxes on tabpage 2

       '// TabPages is index based, 0 = tabpage1, 1 = tabpage2, etc.
        MsgBox(TabControl1.TabPages(1).Controls(2).Text) '// will get the first added textbox's text .
        '//changing 2 to 0 will get the last control added to the tabpage.

Hi,
Dim Var as Double
Var = TabControl1.Textbox1.text
Please help !!

Dim Var As Double
        Var = TextBox1.Text

TextBox1 should do just fine. :)

Thanx a lott!! That helps!!

ahmm.. guys could u please help me about tab control .
I have a text input in textbox1 in tab page 1 and i want
that text from textbox1 will be displayed in textbox2 in tab page 2.
please help me ..

vanzhyme, private message sent.
Please start your own thread from now on, for your "own" questions/replies.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.