[IronPython] IronPython WinForms

Dino Viehland dinov at exchange.microsoft.com
Sun Apr 2 15:07:40 PDT 2006


This is the code the VSIP SDK generates w/ the IronPython integration sample:

self._menuStrip1 = System.Windows.Forms.MenuStrip()
            self._fileToolStripMenuItem = System.Windows.Forms.ToolStripMenuItem()
            self._menuStrip1.SuspendLayout()
            self.SuspendLayout()
            #
            # menuStrip1
            #
            self._menuStrip1.Items.AddRange(System.Array[System.Windows.Forms.ToolStripItem]((self._fileToolStripMenuItem, )))
            self._menuStrip1.Location = System.Drawing.Point(0, 0)
            self._menuStrip1.Name = 'menuStrip1'
            self._menuStrip1.Size = System.Drawing.Size(292, 24)
            self._menuStrip1.TabIndex = 0
            self._menuStrip1.Text = 'menuStrip1'
            #
            # fileToolStripMenuItem
            #
            self._fileToolStripMenuItem.Name = 'fileToolStripMenuItem'
            self._fileToolStripMenuItem.Size = System.Drawing.Size(35, 20)
            self._fileToolStripMenuItem.Text = 'File'
            #
            # Form1
            #
            self.AutoScaleDimensions = System.Drawing.SizeF(6.0, 13.0)
            self.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
            self.ClientSize = System.Drawing.Size(292, 266)
            self.Controls.Add(self._menuStrip1)
            self.MainMenuStrip = self._menuStrip1
            self.Name = 'Form1'
            self.Text = 'Form1'
            self._menuStrip1.ResumeLayout(False)
            self._menuStrip1.PerformLayout()
            self.ResumeLayout(False)
            self.PerformLayout()

Obviously you don't need a lot of this though, and it's the code for all of InitializeComponent.


Do you want to help develop Dynamic languages on CLR?<http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038> (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
________________________________
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of dreshae at voila.fr
Sent: Sunday, April 02, 2006 10:00 AM
To: users at lists.ironpython.com
Subject: [IronPython] IronPython WinForms


Hello, my question is simple : How to create, with WinForms, a MenuBar ( or MainMenu ) ? with IronPython of course
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/users-ironpython.com/attachments/20060402/5f0625fd/attachment.htm


More information about the users mailing list