Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Graphs disappear from panel Pin
Calin Tatar5-Mar-09 11:27
Calin Tatar5-Mar-09 11:27 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 11:54
StuffyEst5-Mar-09 11:54 
GeneralRe: Graphs disappear from panel Pin
Calin Tatar5-Mar-09 12:07
Calin Tatar5-Mar-09 12:07 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 12:24
StuffyEst5-Mar-09 12:24 
AnswerRe: Graphs disappear from panel Pin
Luc Pattyn5-Mar-09 12:06
sitebuilderLuc Pattyn5-Mar-09 12:06 
GeneralRe: Graphs disappear from panel Pin
StuffyEst5-Mar-09 12:26
StuffyEst5-Mar-09 12:26 
AnswerRe: Graphs disappear from panel Pin
S K Y5-Mar-09 13:54
S K Y5-Mar-09 13:54 
GeneralRe: Graphs disappear from panel Pin
StuffyEst10-Mar-09 0:38
StuffyEst10-Mar-09 0:38 
God took ages to find my post ..

Anyway I've made some progress and still stuck on other part.

I have 3 different functions, one for graphic, second for graphic and third for axis.

I solved the paint problem with Axis, since its static and never changes, so it was quite easy to convert to paint event. On the other hand, graphs have both 2 parameters that they receive and the graph changes after that according to the values given.

Example : public void JoonistaGraafik(int k1, int k2)

now when I want to make it to paint event "public void JoonistaGraafik(object sender,PaintEventArgs e, int k1, int k2)"

I have problem calling out in InitializeComponents();

this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));

the thing is that, my two values "slider_a" and "slider_b" are generated in the trackbar_scroll event and then JoonistaGraafik(slider_a, slider_b); was called out.

I'm pretty bad in explaining, but I hope that made a bit sence.

In conclusion, the question is, how can I call out
"this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));"

if the slider_a and slider_b values have to change when I move the trackbar.

Thanks, and sorry for not replying so fast.
QuestionEvent Question Pin
E_Gold5-Mar-09 9:31
E_Gold5-Mar-09 9:31 
AnswerRe: Event Question Pin
Christian Graus5-Mar-09 9:45
protectorChristian Graus5-Mar-09 9:45 
AnswerRe: Event Question Pin
Eslam Afifi5-Mar-09 9:48
Eslam Afifi5-Mar-09 9:48 
GeneralRe: Event Question Pin
Yusuf5-Mar-09 10:11
Yusuf5-Mar-09 10:11 
GeneralRe: Event Question Pin
Eslam Afifi5-Mar-09 12:55
Eslam Afifi5-Mar-09 12:55 
GeneralRe: Event Question Pin
E_Gold5-Mar-09 10:12
E_Gold5-Mar-09 10:12 
GeneralRe: Event Question Pin
Yusuf5-Mar-09 10:22
Yusuf5-Mar-09 10:22 
AnswerRe: Event Question Pin
DaveyM695-Mar-09 10:21
professionalDaveyM695-Mar-09 10:21 
GeneralRe: Event Question Pin
E_Gold5-Mar-09 10:31
E_Gold5-Mar-09 10:31 
GeneralRe: Event Question Pin
Christian Graus5-Mar-09 12:43
protectorChristian Graus5-Mar-09 12:43 
GeneralRe: Event Question Pin
_Maxxx_5-Mar-09 14:09
professional_Maxxx_5-Mar-09 14:09 
GeneralRe: Event Question Pin
DaveyM696-Mar-09 1:03
professionalDaveyM696-Mar-09 1:03 
GeneralRe: Event Question Pin
E_Gold7-Mar-09 19:16
E_Gold7-Mar-09 19:16 
Question2 way Remoting from client to installed service and Access Denied issue Pin
carbon_golem5-Mar-09 7:16
carbon_golem5-Mar-09 7:16 
AnswerRe: 2 way Remoting from client to installed service and Access Denied issue Pin
led mike5-Mar-09 9:01
led mike5-Mar-09 9:01 
GeneralRe: 2 way Remoting from client to installed service and Access Denied issue Pin
carbon_golem5-Mar-09 9:11
carbon_golem5-Mar-09 9:11 
AnswerRe: 2 way Remoting from client to installed service and Access Denied issue - SOLVED Pin
carbon_golem5-Mar-09 9:03
carbon_golem5-Mar-09 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.