BeginInvoke metodu
Açıklaması şöyle
Şöyle yaparız.
Şöyle yaparız. Bir bileşene göre olan noktayı, ekranın sol üst koşesine göre olacak hale getirir. Bir bileşenin sol üst koşesi ekranın 300x400 noktasında olabilir.
Şöyle yaparız.
Açıklaması şöyle
Eğer nesne yaratılmadan çağrı yaparsak şu hatayı alırız.The Method executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.
Şöyle yaparız.Invoke or BeginInvoke cannot be called on a control until the window handle has been created
listView1.BeginInvoke(new Action(() =>
{
...
})
);
Invoke metoduŞöyle yaparız.
mainform.Invoke((MethodInvoker)(() => ...));
PointToScreen metoduŞöyle yaparız. Bir bileşene göre olan noktayı, ekranın sol üst koşesine göre olacak hale getirir. Bir bileşenin sol üst koşesi ekranın 300x400 noktasında olabilir.
Point mypoint = pictureBox1.PointToScreen(Point.Empty);SelectNextControl metodu
Şöyle yaparız.
private void btnStart_Click(object sender, EventArgs e)
{
Control p = ((Button)sender).Parent;
p.SelectNextControl(ActiveControl, true, true, true, true);
...
}
Hiç yorum yok:
Yorum Gönder