c#: show tooltip on subitem
问题 I have a listview, and in one of the columns (not the first) I want to display an error code. What I haven't been able to do is get the ToolTip to display. I have this.lstList.ShowItemToolTips = true; ... ListViewItem value = lstList.Items.Add(name, name, 0); ... if (lstList.Columns.Contains(lstColErrorCode)) { value.SubItems.Add(new ListViewItem.ListViewSubItem(value, errorCode.ToString())); value.ToolTipText = errorCode.ToString("X"); } I would like to get the hex value of the code to be