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
edua_11368
NA
12
0
Getting an error after using ActiveForm in debug mode!!!
Mar 15 2005 12:08 PM
Hello, After using method activeform to get the active form in my app, i try to clear all controls from the form so i can add new controls to it, just like this: Form currentForm = Form1.ActiveForm; currentForm.Controls.Clear(); When i run in debug mode, i get an exception for Object reference not set to an instance of an object. But if i run it without debbuging it works ok. Does anybody know why this happens? Thank you. e.
Reply
Answers (
2
)
opening a text file from the bin folder and displaying in a listbox
Transfer event from parent form to child form