Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

how to change selected index of main form

$
0
0

Hi all ,

           I am calling a form from main form. and main form is hidden. 

when i want to go back to the main form then i want to use the same selected index of my list box.

so can any one tell me how to update the selected indx of main form.

i am closing seconf=d form as follow.

 case Keys.Escape:
                    MainForm.thisIsReturningFromShootingview = true;
                    MainForm.shootingViewPersonIndex= personListBox.SelectedIndex;
                   
                
                    this.Close();
                    break;

Thank you in advance.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>