S
Selen
How can I run dropdownlist_SelectedIndexChanged event on form load?
Thanks
Thanks
How can I run dropdownlist_SelectedIndexChanged event on form load?
Marcin said:Hi Selen
There is a good practise to write a method that will handle whole
work for event/events.
So you can write your own method e.g.:
private void DropDownListSelectedIndexChangedWork() {
// your code here
}
so you can call this method in *SelectedIndexChanged* handle:
private void dropdownlist_SelectedIndexChanged(object sender
, EventArgs e) {
this.DropDownListSelectedIndexChangedWork();
}