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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With