473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Question about visual inheritance

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
6 1286
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I have created an MDI child form that I am using as a base form in a VB.Net MDI application. The base MDI child form has a series of menu options on it. I then use this form to create other MDI...
4
by: aap | last post by:
Hi, I have the following code. #include <iostream> using namespace std; class Root { public: virtual void Root1() = 0; virtual void Root2() = 0;
30
by: Elhanan | last post by:
hi all i have a question in desgning a form.. the application in question is something a indexing station. the user in this indexing station views a document in pdf/tiff format on the right...
10
by: Gopal Prabhakaran | last post by:
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran
6
by: Peter Oliphant | last post by:
I just discovered that the ImageList class can't be inherited. Why? What could go wrong? I can invision a case where someone would like to add, say, an ID field to an ImageList, possible so that...
3
by: Dino Buljubasic | last post by:
Hi, I am thinking of using visual inheritance. I am using C# VS 2005. I am concerned about how good it is. I have heard about problems like controls dissapearing or so. Any hints, tips,...
4
by: MikeB | last post by:
I've been all over the net with this question, I hope I've finally found a group where I can ask about Visual Basic 2005. I'm at uni and we're working with Visual Basic 2005. I have some books, ...
7
by: jason | last post by:
In the microsoft starter kit Time Tracker application, the data access layer code consist of three cs files. DataAccessHelper.cs DataAcess.cs SQLDataAccessLayer.cs DataAcccessHelper appears...
30
by: Logos | last post by:
I have what may be a bug, or may be a misunderstanding on how pass by reference and class inheritance works in PHP. Since I'm relatively new to PHP, I'm hoping for a little outside help to shed...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.