Message 1 of 4
can I add an VBA form into a dockeble windows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
can I add an VBA form into a dockeble windows? I have this form in VBA
I would like to get it to dock ...I know it is possible to make an form in ilogic .. that create a windows that can dock .. I would like my form to dock as well like any other things in inventor .. how do I do this ? I have this code in iloigc that might help .. but I need the form Ktool into an windows and it need to be an VBA form ..
Dim oUserInterfaceMgr As UserInterfaceManager oUserInterfaceMgr = ThisApplication.UserInterfaceManager ' Create a new dockable window Dim oWindow As DockableWindow oWindow = oUserInterfaceMgr.DockableWindows.Add("SampleClientId", "TestWindowInternalName", "Test Window") ' Get the hwnd of the dialog to be added as a child ' CHANGE THIS VALUE! Dim hwnd As Long hwnd = 4851096 ' Add the dialog as a child to the dockable window oWindow.AddChild(hwnd)' Her I would Like To add a UserControl Or Userfrom!!!!! ' Don't allow docking to top and bottom oWindow.DisabledDockingStates = DockingStateEnum.kDockTop And DockingStateEnum.kDockBottom ' Make the window visible oWindow.Visible = True