Hi the behavor of MS is to throw a argumentnullException if the referenz of TabPage is null. If the TabPage is not found or it is the last tab a Argumentoutofrangeexception is thrown
according to MSDN: http://msdn2.microsoft.com/en-us/library/xck4eb8y(VS.80).aspx i have patched the thing, sry for sending uncomplete Diff files, im just starting as developer :D hope this file meets the exceptions yours berni > -----Ursprüngliche Nachricht----- > Von: "Gert Driesen" <[EMAIL PROTECTED]> > Gesendet: 29.04.07 13:00:41 > An: <[email protected]> > Betreff: RE: [Mono-winforms-list] TabControl.cs Patch > > Berni, > > In DeselectTab (int) you should take into account that the deselected tab > might be the last or even the only tab, and verify the behaviour of MS. > > In DeselectTab (TabPage) and SelectTab (TagPage) you should take into > account that the specified tab was never added to the TabControl, and verify > the behaviour of MS. > > Do the exceptions you throw in SelectTab (string) and DeselectTab (string) > match those thrown by MS ? > > Can you also add unit tests for these methods ? > > Gert > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of berni x > Sent: zondag 29 april 2007 12:52 > To: [email protected] > Subject: [Mono-winforms-list] TabControl.cs Patch > > I have implemented 2 overloads of SelectTab ( with TabPage and String) And i > have implementeet 3 overloads of DeselectTab > > Hope this diffs is going to be commited > > berni > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. > Jetzt gleich testen! http://f.web.de/?mc=021192 > > > _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
TabControlDiff
Description: Binary data
_______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
