.NET

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

how to refresh screen from a dialog box

107 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 (107 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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