Jump to content
Luis Marques

abrir form atraves de checkbox

Recommended Posts

Luis Marques

Boas, é assim pessoal... eu tenho numa form de menu inicial , uma checkbox... e quero fazer o seguinte,

se a checkbox tiver checked, ao abrir a por exemplo a form 3, abrir tambem a form 22.

codigo:

  If Form1.CheckBox1.CheckState = CheckState.Checked Then

            Form22.Show()

            Form22.Label4.Enabled = False

            Form22.Label5.Enabled = False

            Form22.Label6.Enabled = False

        End If

eu coloquei o IF no load da form 3, para mal que abrisse a form 3, se a checkbox que está na form1 tiver checker, abrir logo a form 22.

No entanto está a fazer mal, passo pela form3, quando retrocedo a form1, a form 22 abre, ou seja está a abrir na form 1 e nao na form3 como eu queria.

Alguem me pode ajudar.


LM

Share this post


Link to post
Share on other sites
Luis Marques

Já, era um conflito entre 2 forms por estarem as 2 em topmost, e eu verificava tudo menos isso.


LM

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.