F
Flair
I add an pictureBox control in Form1, then in Form1(), after
InitializeComponent(); this line of code:
g = this.pictureBox.CreateGraphics();
//g is a private member declared as: private Graphics g;
raise an exception says:
"An unhandled exception of type 'System.NotSupportedException' occurred in
System.Windows.Forms.dll
Additional information: NotSupportedException"
Can anybody help me what's going wrong? TIA
InitializeComponent(); this line of code:
g = this.pictureBox.CreateGraphics();
//g is a private member declared as: private Graphics g;
raise an exception says:
"An unhandled exception of type 'System.NotSupportedException' occurred in
System.Windows.Forms.dll
Additional information: NotSupportedException"
Can anybody help me what's going wrong? TIA