I came very close to finding a solution to this problem; just one minor detail is missing at this moment.
What I'm trying to do:
I want to change the cursor style for each button in my form (Form1) through code. I know how to look for all the controls in my form using foreach, but I'm not sure how to pass this control as a parameter through the routine I wrote. I will show an example of what I am doing below.
private void Form1_Load(object sender, EventArgs e) { foreach (Button b in this.Controls) { ChangeCursor(b);
Maybe someone has a clue for me?
Thank you very much
Evan
user725913
source share