TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
davidfahy
NA
4
0
Custom Control problem
Nov 24 2005 5:12 AM
Dear all,
I have created a custom control in C# (A panel with context menu's, event handlers etc already built in) in a dll, a control library. I've added this control to my user controls in my main application (a different project). I can then drag the panel onto my main form and resize it etc. The main form builds fine but when i run it and click on a panel I get an error "Object reference not set to an instance of an object". It is like the inputpanel object is not getting initialised properly. I create the object in the mainform and call the constructor to initialise it (along with InitializeComponent()). Does anyone have any idea what i'm doing wrong.
Thanks in advance
Reply
Answers (
1
)
help..
which control has currently the focus in a MDI-Form