Results 1 to 3 of 3

Thread: Mouse over Popup In Data grid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    1

    Question Mouse over Popup In Data grid 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

  2. #2
    Banned
    Join Date
    Aug 2009
    Posts
    33

    Re: Mouse over Popup In Data grid View

    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
    Last edited by si_the_geek; May 19th, 2010 at 05:59 PM. Reason: removed advertising link

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: Mouse over Popup In Data grid View

    A ToolTip control can also display an image.

    set ownerdraw to true.

    a balloon tooltip can't display an image.

    vb Code:
    1. ToolTip1.SetToolTip(dgv, " ")

    vb Code:
    1. Private Sub ToolTip1_Draw(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawToolTipEventArgs) Handles ToolTip1.Draw
    2.     e.DrawBackground()
    3.     e.DrawBorder()
    4.     e.DrawText()
    5.     e.Graphics.DrawImage(img, 0, 0)
    6. End Sub
    7.  
    8. Private Sub ToolTip1_Popup(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PopupEventArgs) Handles ToolTip1.Popup
    9.     e.ToolTipSize = New Size(img.Width, img.Height)
    10. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width