PropertyGrid usage
-
As an example I have two categories in a property grid. One is read-only and the other is editable. I use a timer to automatically update the properties in the read-only category, approximately every 100msec. However for the updated values in the read-only category to be displayed properly I have to do a PropertyGrid.Refresh() call. This moves the focus inside the property grid, so if I'm editing an editable property I lose my focus anytime the timer fires. Is there a simple way to work around this?
-
As an example I have two categories in a property grid. One is read-only and the other is editable. I use a timer to automatically update the properties in the read-only category, approximately every 100msec. However for the updated values in the read-only category to be displayed properly I have to do a PropertyGrid.Refresh() call. This moves the focus inside the property grid, so if I'm editing an editable property I lose my focus anytime the timer fires. Is there a simple way to work around this?
Have you tried using the respective ActiveControl and SetFocus methods?
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Have you tried using the respective ActiveControl and SetFocus methods?
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Won't the ActiveControl always return the property grid? I'm losing focus within the property grid, not from the property grid.
Yeah, you're right. I'm sort of guessing here; I misunderstood your original question. How about the SelectedGridItem property?
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Yeah, you're right. I'm sort of guessing here; I misunderstood your original question. How about the SelectedGridItem property?
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software