You need to include references to SQL in VB6. But I doubt if it is supported..
Anshul R
Posts
-
Vb6 sybntax counterpart of VB.Net. -
text to speech problemBackgroundWorker Component Do you know about them? What u hav 2 do is Write the code to be executed in their DoWork event. Then the play button should have code like BackgroundWorker1.RunWorkerAsync() Read about BackgroundWorker. That is a simple and effective solution
-
Issue with running .exe(compiled in 34 bit) in window7 64bit enviornmentChange the title of the thread. Clean your solution. Create a new Solution Platform for 64-bit(x64), change the build settings and then build the project. remember to take a backup.
-
msvcp70See the Dependencies in the Project Properties or use dependency walker(comes with VS2005)
-
combobox selected index chaged codeTry the
SelectionChangeCommitted
Event orSelectedValueChanged
Event -
Memory allocation for ListIt is like a linked list(not really.. but for the memory allocation part). It can have any number of items while memory is free. It is like using
malloc
function -
Do you still need 3.5 if you only install 4.0?If you are creating an installer with the .NET Framework specifications/requirements, it will compel the user to install the version you have specified even if the user has a newer version.
-
How to change reference path in VB6Why don't you copy the code to new files in a new project? (Know it is a boring way. But might help you if you lack time)
-
Determining if given DateTime is older than a HourIts very simple Use DateDiff Function First Argument is the Difference Interval See the
DateInterval
enumeration(has hours, seconds etc.) The Second Argument is the date you retrieve The Third Argument is the current date(Date.Now) The code will be likeDim hours As Long = DateDiff(DateInterval.Hour, retrievedDate, Date.Now)
-
CSMA / CAEvent Driven Code
-
algorithm to get each individual digit from a decimal number (integer)Convert the number to string Loop through the characters, store it. Eg : <pre> Dim digits As New ArrayList For Each digit As Char in CStr(number) digits.Add(CInt(digit)) End For </pre>
-
Sending a keystroke to all applicationsEnumerate all processes See if the process has a UI(to distinguish from other background processes) The code will be like
For Each x As Process In Process.GetProcesses
If x.MainWindowTitle <> "" And x.MainWindowTitle <> Me.Text Then
AppActivate(x.Id) 'If you know the application's title, AppActivate("Title") will also work
SendKeys.SendWait("KEYS YOU WANT TO SEND")
End If
Next
AppActivate(Me.Text) -
exe creation for single time installation problem in .net for window applicationIdentify the system with any unique identifier like IP Address or MAC address or anything and check for it in a database you have created(the program adds the identification to it everytime it SUCCESSFULLY installs) But this is not a good idea :^)
-
In which language CLR is written??Native C++
-
combobox selected index chaged codePrivate Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
'What You Want To Do
End Sub -
VB6: invicible .exe:) Sorry for my mistake too. Hope you got it
-
Child Form From its parent formYou can also try Protected Friend in their declarations
-
text to speech problemUse the Speak command in a background worker so that nothing else is defunct till the speech is over.
-
Clone Windows Forms InformationAssign the control to a new control in form2
-
Advancing On Pressing EnterIn the KeyDown event for the form, see if the key hit is enter and if so, write code to proceed