need help!!

S

si_owen

i am used to vb6 nad now im using .net framework all the simple lines
of code have vanisehed!!!

for example in vb6 to move from one form to another the following code,
behind a command button, was magic:

form1.show
form2.hide

now how the hell do u recreate that kind of simple command button
navigation in .net????

any ideas, i have looked at breadcrumbs and tree style menus but not
what i want.
 
N

Norman Chong

si_owen said:
i am used to vb6 nad now im using .net framework all the simple lines
of code have vanisehed!!!

for example in vb6 to move from one form to another the following code,
behind a command button, was magic:

form1.show
form2.hide

now how the hell do u recreate that kind of simple command button
navigation in .net????

any ideas, i have looked at breadcrumbs and tree style menus but not
what i want.

The attribute is called ' visible ' - I think the usage is obvious ;-)

But what do you want to do? I wizard-like application where you have a
'next' and 'previous' button? In this case I would recommend Groupboxes
for each "page" instead of forms. When clicking on the buttons, you can
then just change the visibility of the boxes. (You could do this with
forms too, but then you would always have lots of forms in background;
and it will be slower when clicking on next, because the whole new form
must be loaded)

By the way: Show won't work - This will load the form
 
S

si_owen

i know this wont work in .net im saying it was that simple in vb6!

and as i am creating a web site not standard windows form it's not that
obvious.

finally found it response.redirect()
 
P

Phill W.

si_owen said:
i am used to vb6 nad now im using .net framework all the simple lines
of code have vanisehed!!!
now how the hell do u recreate that kind of simple command button
navigation in .net????

Welcome to the Brave .New World.

Visual Basic no longer keeps track of your Forms like VB "proper" did,
so you have to create instances of them and call methods on these
instances; well, they /are/ Classes, after all.

Dim f2 as New Form2
f2.Show()

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top