Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / March 2006

Tip: Looking for answers? Try searching our database.

Add TabPage with key? (Framework 2.0, Winforms)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Armin Zingler - 26 Mar 2006 12:48 GMT
Hi group,

the TabControl.TabPages property now supports keys of type String to
identify a TagPage in the collection. I already have a Tabpage object and
I want to add it to the Tabcontrol using a key. How can I do this? I don't
find an overloaded version of the Add method where I can pass a TabPage
object and a key.

Armin
Kevin Spencer - 26 Mar 2006 18:19 GMT
The name property of the TabPage is the key. When you add the TabPage, you
also add the Key.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

> Hi group,
>
[quoted text clipped - 5 lines]
>
> Armin
Armin Zingler - 27 Mar 2006 10:25 GMT
> The name property of the TabPage is the key. When you add the
> TabPage, you also add the Key.

Ah ok, wasn't mentioned in the documentation. Confused not only me:

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=45102
34c-82f9-4024-8ec2-64d9dd5154c6


In opposite to the guy's opinion, IMO it would be sufficient to mention it
in the docs.

Armin
Kevin Spencer - 27 Mar 2006 20:56 GMT
Reading the Microsoft docs can be a difficult exercise. the more you do it,
however, the easier it gets. I'm sure they put a lot of thought into writing
them, but there is just so much they can write. As it is, the MSDN library
is several gigs in size. So, I accept it that there are some things not
documented very well. But the more I do it, I become more familiar with
their way of explaining things, and it gets a *little* easier!

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

>> The name property of the TabPage is the key. When you add the
>> TabPage, you also add the Key.
[quoted text clipped - 7 lines]
>
> Armin
Claes Bergefall - 28 Mar 2006 16:44 GMT
>> The name property of the TabPage is the key. When you add the
>> TabPage, you also add the Key.
[quoted text clipped - 7 lines]
>
> Armin

It actually is mentioned in the docs, but only in the Add(String, String...)
overloads.
It's also mentioned in the docs for the ContainsKey method

One can only guess why they didn't include that little remark in the
Add(String) overload too.

  /claes

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.