Progress bar flickering during update in AutoCAD 2021...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All.
I have code in a DLL that executes updating database records of objects. The process is sometime very time consuming based upon how many objects will be processed. So to inform the user something is really happening I created a progress bar form that has a label describing what is happening and the progressbar that shows how far along in the entire process. Works well with 2 exceptions:
1. I cannot get the dialog to center on the parent AutoCAD window. The form object property StartPosition = CenterParent (This only works if ShowDialog() is called to open form but I cannot have this a modal form). As well I tried in code just before pbForm.Show(); as: pbForm.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Neither works it opens right in line with the menu button I press to execute the command. (I'm not overly concerned with this issue it is just annoying depending on the size of the ACAD window and also seems affected by screen resolution)
2. During execution the form label and bar update properly but the form flickers badly during the update of the form objects. Or I am assuming that is the cause of this issue?
Any help appreciated as I have seen a lot of old threads regarding progress bars
Cheers!
Rick...