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

Milind Patil milindpa at dpsl.net
Fri Jan 21 00:11:42 EST 2005


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.



More information about the Mono-devel-list mailing list