473,831 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Derived from Form, how to make VS08 open in Editor

tlhintoq
3,525 Recognized Expert Specialist
So I've created my own class SmartForm, derived from Form...
public partial class SmartForm : Form
It contains methods for things like remembering position, fading in or out, logging and so on. If I open the original SmartForm Visual Studio knows to open it in the right Forms Designer and I can add controls at design time.

But, if I create a new form, and change it so it is derived from SmartForm...
public partial class PicFrame : SmartForm
Then Visual Studio doesn't know what to do with it. I can work around this by manually changing the :SmartForm to :Form for doing design work, then back again, but that's a pain after a while.

Does anyone know how I can tell Visual Studio that a SmartForm is to be openned with the Forms Designer?

-Clint
Jun 6 '08 #1
1 1121
Plater
7,872 Recognized Expert Expert
I am not entirely sure this is possible. Can't recall as ever seeing in done. Maybe there is some kind of [ ] proeprty-element that can be applied to the class?

Aside from a bit of annoyance at having to keep changing it back and forth. Is there really anything pivital you need in the designer view that would come from the SmartForm class?
Jun 9 '08 #2

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

Similar topics

4
4455
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most part, the scripts were created with http://phpcodegenie.sourceforge.net/
10
2392
by: Eric J. Smith | last post by:
I am attempting to add an Editor attribute to an IListSource derived class (specifically it's a typed DataSet). It appears that IListSource over rules any Editor attribute. Is there any way that I can get my Editor attribute to be used? Any help is greatly appreciated! Eric J. Smith
4
6080
by: Paradox | last post by:
Hey, I'm trying to figure out what situations call for the use of a derived form control such as: public class myListBox : System.Windows.Forms.ListBox and what situations call for the use of a Custom User Control, generated by adding a new Custom User Control to a project with VS.NET.
10
6779
by: Dave Taylor | last post by:
I have a VB.NET WinForms project that has about 15 forms in it. When I opened the project yesterday, one of the form files does not open as a form (i.e. double-clicking it in Solution Explorer opens up the code file, not the form designer). Also, it does not appear to recognize the code file....there are no outlining indicators, typing in the code file there is no Intellisense stuff, and the code does not compile saying that it doesnt...
0
1915
by: Deepak C.G via .NET 247 | last post by:
I want to dispose the image object in my child form, unless I won't dispose this object i can't delete the image file in my folder. I get this error in MDIparent form "An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll" "Additional information: Invalid parameter used." Here is my code:-
8
2319
by: TomC | last post by:
I want to bypass the Windows Form Designer in VS, to create a form programmatically. The elements of the form are to be arranged in a table, and I want the size of the table (and therefore the number of elements) to be determined at runtime, so dragging and dropping on the Form Designer won't cut the mustard. I'm coming from a Java background, and have almost always built my GUI's programmatically, but I realize that in C# this practice...
0
772
by: Taco | last post by:
Currently, I am using VS05 Pro and have really come to love this little feature (instead of uploading, clearing cache, opening IE). I was wondering if this little feature, or its new equivalent, is now being offered in VS08 Express.
1
2798
by: subramanian100in | last post by:
Consider class Base { .... }; class Derived : public Base { ...
2
1440
tlhintoq
by: tlhintoq | last post by:
So I was setting up guidelines in the text editor of Visual Studio. It's a little trick done through the registry. You add a key, then a string with a list of all the placements of your guidelines. http://files.me.com/tlhintoq/lop8xc Here's the weird part... take a close look at line 8. The lines with the class header don't line up on the 5th character position. This is a monospaced font, yet this line is offset by PART of a character...
0
9642
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10494
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10534
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10207
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9317
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7748
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4416
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
2
3963
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.