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

How to start a new form without disabling the previous one

2
Hello.

I have a question.

How can I create a new form, lets say fomr b, by clicking a button on form a, and with the form b open, still can navigate from form a.

thank you.~

i'm using .NET for above code
Sep 20 '08 #1
4 1628
tlhintoq
3,525 Expert 2GB
You haven't given us much to go on to help you out...
No mention of language (Java, C#...) or if this is a Windows Forms application or a web app etc.
So all we can do is take a stab in the dark.

Let's say... A windows for under C#...

If all you want to do is keep form 'A' alive and able to be navigated then you have no problems. Making a new form does not disable the old form.
When form 'A' creates form 'B', 'B' will now have focus. If you want form 'A' to have focus then you can assign it from 'B' if you like. Maybe stick it in the OnLoad() method. Parent.Focus() This will make it look like 'A' created 'B' without loosing control.

You did say "navigate from form a" - If you are wanting to use form 'a' as a navigational tool for form 'b', that's a much bigger deal.
Sep 21 '08 #2
zubair1
79
Hi,

If you're using VB.net

you can easily add a new form to your current project, from the menu

and then all you will have to do is call your form for you button.

Expand|Select|Wrap|Line Numbers
  1. form2.show
You just have to add that code to your button and it will show the new form without hiding the current one.
Sep 21 '08 #3
linjin
2
I'm using C# .

I got the answer now.
thanks for all your help.

acturally, the problem is between show() and showdialog().

If i'm using showdialog(), then the parent form will lose control.
but if i'm using show(). both forms will work fine.

:D
thanks
Sep 22 '08 #4
tlhintoq
3,525 Expert 2GB
I'm using C# .

I got the answer now.
thanks for all your help.

acturally, the problem is between show() and showdialog().

If i'm using showdialog(), then the parent form will lose control.
but if i'm using show(). both forms will work fine.

:D
thanks

For future references and searches the term is modal or non-modal.
Sep 23 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: fred14214 | last post by:
Dear Group: I have built and customized a form using the wizard to put command buttons that will move to the NEXT record or PREVIOUS record. This works, but it needs some refinement. ...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
1
by: keni | last post by:
One method of disabling Design View is to create an MDE database. Without going into details, this won't work in my situation. What I need is just a snippet of VBA code that will disable the...
7
by: VM | last post by:
Hi, Is it possible to open always only one instance of a MDIChild form? Say, if form A is already opened, just give it the focus. I tried declaring theMDIChild forms as private members of the...
3
by: K.Kishore | last post by:
Hi all, When iam clicking 'X' option it is asking a popup to save or No. I am selecting "No" (Since I dont want to save) But i want it not tosave without prompting. For this the following code i...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
1
by: mssbass | last post by:
In order to disable the previous and next buttons on my form, I followed the attached code. The buttons seem to work fine except for one thing. When the form first opens, the next button is...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
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
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: 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: 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...
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: 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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.