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

C# .NET 2.0 Form Inheritance Problem

P: n/a
I have a base class form called ODBrowseForm that I've created which
inherits from System.Windows.Forms.Form with no problems. The problem
is that I have a DataGridView control in ODBrowseForm that I can't
access the properties of in my child forms.

For example I create a form called BrowseForm1 in a different project
that inherits from ODBrowseForm. When viewing BrowseForm1 in the
visual designer I can't move or resize the DataGridView control or
access any of its properties (IE: I want to edit the Columns collection
property). I can, however, access the DataGridView control and its
properties when coding in BrowseForm1.cs.

I've tried declaring the DataGridViewControl as protected and as
public, with the same results. I have been recompiling the solution
and copying the output .dll files to the Common7\IDE folder also.

Any ideas as to why this happens? Is there some property I need to
change, or is this a bug in Visual Studio 2005?

Feb 17 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.