473,545 Members | 305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show another form when button clicked

Motoma
3,237 Recognized Expert Specialist
OK, so i will start with something simplier.
Thanks anyway, dudes.

Oh, i've allmost forgot. I have one more question for c++ users. So: How can i
open a form from another form:
- I have Form1 and Form2
On form1 there's a Button1.
When i click that button i want the other form to show up. I tried but i just can't figure it out. form2->visible->true does not work. I know this is a funny question for u professionals but i have to start somewhere.
Thanks in advance!
In Slovenia we say - Hvala!


-------------------------------------------------------------
Please open me that gate, so i will reach to another site.
Myself.

I believe Form2.Show() is what you are looking for.
Jun 5 '07 #1
6 2590
miklavcicmatic
8 New Member
i've tried but it just gives me errors.....i'm confuzed
I allso opened some other multi-form apps and there was some code that worked for that app only, but not for my app.
Jun 6 '07 #2
Motoma
3,237 Recognized Expert Specialist
i've tried but it just gives me errors.....i'm confuzed
I allso opened some other multi-form apps and there was some code that worked for that app only, but not for my app.
Perhaps you better post the relevant code, and please use the [code] tags.
Jun 6 '07 #3
pbmods
5,821 Recognized Expert Expert
i've tried but it just gives me errors.....i'm confuzed
What errors do you get?
Jun 6 '07 #4
Killer42
8,435 Recognized Expert Expert
What errors do you get?
Guys, do you think you could take this discussion over to the C++ forum?
Jun 7 '07 #5
miklavcicmatic
8 New Member
it says that form2 is not an object of form1.....
Jun 7 '07 #6
Motoma
3,237 Recognized Expert Specialist
it says that form2 is not an object of form1.....
Perhaps you better post the relevant code, and please use the [code] tags.
Jun 7 '07 #7

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

Similar topics

2
12174
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow { display: none; }
1
1655
by: Josema | last post by:
Hi to all, I have a textbox and a button... When the button its clicked i show a label that has the text "Hello World"... I would like to make that, when the button its clicked, first show an animated image (loading...), and some seconds after, show the Hello World label How could i make that the current thread Sleep for some seconds?
5
1977
by: Peter | last post by:
I have 3 ASP.NET forms written in C#, I also have 3 frames (left, top and bottom) one for each form. My question is if I have data on one form in the bottom frame how do I access this data when I click on the button which is on the top frame? I want to save the data from the bottom frame to the database when a user clicks on the Update button....
20
2414
by: ed | last post by:
Hi I can't seem to make the Me.Show() work My code is dim dlgresult as dialogresul dlgresult=me.show( The message is : "expression does not produce a value
15
1907
by: Joachim | last post by:
Hi, Als a beginner, I am looking for a way to show records My code is Private sub Connection( Dim odbconn_Pro As OleDbConnectio Dim odbcomm_Pro As OleDbComman Dim odbdare_Pro As OleDbDataReade Dim DataFile as Strin DataFile = "H:\Production\Prod.mdb
3
15216
by: jimcolli | last post by:
I have a parent form with a menu button that has a handler. I want to call this same handler when a button on a child form is clicked. I have this simplified code in the main form's Load handler. public class frmMain { private System.Windows.Forms.Button btnClickMe;
1
1608
by: rn5a | last post by:
A custom server control has a Button. Namespace Confirm Public Class ShowConfirm : Inherits Button Private strConfirmMsg As String Public Property ConfirmMessage() As String Get ConfirmMessage = strConfirmMsg End Get Set(ByVal value As String)
5
2027
by: LLM | last post by:
When my MDI app loads, it shows a child form centered. This form has buttons as choices. When a button is clicked, that form closes and another opens. From the second window, if they click the X to close the window, I want to show the original form again. If they click a button on that second window, I do not want to show the original...
10
7043
by: menashay | last post by:
Hello, I am absolute beginner in C# so pardon me if the following question is too easy. I have a form with a one button. When I click the button I want to display a message that reads "Button was clicked" However, I do not want to handle the click event from that form, instead I want to "transfer" that event to a "controller" class that...
3
3339
by: timplx | last post by:
Hello all, New to javascript and have never worked with programming languages like c++, so my logic in some of these statements might be incorrect or redundant Got a problem with my page... using java and external css to show/hide items on the same click. I found a script that uses the getElementById function to adjust the display style of a...
0
7396
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7413
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...
0
5968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
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...
0
3440
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1874
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
0
700
bsmnconsultancy
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...

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.