![]() If (e.Ke圜ode = Keys.Enter || e.Ke圜ode = Keys. Private void TxtEdit_KeyUp(object sender, KeyEventArgs e) Private void TxtEdit_Leave(object sender, EventArgs e) Practical Learning: Opening Microsoft Visual Basic. Private void listView2_Scroll(object sender, EventArgs e) If an item is missing from the main menu, you can customize it. Private void listView2_MouseDown(object sender, MouseEventArgs e) TxtEdit.Size = new Size(CellWidth, CellHeight) TxtEdit.Location = new Point(CellLeft, CellTop) Int CellLeft = border + listView2.Left + i. ListViewHitTestInfo i = listView2.HitTest(e.X, e.Y) Private void listView2_MouseUp(object sender, MouseEventArgs e) Its much the same as lvi.UseItemStyleForSubItems False and lvi.SubItems(1).ForeColor Color.Red but isnt working for me. I tried a lot of code to get this to work, but no go. What Im trying to do is make the row it finds green in color. Here is my code, I constantly reuse it so it might be help for someone: ListViewItem.ListViewSubItem SelectedLSI The below code searches the listview and finds the row with a blue select high light. To bypass this problem I created the Scroll event with this overrided listview. The only problem is that the textbox needs to disappear as soon as any event takes place outside the textbox and the listview doesn't trigger the scroll event so if you scroll the listview the textbox will still be visible. I use a hidden textbox to edit all the listview items/subitems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |