[Python.NET] Subclassing a subclassed Form

Gordon McKeown gordonm at uk.facilita.com
Tue Nov 4 13:56:11 EST 2003


If I create a new (Form) class using Visual Studio and then subclass it in
Python then I get "TypeError: no method matches given arguments" when

The new Form instance is created OK and the following returns true:
'isinstance(form, System.Windows.Forms.Form)'

The only differences from the working examples appear to be:

1. The parameter is an object subclassed from a class that is in turn
subclassed from System.Windows.Forms.Form. (The intermediate class is
written in C#).
2. The class I created is not in the GAC. It is loaded using

Has anybody any suggestions?


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2140 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythondotnet/attachments/20031104/6b044ddd/winmail.bin

More information about the PythonDotNet mailing list