473,399 Members | 3,302 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,399 software developers and data experts.

How to use Main_Form from Sub_Form?

Hello Developers,
I would like to use and update the Form Controls of Main_Form from Sub_Form.
Sub_Form is opened from Main Forms with Show( ) method.

Main_Form.h
---------------------
#include "Sub_Form.h"
.....
Sub_Form *frm = new Sub_Form();
frm->Show();
.....
------------------------------------------
1) I added ' #include "Main_Form.h" ' to Sub_Form.h. Then I define a
variable as type of Main_Form. But compiler gives many syntax error.
2) Then, I define a System::Windows::Forms type variable. And set Main_Form
in the constructor of Sub_Form. In this case, I was able to change only title
of Main_Form and general form settings., Not public form controls.

--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
Nov 17 '05 #1
0 793

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

Similar topics

0
by: SAN CAZIANO | last post by:
My site has: - 1 frame in top where I have some images to change the language of the site if clicked - 1 frame at left for the menu - 1 frame at middle to load the...
1
by: Tony Farrell | last post by:
Hi Everyone - I have a data entry form that allows the user to click a button and have that button popup a list of available values - the code on the popup window uses the name of the form to...
3
by: soup_or_power | last post by:
Can someone please explain why getObjects2 works and getObjects1 fails? Thank you. function getObjects1 ( obj_name) { var objs = eval( "document.main_form.elements" ); if ( objs != null &&...
2
by: Steve Strik | last post by:
Hi all, I'm trying to reduce the number of subforms used to display seom data on a form. At the moment there is 36 subforms on the main form, all with the same basic format. The only change...
4
by: mooseshoes | last post by:
All: Form A: Main_Form Form B: Sub_Form (has the control name: Sub_Form_Control_Name) Form C: Independent_Form Form C is based on a table which is also used by Form B. When Form C is used...
3
by: Michel H | last post by:
Hello everyone, While it seems simple to me, I just want to have a URL in my windows application that people can click and then launch the URL in the default browser. Same thing with a mailto:...
2
by: Alper AKCAYOZ | last post by:
Hello, I am developing a project using Windows Forms .NET by using Visual C++ .NET v2003. I open a Sub_Form by clicking a button on the Main_Form. Some operations are working at Main_Form and...
1
by: Thomee Wright | last post by:
I'm having a problem with a pair of applications I'm developing. I have a server application which interacts with several instruments, and a client app which connects to the server and provides a...
22
by: questionit | last post by:
I am trying to open Sub Form using the command below, but i am getting error. Please confirm if i can open sub form using this command: Call DoCmd.OpenForm("Forms!!", acNormal, , , ,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.