How can I show an image on Tooltip
-
I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much :(( asdasda
-
I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much :(( asdasda
Why are you crying? Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image. And on MouseLeave you just close the form. Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.
------------------------------------------- It's code that drives you - Shyam
modified on Monday, October 27, 2008 8:09 AM
-
Why are you crying? Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image. And on MouseLeave you just close the form. Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.
------------------------------------------- It's code that drives you - Shyam
modified on Monday, October 27, 2008 8:09 AM
Thank you Shyam ... :) you help me to solve this problem. My firend. I'm from VietNam. where are you? :laugh:
asdasda
-
Thank you Shyam ... :) you help me to solve this problem. My firend. I'm from VietNam. where are you? :laugh:
asdasda
Moi from india... :-D
-
Moi from india... :-D
oh. :-D India have very big software industry. I know, India is number software industry in the world. Nice to meet you. My Email is : quyphidao@yahoo.com. Could I have your email? I hope we will be good friends and help each other to improve knowledge....
asdasda