Jump to content

Recommended Posts

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.