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
4 1628
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.
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.
You just have to add that code to your button and it will show the new form without hiding the current one.
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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.
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |