.NET

Reply
Distinguished Contributor
wesbird
Posts: 351
Registered: ‎12-05-2003
Message 1 of 2 (103 Views)

how to refresh screen from a dialog box

103 Views, 1 Replies
10-11-2005 08:07 AM
Hi,
I have a listbox in dialog box. I list some selected hatch handle in this listbox. When I click on any hatch item in the listbox, I put code to change the color of hatch. The color does not get changed until I move the dialog a little. In VBA, I use Hatch.Update to fresh screen. but I can not find the method in .NET. How I can do it?
I also tried to refresh screen by
Viewport v = new Viewport();
v.UpdateDisplay()
but how I can create a acitve Viewport?


Thank you very much.
Wes
Distinguished Contributor
wesbird
Posts: 351
Registered: ‎12-05-2003
Message 2 of 2 (103 Views)

Re: how to refresh screen from a dialog box

10-11-2005 08:24 AM in reply to: wesbird
I found it:
Autodesk.AutoCAD.ApplicationServices.Application.UpdateScreen
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.