Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

raise a MouseOver event for a control?

Status
Not open for further replies.

CraigBest

Programmer
Joined
Aug 1, 2001
Messages
545
Location
US
Hi folks

I'm using an Infragistics calendar control in VB 2003. When I change the text value in code to another date, the control does not automatically refresh as it should, and the text stays with the old date value until someone mouses over the control or the control.refresh method is called - and even that doesn't make it change right away. This is really screwing me up.

Is there a way I can call the control.MouseOver method for this control without making the cursor actually move over it? That would very likely solve my problem.

Thanks in advance

CraigHartz

CraigHartz
 
Have you tried using the control.Invalidate method after changing the date value?
 
Hi Dave, Thanks - actually that was an option. We eventually were able to force the refresh of both the control value and display value by calling the .refresh method immediately followed by a system.threading.thread.sleep(1) call, which seems to allow whatever process is needed to perform these actions time to do so.

Thanks for the idea!

CraigHartz

CraigHartz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top