Hi all,
I am relatively new to .NET and C#.
I am trying to open an additional (new) form when a button is clicked
on an already existing form, but i want that this winform will be
added to the first winform (from Basic to advanced window).
How do i do this?
Thanks in advance 5 4228
Hi,
I guess you want to create an MDI (Multiple Document Interface) form which
has it's child forms.
To do this, follow these steps:
1. set the IsMdiContainer property of the parent form to true.
2. Create your child form and set it's MdiParent property to the parent form.
HTH,
Rakesh Rajan
"oo" wrote: Hi all, I am relatively new to .NET and C#. I am trying to open an additional (new) form when a button is clicked on an already existing form, but i want that this winform will be added to the first winform (from Basic to advanced window). How do i do this? Thanks in advance
Thanks for the replay, but this is not what I meant.
My question is:
I want that the new form will be connected to the exiting form - that it
will look like it is the same form. Like a basic display and when I will
press a button I will get an advanced display (same border and when I
will change the size of one form the size of the other one will be
change automatically.. .)
I hope this is clearer
Waiting for your answer
Thanks again
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi,
I guess you will have to do that programmaticall y. AFAIK there is no direct
method to do that.
You could easiliy have an instance in the second form and then manipulate
the first one. Won't that do?
HTH,
Rakesh Rajan
"osnat o" wrote: Thanks for the replay, but this is not what I meant. My question is: I want that the new form will be connected to the exiting form - that it will look like it is the same form. Like a basic display and when I will press a button I will get an advanced display (same border and when I will change the size of one form the size of the other one will be change automatically.. .) I hope this is clearer Waiting for your answer Thanks again
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Hi,
If I understand you correctly you can do this by putting all controls for
one form on a single panel or container control (custom control) of your
choice and the controls for the other form on another panel/container. At
the click of the button, the panels will switch visibility, hiding one and
showing the other panel.
Happy Coding!
Morten Wennevik [C# MVP]
"osnat o" <oo****@hotmail .com> skrev i melding
news:ux******** ******@tk2msftn gp13.phx.gbl... Thanks for the replay, but this is not what I meant. My question is: I want that the new form will be connected to the exiting form - that it will look like it is the same form. Like a basic display and when I will press a button I will get an advanced display (same border and when I will change the size of one form the size of the other one will be change automatically.. .) I hope this is clearer Waiting for your answer Thanks again
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
If you really want it to look like one form, then put all the information on
one form. It can start with the "advanced" controls hidden, and the form
size smaller so they don't show. Then on the click, show the hidden
controls, and change the size of the form so they will fit.
Yes, the advanced controls at least should be on their own panel (or
similar.) So you say something like foreach( Control c in panel1.Controls )
{ c.Show(); }
and also something like
Form1.Height += panel1.Height;
when you want to show the advanced information.
-Rachel
"Morten Wennevik" <Mo************ @hotmail.com> wrote in message
news:Ol******** ******@TK2MSFTN GP09.phx.gbl... Hi,
If I understand you correctly you can do this by putting all controls for one form on a single panel or container control (custom control) of your choice and the controls for the other form on another panel/container. At the click of the button, the panels will switch visibility, hiding one and showing the other panel.
Happy Coding! Morten Wennevik [C# MVP]
"osnat o" <oo****@hotmail .com> skrev i melding news:ux******** ******@tk2msftn gp13.phx.gbl... Thanks for the replay, but this is not what I meant. My question is: I want that the new form will be connected to the exiting form - that it will look like it is the same form. Like a basic display and when I will press a button I will get an advanced display (same border and when I will change the size of one form the size of the other one will be change automatically.. .) I hope this is clearer Waiting for your answer Thanks again
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daniel Diehl |
last post by:
Hi there,
just a short question. How can I get access to a open form (is also
the MDI parent)? <FORMNAME>.<FUNCTION> does not work but I have to
call a method in the mainForm of the Application to start a
taskbar-Notification e.g.
Thanks for an short answer!
Daniel
|
by: allyn44 |
last post by:
Hello,
I have built a serch form for users to edit records. I only want them
to pull up the record they need, and I want to check for nulls. There
should not be dupes becasue the underlying tables are indexed. So the
user will pull up either one record or none. Here is my problem:
I pass the form name through a tmpvariable and ther other...
|
by: erick-flores |
last post by:
Hello all
Form A (pk) & Form B (fk)
I want to display my Form B empty whenever is the first time, that the
pk form Form A, is enter. I click a button to open Form B. BUT if the
pk from Form A already exist, then show the information from that
record, when I open Form B. Basically have the option to create a new
record OR show existing...
|
by: starke1120 |
last post by:
Is there a way to open a form based on query type.. Example..
If a certain query result is 1 then open the form to this result..
If the query results are NULL or 0 results, then open open for in add
or add new record form.
The query will return one to 0 records so this is my option. Im
guessing the form load event would be the place...
|
by: keri |
last post by:
Hi,
Simple version of the question.....
How do I use the where clause of the open form command to show an
account with a matching ID to be displayed when the form is opened?
Eg. I select a record on a continuous form and click and edit button.
The button runs the open form code. I want the APPID of the current
record on the continous...
| |
by: Derek Basch |
last post by:
I spent several hours struggling with dynamic form fields added with
appendChild or innerHTML not POSTing on submit in Firefox. The only
way I found to make it work is to append any created fields to a DIV
within the form. Here is an example I store from another post. I hope
this helps someone.
<html lang="en">
<head>
<meta...
|
by: vidhyapriya |
last post by:
Hi all,
I am using two forms.From form1 button click i am opening form2,and i am passing values to form2 using delegate.when i click the button again form2 shouldn't open again but values should pass to already open form(form2) here i am added tab pages in tab control for every button click in one form.
how to do this...anyone help...
|
by: billa856 |
last post by:
Hi,
My project is in MS Access 2002.
In that I want to open one form multiple times.
I put one button on my main form.
Now whenever I click on that button than form will be open.
Now when I click again on that same button than it will open same form again in seperate window.
But instead of that already open form comes.and so i couldn't open...
|
by: ielamrani |
last post by:
Hi,
I have the following code which works fine. It export current access form record to an excel sheet: DoCmd.OutputTo acOutputForm, "frmsubformtest", acFormatXLS, "C:\Details.xls", True
Is it posible to append data from this form to an existing template excel sheet that already have the same columns names.
thanks in advance.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |