|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
need help!!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. si_owen schrieb:
Show quoteHide quote > i am used to vb6 nad now im using .net framework all the simple lines The attribute is called ' visible ' - I think the usage is obvious ;-)> 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. 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 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() si_owen schrieb:
> Maybe you should have written this before...??> and as i am creating a web site not standard windows form it's not that > obvious. > si_owen wrote:
> i am used to vb6 nad now im using .net framework all the simple lines Welcome to the Brave .New World.> of code have vanisehed!!! > now how the hell do u recreate that kind of simple command button > navigation in .net???? 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.
Need a tip: How do you streamwrite from two different db tables?
Recognizing if SQL Server is installed (and what version) Q: Advice on threads On Error Goto Next Loop How to simulate Application.DoEvents in a DLL open source .NET search engine? Bootstrapping .NET 2.0 Dispose problem/crash with maximized MDI child windows VB2005 - Split Files Visual Basic Programming - Reference to fpPublishLogInTempDir uri - ADVANCED question |
|||||||||||||||||||||||