Vb.net ocx files
Anyone has an idea where is it being stored or if it's being used in cache mode or something? Originally Posted by Hack. I suspect it will be located in, or near, its. NET project folder. Hi again, sorry to bump an old thread again, feel free to split it if you see it fit.
I have successfully migrated 2 activex components, but I'm still having problems with one that implements a card reader API.
Having in mind the intention to preserve the code as close to the original structures as possible, I assigned each class its own CLSID, while the component itself has a different assembly GUID.
I suspect that's the problem, but I'm not sure. Could any of you confirm me this fact or if it's something else? Thanks in advance EDIT: Oops, forgot to mention that the specific problem is that, while the other 2 components I migrated, get recognised and work fine, this one doesn't, giving me the typical "X is not a valid property or method of Y" in IE6, that coming out because the object appears set to Nothing in debug, obviously not initializing for some reason.
Hi again, after some testing, I fixed it. I still have problems, but that comes from the activex component code now, which I can't get to debug from a call from a html object. I tried some solutions, but so far, I've only been able to start the project in debug mode, and go through the vbscript code in the html, but the breakpoints don't hit the component source.
Anyone can help? More things: I managed to get some stuff up and running, but the most important part, the one that tells me if the card is inserted, is not working yet. I discovered that I had to marshall all parameters to the library functions. It took me a while to figure out which format pairs were the adequate, since the component wasn't displaying any msgboxes with errors, other than the ErrDescription.
Anyways, I post you here a declaration example so you see with which type to pair your variables: Code:. Quick Navigation. Replies: 7 Last Post: , PM. Replies: 4 Last Post: , AM. VB6 ocx control in VB. Net By Jeremiah in forum. Replies: 1 Last Post: , AM. Replies: 2 Last Post: , PM. All times are GMT The time now is PM. DevX Home. Net If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below. MyControl" Code: Imports System. InteropServices Imports System. Text Imports System. IO Imports System. Reflection Imports Microsoft. Win32 Imports System Imports System.
The other nice thing about the user control approach is you can use it in any. NET project as well. Just drag and drop it from the toolbox there's no need to use the OCX here.
TheCrash wrote:. Thanks for your reply. Maybe VB. Since the "application type" of VB. NET project is as following:. I want to use the control in VB. NET as you said, and I will have a try on interop forms toolkit later. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. EventArgs Handles ShowScrollbar. EventArgs Handles ShowTitlebar. EventArgs Handles CloseDoc.
Clear End Sub. EventArgs Handles First. GotoFirstPage End Sub. EventArgs Handles Prev. GotoPreviousPage End Sub. EventArgs Handles NextPage. GotoNextPage End Sub. EventArgs Handles LastPage. GotoLastPage End Sub. EventArgs Handles PrintOut.
0コメント