title: How do I put a performclick in an if statement
body: <p>I have a problem.</p>
  
  <p>I have 4 forms, 3 forms have the same button used for 1 form. I want to change the label in form 1 if one of these 3 forms button is pressed with performclick. But when I test it, it shows error "expression does not produce a value".</p>
  
  <p>Is there any way to avoid that?</p>
  
  <p>Here's my code:</p>
  
  <pre><code> If FormPetugas.Button2.PerformClick Then
          Label1.Text = "Kode Petugas"
          Label2.Text = "Nama Petugas"
          Label3.Text = "Jenis Kelamin"
          Label4.Text = "Alamat Petugas"
          Label5.Text = "Nomor Telpon"
          Label6.Text = "Username"
          Label7.Text = "Password"
          Label8.Text = "Hak Akses"
  
          ComboBox1.Items.Clear()
          ComboBox1.Items.Add("Laki-laki")
          ComboBox1.Items.Add("Perempuan")
  
          ComboBox2.Items.Clear()
          ComboBox2.Items.Add("Administrasi")
          ComboBox2.Items.Add("User Terpercaya")
          ComboBox2.Items.Add("User Biasa")
      ElseIf FormKaryawan.Button2.PerformClick Then
          Label1.Text = "Kode Karyawan"
          Label2.Text = "Nama Karyawan"
          Label3.Text = "Jenis Kelamin"
          Label4.Text = "Alamat Karyawan"
          Label5.Text = "Nomor Telpon"
          Label6.Text = "Tanggal Pendaftaran"
          Label7.Text = "Ruangan"
          Label8.Text = "Status"
  
          ComboBox1.Items.Clear()
          ComboBox1.Items.Add("Laki-laki")
          ComboBox1.Items.Add("Perempuan")
  
          ComboBox2.Items.Clear()
          ComboBox2.Items.Add("Aktif")
          ComboBox2.Items.Add("Tidak Aktif")
          ComboBox2.Items.Add("Berhenti")
      End If
  </code></pre>