[Gambas-user] Form.Show by name as string of form
Jussi Lahtinen
jussi.lahtinen at ...626...
Mon Apr 28 16:43:35 CEST 2014
Private hMyForms As New Collection()
hMyForms.Add(Form_name_1,"Form_name_1")
hMyForms.Add(Form_name_2,"Form_name_2")
hMyForms.Add(Form_name_3,"Form_name_3")
...
hMyForms["Form_name_1"].Show()
Jussi
On Mon, Apr 28, 2014 at 10:54 AM, abbat81 <abbat.81 at ...787...> wrote:
> Hi,
>
> I have a four forms in my project:
> Form_name_1
> Form_name_2
> Form_name_3
> Form_name_4
> Form_name_5
>
>
> How can I show a form by name of a form by string.
>
> Public Sub Button1_Click()
>
> Dim Form_name As String = "Form_name_2"
>
> Form_name.Show
>
> End
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list