Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ddlOrganization_DrawItem(object sender, DrawItemEventArgs e)
- {
- string text = ddlOrganization.GetItemText(ddlOrganization.Items[e.Index]);
- e.DrawBackground();
- using (SolidBrush br = new SolidBrush(e.ForeColor))
- {
- e.Graphics.DrawString(text, e.Font, br, e.Bounds);
- }
- if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
- {
- toolTip1.Show(text, ddlOrganization, e.Bounds.Right, e.Bounds.Bottom);
- }
- e.DrawFocusRectangle();
- }
Add Comment
Please, Sign In to add comment