473,800 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visually Editing Panels and DesignerAttribu tes

I've just started working with some people that have an odd setup and
I'm wondering if someone can point out a better way of doing things (or
what I'm doing wrong).

They have a base form class, derived from the standard Form, but with
the ability to show a list of panels in order.

Each of these panels is a subclass of a subclass of Panel. The initial
subclass is tweaked to work with the special form and then each
subclass of that is what will actually be displayed on the special
form.

This all works fine, but because there is no visual editor for panels
in VS.NET they've taken to going into the panel code, changing the
superclass from PanelSpecial to Form, editing the form visually and
then changing the superclass back to PanelSpecial again.

I'm fairly new to C#, but some digging around made me think that
putting this attribute into the PanelSpecial class would mean that the
subclasses could be edited as if they were forms (without all that
tedious setting/resetting of the superclass).

[Designer("Syste m.Windows.Forms .Design.Documen tDesigner,
System.Windows. Forms.Design.DL L",
typeof(IRootDes igner)),
DesignerCategor y("Form")]

However this doesn't work at all (I get an "unable to find a designer"
error), although by playing around with it I've been able to make it
display the component editing designer but this isn't actually very
useful.

Can anyone suggest either a way to make the visual editing of panels
work ok, or an alternative architecture which would allow GUI editing?

Thanks,

Andy D

Nov 16 '05 #1
1 1996
They should create a subclass of UserControl, place a Panel on it, and then
add their special code from there. You can graphically design UserControls.

JIM
"AndrewDuck er" <an****@ducker. org.uk> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I've just started working with some people that have an odd setup and
I'm wondering if someone can point out a better way of doing things (or
what I'm doing wrong).

They have a base form class, derived from the standard Form, but with
the ability to show a list of panels in order.

Each of these panels is a subclass of a subclass of Panel. The initial
subclass is tweaked to work with the special form and then each
subclass of that is what will actually be displayed on the special
form.

This all works fine, but because there is no visual editor for panels
in VS.NET they've taken to going into the panel code, changing the
superclass from PanelSpecial to Form, editing the form visually and
then changing the superclass back to PanelSpecial again.

I'm fairly new to C#, but some digging around made me think that
putting this attribute into the PanelSpecial class would mean that the
subclasses could be edited as if they were forms (without all that
tedious setting/resetting of the superclass).

[Designer("Syste m.Windows.Forms .Design.Documen tDesigner,
System.Windows. Forms.Design.DL L",
typeof(IRootDes igner)),
DesignerCategor y("Form")]

However this doesn't work at all (I get an "unable to find a designer"
error), although by playing around with it I've been able to make it
display the component editing designer but this isn't actually very
useful.

Can anyone suggest either a way to make the visual editing of panels
work ok, or an alternative architecture which would allow GUI editing?

Thanks,

Andy D

Nov 16 '05 #2

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

Similar topics

0
1525
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First International Conference on Open Source Systems, OSS2005", to be held in Genova, Italy from the 11th to the 15th of July 2005.
1
7680
by: pfnus | last post by:
Hi, I want to display different forms when the buttons are clicked and all the forms are having different controls on it. So instead of adding new windows forms to the project, i enlarged the form and used many panels on the same form, which i think is easier to manage. However, i am having problems. Should i need to put the panels on the same location on the design layout? i put the panels at different places and it doesn't get...
2
1576
by: Garry Jones | last post by:
I asked this earlier and received a tip of going to Joomla. Problem is according to the gurus in their forums I need to rewrite the entire site so that Joomla becomes the core. As I am on 700+ pages its not practical as I only need to open up two pages for user editing. I have a website consisting of pages made up of php segments using the include statement. The top, left and right panels are static and the text in the center changes...
1
4784
by: Ben | last post by:
Hi We have a number of Panels on our windows form, we have controls inside and outside of the panels. I am having problems tabbing between controls, it appers to be when the controls are within panels: It will tab though the controls outside the panels and then, tab into the panels. I have also tried setting the tab index at design time.
0
10275
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
10253
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
9085
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...
0
6811
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();...
0
5471
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
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
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.