473,386 Members | 1,819 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.

How do I dispaly a Windows Form?

Ajm113
161 100+
Ok I want to display this dialog I made, but I can't figure out how to have it display. I made it under a window Form. I did try this, but it does not work.

credits.ShowPropertyDialog();
Aug 3 '07 #1
6 1232
WeCi2i
6
Ok I want to display this dialog I made, but I can't figure out how to have it display. I made it under a window Form. I did try this, but it does not work.

credits.ShowPropertyDialog();
Depending on how you did it, you may also need to create an instance of the form first. So if the form is called credits.cs then you need to do something like

credits myCredits = new credits(); and then show it.

If you already have an instance of it created then you could do one of the following.

Try:
credits.ShowDialog();

if you want to show the form and have it as the only active thing in your program

OR

credits.Show();

if you want to be able to move between the other windows in your program while the form is showing.
Aug 3 '07 #2
nmsreddi
366 256MB
Depending on how you did it, you may also need to create an instance of the form first. So if the form is called credits.cs then you need to do something like

credits myCredits = new credits(); and then show it.

If you already have an instance of it created then you could do one of the following.

Try:
credits.ShowDialog();

if you want to show the form and have it as the only active thing in your program

OR

credits.Show();

if you want to be able to move between the other windows in your program while the form is showing.

Hello

Can you give some explanation what is credits is this a windows form ,where you want to open the dialog actually

can you post some sample code
Aug 3 '07 #3
Ajm113
161 100+
Thanks guys! Also if I may go off subject for a minute is their any place I can look to create a Find & Replace Dialog and a Goto line dialog?
Aug 3 '07 #4
Floydan
24
Hello

Can you give some explanation what is credits is this a windows form ,where you want to open the dialog actually

can you post some sample code
It was just an example that he gave. When you create a form you can create and instance of that form by using its name.

So if you create a Form named CreditForm then you instantiate that form by writing:
Expand|Select|Wrap|Line Numbers
  1. CreditForm credit = new CreditForm();
  2.  
After you have created and instance you can the call the Show or the ShowDialog methods.

Expand|Select|Wrap|Line Numbers
  1. CreditForm credit = new CreditForm();
  2. credit.Show();
  3.  
or

Expand|Select|Wrap|Line Numbers
  1. CreditForm credit = new CreditForm();
  2. credit.ShowDialog();
  3.  
Aug 3 '07 #5
WeCi2i
6
Thanks guys! Also if I may go off subject for a minute is their any place I can look to create a Find & Replace Dialog and a Goto line dialog?
Do you mean you want to use these in Visual Studio or you want to create dialogs of your own in your application? Both things are very easy if you are just doing them within Visual Studio. On the other hand, if you want to use something like that in your application it is going to take some work.
Aug 3 '07 #6
Ajm113
161 100+
Yeah I mean in my own application.
Aug 4 '07 #7

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

Similar topics

3
by: keith | last post by:
I have a panel on my form and add controls (e.g. TextBox) into it at runtime. What I want is the controls will display on same line if they are visiable in the panel horizontally. If any of the...
2
by: didgerman | last post by:
hello, Here's a quick and daft question: how do I display an int value on a windows form? Something like a label would be fine. Any ideas? Cheers
1
by: hullyi | last post by:
i have 2 frames one is a header with a menu and the other one is for dispaly, i want that all the aspx forms will be displayed in that frame even if i use 'response.redirecty' action
5
by: Ted Ngo | last post by:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { txtSource.Focus(); frmMain.Visible = true; divWait.Visible = false; btnsubmit.Visible = true;
4
by: Patrick | last post by:
Hi All. I'm newish to xml/xsl so forgive me if this has been discussed before. I tried to google the info, but I'm not sure about terminology. So I am looking for input on a solution or a link...
0
by: sangitadeori | last post by:
Hai M Sangita,I m working with C#.Net on windows application,I want to know that suppose we are browsing through some folder using Opendialogbox,it is showing me only the path in the textbox.But I...
9
by: vsraot | last post by:
Hi, How to dispaly two dicimal points in java (Example 1) 5.70 Example 2) 561 but it should display as 561.00) Example1) Here I am able to display 5.7 but it should display as 5.70 Example...
0
by: ARCHANAA | last post by:
hi, i m using asp.net ,oracle10g. my os is windows xp . i m also using office 2003 . in my application i want to dispaly data from an excel file to datagrid in asp.net page send me an...
1
by: sunilkumar123 | last post by:
sir, i am getting problem to dispaly 10 rows at my page and the next 10 record at next page and if you want to come back to previous page
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.