Hi,
I've got a problem. I've got a class called haupt and another class called neben. In the neben class there is a pictureBox item and I want to draw a line into it.
Therefor I write in haupt: neben* p_neben = new neben();
neben.start();
in the start method i write this -> Show(); and after that I initialize graphics (p_graphics) and pen (p_pen). But if I try to draw a line by writing p_graphics -> DrawLine(p_pen, 24, 0, 24, 210); noting will happen. And if I write this into the pictureBox1_Click(...) method the line is drawn. Can anybody explain this to me?
thx
I've got a problem. I've got a class called haupt and another class called neben. In the neben class there is a pictureBox item and I want to draw a line into it.
Therefor I write in haupt: neben* p_neben = new neben();
neben.start();
in the start method i write this -> Show(); and after that I initialize graphics (p_graphics) and pen (p_pen). But if I try to draw a line by writing p_graphics -> DrawLine(p_pen, 24, 0, 24, 210); noting will happen. And if I write this into the pictureBox1_Click(...) method the line is drawn. Can anybody explain this to me?
thx