Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionHow to get the Left,Top and Height,Width of perticular region within an running application? Pin
ritz123410-Nov-09 2:50
ritz123410-Nov-09 2:50 
AnswerRe: How to get the Left,Top and Height,Width of perticular region within an running application? Pin
freakyit10-Nov-09 3:40
freakyit10-Nov-09 3:40 
GeneralRe: How to get the Left,Top and Height,Width of perticular region within an running application? Pin
ritz123410-Nov-09 17:43
ritz123410-Nov-09 17:43 
QuestionPIV Middleware Pin
shah zad10-Nov-09 2:36
shah zad10-Nov-09 2:36 
QuestionIcons Pin
Ersan Ercek10-Nov-09 2:13
Ersan Ercek10-Nov-09 2:13 
AnswerMessage Closed Pin
10-Nov-09 2:16
stancrm10-Nov-09 2:16 
GeneralRe: Icons Pin
Ersan Ercek10-Nov-09 6:12
Ersan Ercek10-Nov-09 6:12 
QuestionListView being buggy [modified] Pin
Xmen Real 10-Nov-09 1:53
professional Xmen Real 10-Nov-09 1:53 
I have a ListView control with a column(just for temp. test) and 2 Groups.

Now, the LV getting populated with 10 items(0..9) and associated with first group in ListView. Now when all done, I'm iterating the Items collection. And found it same as appearing in ListView.

http://img40.imageshack.us/i/40225142.png/[^]

private void Form1_Load(object sender, EventArgs e)
{
    for (int a = 0; a < 10; a++)
    {
        ListViewItem lvi = new ListViewItem(a.ToString());
        listView1.Items.Add(lvi);
        listView1.Groups[0].Items.Add(lvi);
    }
}

private void button1_Click(object sender, EventArgs e)
{
    richTextBox1.Clear();
    for (int a = 0; a < listView1.Items.Count; a++)
    {
        richTextBox1.Text += listView1.Items[a].Text + "\r\n";
    }
}





now, When I set its sort to Descending...it appears like this

http://img39.imageshack.us/i/43854370.png/[^]

In the above screenshot, the indexes are accurate but its showing '9' at the end.

So I thought to add/insert items manually without using inbuilt sorting. And I did but problem persists. Its showing in the sequence the items added/inserted. However the indexes are correct. Any idea guys ?

I also tried ListView.RedrawItems() but nothing seems to works.



Edit : Found something...but View is already set to Details

http://www.codeproject.com/Messages/2509769/Bug-in-ListView-Items-Insert-int-ListViewItem.aspx[^]

Finally Edit 2 :
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=115345[^]



TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

modified on Tuesday, November 10, 2009 8:00 AM

AnswerMessage Closed Pin
10-Nov-09 2:01
stancrm10-Nov-09 2:01 
GeneralRe: ListView being buggy Pin
Xmen Real 10-Nov-09 2:03
professional Xmen Real 10-Nov-09 2:03 
GeneralMessage Closed Pin
10-Nov-09 2:07
stancrm10-Nov-09 2:07 
GeneralRe: ListView being buggy Pin
Xmen Real 10-Nov-09 2:08
professional Xmen Real 10-Nov-09 2:08 
QuestionC# WebBrowser control setting folder views window blank until right-click [modified] Pin
Wheels01210-Nov-09 1:50
Wheels01210-Nov-09 1:50 
QuestionConvert Office 2007 Word document to PDF document Pin
mayurp610-Nov-09 1:13
mayurp610-Nov-09 1:13 
AnswerRe: Convert Office 2007 Word document to PDF document Pin
Russ-T10-Nov-09 2:51
Russ-T10-Nov-09 2:51 
GeneralRe: Convert Office 2007 Word document to PDF document Pin
mayurp610-Nov-09 21:24
mayurp610-Nov-09 21:24 
QuestionSymbols Pin
duminda198810-Nov-09 1:09
duminda198810-Nov-09 1:09 
AnswerRe: Symbols Pin
padmanabhan N10-Nov-09 1:23
padmanabhan N10-Nov-09 1:23 
Questionsql connection or another ???????????????? Pin
Mohamed El-Wehishy10-Nov-09 0:26
Mohamed El-Wehishy10-Nov-09 0:26 
Questiondatatable to grid Pin
Member 59031010-Nov-09 0:00
Member 59031010-Nov-09 0:00 
AnswerRe: datatable to grid Pin
dan!sh 10-Nov-09 1:20
professional dan!sh 10-Nov-09 1:20 
QuestionSQL error Pin
spankyleo1239-Nov-09 23:17
spankyleo1239-Nov-09 23:17 
AnswerRe: SQL error Pin
Shameel9-Nov-09 23:50
professionalShameel9-Nov-09 23:50 
GeneralRe: SQL error Pin
spankyleo12310-Nov-09 3:31
spankyleo12310-Nov-09 3:31 
GeneralRe: SQL error Pin
Pete O'Hanlon10-Nov-09 3:42
mvePete O'Hanlon10-Nov-09 3:42 

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.