How to add scroll bar for paletteset with an UserControl

How to add scroll bar for paletteset with an UserControl

Anonymous
Not applicable
936 Views
1 Reply
Message 1 of 2

How to add scroll bar for paletteset with an UserControl

Anonymous
Not applicable
// created PaletteSet and added a new UserControl instance.

Autodesk.AutoCAD.Windows.PaletteSet m_ps = new Autodesk.AutoCAD.Windows.PaletteSet("Object Data");
UC uControl = new UC();
m_ps.Add("Object Data", uControl );
 m_ps.Visible = true;

The above displays the PaletteSet.

 

I created an an app that uses a paletteset, and displays an usercontrol in it. I want to add a scroll to the paletteset. because  when I resize it for editing the dwg file, The paletteset data below cannot be viewed without a scrol bar. Please suggest a way to  add scroll bar for paletteset with an UserControl.

 

0 Likes
Accepted solutions (1)
937 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

set the UserControl.AutoScroll property to true. It works.

0 Likes