• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call a public method from another form

 
D. Formenton
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

I have a main form "MainMenu" form and another modal form "People" (started from MainMenu).

The question is:

It is possible (and how!) to call a public method of MainMenu from People form?

thank you

Domenico
 
Reinaldo de Carvalho
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. when you to create the second form, pass to it the "MainMenu" and keep this reference.
 
D. Formenton
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you and good new year!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic