[Mono-devel-list] this.Controls.Add(this.button1) is not working

Peter Dennis Bartok peter at novonyx.com
Sat Jan 22 12:02:49 EST 2005


Depends on the control. UserControl is most certainly implemented, yes. 
P/Invokes to Win32 won't work, though.

Peter
-----Original Message-----
From: "Milind Patil" <milindpa at dpsl.net>
To: "Peter Dennis Bartok" <peter at novonyx.com>
Cc: <mono-devel-list at lists.ximian.com>
Date: 22 January, 2005 00:25
Subject: RE: [Mono-devel-list] this.Controls.Add(this.button1) is not 
working


>Hello Sir,
>  Can Mono support the User Control developed in C#.
>
>Milind
>
>
>Thanks And Regards,
>Milind D. Patil
>DX Technologies Pvt. Ltd.
>Plot No. 45, S. No. 199
>Royal Tower A, Viman Nagar
>Pune 411 014 (Maharashtra)
>Phone : +91 (20) 2663 4007/08/09  ext. 263
>Fax +91 (20) 26634222
>
>
>
>
>
>
>
>-----Original Message-----
>From: Peter Dennis Bartok [mailto:peter at novonyx.com]
>Sent: Friday, January 21, 2005 1:49 PM
>To: Milind Patil
>Cc: mono-devel-list at lists.ximian.com
>Subject: Re: [Mono-devel-list] this.Controls.Add(this.button1) is not
>working
>
>
>You are running an old version of System.Windows.Forms that is not support
>anymore.
>
>Please see http://www.mono-project.com/contributing/winforms.html for
>information on the new version, which, at this point, still has to be built
>from source. Also, be aware that the development effort is still underway
>and that it is not complete. However, the code you posted will work fine.
>
>Cheers,
>  Peter
>
>-----Original Message-----
>From: "Milind Patil" <milindpa at dpsl.net>
>To: "Rafael Teixeira" <monoman at gmail.com>
>Cc: <mono-devel-list at lists.ximian.com>
>Date: 21 January, 2005 00:49
>Subject: RE: [Mono-devel-list] this.Controls.Add(this.button1) is not
>working
>
>
>>Hi Rafael Teixeira,
>>   Thanks a lot for reply.
>> The Problem is not at the this.Controls.Add(this.button1).
>>
>>The Problem occurs at this point.
>>  this.button1.Text = "A"
>>while assigning the value to Text Property of controls of Windows Forms.
>>
>>Error Displayed :
>>
>>   The application has produced an exception , Press 'Continue' if you 
>> want
>>the application to try to .....
>>
>>   Object reference not set to an instance...
>>
>>Error Details :
>>
>>   in(unmanaged) (wrapper managed-to-native)
>>System.Drawing.GDIPlus.GdipDrawString
>>   (intptr,string,int,intptr,System.Drawing.RectangleF , intptr, intptr)
>>   in <0*00004>(wrapper managed-to-native)
>>System.Drawing.GDIplus.GdipDrawString
>>    ......
>>
>>
>>in :dc:IDC_FreeWindowDCE[0*1003]GetDC() without ReleaseDC()
>>....
>>
>>Regards
>>
>>Kumar
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Thanks And Regards,
>>Milind D. Patil
>>DX Technologies Pvt. Ltd.
>>Plot No. 45, S. No. 199
>>Royal Tower A, Viman Nagar
>>Pune 411 014 (Maharashtra)
>>Phone : +91 (20) 2663 4007/08/09  ext. 263
>>Fax +91 (20) 26634222
>>
>>
>>
>>
>>
>>
>>
>>-----Original Message-----
>>From: Rafael Teixeira [mailto:monoman at gmail.com]
>>Sent: Friday, January 21, 2005 12:14 AM
>>To: Milind Patil
>>Cc: mono-devel-list at lists.ximian.com
>>Subject: Re: [Mono-devel-list] this.Controls.Add(this.button1) is not
>>working
>>
>>
>>If you could send the error details, probably we could start to help you.
>>
>>
>>On Wed, 19 Jan 2005 15:52:12 +0530, Milind Patil <milindpa at dpsl.net> 
>>wrote:
>>>
>>>
>>> Hi,
>>>  I am developing the simple C# GUI Application with one button (button1)
>>on
>>> the Form.
>>>  when I compile it , it displays the error
>>>
>>> can anybody help me.
>>> ___________________________________
>>>
>>>
>>>
>>> Thanks And Regards,
>>> Milind D. Patil
>>> DX Technologies Pvt. Ltd.
>>> Plot No. 45, S. No. 199
>>> Royal Tower A, Viman Nagar
>>> Pune 411 014 (Maharashtra)
>>> Phone : +91 (20) 2663 4007/08/09  ext. 263
>>> Fax +91 (20) 26634222
>>>
>>>
>>>
>>>
>>>
>>
>>
>>--
>>Rafael "Monoman" Teixeira
>>---------------------------------------
>>I'm trying to become a "Rosh Gadol" before my own eyes.
>>See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
>>_______________________________________________
>>Mono-devel-list mailing list
>>Mono-devel-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> 




More information about the Mono-devel-list mailing list