.NET

.NET

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

how to refresh screen from a dialog box

109 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
Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
Distinguished Contributor
wesbird
Posts: 359
Registered: ‎12-05-2003
Message 2 of 2 (109 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
Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.