I talked to one of the VS SDK guys and they haven't tested / used this scenario 
so it's likely you'll run into some issues with it.  What does work is 
consuming a user control that's been written in C# but unfortunately not in 
IronPython.

If you're feeling adventurous you could try creating a form and then just 
tweaking the Python code so that it inherits from UserControl instead of Form 
and see how far you get but I'd be a little amazed if it just worked :(.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of luis cota
Sent: Tuesday, September 11, 2007 9:33 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Creating GUI Controls with IronPython

I may be misunderstanding your response, or I misstated my question.  What I'd 
like to do is create a new User Control using the IronPython plugin for VS 
2005.  When I create a new project or add a new Item to my project, I cannot 
see User Control as an option, only a Form.  Is there a way around this so that 
I can select a User Control to be created insetad of a Form?

- Luis


On 9/11/07, [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> <[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
IIRC, there should be a drop-in control for "User Control", or the
appropriate reference needs to be "checked" in the toolbox options.

> I have downloaded the VS2005 Addin for IronPython (found on the msdn
> Blogs).  This is a fantastic way to have access to Intellisense for the
> .NET
> libraries.  I'd like to use this to create a few GUI controls, though
> cannot
> find this option when selecting Add New Item in the Solution Explorer.  It
> allows me to create a WinForm however.  Do any of you know how to take the
> auto-generated source for a WinForm and convert this to a User Control?
>
> Thanks,
>
> - Luis
> _______________________________________________
> Users mailing list
> [email protected]<mailto:[email protected]>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>

_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to