What is the method in C# like the method - "repaint()" in JAVA???
-
I was trying to built a "Paint" program that can paint that user wants to paint. but the thing is when my form is minimized or another form is selected over my form the painted portion is removed. In java , i know that if i use "repaint()" function the it as ok, but what to do with C#. sorry for my english. plz help me urgent. Thanks Mahbub-E-Rababni [Tafin]
-
I was trying to built a "Paint" program that can paint that user wants to paint. but the thing is when my form is minimized or another form is selected over my form the painted portion is removed. In java , i know that if i use "repaint()" function the it as ok, but what to do with C#. sorry for my english. plz help me urgent. Thanks Mahbub-E-Rababni [Tafin]
-
thanks:thumbsup: OnPaint() can only paint the base form, i can not paint on a panel or a picturbox....what to do??? thanks. Mahbub-E-Rabbani [TAFIN] Bangladesh
TAFIN wrote:
OnPaint() can only paint the base form, i can not paint on a panel or a picturbox
Since when? Every control has it's own Paint event.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
TAFIN wrote:
OnPaint() can only paint the base form, i can not paint on a panel or a picturbox
Since when? Every control has it's own Paint event.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
i took a form and then a picturebox. i wanted to piant on the picture box that will stay if the form is minimized of sent to back of other forms. the **Event OnPaint()**is used for the base Form Form1 but not for picturebox...and does the Event paint() of picturebox does that waht i want!!! thanks. mahbub-E-Rabbani [TAFIN] Bangladesh
-
i took a form and then a picturebox. i wanted to piant on the picture box that will stay if the form is minimized of sent to back of other forms. the **Event OnPaint()**is used for the base Form Form1 but not for picturebox...and does the Event paint() of picturebox does that waht i want!!! thanks. mahbub-E-Rabbani [TAFIN] Bangladesh
Then use the PictureBox.Paint event - if you must use a picture box at all, rather than painting on the form directly. If you Google for "PictureBox.Paint" the first link is the MSDN example of how to paint on a picturebox[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
Then use the PictureBox.Paint event - if you must use a picture box at all, rather than painting on the form directly. If you Google for "PictureBox.Paint" the first link is the MSDN example of how to paint on a picturebox[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
I was trying to built a "Paint" program that can paint that user wants to paint. but the thing is when my form is minimized or another form is selected over my form the painted portion is removed. In java , i know that if i use "repaint()" function the it as ok, but what to do with C#. sorry for my english. plz help me urgent. Thanks Mahbub-E-Rababni [Tafin]
C# repaint equivalent is Invalidate.
Life is a stage and we are all actors!