Click here to Skip to main content
15,915,324 members
Home / Discussions / C#
   

C#

 
GeneralShutting down a W2K computer Pin
converdb20-Mar-03 9:04
converdb20-Mar-03 9:04 
GeneralRe: Shutting down a W2K computer Pin
Mark Conger20-Mar-03 10:14
Mark Conger20-Mar-03 10:14 
GeneralRe: Shutting down a W2K computer Pin
VoidMainVoid30-Mar-03 16:26
VoidMainVoid30-Mar-03 16:26 
GeneralRe: Shutting down a W2K computer Pin
converdb2-Apr-03 7:32
converdb2-Apr-03 7:32 
GeneralInter-app communication in C# Pin
Strat61320-Mar-03 7:06
Strat61320-Mar-03 7:06 
GeneralQuestion about methods. Pin
Jon Newman20-Mar-03 6:51
Jon Newman20-Mar-03 6:51 
GeneralRe: Question about methods. Pin
Daniel Turini20-Mar-03 6:59
Daniel Turini20-Mar-03 6:59 
GeneralRe: Question about methods. Pin
Jon Newman20-Mar-03 7:10
Jon Newman20-Mar-03 7:10 
Daniel Turini wrote:
Beware that your static methods may need synchronization (the "lock" statement on C#), since they may be called from several threads and probably will work on global data.

I've tried a lock statement in the class...

public static void SomeStatic()
	{
              lock(this)
              {
		System.Windows.Forms.MessageBox.Show("Hello");
              }
	}


But it says you can't use 'this' from a static method. Any thoughts...


"De most compwehensive image seawch on de web."
- Google in Elmer Fudd Language
"But a fresh install - it's like having clean sheets"
- Chris Maunder Lounge 3 Mar '03



Jonathan 'nonny' Newman
Web Designer, Programmer, Lover, Visionary Leader...
Homepage [www.nonny.com] [^]
GeneralRe: Question about methods. Pin
leppie20-Mar-03 7:21
leppie20-Mar-03 7:21 
GeneralRe: Question about methods. Pin
Jon Newman20-Mar-03 7:29
Jon Newman20-Mar-03 7:29 
GeneralRe: Question about methods. Pin
Michal Januszczyk21-Mar-03 12:51
sussMichal Januszczyk21-Mar-03 12:51 
GeneralException Management Application Block Pin
Le centriste20-Mar-03 4:23
Le centriste20-Mar-03 4:23 
GeneralRe: Exception Management Application Block Pin
David Stone20-Mar-03 5:56
sitebuilderDavid Stone20-Mar-03 5:56 
GeneralNeed a URL Combo like Combo box Pin
M Hanif20-Mar-03 1:18
M Hanif20-Mar-03 1:18 
GeneralMicrosoft Masked Edit Control Pin
Romeo20-Mar-03 1:02
Romeo20-Mar-03 1:02 
GeneralRe: Microsoft Masked Edit Control Pin
Roger Alsing20-Mar-03 1:31
Roger Alsing20-Mar-03 1:31 
Generalconvert dll call from vb.net to c#.net Pin
Nachte19-Mar-03 22:41
Nachte19-Mar-03 22:41 
GeneralWhy do my applications need >10 MB RAM Pin
j-hannemann19-Mar-03 21:58
j-hannemann19-Mar-03 21:58 
GeneralRe: Why do my applications need >10 MB RAM Pin
Philip Fitzsimons20-Mar-03 2:43
Philip Fitzsimons20-Mar-03 2:43 
GeneralRe: Why do my applications need >10 MB RAM Pin
Big Art21-Mar-03 13:52
Big Art21-Mar-03 13:52 
GeneralBush is a WAR CHEAT,I heat America Pin
Anonymous19-Mar-03 21:34
Anonymous19-Mar-03 21:34 
GeneralRe: Bush is a WAR CHEAT,I heat America Pin
Paul Watson19-Mar-03 22:12
sitebuilderPaul Watson19-Mar-03 22:12 
GeneralRe: Bush is a WAR CHEAT,I heat America Pin
Philip Fitzsimons20-Mar-03 2:43
Philip Fitzsimons20-Mar-03 2:43 
GeneralRe: Bush is a WAR CHEAT,I heat America Pin
Strat61320-Mar-03 7:13
Strat61320-Mar-03 7:13 
Generalhelp me Pin
cxjdy19-Mar-03 16:14
cxjdy19-Mar-03 16:14 

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.