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

C#

 
GeneralRe: Launching an external process from a BackgroundWorker thread? Pin
thompsons17-Apr-08 5:09
thompsons17-Apr-08 5:09 
QuestionDisplaying ppt in Webrowser or PictureBox? Pin
cbr4rusty16-Apr-08 11:10
cbr4rusty16-Apr-08 11:10 
GeneralRe: Displaying ppt in Webrowser or PictureBox? Pin
Christian Graus16-Apr-08 11:41
protectorChristian Graus16-Apr-08 11:41 
GeneralDLL Entry point [modified] Pin
Muammar©16-Apr-08 10:37
Muammar©16-Apr-08 10:37 
GeneralRe: DLL Entry point Pin
Luc Pattyn16-Apr-08 10:41
sitebuilderLuc Pattyn16-Apr-08 10:41 
GeneralRe: DLL Entry point [modified] Pin
Muammar©16-Apr-08 10:46
Muammar©16-Apr-08 10:46 
GeneralRe: DLL Entry point Pin
Luc Pattyn16-Apr-08 11:13
sitebuilderLuc Pattyn16-Apr-08 11:13 
GeneralRe: DLL Entry point Pin
Muammar©16-Apr-08 19:45
Muammar©16-Apr-08 19:45 
GeneralRe: DLL Entry point Pin
Luc Pattyn16-Apr-08 23:57
sitebuilderLuc Pattyn16-Apr-08 23:57 
GeneralRe: DLL Entry point Pin
Rojan Gh.16-Apr-08 18:53
professionalRojan Gh.16-Apr-08 18:53 
Generalstring.remove doesn't work Pin
Dj_Lordas16-Apr-08 10:31
Dj_Lordas16-Apr-08 10:31 
GeneralRe: string.remove doesn't work Pin
Pete O'Hanlon16-Apr-08 10:35
mvePete O'Hanlon16-Apr-08 10:35 
GeneralRe: string.remove doesn't work Pin
Christian Graus16-Apr-08 11:42
protectorChristian Graus16-Apr-08 11:42 
GeneralRe: string.remove doesn't work Pin
Ravenet16-Apr-08 15:53
Ravenet16-Apr-08 15:53 
GeneralRe: string.remove doesn't work Pin
Zoltan Balazs17-Apr-08 5:58
Zoltan Balazs17-Apr-08 5:58 
GeneralRe: string.remove doesn't work Pin
Ravenet17-Apr-08 15:30
Ravenet17-Apr-08 15:30 
GeneralRe: string.remove doesn't work Pin
joie717017-Apr-08 18:23
joie717017-Apr-08 18:23 
GeneralRe: string.remove doesn't work Pin
Ravenet17-Apr-08 20:11
Ravenet17-Apr-08 20:11 
GeneralRe: string.remove doesn't work Pin
Zoltan Balazs17-Apr-08 20:05
Zoltan Balazs17-Apr-08 20:05 
QuestionHow to get network computers hostname without importing dll's Pin
Jordanwb16-Apr-08 9:53
Jordanwb16-Apr-08 9:53 
GeneralReflecting form controls in inherited user controls Pin
Thomas Wells16-Apr-08 8:23
Thomas Wells16-Apr-08 8:23 
QuestionMessageBox with a timer? Pin
Vertekal16-Apr-08 8:15
Vertekal16-Apr-08 8:15 
How would I add a timer to this? To keep things simple, I have a form with 1 button and 1 textbox. I have a messagebox that pops up when the textbox loses focus ... if the user clicks OK, it does something. However, if the user doesn't click OK within 3 seconds, I need the box to close and do something else. This is for a mobile app using .NETCF 3.5. Here's what I have so far in regards to the messagebox:

private void TextBox1_LostFocus(object sender, EventArgs e)<br />
{<br />
<br />
DialogResult result = MessageBox.show("message text","title",MessageBoxButtons.OK,MessageBoxIcon.None,MessageBoxDefaultButton.Button1):<br />
<br />
if (result == DialogResult.OK)<br />
  {<br />
    Button1.Focus();<br />
  }<br />
else<br />
  {<br />
  //Close messagebox and do some other things if 3 seconds have elapsed and OK was not clicked<br />
  }<br />
}


Any help would be appreciated! Thanks!
AnswerRe: MessageBox with a timer? Pin
Judah Gabriel Himango16-Apr-08 8:21
sponsorJudah Gabriel Himango16-Apr-08 8:21 
GeneralRe: MessageBox with a timer? Pin
Vertekal16-Apr-08 8:54
Vertekal16-Apr-08 8:54 
GeneralRe: MessageBox with a timer? Pin
Luc Pattyn16-Apr-08 8:36
sitebuilderLuc Pattyn16-Apr-08 8:36 

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.