473,386 Members | 1,886 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,386 software developers and data experts.

creating a separate window in c#

7
Hello. What I am trying to do is simple. I don't want to create a window inside a form, but a window that acts independently outside the form. so for example, let's say I am doing a program that displays statistics about a person, so, when the user clicks a button, a separate window appears that displays the information.

thank you.
Feb 21 '07 #1
5 1437
Motoma
3,237 Expert 2GB
Hello. What I am trying to do is simple. I don't want to create a window inside a form, but a window that acts independently outside the form. so for example, let's say I am doing a program that displays statistics about a person, so, when the user clicks a button, a separate window appears that displays the information.

thank you.
Create another form.
Feb 21 '07 #2
044879
7
Thanks for the reply. I did this previously, ie

Form chForm = new Form();
chForm.MdiParent = this;

chForm.Left = 100;
chForm.Show();

But, the window appears within the form, not outside it.
Feb 21 '07 #3
Motoma
3,237 Expert 2GB
Thanks for the reply. I did this previously, ie

Form chForm = new Form();
chForm.MdiParent = this;

chForm.Left = 100;
chForm.Show();

But, the window appears within the form, not outside it.
The reason your child form appeared inside the original form is because you set the child form's parent!

Expand|Select|Wrap|Line Numbers
  1. chForm.MdiParent = this; //SET THE PARENT FORM TO this MDI CONTAINER
  2.  
Feb 21 '07 #4
NSRao
11
use new form
Feb 21 '07 #5
nmsreddi
366 256MB
Hello

Your question sounds typical what a window you mean and a form .

if you want to have your main form existing and show some the details in some other new windows form dont make it as a child for the main form just use

form2().showmethod you can defnately get the new window separately and you can close that new one too

Hope may be clear

Good luck
Feb 21 '07 #6

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

Similar topics

4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
5
by: John Scott | last post by:
Ok..this a rather odd question/problem. I haven't really found a straight forward answer to how to handle this scenario, so I hope someone here can help. Here it is: I have an application...
1
by: mandarbansod | last post by:
Hi i m creating a web application which needs an application may b an exe which will run in background at the end of the day n will update some tables in database. while this application will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.