C
Chua Wen Ching
Hi there. this is my codes in vb6:
private Action as integer
private sub button1_Click(index as integer)
Action = Index
End Sub
private sub picture1_mousedown(button as integer, shift as
integer, x as single, y as single)
if Action = 0 then
// draw a square here
end if
if Action = 1 then
// draw a circle
end if
if Action = 2 then
// draw a fillbox
end if
end sub
Yeah.. something like that...
Any help! How will you code that in c#?
In C#, i think it only can button1_click(object sender,
eventargs e)
Thanks.
Regards,
Chua Wen Ching
private Action as integer
private sub button1_Click(index as integer)
Action = Index
End Sub
private sub picture1_mousedown(button as integer, shift as
integer, x as single, y as single)
if Action = 0 then
// draw a square here
end if
if Action = 1 then
// draw a circle
end if
if Action = 2 then
// draw a fillbox
end if
end sub
Yeah.. something like that...
Any help! How will you code that in c#?
In C#, i think it only can button1_click(object sender,
eventargs e)
Thanks.
Regards,
Chua Wen Ching