467,879 Members | 1,301 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

line number question

Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
Nov 16 '05 #1
  • viewed: 1424
Share:
5 Replies
Marge,

As the the first question ... the source of the error is the form's OnPaint event. That is not likely to be a very large amount of code. To get to the exact line, simply choose Edit | Go To ... and specify the line number. Or watch the status bar as you scroll through the file, for the current line number.

Of course your question suggests you aren't using Visual Studio, but we aren't into guessing ... the more info you provide the more we can help.

--Bob
"Marge Inoferror" <in*****************@yahoo.com> wrote in message news:E1***************@newssvr15.news.prodigy.com. ..
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
Nov 16 '05 #2
Thanks, Bob

I was asking about Visual Studio.net. Are there other development platforms for C# / dotnet ?

thanks,
-marge
"Bob Grommes" <bo*@bobgrommes.com> wrote in message news:uO****************@TK2MSFTNGP09.phx.gbl...
Marge,

As the the first question ... the source of the error is the form's OnPaint event. That is not likely to be a very large amount of code. To get to the exact line, simply choose Edit | Go To ... and specify the line number. Or watch the status bar as you scroll through the file, for the current line number.

Of course your question suggests you aren't using Visual Studio, but we aren't into guessing ... the more info you provide the more we can help.

--Bob
"Marge Inoferror" <in*****************@yahoo.com> wrote in message news:E1***************@newssvr15.news.prodigy.com. ..
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can resize sucessfully all day, but when the window is covered by another window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source of the error is concerned?
The other question is - is there a way to find where line 244 is in the source code (other than counting the lines)?

Thanks,
Marge
Nov 16 '05 #3
You can write C# in any editor, however there is atleast SharpDevelop and I
think Eclipse has a C# plugin, though I believe it isn't terribly well
regarded.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

I was asking about Visual Studio.net. Are there other development platforms
for C# / dotnet ?

thanks,
-marge
"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:uO****************@TK2MSFTNGP09.phx.gbl...
Marge,

As the the first question ... the source of the error is the form's OnPaint
event. That is not likely to be a very large amount of code. To get to the
exact line, simply choose Edit | Go To ... and specify the line number. Or
watch the status bar as you scroll through the file, for the current line
number.

Of course your question suggests you aren't using Visual Studio, but we
aren't into guessing ... the more info you provide the more we can help.

--Bob
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:E1***************@newssvr15.news.prodigy.com. ..
Well, 2 questions, actually...

I get an error when my form's window gets covered by another window. I can
resize sucessfully all day, but when the window is covered by another
window - it bombs Here is the error:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at Talk.Form1.OnPaint(PaintEventArgs e) in g:\talk\form1.cs:line 244

One question would be - any ideas on what to look for as far as the source
of the error is concerned?
The other question is - is there a way to find where line 244 is in the
source code (other than counting the lines)?

Thanks,
Marge
Nov 16 '05 #4
Yes, and there is also Borland's C# environment, whose name eludes me at the
moment.

--Bob

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2*****************@TK2MSFTNGP10.phx.gbl...
You can write C# in any editor, however there is atleast SharpDevelop and I think Eclipse has a C# plugin, though I believe it isn't terribly well
regarded.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

I was asking about Visual Studio.net. Are there other development platforms for C# / dotnet ?

thanks,
-marge

Nov 16 '05 #5

"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:ug*************@TK2MSFTNGP10.phx.gbl...
Yes, and there is also Borland's C# environment, whose name eludes me at
the
moment.

Ya, C# Builder I think. That would keep it inline with their other products
anyway. Forgot about that one.
--Bob

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:%2*****************@TK2MSFTNGP10.phx.gbl...
You can write C# in any editor, however there is atleast SharpDevelop and

I
think Eclipse has a C# plugin, though I believe it isn't terribly well
regarded.
"Marge Inoferror" <in*****************@yahoo.com> wrote in message
news:Tp***************@newssvr15.news.prodigy.com. ..
Thanks, Bob

I was asking about Visual Studio.net. Are there other development

platforms
for C# / dotnet ?

thanks,
-marge


Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.