Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Picture Box won't show on second form

Picture Box won't show on second form

Scheduled Pinned Locked Moved Visual Basic
comquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jm6k
    wrote on last edited by
    #1

    I want to add a PictureBox to another form. But when I go from form1 to form2, the picture in form2 won't show. Why is this? I use this code: dim frmForm2 as new form frmForm2.showdialog I've also tried just frmForm2.show What am I doing wrong? Should I create a new picturebox in code? I need sleep....zzzzzzzzzz:zzz: Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew

    D 1 Reply Last reply
    0
    • J Jm6k

      I want to add a PictureBox to another form. But when I go from form1 to form2, the picture in form2 won't show. Why is this? I use this code: dim frmForm2 as new form frmForm2.showdialog I've also tried just frmForm2.show What am I doing wrong? Should I create a new picturebox in code? I need sleep....zzzzzzzzzz:zzz: Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew

      D Offline
      D Offline
      dynamic
      wrote on last edited by
      #2

      here ya go : VB:


      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim frm As New Form2() '/// must say as new Form2() not Form
      frm.Show()
      End Sub


      hope this helps.:)


      Private void ExpectingTwins(string twins)
      {
      switch(twins)
      {
      Case ("twins on the way"):
      MessageBox.Show("for mr and mrs dynamic","twins on the way");
      break;
      }
      }


      J 1 Reply Last reply
      0
      • D dynamic

        here ya go : VB:


        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim frm As New Form2() '/// must say as new Form2() not Form
        frm.Show()
        End Sub


        hope this helps.:)


        Private void ExpectingTwins(string twins)
        {
        switch(twins)
        {
        Case ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
        break;
        }
        }


        J Offline
        J Offline
        Jm6k
        wrote on last edited by
        #3

        Thanks A Lot The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups