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

C#

 
AnswerRe: Getting array of Numbers. Pin
Christian Graus21-Jun-09 19:32
protectorChristian Graus21-Jun-09 19:32 
QuestionRe: Getting array of Numbers. Pin
Sangram_KP21-Jun-09 20:03
Sangram_KP21-Jun-09 20:03 
AnswerRe: Getting array of Numbers. Pin
Christian Graus21-Jun-09 21:15
protectorChristian Graus21-Jun-09 21:15 
GeneralRe: Getting array of Numbers. Pin
himanshu256121-Jun-09 21:30
himanshu256121-Jun-09 21:30 
GeneralRe: Getting array of Numbers. Pin
CPallini21-Jun-09 20:48
mveCPallini21-Jun-09 20:48 
AnswerRe: Getting array of Numbers. Pin
himanshu256121-Jun-09 20:44
himanshu256121-Jun-09 20:44 
AnswerRe: Getting array of Numbers. Pin
PIEBALDconsult22-Jun-09 7:06
mvePIEBALDconsult22-Jun-09 7:06 
QuestionlistView1.GetItemAt always returns null Pin
Mohammad Dayyan21-Jun-09 17:33
Mohammad Dayyan21-Jun-09 17:33 
Hi.
I'm gonna get an Item on Mouse position during Mouse Double Click.
I've been using this method :

private void listView1_DoubleClick(object sender, EventArgs e)
{
    Point mousePoint = new Point(MousePosition.X - this.Location.X, MousePosition.Y - this.Location.Y);// for debugging
    var item = listView1.GetItemAt(MousePosition.X - this.Location.X, MousePosition.Y - this.Location.Y);
    if (item != null && item.Tag == null)
    {
        listView1.Invalidate(item.Bounds);
        item.Tag = "tagged";
    }
    MessageBox.Show(item.Name);//causes an exception
}


Unfortunately it returns null.

Could you guide me how I can resolve it ?
Thanks.
AnswerRe: listView1.GetItemAt always returns null Pin
N a v a n e e t h21-Jun-09 17:45
N a v a n e e t h21-Jun-09 17:45 
GeneralRe: listView1.GetItemAt always returns null Pin
Mohammad Dayyan21-Jun-09 18:49
Mohammad Dayyan21-Jun-09 18:49 
AnswerRe: listView1.GetItemAt always returns null Pin
dan!sh 21-Jun-09 17:45
professional dan!sh 21-Jun-09 17:45 
GeneralRe: listView1.GetItemAt always returns null Pin
Mohammad Dayyan21-Jun-09 18:52
Mohammad Dayyan21-Jun-09 18:52 
AnswerRe: listView1.GetItemAt always returns null Pin
Giorgi Dalakishvili21-Jun-09 20:23
mentorGiorgi Dalakishvili21-Jun-09 20:23 
QuestionError 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex21-Jun-09 15:00
obrix_activex21-Jun-09 15:00 
AnswerRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
N a v a n e e t h21-Jun-09 16:45
N a v a n e e t h21-Jun-09 16:45 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex21-Jun-09 20:51
obrix_activex21-Jun-09 20:51 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
PIEBALDconsult22-Jun-09 7:11
mvePIEBALDconsult22-Jun-09 7:11 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex22-Jun-09 20:05
obrix_activex22-Jun-09 20:05 
AnswerRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
Narendra Reddy Vajrala17-Aug-09 6:30
Narendra Reddy Vajrala17-Aug-09 6:30 
QuestionC# Chess Timer not working Pin
JulioRevka21-Jun-09 14:43
JulioRevka21-Jun-09 14:43 
AnswerRe: C# Chess Timer not working Pin
Christian Graus21-Jun-09 15:01
protectorChristian Graus21-Jun-09 15:01 
AnswerRe: C# Chess Timer not working Pin
Eddy Vluggen21-Jun-09 15:04
professionalEddy Vluggen21-Jun-09 15:04 
GeneralRe: C# Chess Timer not working Pin
Christian Graus21-Jun-09 15:55
protectorChristian Graus21-Jun-09 15:55 
GeneralRe: C# Chess Timer not working Pin
Luc Pattyn21-Jun-09 16:45
sitebuilderLuc Pattyn21-Jun-09 16:45 
GeneralRe: C# Chess Timer not working [modified] Pin
JulioRevka21-Jun-09 19:41
JulioRevka21-Jun-09 19:41 

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.