By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

"Object reference not set to an instance of an object".

P: n/a
What is that? I have my own OCX which I added to the toolbar for my form in
C# and want to throw it onto the form. When I do that I get this exception.
And there is no code at that point.
That OCX works fine in VB 6.
What's wrong?
Thanks a lot!
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dear Chepel

You might not have created an instance of some object

this happens when you dont use the 'new' operator to create an instance of an objec

----- Maksim Chepel wrote: ----

What is that? I have my own OCX which I added to the toolbar for my form i
C# and want to throw it onto the form. When I do that I get this exception
And there is no code at that point
That OCX works fine in VB 6
What's wrong
Thanks a lot

Nov 22 '05 #2

P: n/a
But I just drop it on the form as a tool from a toolbox. Why/where/when do I
need to call 'new' for that?? I thought studio have to generate code for me
in that situation, no?
"ranganh" <an*******@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
Dear Chepel,

You might not have created an instance of some object.

this happens when you dont use the 'new' operator to create an instance of
an object

----- Maksim Chepel wrote: -----

What is that? I have my own OCX which I added to the toolbar for my
form in
C# and want to throw it onto the form. When I do that I get this
exception.
And there is no code at that point.
That OCX works fine in VB 6.
What's wrong?
Thanks a lot!


Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.