473,569 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to access the mainframe from a dialogbox or a staticlass

Hi,

I wonder how to get the mainwindow from a dialogbox or static class. Usually i use TopLevelControl (is that a good idea) to get the mainwindow from witch I can gain access to any subcontrols... But how to do this from a static for example? Should I "store" the mainwindow in my static class with a special function to access it later?

If someone sees what I mean (I know it's not easy because I don't really know how to explain it :s)

Thanks a lot!
Nov 16 '05 #1
0 1036

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

Similar topics

0
929
by: Baramuse | last post by:
Hi, I wonder how to get the mainwindow from a dialogbox or static class. Usually i use TopLevelControl (is that a good idea) to get the mainwindow from witch I can gain access to any subcontrols... But how to do this from a static for example? Should I "store" the mainwindow in my static class with a special function to access it later? If...
1
1955
by: foreman | last post by:
Hello Everybody: I am trying out DialogBox, and I have been trying to press the OK Button on the dialogbox hoping I can receive the OK DialogResult to Main Form. Below is my OK button click event handler code on AboutBox Dialogbox: DialogResult = DialogResult::OK; It can also dismiss the dialogbox and return OK "Ideally".
3
1654
by: majid | last post by:
When i show a webform as a dialogbox using showModalDialog script any postback event in dialogbox cause a new window pops up . How can i control the postback?
20
2086
by: Deano | last post by:
Just looking at C Sharp to see if it might be worth my while learning something new. Has anyone here tried a .NET language and tried to replicate a existing Access app? I would be interested to hear how any stories about this and in particular how one deals with not having subforms - can you get a third-party control to fill that gap?
11
16908
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got the following frame structure at the top level: FRAMESET CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">...
3
12197
by: pradeep | last post by:
Hi, I amnew to this group and lucky to have found this group. i have a master table which has different types of application say Desktop, Mainframes, etc. I have an individual table for each of these application types.... one for Desktop, one for mainframes, etc How do i synchrinize data between these two tables, say i update the
9
3413
by: joemo2003 | last post by:
Please help. I created a custom dialogbox name "DialogBox". What i want is input values to the dialogbox, and those values appear on a textbox in Visio. After i creat the textbox and the dialogbox, I used "DialogBox.show", so i can enter values, and I use "ashape as shape", "ashape.Text=userinput", then how should i defind "userinput"? Thanks
13
4911
by: Dave | last post by:
I work at a small private company that has been using VB 6.0 as a front end for Access databases for 8 years. It looks as though we will be migrating to Vista in the not-too-distant future. My hope is to move to RealBasic at that point. Does anyone know about RB connecting to Access tables via ADO? I was reading some archived RB posts and...
8
1427
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi I am trying to access a combobox of a dialogbox. The code is someting like that: void CDatabaseView::OnAddExpdata() { CExpDataDlg dlg; CComboBox* pCmbBox = static_cast<CComboBox*>
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
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
7974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
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...
1
2114
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
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.