Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: GetWindow Pin
Judah Gabriel Himango25-Feb-04 10:40
sponsorJudah Gabriel Himango25-Feb-04 10:40 
GeneralRe: GetWindow Pin
Heath Stewart25-Feb-04 11:52
protectorHeath Stewart25-Feb-04 11:52 
GeneralRe: GetWindow Pin
Heath Stewart25-Feb-04 11:58
protectorHeath Stewart25-Feb-04 11:58 
GeneralRe: GetWindow Pin
yyf26-Feb-04 3:21
yyf26-Feb-04 3:21 
QuestionGet the width of a (formatted) string? Pin
Verdant12325-Feb-04 9:56
Verdant12325-Feb-04 9:56 
AnswerRe: Get the width of a (formatted) string? Pin
Judah Gabriel Himango25-Feb-04 10:42
sponsorJudah Gabriel Himango25-Feb-04 10:42 
GeneralRe: Get the width of a (formatted) string? Pin
Verdant12325-Feb-04 12:26
Verdant12325-Feb-04 12:26 
GeneralException thrown from within Application.Run(Form); Pin
jerrycainjr25-Feb-04 9:25
jerrycainjr25-Feb-04 9:25 
Everyone, I have a bug which doesn't seem to be related to my code (no, really! ) but instead to my configuration. The following line:

Application.Run(new MyApplicationWindow());

throws a NullReferenceException. The MyApplicationWindow constructor executes in full, and the exception is thrown from within Application.Run; here's the stack trace:

StackTrace "   at System.Windows.Forms.SafeNativeMethods.ShowWindow(IntPtr hWnd, Int32 nCmdShow)
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.set_Visible(Boolean value)
   at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)

Interestingly, I have two identical copies of this solution on my machine. One is tied to source control, and one that isn't. The one not tied to source control runs without a problem, but the one tied to source control throws the exception. The code also runs just fine on coworkers' machines.

I've reinstalled MDAC 2.8 most recently, and I also upgraded to .NET 1.1. I'm using the 2002 version of Visual Studio.

Anything obvious come to mind? I appreciate any help I can get here.
Jerry
GeneralRe: Exception thrown from within Application.Run(Form); Pin
scadaguy25-Feb-04 10:33
scadaguy25-Feb-04 10:33 
QuestionHow to get the number of visible forms on screen ? Pin
Andres Coder25-Feb-04 9:04
Andres Coder25-Feb-04 9:04 
AnswerRe: How to get the number of visible forms on screen ? Pin
Verdant12325-Feb-04 12:38
Verdant12325-Feb-04 12:38 
GeneralRe: How to get the number of visible forms on screen ? Pin
Andres Coder25-Feb-04 21:51
Andres Coder25-Feb-04 21:51 
GeneralRe: How to get the number of visible forms on screen ? Pin
Verdant12326-Feb-04 2:25
Verdant12326-Feb-04 2:25 
Generalcool icons Pin
OmegaSupreme25-Feb-04 8:21
OmegaSupreme25-Feb-04 8:21 
GeneralRe: cool icons Pin
RNEELY25-Feb-04 8:29
RNEELY25-Feb-04 8:29 
GeneralRe: cool icons Pin
OmegaSupreme25-Feb-04 9:24
OmegaSupreme25-Feb-04 9:24 
GeneralRe: cool icons Pin
Werdna25-Feb-04 8:40
Werdna25-Feb-04 8:40 
GeneralRe: cool icons Pin
RNEELY25-Feb-04 9:16
RNEELY25-Feb-04 9:16 
GeneralRe: cool icons Pin
OmegaSupreme25-Feb-04 9:27
OmegaSupreme25-Feb-04 9:27 
GeneralDynamic display of datagrids with Checkboxes Integrated Pin
Ananthanatarajan25-Feb-04 6:36
Ananthanatarajan25-Feb-04 6:36 
GeneralRe: Dynamic display of datagrids with Checkboxes Integrated Pin
Heath Stewart25-Feb-04 7:23
protectorHeath Stewart25-Feb-04 7:23 
GeneralRuntime user code Pin
Joel Holdsworth25-Feb-04 6:28
Joel Holdsworth25-Feb-04 6:28 
GeneralRe: Runtime user code Pin
Heath Stewart25-Feb-04 6:59
protectorHeath Stewart25-Feb-04 6:59 
GeneralHttpWebRequest authentication Pin
godzooky25-Feb-04 4:23
godzooky25-Feb-04 4:23 
GeneralRe: HttpWebRequest authentication Pin
Heath Stewart25-Feb-04 5:20
protectorHeath Stewart25-Feb-04 5:20 

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.