Click here to Skip to main content
15,905,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adding items at bottom in List View Pin
Baeltazor17-Jul-09 1:55
Baeltazor17-Jul-09 1:55 
BalajiRamasamy wrote:
Adding items at bottom in List View


Hi there,

Try this, maybe you could like use it on a Button click event or something...:

int i = listView1.Items.Count;
listView1.Items.Add("NEW-ITEM", i++);

--------
First, we define an Integer (i) and assign it the value of the total amount of items in the listView1 control, then we add an item at the bottom of the list by incrementing the total item amount by 1.

Hope this helps

regards,
jase
GeneralRe: Adding items at bottom in List View Pin
BalajiRamasamy17-Jul-09 2:10
BalajiRamasamy17-Jul-09 2:10 
AnswerRe: Adding items at bottom in List View Pin
OkkiePepernoot17-Jul-09 2:36
OkkiePepernoot17-Jul-09 2:36 
QuestionFind Internet Server IP address Pin
vasanth arivali17-Jul-09 1:25
vasanth arivali17-Jul-09 1:25 
AnswerRe: Find Internet Server IP address Pin
Luc Pattyn17-Jul-09 1:44
sitebuilderLuc Pattyn17-Jul-09 1:44 
GeneralRe: Find Internet Server IP address Pin
vasanth arivali17-Jul-09 2:30
vasanth arivali17-Jul-09 2:30 
AnswerRe: Find Internet Server IP address Pin
OriginalGriff17-Jul-09 1:44
mveOriginalGriff17-Jul-09 1:44 
AnswerRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 1:52
Mirko198017-Jul-09 1:52 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 2:47
harold aptroot17-Jul-09 2:47 
GeneralRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 3:25
Mirko198017-Jul-09 3:25 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 3:33
harold aptroot17-Jul-09 3:33 
GeneralRe: Find Internet Server IP address Pin
Mirko198017-Jul-09 3:59
Mirko198017-Jul-09 3:59 
GeneralRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 4:22
harold aptroot17-Jul-09 4:22 
AnswerRe: Find Internet Server IP address Pin
harold aptroot17-Jul-09 2:49
harold aptroot17-Jul-09 2:49 
QuestionHow to bring a window to foreground on Vista? Pin
verence33317-Jul-09 0:38
verence33317-Jul-09 0:38 
AnswerRe: How to bring a window to foreground on Vista? Pin
musefan17-Jul-09 1:20
musefan17-Jul-09 1:20 
GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 1:45
verence33317-Jul-09 1:45 
AnswerRe: How to bring a window to foreground on Vista? Pin
Simon P Stevens17-Jul-09 1:24
Simon P Stevens17-Jul-09 1:24 
GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 1:58
verence33317-Jul-09 1:58 
AnswerRe: How to bring a window to foreground on Vista? Pin
Luc Pattyn17-Jul-09 1:33
sitebuilderLuc Pattyn17-Jul-09 1:33 
GeneralRe: How to bring a window to foreground on Vista? Pin
verence33317-Jul-09 2:01
verence33317-Jul-09 2:01 
AnswerRe: How to bring a window to foreground on Vista? Pin
verence33319-Jul-09 20:09
verence33319-Jul-09 20:09 
QuestionError Pin
john563217-Jul-09 0:32
john563217-Jul-09 0:32 
AnswerRe: Error Pin
0x3c017-Jul-09 0:35
0x3c017-Jul-09 0:35 
GeneralRe: Error Pin
john563217-Jul-09 0:55
john563217-Jul-09 0:55 

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.