Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get previous control in c#

how to get previous control in c#

there is a method to GetNextControl but there is no method to get previous control can any body tell me how could i get this

thanx in advance

like image 342
Haider Ali Wajihi Avatar asked Dec 10 '22 07:12

Haider Ali Wajihi


1 Answers

GetNextControl(Control control, bool forward) you can specify if you want to get the control forward or backward. For instance to get the backward control of button1, you can do:

Control previous = GetNextControl(button1, false);//false indicates backward
like image 93
Jalal Said Avatar answered Jan 03 '23 11:01

Jalal Said