App.Path of the Usercontrol's Parent form 
Author Message
 App.Path of the Usercontrol's Parent form

This might sound like an easy question to answer, maybe not. I need my ocx
control to retrieve the TRUE app.path of the VB Project containing it.

If I call the app.path function from within my usercontrol, it only returns
the app.path of it's self. If I call the GetModuleFileName API function, it
returns the VB path which is not what I need either. Any ideas? Thanks.



Sat, 05 Jan 2002 03:00:00 GMT  
 App.Path of the Usercontrol's Parent form
Hi, Ziman.

Give your control a public property of, say appPath. In the form initialise
or form load event of the app' containing your control, set the value of
your_ctl.appPath = app.path.

--

Regards, Paul.


www.gooch.co.uk


Quote:
> This might sound like an easy question to answer, maybe not. I need my ocx
> control to retrieve the TRUE app.path of the VB Project containing it.

> If I call the app.path function from within my usercontrol, it only
returns
> the app.path of it's self. If I call the GetModuleFileName API function,
it
> returns the VB path which is not what I need either. Any ideas? Thanks.



Sun, 06 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. App.Path of the Usercontrol's Parent form

2. Parent UserControl's Properties in a UserControl (placed on another UserControl)

3. Can't get HWnd of real parent form since usercontrol container changes during load

4. Trapping KeyStrokes inside a UserControl for it's parent form

5. UserControl's Parent's BackColor Change?

6. UserControl's Parent's BackColor Change?

7. UserControl's parent losing focus

8. UserControl's Parent property

9. Parent.Controls.Add when parent is a usercontrol

10. referencing parent form dataset from usercontrol?

11. Getting the Parent.app.path from OCX

12. Getting the Parent.app.path from OCX

 

 
Powered by phpBB® Forum Software