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

Can't see Methods/Functions/Events in Inherited UserControl

P: n/a
Hi,

I have a UserControl (MyUserControl) which has a DataGrid (MyDataGrid).
I made a new UserControl that Inherits of my first UserControl: I named it
MyInheritedUserControl.

For some reason I don't 'see' the Methods/Events etc of the Controls I
putted on MyUserControl in the two ComboBoxes on top of the Code Window in
Visual Studio. I can use the Methods and Events, but I have to type them
mysels. For example I can trap the event MyDataGrid_Click, but I have to
type it myself in the MyInheritedUserControl.

Is this normal behaviour? Or should I change something about the Modifiers
of my DataGrid or UserControl? OR how can I be able to see all the possible
events lsited in my MyInheritedUserControl jsut liek I see them in
MyUsercontrol?

Thanks a lot in advance!

Pieter
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Peter,

I think you are developing your application by using VB.NET. In VB.NET
you can not access the events and methods of an object which has been
declared in the base class from the regular interfaces like the
dropdownlists located over the Code Window, even the object has a
"Protected" modifier. In C#, in the "Properties Window", there is an
"Events" section. It is possible to access the objects'(declared in
the base class) events. By doubleclicking them, VS.NET (for C#)
creates an event handler in the child class.

As long as you use VB.NET you will go on writing it manually, or you
can create the event handler in base class and then cut and paste into
the child class code...

Good Luck,
Dincer
Nov 20 '05 #2

P: n/a
Thanks for the info! It is indeed VB.NET I'm using.

Pieter

"Dincer Ozturan" <d_*******@yahoo.com> wrote in message
news:92**************************@posting.google.c om...
Hi Peter,

I think you are developing your application by using VB.NET. In VB.NET
you can not access the events and methods of an object which has been
declared in the base class from the regular interfaces like the
dropdownlists located over the Code Window, even the object has a
"Protected" modifier. In C#, in the "Properties Window", there is an
"Events" section. It is possible to access the objects'(declared in
the base class) events. By doubleclicking them, VS.NET (for C#)
creates an event handler in the child class.

As long as you use VB.NET you will go on writing it manually, or you
can create the event handler in base class and then cut and paste into
the child class code...

Good Luck,
Dincer

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.