[IronPython] IronPython WinForms

dreshae at voila.fr dreshae at voila.fr
Tue Apr 4 08:37:37 CEST 2006



It works perfectly, thank you very much



> Message du 03/04/06 à 00h07
> De : "Dino Viehland" 
> A : "dreshae at voila.fr" , "Discussion of IronPython" 
> Copie à : 
> Objet : Re: [IronPython] IronPython WinForms
> 
> 
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)



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
>
> [ (pas de nom de fichier) (0.2 Ko) ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060404/45f150d4/attachment.html>


More information about the Ironpython-users mailing list