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. 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.
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.
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.
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. > >
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. > > > > > >
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. > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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;
|
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...
|
by: Gopal Prabhakaran |
last post by:
Hi
Pls Help me to do Visual Inheritance with ASP.NET
--
Thanx
Gopal Prabhakaran
|
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...
|
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,...
|
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,
...
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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...
|
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...
| |