473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.

Oct 18 '06 #1
4 892

si_owen schrieb:
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

Oct 18 '06 #2
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()

Oct 18 '06 #3

si_owen schrieb:
>
and as i am creating a web site not standard windows form it's not that
obvious.
Maybe you should have written this before...??

Oct 18 '06 #4
si_owen wrote:
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.
Oct 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gregory Nans | last post by:
hello, i need some help to 'tree-ify' a string... for example i have strings such as : s = """A(here 's , B(A ) silly test) C(to show D(what kind) of stuff i need))""" and i need to...
0
by: xunling | last post by:
i have a question about answering ..... this topic is "need help" what do i have to write at te topic line, !after i have klicked the "answer message" button ive tried many possibilities,...
2
by: Paul Mendez | last post by:
I really need some help Date Code ConCAT Bal_Fwd NS_Fees Amt_Coll Cur_End_Bal 1/15/2004 KW 11KW2003 $500.00 $250.00 $250.00 2/15/2004 KW 12KW2003 $300.00 $500.00 ...
7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
8
by: Elliot M. Rodriguez | last post by:
I am having a heckuva time debugging this, or determining why my page is behaving this way. I have a search form, that when completed, returns a datagrid. When the user selects a row (normal...
3
by: Rich Squid | last post by:
Hello Here's my basic problem: On my asp.net form page I have a DetailsView (default mode=edit) bound to a AccessDataSource control. Users can successfuly update a databound template field,...
2
by: XML Beginner | last post by:
I have an XML file that contains values that my application needs, so it knows which database to connect to. It also contains a configuration option so that I can specify which node to return...
2
by: =?Utf-8?B?am9lb2ppaA==?= | last post by:
Most students do not have enough time to do their homeworks, assignments, college papers, etc alone. Also most of them, even though they know what to do with respect to their writing assignment,...
30
by: carlos123 | last post by:
Ok I am working on a Hall Pass program for my computer programming class. There are 3 things that I am confused on. 1. Reading a file. 2. Taking that data read from the file and putting it into...
1
by: jhaydon | last post by:
First of all, I'm not a CSS expert. If I was, I wouldn't need to be posting for help here. Secondly, I have been doing web design for several years, just not css. Thirdly, I need help and hope...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.