Can I call Paint event from reguler events to make changes through GDI.
-
I am going to create a custom control and want to add an ability. When it get focused then It appearance should change through GDI. for example I am creating custom label. Then how will i get my target. Problem is that I am only able to change the object at Paint event, here I can make changes to my object through GDI but I want When my object get focus or it is being clicked then I want to make changes via GDI. Any hint will be appreciated.
-
I am going to create a custom control and want to add an ability. When it get focused then It appearance should change through GDI. for example I am creating custom label. Then how will i get my target. Problem is that I am only able to change the object at Paint event, here I can make changes to my object through GDI but I want When my object get focus or it is being clicked then I want to make changes via GDI. Any hint will be appreciated.