|
-
Oct 25th, 2006, 01:54 PM
#1
Thread Starter
Hyperactive Member
Form Inheritance
Hi all,
I've got a very strange problem. Have created a base form (fBase), derived a form from fBase (fBaseDetail), and finally derived a form (fObjects) from fBaseDetail.
Filled fBaseDetail with some kind of extended standard controls (e.g. TextBoxEx, which derives from the standard TextBox). What happens in a moment? all the extended controls (e.g. TextBoxEx) are gone from the designer! The declarations still appear in the code, but all the properties I've set are gone!
In the extended controls, I've only added two properties, and Mybase.New() is called in the New() event...
Is it possible that I had to arrive from the base classes instead of the classes of the standard controls (thus: TextBoxBase instead of Textbox)?
I don't know, find it very strange.
ps: form overloading is as strange as well... sometimes controls disappear or are placed completely wrong... Anybody knows how I can avoid thát problem?
Thanx anyway,
JMvV
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|