guitardave78
Programmer
Is it possble to give a cell in a datagridveiw a balloon tooltip with vb2005
}...the bane of my life!
}...the bane of my life!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If e.RowIndex >= 0 AndAlso e.ColumnIndex >= 0 AndAlso dgv(e.ColumnIndex, e.RowIndex).ToolTipText <> "" Then
Dim r As Rectangle = dgv.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false)
Dim pt As Point = new Point(r.Location.X + (r.Width / 2), r.Location.Y + r.Height)
tt.Show(dgv(e.ColumnIndex, e.RowIndex).ToolTipText, dgv, pt, 10000)
End If
tt.Hide(dgv)
Dim clst As New DataGridView
with clst
.Add("Content", "Task")
.Item("Content").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
.Item("Content").MinimumWidth = 100
.EditMode = DataGridViewEditMode.EditOnF2
.DefaultCellStyle.WrapMode = DataGridViewTriState.True
.RowHeadersVisible = False
.GridColor = Color.LightGray
.AlternatingRowsDefaultCellStyle.BackColor = Color.FromArgb(255, 220, 220, 220)
.ShowCellToolTips = False
.Height = main.Height - 25
.ScrollBars = ScrollBars.Both
end with
clst.Rows(0).Cells("StartDate").Value = "blah!"