.net palette problem
Not applicable
08-20-2011
02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using Visual studio 2005 and autocad 2007
Here is the problem:
I follow the tutorial CP205-2 (Creating a Docking Palette for AutoCAD® with VB.NET)
At step 7 i compile and netload.
The palette appears docked, everything's fine
When i drag it to undock comes the disaster: The palette disappears. Sometimes autocad hangs after that. Sometimes the palette appears (after undocking) to have the same width as autocad but locked and acts like crazy.
Here is the code:
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Windows Public Class Class1 Public myPaletteSet As PaletteSet Public myPalette As UserControl1 <CommandMethod("run")> _ Public Sub run() If myPaletteSet = Nothing Then myPaletteSet = New PaletteSet("Test") myPalette = New UserControl1 myPaletteSet.Add("My first palette", myPalette) myPaletteSet.Visible = True End If myPaletteSet.Visible = True End Sub End Class
Link copied