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. Converting UserForms to VB Forms?

Converting UserForms to VB Forms?

Scheduled Pinned Locked Moved Visual Basic
csharpc++visual-studiocomalgorithms
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.
  • S Offline
    S Offline
    Steve Pullan
    wrote on last edited by
    #1

    Hi all, I have a few COM DLLs in a project which have had MS Office UserForms imported into them. These are causing some problems and I have been advised to convert them all to native VB Forms instead. Only problem is this seems to be a 'search and destroy' exercise since you cannot copy and paste between an imported UserForm and a native VB Form - you need to rebuild them from scratch. If I had only a couple of forms this would be easy, but since there are 27 and many of them are quite complex I am searching for a method to convert them insitu if possible or via a utility outside of the VB IDE (this is VB 6.0 not .NET (yet)). Does anyone know of a method by which this can be achieved? ...Steve

    D 1 Reply Last reply
    0
    • S Steve Pullan

      Hi all, I have a few COM DLLs in a project which have had MS Office UserForms imported into them. These are causing some problems and I have been advised to convert them all to native VB Forms instead. Only problem is this seems to be a 'search and destroy' exercise since you cannot copy and paste between an imported UserForm and a native VB Form - you need to rebuild them from scratch. If I had only a couple of forms this would be easy, but since there are 27 and many of them are quite complex I am searching for a method to convert them insitu if possible or via a utility outside of the VB IDE (this is VB 6.0 not .NET (yet)). Does anyone know of a method by which this can be achieved? ...Steve

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I don't believe that's possible. I've never even heard of a tool to do it. I would also tend to believe that one doesn't exist since I believe this would be a rare case and never should get past the design stage of a project. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        I don't believe that's possible. I've never even heard of a tool to do it. I would also tend to believe that one doesn't exist since I believe this would be a rare case and never should get past the design stage of a project. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S Offline
        S Offline
        Steve Pullan
        wrote on last edited by
        #3

        Hi Dave, I totally agree. This system 'evolved' but without the 'natural selection' part :-D Can't blame any of the developers since they have done an otherwise outstanding job - just a circumstance of the real corporate world in which I live. The problem is that I can't build the COM DLLs with binary compatibility when they have UserForms as this always breaks them. Just wanted to save myself a day or so reconstructing these forms. Worth a shot anyway. Thanks for your post. ...Steve

        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