[Mono-list] Error System.Windows.Forms.TabControl:

Enrique Garcia Ayuda kikegayuda at gmail.com
Thu Feb 16 11:27:43 EST 2006


Hi

this.tabOperation.SelectedIndex = 0;

This code fails

Regards



this.components = new System.ComponentModel.Container();

            System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(DefaultContentManager));

            this.lstImages = new System.Windows.Forms.ImageList(
this.components);

            this.tabOperation = new System.Windows.Forms.TabControl();

            this.SuspendLayout();

                //
            // lstImages
            //
            this.lstImages.ColorDepth =
System.Windows.Forms.ColorDepth.Depth32Bit;

            this.lstImages.ImageSize = new System.Drawing.Size(16, 16);

            this.lstImages.ImageStream = ((
System.Windows.Forms.ImageListStreamer)(resources.GetObject("
lstImages.ImageStream")));

            this.lstImages.TransparentColor =
System.Drawing.Color.Transparent;
            //
            // tabOperation
            //
            this.tabOperation.Alignment =
System.Windows.Forms.TabAlignment.Bottom;
            this.tabOperation.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabOperation.ImageList = this.lstImages;
            this.tabOperation.ItemSize = new System.Drawing.Size(0, 19);
            this.tabOperation.Location = new System.Drawing.Point(0, 0);
            this.tabOperation.Multiline = true;
            this.tabOperation.Name = "tabOperation";
            this.tabOperation.Padding = new System.Drawing.Point(0, 0);
            Trace.WriteLineIf(TraceConstants.TraceLevel.TraceError, "
Befores SelectedIndex", TraceConstants.ERROR);
            this.tabOperation.SelectedIndex = 0;
                Trace.WriteLineIf(TraceConstants.TraceLevel.TraceError, "
SelectedIndex", TraceConstants.ERROR);

2006/2/16, Jonathan S. Chambers <Jonathan.Chambers at ansys.com>:
>
>  Please file a bug with sample code, or at least paste the sample code
> here.
>
>
>
> Thanks,
>
> Jonathan
>
>
>  ------------------------------
>
> *From:* mono-list-bounces at lists.ximian.com [mailto:
> mono-list-bounces at lists.ximian.com] *On Behalf Of *Enrique Garcia Ayuda
> *Sent:* Thursday, February 16, 2006 10:55 AM
> *To:* mono-list at lists.ximian.com
> *Subject:* [Mono-list] Error System.Windows.Forms.TabControl:
>
>
>
>
> Hi I get the error:
>
>
> System.ArgumentOutOfRangeException: ControlCollection does not have that
> many controls Parameter name: index 0 in <0x0010a>
> System.Windows.Forms.Control+ControlCollection:get_Item (Int32 index) in
> <0x00021> System.Windows.Forms.TabControl:GetTab (Int32 index) in (wrapper
> remoting-invoke-with-check) System.Windows.Forms.TabControl:GetTab (int)
> in <0x00013> System.Windows.Forms.TabControl+TabPageCollection:get_Item(Int32 index) in <0x000da>
> System.Windows.Forms.TabControl:set_SelectedIndex (Int32 value) in
> (wrapper remoting-invoke-with-check)
> System.Windows.Forms.TabControl:set_SelectedIndex (int) in <0x002c8>
> BIBM.Tpnet.App.Win.Container.ContentManager.DefaultContentManager:InitializeComponent() ControlCollection does not have that many controls Parameter name: index
> 0
>
> Regards
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060216/06e94837/attachment.html


More information about the Mono-list mailing list