*You can't directly access the ListBox but you can pass a variable so in FMain try this: - *Public sTextForListBox As String[] Public Sub Button1_Click() Form1.Show ListBox1.List = sTextForListBox End *In your Form1 enter this: - *Public Sub Form_Open() FMain.sTextForListBox = ["Hello World", "London", "New York", "The end of the world"] End
-- View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55457.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user