S
Stefan Richter
I want to paint some bars, as soon as a button get klicked.
My Paint Method has this signature:
Private Sub PaintChart(ByVal sender As Object, ByVal e As PaintEventArgs,
ByVal insolvent As Decimal, ByVal days30 As Decimal, ByVal days60 As
Decimal, ByVal days90 As Decimal, ByVal current As Decimal)
Means it needs to get a PaintEventArgs to work.
My Button Click Method has this signature:
Private Sub view_something_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles view_something.Click
In this method, I want to call my PaintChart method, because only then I
know all local parameters.
(okay, one solution would be to make all parameters global, but I doubt that
that was any good...)
PaintChart(sender, PaintEventArgs , insolvent, days30, days60, days90,
current)
Now the problem is, when I add the PaintEventArgs Event to my Click method,
then the signature doesnt fit anymore.
Have I got to do my own Handler, or how can that be solved???
(And how do I make one, if necessary)
Thanks,
Stefan
My Paint Method has this signature:
Private Sub PaintChart(ByVal sender As Object, ByVal e As PaintEventArgs,
ByVal insolvent As Decimal, ByVal days30 As Decimal, ByVal days60 As
Decimal, ByVal days90 As Decimal, ByVal current As Decimal)
Means it needs to get a PaintEventArgs to work.
My Button Click Method has this signature:
Private Sub view_something_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles view_something.Click
In this method, I want to call my PaintChart method, because only then I
know all local parameters.
(okay, one solution would be to make all parameters global, but I doubt that
that was any good...)
PaintChart(sender, PaintEventArgs , insolvent, days30, days60, days90,
current)
Now the problem is, when I add the PaintEventArgs Event to my Click method,
then the signature doesnt fit anymore.
Have I got to do my own Handler, or how can that be solved???
(And how do I make one, if necessary)
Thanks,
Stefan