c# - How to add large text to listview's(detailed) items? -
I am writing an analyst who shows the packet of a specific program. Some packets are too large and list view only shows first 15-20 characters: <
This is my code
string __str = string .join ("", data Selection (x = & gt; x.ToString ("x2") toArray ()). // secret byte [] (packet) __ascii = AsciiToString (data) for hex string string; // Byte [] Convert packet to ASCII If the (encrypted) form is Main.PFA (form = & gt; form.listViewAnalyzer.Items.Add ("S & lt; -C [encrypted] Blowfishki = 0x FF ")); Other Forman.PFA (form = & gt; form.liveviewnlizer.atts.ed ("S and LT; -C")); ListViewItem Item = New ListViewItem (__ str); // Create new item and place packet as hex string item. SUBItems.Add (__Sky); // add ascii variant as substring formMain.PFA (form => form.listViewAnalyzer.Items.Add (item)); // add items This should be a property which bans text with more than x lines, but I can not see it.
list view will all the text, you can see it Not so long or there are many lines.
Things like Outlook and Packet Sniffer often work, that the list view occurs with a text box or "preview" window, you can change your UI so that by choosing the item in the list view, The full description of the item is displayed in the style preview pane. After that you have a large multilingual text box and you wanted to do anything and I often do this by putting an object in the ListViewItem.Tag property, so that I can recover it in the UI and when ListView.SelectedIndexChanged Preview in the event fire.
Alternatively, the preview can be on a dialog that pops up when you double-click, in fact, make the preview UI a UserControl , then do both of you Can!
Comments
Post a Comment