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

Question about visual inheritance

P: n/a
Hi,

i've created a base-form from which all the forms in my application need to
inherit.

This works just fine.
I've put some buttons on my base-form.
They are displayed correctly, only if my inheriting form is bigger than my
base-form, the buttons stay at the position where i've put them on my
base-form.

How can I change that?

Greetings.
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Did you try to use the Anchor property of your button(in the base form) ?

Ernest
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:ua*************@TK2MSFTNGP10.phx.gbl...
Hi,

i've created a base-form from which all the forms in my application need to inherit.

This works just fine.
I've put some buttons on my base-form.
They are displayed correctly, only if my inheriting form is bigger than my
base-form, the buttons stay at the position where i've put them on my
base-form.

How can I change that?

Greetings.

Nov 20 '05 #2

P: n/a
Yes, but when i anchor it to the bottom right, it still has the same
problem.
"Ernest Morariu" <er****@gesora.com> schreef in bericht
news:ua**************@TK2MSFTNGP12.phx.gbl...
Did you try to use the Anchor property of your button(in the base form) ?

Ernest
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:ua*************@TK2MSFTNGP10.phx.gbl...
Hi,

i've created a base-form from which all the forms in my application need

to
inherit.

This works just fine.
I've put some buttons on my base-form.
They are displayed correctly, only if my inheriting form is bigger than my base-form, the buttons stay at the position where i've put them on my
base-form.

How can I change that?

Greetings.


Nov 20 '05 #3

P: n/a
When I played with Visual Inheritance (until I eventually gave up), seems to
me you had to scope your controls as Protected, instead of the default
Friend.

Greg

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Yes, but when i anchor it to the bottom right, it still has the same
problem.
"Ernest Morariu" <er****@gesora.com> schreef in bericht
news:ua**************@TK2MSFTNGP12.phx.gbl...
Did you try to use the Anchor property of your button(in the base form) ?

Ernest
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:ua*************@TK2MSFTNGP10.phx.gbl...
Hi,

i've created a base-form from which all the forms in my application
need to
inherit.

This works just fine.
I've put some buttons on my base-form.
They are displayed correctly, only if my inheriting form is bigger
than my base-form, the buttons stay at the position where i've put them on my
base-form.

How can I change that?

Greetings.



Nov 20 '05 #4

P: n/a
I tried it and it worked fine, thx.
"Greg Burns" <gr********@hotmail.com> schreef in bericht
news:uo***************@TK2MSFTNGP10.phx.gbl...
When I played with Visual Inheritance (until I eventually gave up), seems to me you had to scope your controls as Protected, instead of the default
Friend.

Greg

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Yes, but when i anchor it to the bottom right, it still has the same
problem.
"Ernest Morariu" <er****@gesora.com> schreef in bericht
news:ua**************@TK2MSFTNGP12.phx.gbl...
Did you try to use the Anchor property of your button(in the base form)
?

Ernest
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:ua*************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> i've created a base-form from which all the forms in my application need to
> inherit.
>
> This works just fine.
> I've put some buttons on my base-form.
> They are displayed correctly, only if my inheriting form is bigger

than
my
> base-form, the buttons stay at the position where i've put them on

my > base-form.
>
> How can I change that?
>
> Greetings.
>
>



Nov 20 '05 #5

P: n/a
Glad to hear it worked.

Backup frequently. I can't tell you how many times I designed a child form,
that the IDE would suddenly remove all the added controls.

Have you ran into this error yet? I got so frustrated seeing it, that I
stopped working with visual inheritance.

"An error occurred while loading this document. Fix the error, and then try
loading the document again. The error messge follows:
The designer must create an instance of type 'FooBar' but it cannot because
the type is declared as abstract."

(Usually recompiling, will fix that. Make sure you have all [Design] forms
closed in the IDE first!. Restarting the IDE sometimes helped too.)

I had some success, using code like this to get around certain issue with
the designer. But, again it was just too frustrating.

#If DEBUG Then
Public Class Foo
#Else
Public MustInherit Class FooBar
#End If

good luck!
Greg
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
I tried it and it worked fine, thx.
"Greg Burns" <gr********@hotmail.com> schreef in bericht
news:uo***************@TK2MSFTNGP10.phx.gbl...
When I played with Visual Inheritance (until I eventually gave up), seems
to
me you had to scope your controls as Protected, instead of the default
Friend.

Greg

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
Yes, but when i anchor it to the bottom right, it still has the same
problem.
"Ernest Morariu" <er****@gesora.com> schreef in bericht
news:ua**************@TK2MSFTNGP12.phx.gbl...
> Did you try to use the Anchor property of your button(in the base form)
?
>
> Ernest
>
>
> "Bart Schelkens" <bs********@hotmail.com> wrote in message
> news:ua*************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > i've created a base-form from which all the forms in my

application need
> to
> > inherit.
> >
> > This works just fine.
> > I've put some buttons on my base-form.
> > They are displayed correctly, only if my inheriting form is bigger

than
my
> > base-form, the buttons stay at the position where i've put them on

my > > base-form.
> >
> > How can I change that?
> >
> > Greetings.
> >
> >
>
>



Nov 20 '05 #6

P: n/a
I haven't had that error just yet.
Might still come though.
"Greg Burns" <gr********@hotmail.com> schreef in bericht
news:u2**************@TK2MSFTNGP10.phx.gbl...
Glad to hear it worked.

Backup frequently. I can't tell you how many times I designed a child form, that the IDE would suddenly remove all the added controls.

Have you ran into this error yet? I got so frustrated seeing it, that I
stopped working with visual inheritance.

"An error occurred while loading this document. Fix the error, and then try loading the document again. The error messge follows:
The designer must create an instance of type 'FooBar' but it cannot because the type is declared as abstract."

(Usually recompiling, will fix that. Make sure you have all [Design] forms
closed in the IDE first!. Restarting the IDE sometimes helped too.)

I had some success, using code like this to get around certain issue with
the designer. But, again it was just too frustrating.

#If DEBUG Then
Public Class Foo
#Else
Public MustInherit Class FooBar
#End If

good luck!
Greg
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
I tried it and it worked fine, thx.
"Greg Burns" <gr********@hotmail.com> schreef in bericht
news:uo***************@TK2MSFTNGP10.phx.gbl...
When I played with Visual Inheritance (until I eventually gave up), seems
to
me you had to scope your controls as Protected, instead of the default
Friend.

Greg

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
> Yes, but when i anchor it to the bottom right, it still has the same
> problem.
>
>
> "Ernest Morariu" <er****@gesora.com> schreef in bericht
> news:ua**************@TK2MSFTNGP12.phx.gbl...
> > Did you try to use the Anchor property of your button(in the base

form)
?
> >
> > Ernest
> >
> >
> > "Bart Schelkens" <bs********@hotmail.com> wrote in message
> > news:ua*************@TK2MSFTNGP10.phx.gbl...
> > > Hi,
> > >
> > > i've created a base-form from which all the forms in my application need
> > to
> > > inherit.
> > >
> > > This works just fine.
> > > I've put some buttons on my base-form.
> > > They are displayed correctly, only if my inheriting form is bigger than
> my
> > > base-form, the buttons stay at the position where i've put them

on my
> > > base-form.
> > >
> > > How can I change that?
> > >
> > > Greetings.
> > >
> > >
> >
> >
>
>



Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.