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