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

Inherited forms and 2003

I guess I would have to know what you mean by "not being
able to edit the forms". Does this mean you get an error
in the designer when you try to display an inherited form?
Does this mean the controls are visible, but you can't
move them around? What exactly does it mean?

There are a variety of methods for editing visuallly
inherited forms and I've never had a problem with it in
any version of VS.

Jeff Levinson
Author of "Building Client/Server Applications with
VB.NET: An Example Driven Approach"
-----Original Message-----
Hello,

I have fallen foul of not being able to edit inherited
forms via the visual designer. I found an article on
knowledge base about this. Nice one Microsoft - it is a
bug, but it is a pretty serious one! I need to use 2003
for the Oracle classes. I have many many forms, all
inherited. Now I can't edit them easily. Knocking off the
inheritance for the purposes of editing/creation results
in odd sizing problems - particularly if they contain
Active X controls.

The article suggests registering my assembly in the GAC,
but to do that it has to be strongly typed... but this
means all the assemblies my assembly depends on have to bestrongly typed... Unfortunately they are mostly interops.
These are not strongly typed. I don't know how to type
these. (Getting late here I have to go, no time to find
out right now, and I am out of the office for a few days.)

I tried copying a copy of my assembly (actually an exe) tothe location of Winres.exe. This didn't work.

Anyone any other ideas how I can get round this one??
Editing forms with Active X controls on is very flaky whenI remove my inheritance. It messes up the layout.

This is causing us serious problems! Any idea when this isgoing to be fixed? We have some more forms to create, theyHAVE to be inherited!

If anyone can shed light or give me any ideas I would be
very grateful.

Thanks,
Louise
.

Jul 19 '05 #1
2 2181
"Jeff Levinson [mcsd]" <je***********@comcast.net> wrote in message
news:03****************************@phx.gbl...
I guess I would have to know what you mean by "not being
able to edit the forms". Does this mean you get an error
in the designer when you try to display an inherited form?
Does this mean the controls are visible, but you can't
move them around? What exactly does it mean?

There are a variety of methods for editing visuallly
inherited forms and I've never had a problem with it in
any version of VS.

Jeff Levinson
Author of "Building Client/Server Applications with
VB.NET: An Example Driven Approach"
-----Original Message-----
Hello,

I have fallen foul of not being able to edit inherited
forms via the visual designer. I found an article on
knowledge base about this. Nice one Microsoft - it is a
bug, but it is a pretty serious one!

Do you have a link to the article?

I have noticed that sometimes inherited forms forget that they are forms -
in the project file the SubType is "Code" instead of "Form", as it should
be:

<File
RelPath = "Form1.cs"
SubType = "Form"
BuildAction = "Compile"
/>

I've also found that a quick way to fix this in the IDE is to cut and paste
the inherited class. For example:

public class ApplicationView : BaseFormView

cut and paste "BaseFormView" right back. The Solution Explorer changes the
icon for the form back to a form.

Good luck,
Marc
Jul 19 '05 #2
Jeff - thanks for getting back to me. Back from holiday now.

My application builds and runs absolutely fine. I just cannot edit these
inherited forms anymore in the visual designer. I get an error that
something is wrong with the form. There is nothing wrong with the form.
This has just started happening since we migrated to 2003 and lots of
others have the same problem. It is a known bug. This doesn't help us
continue development of our application however.

These inherited forms override a couple of base methods. I thought that
may have been the problem - but temporarily removing this doesn't make
any difference - then I found messages from others with the same
problem, then the Knowledge based admission from Microsoft that there is
a problem.

I need to be able to properly edit and develop more inherited forms.
This app is written in VB.

The suggested methods of solving the problem don't help me much I am
afraid.

Temporarily removing the inheritance for the purpose of doing visual
edits sort of works, but when the inheritance is replaced, the size of
the form and location of the controls on it go a little strange. So it
gets very frustrating especially when our timescales are tight.

Louise.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Segfahlt | last post by:
I have an inherited comboBox that I'm using to try to make an intellisense type box in VS 2003 .Net. It works okay in VS.Net 2002. I can get it to do most of my stuff, but it's not keeping the...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
13
by: Lorne Smith | last post by:
Hi, First, sorry for the crosspost, but it seemed appropriate... :) I've come accross what I consider to be a bug, but I don't know if it's already known or not. (VS .Net 2003 Pro - VB.Net) ...
0
by: Sean | last post by:
I've been noticing that I seem to be "losing" the ability to compile inherited forms. The first couple debug starts are fine but occassionally the compiler complains of a variable or a control that...
2
by: Robert Smith | last post by:
Hello, I have a problem with inherited forms in my solution. I have one project with my base forms in and another (my main project) with my inherited forms in it. There are times when I load the...
2
by: Jeff Levinson [mcsd] | last post by:
I guess I would have to know what you mean by "not being able to edit the forms". Does this mean you get an error in the designer when you try to display an inherited form? Does this mean the...
3
by: Jeff User | last post by:
Hello I am using C#, .net1.1 Vis Studio 2003 I am using homeBase.aspx.cs page as a base for several other aspx/aspx.cs web pages. The base page handles some operations that are common to all...
0
by: Tony Johansson | last post by:
Hello! I have a very specific question and that is about how to inherit a visual control for example the control System.Windows.Forms.TextBox without causing the environment to delete the...
0
by: Ed Sonneveld | last post by:
I am moving some of my VS 2003 projects to VS 2005. In my base library there is a baseform that is inherited by most forms in my application. The baseform in the library contains a protected...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.