|
This is NOT an alternative to adding a reference. You still MUST add the reference, then you Import the namespaces that the library exposes.
|
|
|
|
|
Thanks for that info Dave. Unfortunately it still didn't work. As to where I got the Namespace from, I'm afraid that I really don't know. The project concerned was originally written in MS Basic, before windows was even thought of. I then converted it to VB6 and then to VB Net. It suffered much modification on the way and no doubt I picked up the namespaces during that process. Sorry I can't be more informative.
Any more ideas? By-the-way did you see what happened when I tried something (probably wrongly) inspired by Christian's suggestions!
Chris J
|
|
|
|
|
The MaskedEditBox you imports DOES expose a namespace, all COM-based controls do. I know you're using a COM-baed control because you added a refernec to it and you can only do that on COM-based and .NET-based components. The namespace is probably going to start with "AxMasked", or something like that.
|
|
|
|
|
Hello Dave,
In view of your comments I looked and found AxMaskEdBoxArray under the COM tab in the Add Reference window. However, when I tried to add it I got the message:
"A reference to ‘AxMaskEdBoxArray’ could not be added. Converting the type to a .NET assembly failed. Library AxMaskEdBoxArray was exported from a CLR assembly and can not be re-imported as a CLR assembly."
This meant nothing to me, but may partially answer your question as to where it came from and hopefully give us a clue as to how to remedy the situation?
Chris J.
|
|
|
|
|
Before, you said that you added a reference to the .DLL. Soooo, this is in direct conflict with what you now posted.
Since the control shows up under the COM tab, it IS a .COM-based .DLL or .OCX file. At this point, I'd remove the reference and re-add it from the COM tab. If it fails again, I'd go back to the manufacturer of the control and see if they have an updated version that works with .NET.
That's about all I can tell you without being able to see your system.
|
|
|
|
|
I may have given you incomplete information. The file that I tried to add from the COM listing was AxMaskEdBoxArray.tlb, whereas the file that had been previously used was AxMaskEdBoxArray.DLL. I don’t know if this makes any difference.
How do I determine who the manufacturer is? To the best of my knowledge it came with VB6 or even VB4.
|
|
|
|
|
If you have a choice, you want to add the reference from the COM tab, not the files themselves.
I get the feeling that I already know the answer, but you right-click the .DLL file and click on the Version tab.
|
|
|
|
|
The Company Name in the Version section of properties shows my name! I assume that this was what you suspected.
Creating a DLL file is way beyond my technical competence, so I can only assume that it must have been generated by one or other of the conversion routines that the project has been through.
I have found a small AxMaskEdBoxArray project which also seems to founder when I try to Build it, but I suspect that the last thing that you want is to see the code.
I shall try again to find someone locally who has the requisite expertise to help.
|
|
|
|
|
The component was probably built in the old VB6 project. Just because the extension is .DLL doesn't mean you didn't build it. You just don't know you did.
|
|
|
|
|
Hello Dave,
I come back to you with some reluctance, as you have been very patient in trying to deal with my problem. Needless to say I got nowhere going back to the manufacturer of the DLL!
I thought that the simplest solution would be to delete the Mask Edit control, which was part of an array, in VB6 and make a Text Box. The conversion appeared to work fine with the exception of some now well practiced modifications. However, I have the same problem that I encountered when I took up Christian Graus’ suggestion. Text is not captured from a LineInput command (see my message in this thread 15:23 20 Aug ’09, which I am happy to copy to you if you can’t find it).
If you can help, I should be very grateful.
Chris
|
|
|
|
|
Hello,
i have a question concerning an Access ADP project that connects to a SQL 2005 server.
Is it possible to have mulitple subforms depended one mainform.
Example:
I have Actions. Each Action has material and texts associated.
I want to go through the Actions and for each Action the corresponding Material/Text information needs to be displayed. Also very important i need to be able to Edit the text fields and add things to the material records/list for each action.
Is this possible? Subforms that depend on another subform and are editable?
Thx in advance for your help.
max
|
|
|
|
|
What do you mean with: maddylein wrote: mulitple subforms depended one mainform
...
Subforms that depend on another subform and are editable ?
From your example I understand that you will have a main form on which you want to browse records (actions), and then when you click a button or something a new window is opened with the details (material and texts) of the selected action.
This is possible, and not even necessarily very difficult.
Editing details on such a subform, is possible and not even necessarily very difficult.
You are also hinting at maybe wanting to have two sub forms open at the same time. If so, why would you want to?
Doing it in Access VB may be a little trickier, but not by much. An option you can consider, is to use Visual Studio and VB.NET, to build (at least) the application with which you browse actions and edit details. Only the printing could be left to MS Access, but even that can also be built with Visual Studio and VB.NET.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi I m using Nokia 5130 mobile.
I m trying to communicate from PC to mobile.
I can't get information on that mobile like
Buad Rate and request Command.
How can I Identify Buad Rate and Command.
|
|
|
|
|
Is this related to VB.NET ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Ya I m trying to communicate using VB.NET.
I m doing a program that recognize SMS content and process operation.
Ex. If u send Save SMS It will save the Record.
|
|
|
|
|
|
Thank you.
I collect the PC Suit and other supporting file.
Now My problem is communicate with device. it showing as COM3 in serial Port.
Plzz Help me.
|
|
|
|
|
You can use the .Net framework's SerialPort class for communication with that. You just need to know the protocol.
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
You need to obtain a SDK from Nokia, to know the protocoll for the communication with the handy. The PC Suite does not help, because it's an end user programm and what you need is the know how of a programmer. I personaly never talked to a handy programmaticaly, so can't help you further...
Didi
|
|
|
|
|
I am trying to insert multiple records on crystal report 10 using the following codes. I have multiple columns, too. But the following code displays only the first record in the dataset. when i put the last two lines before the word "next" it displays only the last record. Can any one fix it or give me some suggestions?
I thank any efforts made to solve this problem
NB: param3 is the parameter field that is found on crystal report
For c.rowIndex = 0 To c.ds.Tables("studreport").Rows.Count - 1
discvalue = New ParameterDiscreteValue
discvalue.Value = c.custView(c.rowIndex)("coursename")
param3.CurrentValues.Add(discvalue)
paramfields.Add(param3)
Next
|
|
|
|
|
Normally you set your crystal report up and throw a query/stored procedure/dataset at it and it does the rest... why are you using this code?
|
|
|
|
|
i used this code because the final data to be displayed on crystal report depends on user data input. everytime user input changes the report data changes.
|
|
|
|
|
Parameters generally used as a selection or displaying some information ie user name, department. They are not meant for passing in the report data itself.
The Crystal Report should take the data from data sources like dataset, object collections, or directly from the database itself, not by passing in as parameters one by one.
|
|
|
|
|
Hello EveryBody
I have used an comboBox in my application and on Edit Cmd i have DropDown list of items for user to select.But now the problem is that When i Click Exit Cmd,the form does not get closed on Single click ,I have to Click CmdExit 2 times to close form.But i wanna close the form on a single click .Kindly help me for the same
Thanks in advance
Rizwan
|
|
|
|
|
can we see the code ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|