Click here to Skip to main content
15,884,986 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading Pin
Le centriste31-Jan-06 10:13
Le centriste31-Jan-06 10:13 
GeneralRe: Threading Pin
nc3b31-Jan-06 10:15
nc3b31-Jan-06 10:15 
Questiondo I need a lience to use word.dll in a commercial product Pin
Agyeman31-Jan-06 9:38
Agyeman31-Jan-06 9:38 
AnswerRe: do I need a lience to use word.dll in a commercial product Pin
Praveen Nayak31-Jan-06 17:20
Praveen Nayak31-Jan-06 17:20 
QuestionBinary Data & .Net Sockets, URGENT Pin
John Gouda31-Jan-06 9:27
John Gouda31-Jan-06 9:27 
QuestionHow does 1 thread multiply into 3 threads??? Pin
WetRivrRat31-Jan-06 8:27
WetRivrRat31-Jan-06 8:27 
AnswerRe: How does 1 thread multiply into 3 threads??? Pin
Wjousts31-Jan-06 10:59
Wjousts31-Jan-06 10:59 
QuestionHow can a custom control or form tell that it’s in design mode? Pin
Chris Levin31-Jan-06 8:09
Chris Levin31-Jan-06 8:09 
I have a number of custom forms and controls that rely on runtime information to do their job. In cases where these items do their setup in the constructor, bad things happen when one of these is displayed in the designer.

Currently, I use the following code to determine if my item is running in the designer:

	<br />
public static bool InDesignMode()<br />
{<br />
  string exe = Application.ExecutablePath;<br />
  if ( exe.IndexOf("devenv.exe") != -1 )<br />
  {<br />
      return true;<br />
  }<br />
  return false;<br />
}<br />


Although this works I’m wondering if there is a better way. I don’t like relying on something like a file name to make this kind of decision.

Any ideas or comments?

Thanks!
Chris
AnswerRe: How can a custom control or form tell that it’s in design mode? Pin
malharone31-Jan-06 8:33
malharone31-Jan-06 8:33 
GeneralRe: How can a custom control or form tell that it’s in design mode? Pin
Chris Levin31-Jan-06 8:35
Chris Levin31-Jan-06 8:35 
AnswerRe: How can a custom control or form tell that it’s in design mode? Pin
kasik31-Jan-06 8:42
kasik31-Jan-06 8:42 
GeneralRe: How can a custom control or form tell that it’s in design mode? Pin
malharone31-Jan-06 8:51
malharone31-Jan-06 8:51 
QuestionWierd behavior with ALT key shortcuts Pin
Dan Neely31-Jan-06 8:07
Dan Neely31-Jan-06 8:07 
QuestionHow to Call Javascript function from code behind after dialog box appearance Pin
psmukil31-Jan-06 7:49
psmukil31-Jan-06 7:49 
QuestionPosting Data to a Blog Pin
AB777131-Jan-06 3:48
AB777131-Jan-06 3:48 
AnswerRe: Posting Data to a Blog Pin
User 665831-Jan-06 4:40
User 665831-Jan-06 4:40 
AnswerRe: Posting Data to a Blog Pin
tarasn31-Jan-06 4:49
tarasn31-Jan-06 4:49 
QuestionKeypress handling in Simple DataGrid Pin
hellamasta31-Jan-06 3:44
hellamasta31-Jan-06 3:44 
AnswerRe: Keypress handling in Simple DataGrid Pin
Alomgir Miah31-Jan-06 7:54
Alomgir Miah31-Jan-06 7:54 
GeneralRe: Keypress handling in Simple DataGrid Pin
hellamasta31-Jan-06 8:44
hellamasta31-Jan-06 8:44 
Questionalternate ways to force a process to close. Pin
Dan Neely31-Jan-06 3:22
Dan Neely31-Jan-06 3:22 
AnswerRe: alternate ways to force a process to close. Pin
Wjousts31-Jan-06 5:59
Wjousts31-Jan-06 5:59 
GeneralRe: alternate ways to force a process to close. Pin
Dan Neely31-Jan-06 7:32
Dan Neely31-Jan-06 7:32 
GeneralRe: alternate ways to force a process to close. Pin
Wjousts31-Jan-06 8:01
Wjousts31-Jan-06 8:01 
GeneralRe: alternate ways to force a process to close. Pin
Dan Neely31-Jan-06 9:03
Dan Neely31-Jan-06 9:03 

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.