- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dockbel windows how to I add buttom to run Ilogic code ?
I am using a VBA for today to run some Ilogic code . but my users would I a dockbel version. I have fund this code that create a windows that work like I wanted it to... but how do I add buttom to it ? can I move my VBA form in to it so I do not have to create it form buttom up ?
the code I have is this
Dim oUserInterfaceMgr As UserInterfaceManager
oUserInterfaceMgr = ThisApplication.UserInterfaceManager
' Create a new dockable window
Dim oWindow As DockableWindow
oWindow = oUserInterfaceMgr.DockableWindows.Add("SampleClientId4", "TestWindowInternalName4", "Test Window4")
' 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
f as Windows.Forms.Form = New Windows.Forms.Form
My_DockableWindow = ThisApplication.UserInterfaceManager.DockableWindows.Add(AddInClientID, AddInClientID, "NAMEX")
My_DockableWindow.AddChild(f.Handle.ToInt64)
My_DockableWindow.Width = 400
My_DockableWindow.SetMinimumSize(400, 400)
With this:
You need to create a form first and add it to the Dockable Window.
Regards,
Arthur Knoors
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !