sample code

  • Thread starter Thread starter ramonours
  • Start date Start date
R

ramonours

Hello, any sample code / tutorial out there that demonstrates a main form
with a button which will directed to 1 or more other forms who also have
buttons that direct it back to the main form in .netcf??
I seem to be having more problems with this than I think I should be having!

thanks,
bb
 
Let's start over. *What* are you trying to accomplish? Telling us *how*
you are trying to accomplish too often leads to wasted time.

Paul T.
 
I too am interested in this.

What I would like to do, is have the user answer a series of questions,
implemented as forms and then transition to other forms based upon their
answers.



Form1 --> Form2 --> Form3 --> Form4
|
----> Form4a

etc
 
OK, I want to have Form1 (mainform) that has 3 buttons one by one the
buttons will take me to Form2, Form3, and Form4. On Form2,Form3 and Form4 I
want a button that takes me back to Form1 (mainform). Then When I tap on
the 'ok' on Form1 the application will end.

That used to be easy to do in VB6 and eVB.

Thanks in advance,
bb.
 
Thanks, exactly what I needed!

bb.

--
Get The CrashCart!!
http://www.rncrashcart.com
Paul G. Tobey said:
Here's what I think I'd do in your situation. Create *one* form, not 50.
On the form, put the variable list of controls that you want on each 'form'
in a separate panel of the same size. You're going to display each panel in
turn, as you cycle through the list. In the form constructor, create a list
of the panels and an integer index, which you set to 0, pointing to the
first item in the list, which should be the panel displayed first.

Outside the panel area on the form, you can have whatever other, unchanging
controls you want (Next, Previous, Item #1, Item #3, whatever). In the
handler for each of those controls, you'll move the active panel,
panelList[ panelListIndex ] off-screen, maybe to a point like 6000,6000 or
something, then move the new active panel into the active location on the
form, updating the panelListIndex. Attached is a very simple and not
complete example that allows you to cycle through three panels, each with
various controls on it via buttons on the main form.

Paul T.


ramonours said:
OK, I want to have Form1 (mainform) that has 3 buttons one by one the
buttons will take me to Form2, Form3, and Form4. On Form2,Form3 and Form4
I
want a button that takes me back to Form1 (mainform). Then When I tap on
the 'ok' on Form1 the application will end.

That used to be easy to do in VB6 and eVB.

Thanks in advance,
bb.
 
Back
Top