.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to refresh screen from a dialog box

1 REPLY 1
Reply
Message 1 of 2
wesbird
516 Views, 1 Reply

how to refresh screen from a dialog box

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
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
1 REPLY 1
Message 2 of 2
wesbird
in reply to: wesbird

I found it:
Autodesk.AutoCAD.ApplicationServices.Application.UpdateScreen
Windows 10 64 bit, AutoCAD (ACA, Map) 2023

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost