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

Show another form when button clicked

Motoma
3,237 Expert 2GB
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 2581
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 Expert 2GB
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 Expert 4TB
i've tried but it just gives me errors.....i'm confuzed
What errors do you get?
Jun 6 '07 #4
Killer42
8,435 Expert 8TB
What errors do you get?
Guys, do you think you could take this discussion over to the C++ forum?
Jun 7 '07 #5
it says that form2 is not an object of form1.....
Jun 7 '07 #6
Motoma
3,237 Expert 2GB
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
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 {...
1
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...
5
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...
20
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
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...
3
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...
1
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...
5
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...
10
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...
3
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......
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.