Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Alvaro Mendez27-Aug-03 9:31
Alvaro Mendez27-Aug-03 9:31 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Alvaro Mendez27-Aug-03 10:47
Alvaro Mendez27-Aug-03 10:47 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Anonymous27-Aug-03 23:52
Anonymous27-Aug-03 23:52 
GeneralC# applect param pass problem Pin
aw1ay26-Aug-03 20:34
aw1ay26-Aug-03 20:34 
GeneralGPRS communication - PocketPC-SmartPhone.. Pin
ZippyBubbleHead26-Aug-03 20:14
ZippyBubbleHead26-Aug-03 20:14 
Generalhelp option... Pin
Member 52474026-Aug-03 20:05
Member 52474026-Aug-03 20:05 
GeneralRe: help option... Pin
Kannan Kalyanaraman27-Aug-03 23:19
Kannan Kalyanaraman27-Aug-03 23:19 
Generalchecking items in a ListView Pin
Member 50926226-Aug-03 20:02
Member 50926226-Aug-03 20:02 
i'm having a problem when i check some items in a listview. i have a textbox and a listview and when i check the items in the listview it updates the text in the textbox. my problem is when i check the items my event is always one step behind. example, i check 'a' and nothing happens, i check 'b' and the textbox show 'a', i check 'c' and the textbox shows 'a, b'. what event do i put my code into or is there a trick to this.

thanks,
Rob

my event:
private void lvNameDisplay_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)<br />
{<br />
    //<br />
    System.Text.StringBuilder newText = new System.Text.StringBuilder();<br />
    foreach (ListViewItem lvItem in lvNameDisplay.CheckedItems)<br />
    {<br />
        //<br />
        newText.Append(lvItem.Text + ", ");<br />
    }<br />
    tbExample.Text = newText.ToString();<br />
    if (tbExample.Text.EndsWith(", "))<br />
    {<br />
        tbExample.Text = tbExample.Text.Substring(0, tbExample.Text.Length-2);<br />
    }<br />
}


--
There are 10 kinds of people. Those who understand binary and those who don't.
GeneralRe: checking items in a ListView Pin
ZippyBubbleHead26-Aug-03 20:38
ZippyBubbleHead26-Aug-03 20:38 
GeneralRe: checking items in a ListView Pin
Member 50926226-Aug-03 21:55
Member 50926226-Aug-03 21:55 
General#include &quot;wincrypt&quot; Pin
devvvy26-Aug-03 19:06
devvvy26-Aug-03 19:06 
GeneralRe: #include &quot;wincrypt&quot; Pin
David Stone26-Aug-03 19:40
sitebuilderDavid Stone26-Aug-03 19:40 
GeneralRe: #include &quot;wincrypt&quot; Pin
devvvy26-Aug-03 19:54
devvvy26-Aug-03 19:54 
GeneralGetting an intersect of a color Pin
Ista26-Aug-03 16:01
Ista26-Aug-03 16:01 
GeneralRe: Getting an intersect of a color Pin
Christian Graus26-Aug-03 16:11
protectorChristian Graus26-Aug-03 16:11 
GeneralRe: Getting an intersect of a color Pin
Ista26-Aug-03 16:12
Ista26-Aug-03 16:12 
GeneralRe: Getting an intersect of a color Pin
Christian Graus26-Aug-03 16:14
protectorChristian Graus26-Aug-03 16:14 
GeneralRe: Getting an intersect of a color Pin
Ista26-Aug-03 16:17
Ista26-Aug-03 16:17 
GeneralRe: Getting an intersect of a color Pin
Christian Graus26-Aug-03 16:20
protectorChristian Graus26-Aug-03 16:20 
GeneralRe: Getting an intersect of a color Pin
Ista26-Aug-03 16:22
Ista26-Aug-03 16:22 
GeneralRe: Getting an intersect of a color Pin
Christian Graus26-Aug-03 16:23
protectorChristian Graus26-Aug-03 16:23 
GeneralRe: Getting an intersect of a color Pin
Philip Fitzsimons27-Aug-03 2:45
Philip Fitzsimons27-Aug-03 2:45 
GeneralRe: Getting an intersect of a color Pin
Ista27-Aug-03 3:37
Ista27-Aug-03 3:37 
GeneralRe: Getting an intersect of a color Pin
Philip Fitzsimons27-Aug-03 3:54
Philip Fitzsimons27-Aug-03 3:54 
GeneralRe: Getting an intersect of a color Pin
Rein Hillmann27-Aug-03 7:59
Rein Hillmann27-Aug-03 7:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.