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

C#

 
GeneralRe: Coding Standard Question Pin
PIEBALDconsult1-Oct-07 16:56
mvePIEBALDconsult1-Oct-07 16:56 
JokeRe: Coding Standard Question Pin
Pete O'Hanlon1-Oct-07 21:59
mvePete O'Hanlon1-Oct-07 21:59 
GeneralRe: Coding Standard Question Pin
Scott Dorman2-Oct-07 2:59
professionalScott Dorman2-Oct-07 2:59 
GeneralRe: Coding Standard Question Pin
Robert Rohde2-Oct-07 1:55
Robert Rohde2-Oct-07 1:55 
GeneralRe: Coding Standard Question Pin
Scott Dorman2-Oct-07 3:01
professionalScott Dorman2-Oct-07 3:01 
GeneralRe: Coding Standard Question Pin
PIEBALDconsult2-Oct-07 5:41
mvePIEBALDconsult2-Oct-07 5:41 
QuestionSelecting listview item by method not retained when tabbing into listview Pin
jchalfant1-Oct-07 9:30
jchalfant1-Oct-07 9:30 
AnswerRe: Selecting listview item by method not retained when tabbing into listview Pin
jchalfant1-Oct-07 9:59
jchalfant1-Oct-07 9:59 
Well, I figured this out.

Selected != Focus

and setting item[i].Focus = true won't take focus away from my textbox. So I can type away to my hearts content and set focus to however many listview items I want to. And when I TAB to select my listview, my selected item will still have focus.

Here's the new code:
for(int i = 0; i < listView1.Items.Count;i++)<br />
{<br />
    if (itemContains(target, (ListViewItem)listView1.Items[i].Clone()))<br />
    {<br />
        listView1.Items[i].Focused = true;<br />
        listView1.Items[i].Selected = true;<br />
        listView1.Items[i].EnsureVisible();<br />
        return;<br />
    }<br />
}


Yay.
Questioncalling modeless lookup form from datagridview combobox Pin
AndrusM1-Oct-07 9:29
AndrusM1-Oct-07 9:29 
QuestionInsert a row in Gridview Pin
ss.mmm1-Oct-07 9:24
ss.mmm1-Oct-07 9:24 
AnswerRe: Insert a row in Gridview Pin
Not Active1-Oct-07 9:46
mentorNot Active1-Oct-07 9:46 
GeneralRe: Insert a row in Gridview Pin
ss.mmm1-Oct-07 9:55
ss.mmm1-Oct-07 9:55 
GeneralRe: Insert a row in Gridview Pin
Not Active1-Oct-07 10:05
mentorNot Active1-Oct-07 10:05 
GeneralRe: Insert a row in Gridview Pin
DotNetXenon1-Oct-07 10:12
DotNetXenon1-Oct-07 10:12 
GeneralRe: Insert a row in Gridview Pin
ss.mmm15-Oct-07 8:28
ss.mmm15-Oct-07 8:28 
QuestionUniversal Toolbox Item installation help Pin
Jason Farrar1-Oct-07 9:06
Jason Farrar1-Oct-07 9:06 
AnswerRe: Universal Toolbox Item installation help Pin
TJoe1-Oct-07 13:10
TJoe1-Oct-07 13:10 
QuestionMSMQ Triggers Pin
Not Active1-Oct-07 9:06
mentorNot Active1-Oct-07 9:06 
AnswerRe: MSMQ Triggers Pin
led mike1-Oct-07 9:25
led mike1-Oct-07 9:25 
GeneralRe: MSMQ Triggers Pin
Not Active1-Oct-07 9:42
mentorNot Active1-Oct-07 9:42 
AnswerRe: MSMQ Triggers Pin
Pete O'Hanlon1-Oct-07 9:43
mvePete O'Hanlon1-Oct-07 9:43 
GeneralRe: MSMQ Triggers Pin
Not Active1-Oct-07 9:50
mentorNot Active1-Oct-07 9:50 
GeneralRe: MSMQ Triggers Pin
Pete O'Hanlon1-Oct-07 9:58
mvePete O'Hanlon1-Oct-07 9:58 
QuestionOverloading comparisson operator Pin
Fernando A. Gomez F.1-Oct-07 8:31
Fernando A. Gomez F.1-Oct-07 8:31 
AnswerRe: Overloading comparisson operator Pin
Not Active1-Oct-07 8:44
mentorNot Active1-Oct-07 8:44 

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.