Announcement

Collapse
No announcement yet.

PictureBox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PictureBox

    How do I use code to insert a new PictureBox onto my form in VB.NET?

    that's all I need, I've tried everywhere but can't seem to find out how..

  • #2
    http://www.startvbdotnet.com/controls/gbox.aspx ?
    Maverick
    Retired SSCU Trench Wars Super Moderator
    Retired SSCU Trench Wars Bot Coordinator
    Retired Trench Wars Core Administrator
    Subspace Statistics Administrator
    Former Mervbot plugin developer

    Comment


    • #3
      Thanks but that didn't help, I need to 'spawn' a new picturebox by using code only.

      Comment


      • #4
        Mr. Peanuts get on aol, my s/n is opicestorm


        1:delta> personally, i would not go to war for oil
        1:FarScape> in age of empires you would
        1:Freeze> LOL FAR
        ---
        5:waven> freeze
        5:waven> no one talks to ease directly
        5:waven> you state your business with sanji
        5:waven> he will relay it to phizey
        5:waven> phizey will relay it to me
        5:waven> and i will talk to ease
        5:Freeze> LOL
        5:waven> that's how things work around here
        --
        1:renzi> freeze theres difference between being wasted and being a waste

        Comment


        • #5
          Code:
           
          Me.PictureBox1 = New System.Windows.Forms.PictureBox
            CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
          
                  Me.PictureBox1.BackColor = System.Drawing.Color.Transparent
                  Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
                  Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
                  Me.PictureBox1.Location = New System.Drawing.Point(44, -2)
                  Me.PictureBox1.Name = "PictureBox1"
                  Me.PictureBox1.Size = New System.Drawing.Size(358, 78)
                  Me.PictureBox1.TabIndex = 0
                  Me.PictureBox1.TabStop = False


          1:delta> personally, i would not go to war for oil
          1:FarScape> in age of empires you would
          1:Freeze> LOL FAR
          ---
          5:waven> freeze
          5:waven> no one talks to ease directly
          5:waven> you state your business with sanji
          5:waven> he will relay it to phizey
          5:waven> phizey will relay it to me
          5:waven> and i will talk to ease
          5:Freeze> LOL
          5:waven> that's how things work around here
          --
          1:renzi> freeze theres difference between being wasted and being a waste

          Comment

          Working...
          X