In VB6 you have the ability to name your controls with an index.
i.e.: cmdStartInterval(1), cmdStartInterval(2), ... .
Then you have a method head like this:
Private Sub cmdStartInterval_Click(Index As Integer)
...
End Sub
Is this also possible in a similary way in C#?
...
Given that the VB6 runtime ships with Windows 7 and will continue to be supported for the lifetime of the OS (until January 2020) and that the VB6 IDE, though no longer supported, is fairly stable, what are the risks around keeping mission-critical applications in VB6 for the next several years?
...
Rather than build a whole project group (several DLLs and an executable) I want to run the group from the command line like this:
VB6 /runexit project
It eliminates the compile step and keeps the registry clean.
I can setup a Hudson job which gets the latest code from source control and runs the command line. The problem I've run into...
target state: Porting VB6 Code into C#, undertake the whole project with all conceivable processes that are involved.
What would be your approach if you do not have knowledge about the domain?
There is nearly any documentation, just legacy code (up to 100.000 - 300.000 lines of code and comments vb6 files that contain up to 14.000 line...
Hi everyone ive created an application and i cant seem to connect it to the database, and my list view is empty when I run the application can you please help me with the code, the following code is for listview
Private Sub CircuitsLvw_BeforeLabelEdit(Cancel As Integer)
Dim rs As New ADODB.Recordset
lblI.Caption = CircuitsLvw.ListItem...
My company recently upgraded our PCs to XP service pack 3.
We still have some vb6 apps that connect to an EJB server via a JCOM bridge.
These apps still work as compiled exes but i noticed that during debugging the IDE hangs when it tries to create a JCOM object.
I suspected it was as a result of the XP upgrade and was able to confirm t...
I am unable to get the values of the selected column in the value listbox.Please guide me my mistake.There seems to be some mistake in the private sub ListValues
Option Explicit
' The database file name.
Private m_DBFile As String
' List the fields in this table.
Private Sub ListFields(ByVal db_file As String, ByVal db_table_name As...
I recall being told by a professor the following is bad practice. But it makes stepping through code a lot less tedious. I'm just solicting comments on pros and cons:
Friend Class MyClass
Private isEmpty As Boolean
Public Property IsEmpty() As Boolean
Get
Return isEmpty
End Get
Set(ByVal Value As Integer)
isEmpty = value
...
So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is it possible for me to generate, on-the-fly, a manifest for the executable as well as a manifest for each of the referenced DLLs? If so, then how?
I would like to perform this operation as part of our build process without having to register the COM DLLs a...
I would like to know if creating a VB6 DLL(using MS visual studio 6.0 enterprise edition) in Windows Server 2003 SE 32-bit and Windows XP SP3 makes any difference. I mean will there be any compatibility issues when I port VB6 DLL from XP to Windows Server 2003. Just like to know the internals of how it works.
...
I am unable to use a variable as the vale for a table, though direct values are stored.
I get the error as "Syntax error in INSERT INTO Statement.How do I overcome this ?
sDBPAth = App.Path & "\SETMDBPATH.mdb"
sConStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & sDBPAth & ";" & _
"Jet OLE...
I am experimenting with drag and drop from an outlook email attachment to a custom application. It works just fine with C#, but now I'd like to get it working in VB6. My test code looks something like this:
Private Sub grdLis_OLEDragDrop(Data As MSFlexGridLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, ...
I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did:
I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.
I opened the project properties and went to "Assembly Informat...
I am in the middle of (trying) to create a Class Library available for use in VB6/VBA. With some assistance received here I have now done the following:
Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.
Learned I needed this wonderful thing called an "Interface"... Made one of those:)
I o...
My name Andika
I create software that is associated with the processing of payments and purchases of pulses.
I create software using VB6, sqlite2009 for Inno to create the database and its set-up. I created a program called 'IZ'
story short, if a user installs my program in the registry window will then make a folder in called "PCclient"...
I am using Visual Basic 6
I have the following code structure:
FUNCNINFO is a structure
Public funcTable() As FUNCNINFO
-----
------
ReDim Preserve funcTable(0 To upsize + ns)
When the value of (upsize + ns) is exceeding 32766,it is giving the runtime overflow error '6'
Do you have any idea of the cause and the solution?
...
Hey all, i am looking for a way to send a keypress letter/number to a textbox. The reason why i need this is that this textbox is a AutoComplete box that, when the user types, it displays a list of suggestions like google does.
However, for it to work, the user has to click in the box and type something. I can send any number/letter to ...
I have some images stored in a database and I want to populate an image control. All the examples I can find copy the image to the hdd and then use loadpicture to put it in the image control. Is there a way to push the image directly in without going to the hdd first?
...
I have a Table which has a Primary Key field which is not set to auto-increment.
I want to change one of these primary keys to something different.
The problem arises with the other tables relations. The thing is, the guy who built this system did not build relations in SQL Server, but rather manually coded some override in the program ...
I have a program in native C++ under windows that uses a VB6 DLL. The C++ app crashes with a "Floating Point In-exact Result" error when using that DLL, for a certain action.
When I go into debug and do view assembler I get this line:
75A0FB7C je 759E8797
When you hover over the right most address it shows a tooltip with ...