Getting usercontrol properties to control display in IDE

Johann N

New member
Joined
Jul 7, 2023
Messages
2
Programming Experience
10+
I have a usercontrol for a touchscreen checkbox. It has properties "textyes", "textno" and more. When in the IDE, I want it to show the TextYes parameter on the checkbox (like the label control does), but I found no way to access that property while the control is displayed in the IDE. It works fine when it's actually running, the problem is only in the IDE (VS2019.) Accessing the public property doesn't work, returns nothing even though the property value is set.
 
I have a usercontrol for a touchscreen checkbox. It has properties "textyes", "textno" and more. When in the IDE, I want it to show the TextYes parameter on the checkbox (like the label control does), but I found no way to access that property while the control is displayed in the IDE. It works fine when it's actually running, the problem is only in the IDE (VS2019.) Accessing the public property doesn't work, returns nothing even though the property value is set.

found the property is available once onpaint is called...
 

Latest posts

Back
Top