Problems with picturebox - 08-13-2005 , 06:12 AM
first, sorry for my BAD english.
I come from the JAVA pogramming and now I try to programming in J#. M
problem, I have 3 classes, a ControlClass(with a button) and
ViewClass(with a picturebox, declared as public) and the MainClass(
form that contains the ControllClass and the ViewClass).
With the button i will change the image in the picturebox, but i
//here some code from the ControllClass
public Forum.View view;
view = new Forum.View();
private void button1_Click (Object sender, System.EventArgs e)
The problem, the picturebox will not update/repaint.
I hope there is anybody with a god idea.
thanks for your help
the attachment-function dosn't work, so i can't show you the ful
RE: Problems with picturebox - 08-15-2005 , 03:41 AM
If you wish to force a picturebox to repaint itself, call Refresh() on it,
If this does not work, make sure that the pictureBox is visible on the
MainClass form - one quick way to check this is to set the BackColor property
of the pictureBox to Color.Red, so that if it is rendered on the form, you
will be able to see it.
Sushovan, a crazy junior
|Thread Tools||Search this Thread|