473,396 Members | 1,961 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,396 software developers and data experts.

VB.net - Problem with Visual Inheritance

I have designed a base form on which I have a Groupbox docked at the bottom, on the group box I have a button docked at the right.

Not i inherited this form and increased the width of derived form , as expected the button moved to the right hand corner of the form, but when i run the form the button appears somewhere in the middle of the form. If if resize the same form on runtime the button moves to right corner.

I don't know why the button does not go the expected location on the form load itself. I have tried to refresh the form on FormLoad. I have played with the access modifier ( Private, public) of the button on the base form , nothing seems to work.

Can anyone help ? Thanks in adv.
Aug 13 '07 #1
4 1090
TRScheel
638 Expert 512MB
Can you post the designer code? And perhaps even your code if it isnt too lengthy?
Aug 13 '07 #2
Can you post the designer code? And perhaps even your code if it isnt too lengthy?
Dear TRScheel

The is attached for your reference
Attached Files
File Type: zip VisualInheritance.zip (66.5 KB, 36 views)
Aug 14 '07 #3
TRScheel
638 Expert 512MB
Wow, that is fairly bizarre. I went through and changed a few things to no avail. Only thing that worked reliably was to add:

Expand|Select|Wrap|Line Numbers
  1. Me.Width += 5
  2. Me.Width -= 5
  3.  
To the form load. But thats a hack and not a solution. I will look into finding a solution.
Aug 14 '07 #4
Wow, that is fairly bizarre. I went through and changed a few things to no avail. Only thing that worked reliably was to add:

Expand|Select|Wrap|Line Numbers
  1. Me.Width += 5
  2. Me.Width -= 5
  3.  
To the form load. But thats a hack and not a solution. I will look into finding a solution.
Ya

I have used same trick but I need some forms to be of fixed size.
Is there some wayout for such forms ?

Thanks for your replies
Aug 14 '07 #5

Sign in to post your reply or Sign up for a free account.

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...
2
by: Gerhard Esterhuizen | last post by:
Hi, I am observing unexpected behaviour, in the form of a corrupted class member access, from a simple C++ program that accesses an attribute declared in a virtual base class via a chain of...
1
by: Jason Hickey | last post by:
Has there been a change in the way the UI designer handles winform inheritance in the 2003 version of visual studio. Consider the following (try it if you are using 2003 Everything seems to work...
0
by: Marcel Ammerlaan | last post by:
Hello, I'm trying to use visual inheritance in Visual Studio 2003 (using C#) but the development environment just crashes. I've read the Knowledge base article: KB316554 which states something...
10
by: Gopal Prabhakaran | last post by:
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran
5
by: Bart Schelkens | last post by:
Hi, I'm still using VB.NET 2002. I was wondering if I could do the following : I'm creating a web-application. Now I want to create a base-webform that contains the layout for all my pages....
2
by: Gary Shell | last post by:
I have jumped in to the deep end of the pool, trying out visual inheritance of a form and have run into a snag. I have the need to create a simple maintenance form for five identically...
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,...
1
by: leorochab | last post by:
Hi all, I am in trouble with visual inheritance in VS 2005, using C#. I can´t inherit any container control. They appear with a padlock, even setting the "MODIFIERS" property (PUBLIC/PROTECTED)...
0
by: =?Utf-8?B?SGVsZ2U=?= | last post by:
Hi! I have run into a problem with visual inheritance using the VS2005 designer for Windows Forms. My goal is to put business logic and common rules for our controls into its own layer (base...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.