473,396 Members | 2,029 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,396 software developers and data experts.

Can Somebody Help Me Open One Form From The Other Please

Hi all,

this may seem like a silly problem to you guys, but i want to be able
to open my 2nd form from my 1st form.
(Im Using Visual C# 2005)

Form Names:

1st form = ticketDispenser
2nd form = signDisplay

How can i open "signDisplay" from my button on the 1st form
"ticketDispenser"?
Any help would be much appreciated,

Many Thanks

Ash

Oct 29 '07 #1
2 1016
This should do it:

(A button click event)

private void button1_Click(object sender, EventArgs e)

{

signDisplay sDisplay = new signDisplay();

sDisplay.Show();

}


<As*****@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
Hi all,

this may seem like a silly problem to you guys, but i want to be able
to open my 2nd form from my 1st form.
(Im Using Visual C# 2005)

Form Names:

1st form = ticketDispenser
2nd form = signDisplay

How can i open "signDisplay" from my button on the 1st form
"ticketDispenser"?
Any help would be much appreciated,

Many Thanks

Ash

Oct 29 '07 #2
On Mon, 29 Oct 2007 16:28:39 -0700, "Matt"
<co*************@hotmail.comwrote:
>This should do it:

(A button click event)

private void button1_Click(object sender, EventArgs e)

{

signDisplay sDisplay = new signDisplay();

sDisplay.Show();

}
Or better yet, to ensure that the second form stays on top, call
ShowDialog() instead of Show()

--
http://bytes.thinkersroom.com
Oct 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: martijn | last post by:
Hi There, my vb app can open files. Well, actually my vb app launches word or excell to open them. These files are shared in a network. If somebody else has allready opened that file, you...
6
by: lostinspace | last post by:
After four+ years of using FrontPage in a limited capacity and having created over 600 pages on my sites, I've finally (at least for the most part) abandoned FP, to begin the process of converting...
1
by: ST | last post by:
This is my other error when I click on Immunoflourescence. I believe this is related to the other error I just posted (Input string was not in a correct format.) Please let me know if you have...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
1
by: Simon Lee | last post by:
Dear all, I write a following form in the html page and link to the webpage without scrollbar,menubar, with a fixed size as follow: ------------------------- <form name="formsearch"...
4
by: andy.mcvicker | last post by:
Hi Gang I'm not sure what needs to be changed when converting an asp to vbs. I'm not sure if I can with my code below. Can someone PLEASE convert the text below to vbs? Thanks a million....
8
by: emekadavid | last post by:
Please can somebody show me a way to work around this. It works in IE6 but doesn't in Mozilla 2.0.0.4. the code is just a prototype that was written minutes ago and i tried commenting it a lot for...
3
by: godhulirbalaka | last post by:
Dear Sir/Madam, I am new vb 6.0 user. I am developing Shop Management Program. I have a main form with buttons and menus. when i click any button then respective form is open. I want to set a...
9
by: ahilar12 | last post by:
1. <head> 2. <script type="text/javascript"> 3. </script> 4. </head> 5. <body> 6. <form> 7. <select name="team" id="mylist" > 8. <option></option> 9....
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: 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...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.