|
This cannot be done using VB6 alone, which creates only stand-alone EXEs or COM components. Desaware, however, has a product called SpyWorks, that will create Win32 exports of VB DLLs.
http://www.desaware.com/SpyWorksL2.htm
|
|
|
|
|
vicknesh wrote:
I was told that if a DLL is compiled in VB 6, it is highly likely to be compiled as a COM object.
That is correct.
-Nick Parker
|
|
|
|
|
Hi
How do i disallow a user from entering MBCS characters (Japanese Kanji) from entering in text box.
He/she should only be allowed to enter SBCS (KataKana) in the text box.
Help!..
|
|
|
|
|
|
USe StrCon() function ofVB.
USe it to convert to any type.
i.e VBWide,VBNarrow,VBKatakana,VBHiraGana. etc..
USeful-function,if u get it right.
else VB stores strings in UNICODE format which takes 2bytes / character.
So difficult to recognise single/multibyte otherwise.
CIAO
|
|
|
|
|
MCLHotkey.Net - A .NET system-wide hotkey component
===================================================
To use, add the component to a windows form and set the properties
to describe what key combination will trigger the hotkey. Once
running, the HotkeyPressed event will be triggered whenever that key
combination is pressed, system wide.
Version 1.1 (Beta)
Known issues:
* The component properties do not set correctly through the front
end - only a portion of the possible VKey values are shown
* ShiftKey modifier is not set correctly
Download from
http://www.merrioncomputing.com/Download/MCLHotkeyNet.zip - source
code included.
Any suggestions/comments/bug fixes?
Thanks in advance,
Duncan
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Does anyone know how to trap events from objects in a collection? I have being trying to use delegates, but it's not trapping the events. Was this an oversight printed in the Core Reference, or is their some other trick to it?
|
|
|
|
|
I must be missing something in your problem statement, but here's what I'm thinking. If you add an event handler to an object and that object fires the event, your event handler will execute. Subsequently adding the object to a collection has no impact on the event mechanism.
Are you trying to work with events raised by the collection itself, such as when items are added or removed?
|
|
|
|
|
Hello,
It's me again.
I am using the .NET IDE.
I am wanting to get a little information and insight about the best approach to accomplish something. I am wanting to integrate an MP3 recorder into an application. It needs to work simply. I want to pass a filename for the mp3 file, click the record button, when done click the stop button, then click the save button. No option to rename it. The program will handle the naming of the file. This will be used by a doctor and needs to be as simple as possible. The only user interface that will need to be implemented in the mp3 player/recorder should be only what a tape recorder is capable of. What is the best route to use? Are there some components in .NET that will enable any of this? Is there any API function call that can be used? A utility to integrate? The reason it needs to be MP3 is because of filesize. We will be dealing with up to 15 minute voice recordings. Any starting suggestions would be greatly appreciated.
Thanks,
Kendal
|
|
|
|
|
I'm teaching myself VB.NET and have come across a problem with either the tutorial book (Visual Basic .NET Programming with Peter Aitken, Chapter 9, page 191) or the software (Microsoft Visual Studio .NET).
The problem I'm getting is after typing in code from example in book:
Public Class UseOverloadedConstructor
Private pName as String
Public Overloads Sub New(ByVal Val As String)
pName = Val
End Sub
Public Overloads Sub New()
pName = ""
End Sub
Public Property Name() As String
Get
Name = pName
End Get
Set(ByVal Value As String)
pName = Value
End Set
End Property
End Class
I get an error in the build. Saying that Overloads don't work with New!
What is the problem? What am I missing?
Can anyone help?
Thank you
|
|
|
|
|
you cant use New as an overloads sub , change the name of the sub :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MyNew("my string")
'/// set the text to the name
MsgBox(TheName) '/// check TheName now contains the correct info
End Sub
Private pName As String
Public Overloads Sub MyNew(ByVal Val As String)
pName = Val
End Sub
Public Overloads Sub MyNew()
pName = ""
End Sub
Public Property TheName() As String
Get
TheName = pName
End Get
Set(ByVal Value As String)
pName = Value
End Set
End Property
switch(twinsOnWay)
{
case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
break;
|
|
|
|
|
Thank you for your help.
I appreciate it very much.
Congratulations on your new additions to your family too!
|
|
|
|
|
Constructors don't need to be explicitly overloaded like other methods. You can simple create all of the New methods (constructors) you want, as long as they have unique signatures. If you rename the method to something like MyNew, it becomes an instance method and will not be used as a constructor.
|
|
|
|
|
Thank you very much for helping me. You have given a better look at the way Contructors work. I just wish the book I bought had been better informative. I guess you get what you pay for. Thanks again!
|
|
|
|
|
I am new to vb I have just made simple calculator in this language now I want to have (ACCESS)database connectivity with vb Please let me know the website or any halping material that can serve for thsi purpose.
Reply me soon
|
|
|
|
|
Hi,
At what level are you wanting to access the database (Read/write or full management i.e create /delete table)? Are you using VB6 or VB.net? What version of Access are you using? All these questionsneed to be answered to point you in the right direction.
Alan ...
|
|
|
|
|
Hi Alan,
I have just bought my VB.NET Software so that I can start teaching oneself programming. I seem to be facing untold difficulty in getting started.I do not have experience in any of the previous VB versions. Could you help with any information on what I should do to get out of the confusion. Any material, Websites I could use?
Ben
|
|
|
|
|
Hi Ben,
My own opinion is that you need to learn the (old) basics of VB before attempting to convert to .Net.
I think that anyone should understand the development of individual programs before getting in to the intricacies of the new environment.
There are many good books and sites that you can use to help you get started. The 'Dummies' books are helpful but the one that I recommend to my students is 'Visual Basic 6 Complete' from Sybex.
It's cheep but good.
Hope this helps
Alan ...
|
|
|
|
|
Hello Alan,
Thank you for your advice. But are VB commands the same as those of VB.NET? Since I have acquired VB.NET Software, can I use it as a tool for teaching myself the basics of VB? Or will I need to get a different compiler for VB?
Ben
|
|
|
|
|
Take a look to this website:
http://www.w3schools.com/ado/ado_examples.asp
Bye,
LAURA
|
|
|
|
|
Look into MSDN. It has a lot of good articles for Access db connectivity
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
Hi guys..
one quick question...
in VBScript...(for web) how can I subsitute the IE icon on the top left corner of my web pages, for a personalized Icon??? Ive seen around, but have no idea how to obtain it.
thanks
Jon
X-ZD Designs
|
|
|
|
|
|
:(Help!
I'm trying to load an icon file into a picturebox using the following code:
PictureBox1.Image = Image.FromFile("cow.ico")
When executed an "Out of Memory Exception" is thrown every single time. My development machine has 1GB of RAM, and when this happens I have well over 1/2GB of physical memeory available, never mind the page file.
The rest of the program isn't very big. There is an array of about 3000 elements in there, but the exception is thrown before that array is initialized or filled.
Could this be a problem with my icon file? I use it in several other places with no problems... It does have every possible icon size/colour depth but is only 49K on the drive.
What is also curious is that this line works fine (it follows the above) when I comment the picturebox line out:
Me.Icon = new Icon("Cow.ico")
-Allan
|
|
|
|
|
i just tried it and it worked fine :
PictureBox1.Image = Image.FromFile("C:\7.ico")
you must have the exact path of the image in there or it will error.
switch(twinsOnWay)
{
case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
break;
|
|
|
|