473,573 Members | 4,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2200
"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 "BaseFormVi ew" 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
1005
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 SelectionStart and SelectionLength values I assign in my OnKeyPress event. Here is a snippet of my code. The Application.DoEvents() funcs are just so...
0
2219
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 handles inheritance. Environment: OS Name Microsoft Windows 2000 Professional Version 5.0.2195 Service Pack 4 Build 2195 Microsoft Visual...
13
2216
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) Whilst playing with inherited forms, I created a simple base form containing a single button. I set this buttons' Click event to be public...
0
974
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 is inherited is missing in the inherited form. I know this is a bug, as I'm not altering the code at all inbetween restarts. The solution is to...
2
1396
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 solution the .resx part of my inherited forms is not visible and an error occurs when you try and go into design mode with these forms. re-booting...
2
290
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 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...
3
1778
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 pages. like this: somepage... public class homeBase : System.Web.UI.Page .... then other pages.....
0
1589
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 control when there are some compile errors. It's the same problem with any visual control that you inherit. The control is deleted as soon as you use the...
0
1039
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 untyped Dataset, containing one table. In the designer for the inherited forms, I then add specific columns and other tables to the inherited dataset. ...
0
7741
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7661
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8167
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7730
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6349
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5550
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2164
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.