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

ControlDesigner for TabControl

I would like to write a designer verb for a class I have that inherits from
TabControl. I figure the only way to do that without breaking the special
designer stuff that works for TabControl would be to inherit from whatever
Designer class is currently used for the TabControl. But I can't find out
what that is. There must be one... I would hope it wouldn't be sealed...
anyone know what it's called or how to get information about it? Or know of
another way to go about this?

-Rachel
Nov 17 '05 #1
4 6640
First, quickly go to http://www.aisto.com/roeder/dotnet/ and download
the greatest .Net utility ever, Lutz Roeder's Reflector.

Then run it, and navagate to "System.Windows.Forms.TabControl".
Right-click and choose "Disassembler". Read the information you desire
("System.Windows.Forms.Design.TabControlDesigne r, System.Design,
Version=1.0.5000.0") from the new panel.
--
--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

"Rachel Suddeth" <ra****@bldhound.com> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
I would like to write a designer verb for a class I have that inherits from TabControl. I figure the only way to do that without breaking the special
designer stuff that works for TabControl would be to inherit from whatever
Designer class is currently used for the TabControl. But I can't find out
what that is. There must be one... I would hope it wouldn't be sealed...
anyone know what it's called or how to get information about it? Or know of another way to go about this?

-Rachel

Nov 17 '05 #2
Ugh. It's not sealed, but has "internal" visibility, so I don't think I can
inherit from it.

"James Curran" <ja*********@mvps.org> wrote in message
news:eD**************@TK2MSFTNGP14.phx.gbl...
First, quickly go to http://www.aisto.com/roeder/dotnet/ and download
the greatest .Net utility ever, Lutz Roeder's Reflector.

Then run it, and navagate to "System.Windows.Forms.TabControl".
Right-click and choose "Disassembler". Read the information you desire
("System.Windows.Forms.Design.TabControlDesigne r, System.Design,
Version=1.0.5000.0") from the new panel.
--
--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

"Rachel Suddeth" <ra****@bldhound.com> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
I would like to write a designer verb for a class I have that inherits

from
TabControl. I figure the only way to do that without breaking the special designer stuff that works for TabControl would be to inherit from whatever Designer class is currently used for the TabControl. But I can't find out what that is. There must be one... I would hope it wouldn't be sealed...
anyone know what it's called or how to get information about it? Or know

of
another way to go about this?

-Rachel


Nov 17 '05 #3
http://dotnetrix.co.uk/tabcontrols.html -->Tabcontrol using custom tabpages.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rachel Suddeth" <ra****@bldhound.com> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
I would like to write a designer verb for a class I have that inherits from
TabControl. I figure the only way to do that without breaking the special
designer stuff that works for TabControl would be to inherit from whatever
Designer class is currently used for the TabControl. But I can't find out
what that is. There must be one... I would hope it wouldn't be sealed...
anyone know what it's called or how to get information about it? Or know
of
another way to go about this?

-Rachel

Nov 17 '05 #4
Bless you, Mick, this is perfect. I was looking at doing something like this
(inheriting from ParentControlDesigner) but was afraid my boss would think
it was too big a job & wouldn't let me (could've done enough to get by with
standard TabPages plus an ExtenderProvider or two, but that would've been
awkward.) But with sample code, it's a no-brainer to do it the right way :-)

And you give me code to copy for the cancelable SelectedIndexChanging event
that we were going to have to write anyway (can't think why that wasn't
supplied in the first place - seems like an obvious need.) I could just kiss
you!
(shhh, don't tell my husband i said that)

-Rachel
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
http://dotnetrix.co.uk/tabcontrols.html -->Tabcontrol using custom tabpages.
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Rachel Suddeth" <ra****@bldhound.com> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
I would like to write a designer verb for a class I have that inherits from TabControl. I figure the only way to do that without breaking the special designer stuff that works for TabControl would be to inherit from whatever Designer class is currently used for the TabControl. But I can't find out what that is. There must be one... I would hope it wouldn't be sealed...
anyone know what it's called or how to get information about it? Or know
of
another way to go about this?

-Rachel


Nov 17 '05 #5

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

Similar topics

5
by: Tamir Khason | last post by:
How be able to manage more deeply UI of TabControl and TabPage For example - I want to manage border color, change color of TabPage reef, eliminate spaces from both sides of the reef, so I bould...
2
by: Patrick McGuire | last post by:
I want to place a tabControl with almost identical properties on several forms. I think the best way is to define a UserControl that inherits System.Windows.Forms.TabControl, and place all my...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
5
by: Zadkin | last post by:
Does anyone know, if it's possible to set the orientation of the tabpagebuttons to horizontal instead of vertical when the alignment property of my tabcontrol is set to left or right? Thanks in...
0
by: Vincent Scheel | last post by:
Hello everyone, I've build a CompositeControl (a photogallery) which has a few properties (number of rows, number of columns). The control has a designer which extends the ControlDesigner class....
1
by: Joe | last post by:
I'm working on a usercontrol, and an associated ControlDesigner for it. In the designer, when I mouse over a particular area of the usercontrol, I want to change the cursor from the standard...
2
by: mohit | last post by:
Hello, I am making a custom control which places some restrictions on the value of Text property of the control. While debugging i noticed that when the control is drag-dropped on a form during...
1
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two tabpages. When I set tab control's Alignment property to Right, tab texts (captions) disappear. Does anybody...
0
by: bertie78 | last post by:
Hi all, New poster here! I'm having some difficulty updating a tabcontrol cross-threads. The general idea is : the main thread is the owner of the tab control and the form controls. However, due...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.