<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT size=2>Hi
Jill.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT size=2>Have a look
at the documentation where it describes using 'Assembly.LoadWithPartialName'. I
think you need to do something like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2> from CLR.System.Reflection import
Assembly</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2>
Assembly.LoadWithPartialName("MyColleaguesFile")<BR> from
CLR.MyColleaguesFile import MyColleaguesForm</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT size=2>Then you can
use the class natively. The above assumes that the assembly can be located in
the existing path (e.g. current working directory). If not, add its location to
sys.path. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT size=2>Also assumed
is that the namespace for the class is the same as the assembly file name. If
not, use the correct one in the third line above, e.g.
CLR.MyColleaguesNamespace.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203402514-11032004><FONT
size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> pythondotnet-bounces@python.org
[mailto:pythondotnet-bounces@python.org] <B>On Behalf Of </B>Jill-Connie
Lorentsen<BR><B>Sent:</B> 11 March 2004 04:16<BR><B>To:</B>
pythondotnet@python.org<BR><B>Subject:</B> [Python.NET] Showing modal ..NET
dialogs from Python<BR></FONT><BR></DIV>
<DIV></DIV>
<BLOCKQUOTE id=0>
<DIV><FONT size=2>I am new to this, so please excuse me if I'm not making
myself 100% clear.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>My colleague is writing a modal dialog using ..NET. I want
to show it from Python, but I can't figure out how. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I guess it'll be something like:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>import CLR</FONT></DIV>
<DIV><FONT size=2>import CLR.System.Windows.Forms as MyForm</FONT></DIV>
<DIV><FONT size=2>from MyColleaguesFile import MyColleaguesForm</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>MyForm = MyColleaguesForm</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>MyForm.Show()</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I've looked at the helloform, splitter and wordwin
examples, the mailinglist archive etc, but I feel like I'm missing
something. Is it even possible to do what I want to do?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Jill</FONT></DIV></BLOCKQUOTE>
<P><FONT size=2></FONT></P></BLOCKQUOTE></BODY></HTML>
<p><hr size=1><font face="Arial" size="2"> <a href="http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com"><b>
Yahoo! Messenger</b></a> - Communicate instantly..."Ping" your friends
today! <a href="http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com/download/index.html"><strong>Download Messenger Now</strong></a></font>