Building custom controls with no presence on their parent form 
Author Message
 Building custom controls with no presence on their parent form

Hi

I am tyring to build a directory picker custom control.  I want to make it
like the file open dialog box in that it has no presence on its parent form.
Thus when you place it on the form it doesn't actually appear on the form
but rather as a label in the area below (like dialog boxes, data adaptors,
etc.).

I know I could just make the contol invisible but I would much rather learn
how to do it properly.

Does anyone know how to do this?

Regards

Tom Wild



Fri, 04 Mar 2005 14:31:44 GMT  
 Building custom controls with no presence on their parent form


Quote:
> Hi

> Does anyone know how to do this?

> Regards

> Tom Wild

I have taken a look at some of the components that, like you descripe, are
"invisible", like tooltip and menus. They all derive from the Component
class and not the Control class like the "visible" ones, which must be the
catch here :)

I believe the trick must be to make a component an not a usercontrol.

Have not actually tried it but you could give it a try.

Allan



Fri, 04 Mar 2005 14:54:38 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. detect when in a child custom control when the parent form is minimized/maximized

2. detect when in a child custom control when the parent form is minimized/maximized

3. Accessing Custom Properties in Forms -- Parent and Child ?

4. Custom MDI Parent Control?

5. custom form control: Cannot view design view of forms that inherit this form

6. 2creating build-in control (current view) on custom commandbar-2

7. creating build-in control (current view) on custom commandbar

8. creating build-in control (current view) on custom commandbar

9. Custom control won't display and problems with building dll's

10. NEEDED: Someone to build custom gauge control

11. how to get custom form and send custom form from VB

12. Create custom control in form using code (code wizard adding ocx to form)

 

 
Powered by phpBB® Forum Software