.NET

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

how to refresh screen from a dialog box

99 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: 347
Registered: ‎12-05-2003
Message 2 of 2 (99 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community