Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!! - Newby to VB6.. Needs help with Multi-Page controls

Status
Not open for further replies.

ShaneBrennan

Programmer
May 19, 1999
198
GB
I'm trying to create a simple form with a three page multi-form - found in the components library (Microsoft Form 2.0 components) or somthing like that.

I'm presented with two Tab-Like controls - Tabstrip and Multi-page. I have eventually discovered how to put components on the form - using the Multi-page's OWN toolbar. But how the devil do you reference these components?

I've tried everything I can - and keep hitting a brick wall. All I want is a set of three screens: called General Settings, Input data and results. I need to do a little bit of code to take the general settings and the output data to create the results! Nothing special - Quite easy with Access's forms - but VB6?

I would appreciate any help on this, as I only have a few strands of hair left and I would really like to keep them.

Shane Brennan


Shane Brennan
Shane.Brennan@tcat.ac.uk

 
To reference the controls, you do the following:

If you have a text box on a form, from within that forms code, you reference the control just by its name: Text1.
If you want to get at the text held in the text box, you use the Text property of the control: Text1.Text

From another form, you reference the control by the form name that the control is on, DOT control name: Form1.Text1.Text.
NOTE: To do this, Form1 has to be loaded into memory first. If the form has not been loaded into memory, it will not work.

Was there anything in particular that you want to do, but don't know how??

Simon
 
Thanks simon,

This is not quite what I meant. I've found another component, in the Microsoft tabbed control 6.0 (or somthing like that) which gives me a tabbed box that I can play with. I can refererence the components okay now, but I can not remove tabs very easilty - but it does work. I guess I'd better do some more design work before I start programming in future.

Thanks by the way again.

If you come across a component that can produce tabbed forms, such as those used in Word to display the options, I would be grateful

Shane

Shane Brennan
Shane.Brennan@tcat.ac.uk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top