![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, first, sorry for my BAD english. I come from the JAVA pogramming and now I try to programming in J#. My problem, I have 3 classes, a ControlClass(with a button) and a ViewClass(with a picturebox, declared as public) and the MainClass(a form that contains the ControllClass and the ViewClass). With the button i will change the image in the picturebox, but it dosn't work. //here some code from the ControllClass //global declaration ... public Forum.View view; //Constructor ... view = new Forum.View(); //button1_click private void button1_Click (Object sender, System.EventArgs e) { view.pictureBox1.set_Image(Image.FromFile("pic.jpg ")); } The problem, the picturebox will not update/repaint. I hope there is anybody with a god idea. thanks for your help invio the attachment-function dosn't work, so i can't show you the full sourcecode -- indubidu |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |