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. Copying controls

Copying controls

Scheduled Pinned Locked Moved Visual Basic
helpquestionworkspace
4 Posts 3 Posters 1 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.
  • C Offline
    C Offline
    Chris Hooper
    wrote on last edited by
    #1

    I'm not sure if I made myself clear last time so i'll try to be more succint. Is it possible to copy a control along with it's code on a excel spreadsheet so that you end up with two or more controls utilising the same code as a foundation, but having different identifiers and operating on different data? Would this require the creation of a macro within visual basic to make a copy of the code within the development environment or is there another way? Pls help!

    D 1 Reply Last reply
    0
    • C Chris Hooper

      I'm not sure if I made myself clear last time so i'll try to be more succint. Is it possible to copy a control along with it's code on a excel spreadsheet so that you end up with two or more controls utilising the same code as a foundation, but having different identifiers and operating on different data? Would this require the creation of a macro within visual basic to make a copy of the code within the development environment or is there another way? Pls help!

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Chris Hooper wrote: Is it possible to copy a control along with it's code on a excel spreadsheet so that you end up with two or more controls utilising the same code as a foundation, but having different identifiers and operating on different data? No Chris Hooper wrote: Would this require the creation of a macro within visual basic to make a copy of the code within the development environment Yes Succint questions, succint answers :) My latest articles: XOR tricks for RAID data protection Win32 process suspend/resume tool

      C 1 Reply Last reply
      0
      • D Daniel Turini

        Chris Hooper wrote: Is it possible to copy a control along with it's code on a excel spreadsheet so that you end up with two or more controls utilising the same code as a foundation, but having different identifiers and operating on different data? No Chris Hooper wrote: Would this require the creation of a macro within visual basic to make a copy of the code within the development environment Yes Succint questions, succint answers :) My latest articles: XOR tricks for RAID data protection Win32 process suspend/resume tool

        C Offline
        C Offline
        Chris Hooper
        wrote on last edited by
        #3

        Are you *sure* about this. Take a quick look at this post on a different board relating to a similar problem. It appears to me that the same code is being used to access multiple controls independently.... http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=2&MsgID=120530&Setting=A9999F0001

        A 1 Reply Last reply
        0
        • C Chris Hooper

          Are you *sure* about this. Take a quick look at this post on a different board relating to a similar problem. It appears to me that the same code is being used to access multiple controls independently.... http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=2&MsgID=120530&Setting=A9999F0001

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Alright yeah i see your point. Well instead of copying the controls can i simply add them sequentially and do something similar to what the dude is doing with the buttons in the post i have mentioned *phew* ?

          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