Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
Welcome to the UGN Security forums! You are currently viewing our forums as a guest which gives you limited access to most of our discussions and access to other features.
By joining our free community you will have access to post topics, communicate privately with our users (PM), respond to polls, upload content, and access many other features. Registration is fast, simple, and absolutely free; so please join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|
|
|
|
|
#17515 - 12/23/03 05:25 AM
Urgent! Any expert, please help - reference to other form!
|
Junior Member
Registered: 12/23/03
Posts: 2
|
Hello, All:
Recently I have been annoyed by the following question very much. It will be highly appreciated if anyone could help me!
I want to refer to some properties or controls in another form while I don't want to declare too much public variables.
For example, in module1, I want to get hwnd of frmMain:
hwnd = frmMain.hwnd
Here is my question:
When call the properties or control outside a form through the form name,
1. the event Form_Load (or Form_Initialize) will also be triggered in some projects; 2. while in some other projects, Form_Load (or Form_Initialize) will not be triggered and I can call it just as a variable.
In which cases Form_Load will be triggered and in which not?
Please help me!!! Thank you very much!
|
|
Top
|
|
|
|
Sponsored Links
Sponsor 
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
| Top |
|
|
|
#17517 - 12/23/03 09:54 AM
Re: Urgent! Any expert, please help - reference to other form!
|
Junior Member
Registered: 12/23/03
Posts: 2
|
Hello, SilentRage:
Thank you very much!
But the case I encountered is that:
'frmMain' has finished loading. In the course of running, I need to call another procedure and in this procedure I will access some properties of frmMain. 'frmMain' remains displayed and loaded. Anyway the Form_Load in frmMain is triggered again (but in some other similar projects will not).
|
|
Top
|
|
|
|
|
Registered: 02/28/02
Posts: 7188
|
|
7175 Members
46 Forums
20064 Topics
55230 Posts
Max Online: 1567 @ 04/25/10 05:20 AM
|
|
|
1 registered (Cyrez),
333
Guests and
285
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|