Is there a way to load the components at run-time! I have 2 OCX's and I only want to use 1 of them according to the Operating System they are using. Thanks in Advance! GENE
Printable View
Is there a way to load the components at run-time! I have 2 OCX's and I only want to use 1 of them according to the Operating System they are using. Thanks in Advance! GENE
VB is not meant for such low-level purposes I would recommend C/C++ for these things. It isn't impossible in VB either, but a bit difficult. You'll have to understand what subclassing is and beeing able to work with it.
Use these functions. CreateWindow(Ex) and DefWindowProc. If you want to create your own class use RegisterClass(Ex).
You can look them up in <a href="http://msdn.microsoft.com">MSDN</a>, but if you don't understand, I'll try to explain some more (but not everything 'cause the big joy of programming is succeeding in finding an answer)