How do you register ocx's using vb code. I thought it would be like the code below but it comes up with an error. VB Code: Shell "regsvr32 (app.path + "\data\ocx\mscomctl.ocx")" Thanks in advance chris1990
Shell "regsvr32 (app.path + "\data\ocx\mscomctl.ocx")"
Are you trying to distribute a program that uses that ocx or are you trying to use in in your VB IDE?
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
i am making an install for my program but my program wont run without the ocx, so i am trying to install the ocx when installing my program.
Moved. You don't need to make your own installer. Just use the P&D Wizard that comes with VB or Inno which is also free.
i am installing more than one program at a time, my program consits of seperate exe's so it will be more stable
Then look into Inno and ********** (written by our member randem) which will let you do that.
Forum Rules