Hello. I have a form with some objects. The goView has dock = fill. I have a function that scale the form with MouseWheel. I wish that my objects are also scaled automatically. What function
can I use?
Thats my code:
public Form1(){
InitializeComponent();
this.Controls.Add(view);
...
this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);
}
void Form1_MouseWheel(object sender, MouseEventArgs e){
SizeF a = new SizeF();
if (e.Delta>=0)
a.Width = a.Height = 2f;
else
a.Width = a.Height = 0.5f;
this.Scale(a);
}
And looks like this:
Thank you.
P.D. Sorry for my English