Click to See Complete Forum and Search --> : VB Design Env. at Runtime


karnati
August 13th, 2001, 08:16 AM
Dear Sir,

We want to provide VB design environment at runtime for the user to create/design his/her own forms. Wherein the user can draw/create controls, align, reposition, resize, multiselect, drag ect.(i.e., all the flexibility available at vb design time).
Please suggest us how to go.
Do we have any bundle of dlls with which we can achive the above said functionality.

With Regards,
Karnati & Vikranth.

Clearcode
August 14th, 2001, 02:58 AM
This is not possible. Visual Basic has two window classes defined for any given object (a form or usercontrol).
One is the design time window which is called ThunderForm and one is the run time called ThunderRTForm. The design functionality is implemented by this former window class and windows of that class cannot be created at run time.

You could emulate this type of functionality by having 9 small picture box controls which pretend to be grab handles. Whenever a mouse_move occurs on them and the left mouse button is down, move the picture boxes as well. Then on a mouse_up event resize the selected control.

This will be a bit less slick than the VB IDE but might work OK.

HTH,
Duncan

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.