hello friends i need a help about mouse over event for visual basic 2008
i am using access database file i want to retrieve image or data of cell in datagrid on moving mouse on it in pop up window any suggestion thank in advance
Printable View
hello friends i need a help about mouse over event for visual basic 2008
i am using access database file i want to retrieve image or data of cell in datagrid on moving mouse on it in pop up window any suggestion thank in advance
You may use ToolTip Control.
A ToolTip control displays a small pop-up window containing a line of text that describes the purpose of a tool, represented as a graphical object, in an application.
_______________________
Sabrina Gage
A ToolTip control can also display an image.
set ownerdraw to true.
a balloon tooltip can't display an image.
vb Code:
ToolTip1.SetToolTip(dgv, " ")
vb Code:
Private Sub ToolTip1_Draw(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawToolTipEventArgs) Handles ToolTip1.Draw e.DrawBackground() e.DrawBorder() e.DrawText() e.Graphics.DrawImage(img, 0, 0) End Sub Private Sub ToolTip1_Popup(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PopupEventArgs) Handles ToolTip1.Popup e.ToolTipSize = New Size(img.Width, img.Height) End Sub