473,320 Members | 1,974 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.

Windows Form Application Help

Hi Guys,

I need a quick reference to Windows Application Development in dotNet.
I'm fairly good at the Web Development using asp.net though i'm new to
the Windows Desktop Application environment.

For question would be how do you "Redirect" back and forth, from one
Windows Desktop Form to another? In the web environment, it would be
redirect(<page name>, <true/false to terminate the current page
process>) but how do I do the same.

I know that to terminate a particular Window Desktop Form it would be
me.dispose(true) and to redirect to anohter form, you must need to
create the form first. Also, how do you disable the "close/exit"
button on the top right of the form next to the minimize/maximize
button?

-----
A ) dim nextForm as Form2 = new Form2
B ) nextForm.show
C ) me.dispose(true)
---

how do i, from the form2, show another form assuming that the first
form at line C does not exitst.

Thanks in advance,
Neil

PS I'm currently using Visual Studio 2003 with dotnet framework 1.1 and
2.0 for my development environment. The last time i've written any
Windows Desktop Form Application was in VB6...maybe i should find that
old app and look at the source.

Feb 3 '06 #1
2 2007
ne******@gmail.com wrote:
Hi Guys,

I need a quick reference to Windows Application Development in dotNet.
I'm fairly good at the Web Development using asp.net though i'm new to
the Windows Desktop Application environment.

For question would be how do you "Redirect" back and forth, from one
Windows Desktop Form to another? In the web environment, it would be
redirect(<page name>, <true/false to terminate the current page
process>) but how do I do the same.

I know that to terminate a particular Window Desktop Form it would be
me.dispose(true) and to redirect to anohter form, you must need to
create the form first. Also, how do you disable the "close/exit"
button on the top right of the form next to the minimize/maximize
button?

-----
A ) dim nextForm as Form2 = new Form2
B ) nextForm.show
C ) me.dispose(true)
---

how do i, from the form2, show another form assuming that the first
form at line C does not exitst.

Thanks in advance,
Neil

PS I'm currently using Visual Studio 2003 with dotnet framework 1.1 and
2.0 for my development environment. The last time i've written any
Windows Desktop Form Application was in VB6...maybe i should find that
old app and look at the source.


1. You can't really redirect like you do in a web environment. You can
change which form has focus.

2. me.dispose(true) is not the way to close a form. Me.Close is the
correct method to use.

3. Disable the "close/exit" with me.controlbox =false

4. "form at line C does not exitst." how can you run code like
me.dispose if the form does not exist?

Chris
Feb 3 '06 #2
Neil.

Suppose you have a masterform

Than you can do
\\\
dim frm2 as new form2 (a second page)
me.showdialog(me)
me.dispose 'this is an exception what I don't like spam is mostly true and
has it to be close
///

This does a little bit the behaviour as the redirect, where closing that
form 2 does that redirect back automaticly.

However with a windowform you have probably 100000 times more possibilities
than with a webform, so start first with your first form.

(You can as well like with an ASPNET page use 1 form with panels or extra 1
form with a tabpage etc etc)

It is just a start so try.

Cor
<ne******@gmail.com> schreef in bericht
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi Guys,

I need a quick reference to Windows Application Development in dotNet.
I'm fairly good at the Web Development using asp.net though i'm new to
the Windows Desktop Application environment.

For question would be how do you "Redirect" back and forth, from one
Windows Desktop Form to another? In the web environment, it would be
redirect(<page name>, <true/false to terminate the current page
process>) but how do I do the same.

I know that to terminate a particular Window Desktop Form it would be
me.dispose(true) and to redirect to anohter form, you must need to
create the form first. Also, how do you disable the "close/exit"
button on the top right of the form next to the minimize/maximize
button?

-----
A ) dim nextForm as Form2 = new Form2
B ) nextForm.show
C ) me.dispose(true)
---

how do i, from the form2, show another form assuming that the first
form at line C does not exitst.

Thanks in advance,
Neil

PS I'm currently using Visual Studio 2003 with dotnet framework 1.1 and
2.0 for my development environment. The last time i've written any
Windows Desktop Form Application was in VB6...maybe i should find that
old app and look at the source.

Feb 3 '06 #3

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

Similar topics

5
by: joseph | last post by:
Hi, I would like to run a windows application without the user interface. Console application is not a choice because it does not allow to use ADO controls. When I start the Windows Application I...
0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
4
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
6
by: Dean R. Henderson | last post by:
I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: 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.