Click here to Skip to main content
16,004,833 members
Home / Discussions / C#
   

C#

 
QuestionToolStripMenuItem with ContextMenuStrip Pin
User 269896710-Oct-07 21:00
User 269896710-Oct-07 21:00 
AnswerRe: ToolStripMenuItem with ContextMenuStrip Pin
half-life10-Oct-07 21:21
half-life10-Oct-07 21:21 
GeneralRe: ToolStripMenuItem with ContextMenuStrip Pin
User 269896710-Oct-07 21:49
User 269896710-Oct-07 21:49 
GeneralRe: ToolStripMenuItem with ContextMenuStrip Pin
half-life10-Oct-07 21:53
half-life10-Oct-07 21:53 
GeneralRe: ToolStripMenuItem with ContextMenuStrip Pin
User 269896710-Oct-07 22:01
User 269896710-Oct-07 22:01 
GeneralRe: ToolStripMenuItem with ContextMenuStrip Pin
half-life10-Oct-07 22:07
half-life10-Oct-07 22:07 
QuestionThreads Pin
half-life10-Oct-07 20:56
half-life10-Oct-07 20:56 
AnswerRe: Threads Pin
Anthony Mushrow10-Oct-07 21:17
professionalAnthony Mushrow10-Oct-07 21:17 
To run several forms independantly, you just instance your class:

myForm newForm = new myForm();

then call Show(), not ShowDialog();

newForm.Show();

A new window should appear and run, and both windows will run at once.

Also, for long while loops, you can either run your algorithm in a new thread (see below), or add 'Application.DoEvents()' into the while loop, that way you can still move the form around, and it doesn't seem to be frozen.


To start a method in a new thread:

Thread myThread = new Thread(new ThreadStart( -method name- ));
myThread.Start();

If the method has input parameters, its a little emore complicated.

My current favourite word is: Waffle

Cheese is still good though.

GeneralRe: Threads Pin
half-life10-Oct-07 21:23
half-life10-Oct-07 21:23 
QuestionRegarding DIV Pin
Satish_S10-Oct-07 20:48
Satish_S10-Oct-07 20:48 
QuestionLoading data to SQL Server from .csv file Pin
Aswini Kumar10-Oct-07 20:29
Aswini Kumar10-Oct-07 20:29 
AnswerRe: Loading data to SQL Server from .csv file Pin
Rob Philpott10-Oct-07 22:22
Rob Philpott10-Oct-07 22:22 
QuestionCan I Get File Extension(openfiledialog) Pin
chanzeb10-Oct-07 20:17
chanzeb10-Oct-07 20:17 
AnswerRe: Can I Get File Extension(openfiledialog) Pin
Giorgi Dalakishvili10-Oct-07 20:19
mentorGiorgi Dalakishvili10-Oct-07 20:19 
GeneralRe: Can I Get File Extension(openfiledialog) Pin
aswini10-Oct-07 20:23
aswini10-Oct-07 20:23 
GeneralRe: Can I Get File Extension(openfiledialog) Pin
Giorgi Dalakishvili10-Oct-07 20:25
mentorGiorgi Dalakishvili10-Oct-07 20:25 
AnswerRe: Can I Get File Extension(openfiledialog) Pin
Spunky Coder10-Oct-07 20:36
Spunky Coder10-Oct-07 20:36 
Questionmsdn and visual studio.net 2005 Pin
tieuquai198710-Oct-07 20:13
tieuquai198710-Oct-07 20:13 
AnswerRe: msdn and visual studio.net 2005 Pin
TJoe11-Oct-07 3:04
TJoe11-Oct-07 3:04 
QuestionWPF Database connection acrchitecture Pin
Alan Boldock10-Oct-07 19:54
Alan Boldock10-Oct-07 19:54 
Questionto read the file name help me plz..... Pin
P_Elza10-Oct-07 19:19
P_Elza10-Oct-07 19:19 
AnswerRe: to read the file name help me plz..... Pin
Charith Jayasundara10-Oct-07 19:30
Charith Jayasundara10-Oct-07 19:30 
AnswerRe: to read the file name help me plz..... Pin
aswini10-Oct-07 20:26
aswini10-Oct-07 20:26 
GeneralRe: to read the file name help me plz..... Pin
aswini10-Oct-07 20:26
aswini10-Oct-07 20:26 
QuestionRestrict to create the temp files Pin
Pankaj Saha10-Oct-07 18:41
Pankaj Saha10-Oct-07 18: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.