Click here to Skip to main content
15,892,965 members
Home / Discussions / C#
   

C#

 
QuestionPercent Formatting Pin
Drew McGhie22-Jun-06 11:28
Drew McGhie22-Jun-06 11:28 
AnswerRe: Percent Formatting Pin
Nader Elshehabi22-Jun-06 12:11
Nader Elshehabi22-Jun-06 12:11 
AnswerRe: Percent Formatting Pin
Guffa22-Jun-06 23:45
Guffa22-Jun-06 23:45 
GeneralRe: Percent Formatting Pin
Drew McGhie23-Jun-06 4:20
Drew McGhie23-Jun-06 4:20 
Questionlist box click event not working with loop Pin
donkaiser22-Jun-06 10:54
donkaiser22-Jun-06 10:54 
AnswerRe: list box click event not working with loop Pin
Nader Elshehabi22-Jun-06 12:01
Nader Elshehabi22-Jun-06 12:01 
GeneralRe: list box click event not working with loop Pin
donkaiser22-Jun-06 12:06
donkaiser22-Jun-06 12:06 
GeneralRe: list box click event not working with loop Pin
Nader Elshehabi22-Jun-06 12:35
Nader Elshehabi22-Jun-06 12:35 
Hello
First:
You must have noticed that your loop goes forever. Are you sure you want that?

Second:
Your problem is because your listbox captures the mouse each time your loop goes. Try this code:

private void listBox2_Click(object sender, EventArgs e)
{
bool inf = true;
do{
listBox2.Capture = false; //To release the mouse
Application.DoEvents();
Debug.WriteLine("looping");
}while(inf);
}

But again this loop will go forever. If that is your exact code, I hope you reconsider it.
QuestionHow can I convert a string to an type Pin
User 309585922-Jun-06 10:04
User 309585922-Jun-06 10:04 
AnswerRe: How can I convert a string to an type Pin
User 665822-Jun-06 10:34
User 665822-Jun-06 10:34 
GeneralRe: How can I convert a string to an type Pin
User 309585922-Jun-06 10:46
User 309585922-Jun-06 10:46 
AnswerRe: How can I convert a string to an type Pin
Insincere Dave22-Jun-06 13:20
Insincere Dave22-Jun-06 13:20 
GeneralRe: How can I convert a string to an type Pin
User 309585922-Jun-06 16:17
User 309585922-Jun-06 16:17 
QuestionStupid String Format Question Pin
gantww22-Jun-06 8:16
gantww22-Jun-06 8:16 
AnswerRe: Stupid String Format Question - Answer Pin
gantww22-Jun-06 8:28
gantww22-Jun-06 8:28 
AnswerRe: Stupid String Format Question Pin
Dustin Metzgar22-Jun-06 8:28
Dustin Metzgar22-Jun-06 8:28 
QuestionSingle process instance object implemetation Pin
h4rdw4re122-Jun-06 8:11
h4rdw4re122-Jun-06 8:11 
AnswerRe: Single process instance object implemetation Pin
Dustin Metzgar22-Jun-06 8:22
Dustin Metzgar22-Jun-06 8:22 
QuestionIs the text box value a number Pin
sas949122-Jun-06 7:26
sas949122-Jun-06 7:26 
AnswerRe: Is the text box value a number Pin
Stefan Troschuetz22-Jun-06 7:39
Stefan Troschuetz22-Jun-06 7:39 
AnswerRe: Is the text box value a number Pin
User 665822-Jun-06 7:47
User 665822-Jun-06 7:47 
QuestionBlank datagrid--parameter issue? Pin
leckey22-Jun-06 6:53
leckey22-Jun-06 6:53 
AnswerRe: Blank datagrid--parameter issue? Pin
led mike22-Jun-06 7:45
led mike22-Jun-06 7:45 
GeneralRe: Blank datagrid--parameter issue? Pin
leckey22-Jun-06 8:19
leckey22-Jun-06 8:19 
GeneralRe: Blank datagrid--parameter issue? Pin
Josh Smith22-Jun-06 8:37
Josh Smith22-Jun-06 8:37 

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.