c# - taking objects from a list box to another form by pressing a button -


i have listbox add words to, on next page want able press guess button , shall bring 1 of words up. code this?

private void btnguess_click(object sender, eventargs e) {  }  private void randomnumber() {     random rand = new random();     //randomword = wordbank[rand.next(0, (wordbank))]; }  public static void main(string[] args) {     //string s = arraylist[rand.next(arraylist.count)]; } 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -