VB6 Programs run fine in Windows 8.
AndreRet commented: Thanks for the help to others. +6
VB6 Programs run fine in Windows 8.
Start a VB project, standard exe. You will see a form. create a button on the form. Click the button. In the code window, you will see
Private Sub Command1_click()
'enter the following code
Beep
end sub
That's it. Start the project, press the command button and listen to the beep.
I don't know if somebody is going to block this or not but I will include a link that will show you how to use an API in VB. Here it is.
http://www.techrepublic.com/article/launch-and-terminate-applications-in-visual-basic-60/#
I know that some people include links that don't get blocked but for some reason mine do.
Lou Tylee has some very good resources, books etc. for learning VB6, VB.net, and VB database. You can find out more about Lou & VB by researching on the internet.
Look up on the internet, Lou Tylee, VB6 for databases, has a great VB Library database project.
Try INNO. It's free and very good. Depending on the OCX files in your program, you will need to install them into the C:\Windows\SysWOW64 directory Windows 7 & 8, instead of the C:\Windows\System32 directory in XP. Not sure about Vista.
Please let me know if you get it to work. I stopped using VB6 with Vista, only use it with XP.
Hello fellow earthlings. Using VB6, I want to write a MENU program that executes exe files, or executes dll files. The MENU file should have a function that sends a parameter to A.exe, or B.dll as an example. If A.exe or B.dll received the parameter from the MENU, then they would run normally. If on the other hand, A.exe or B.dll did not receive the parameter from the MENU program, they would not function.
In other words, the only way that A.exe or B.dll could execute would be through a command from the MENU program.
Thank You so much for your help.
I'm not sure what version of VB you are using but in VB6, to get the common dialog control, you need to go to your top menu, Project, then Components, then look for Microsoft Common Dialog Control.6.0
Hi All. I developed software and use a software activation security company. The problem is, every time somebody tries my software, they get false positive virus alerts from different Anti Virus companies.
During my last experience with Avira, it took me nearly 6 months of telephone calls to get them to put my software on their safe list even though they were false alerts.
Does anybody know a quicker way to cut through the bureaucracy?
Thank You!
point to top left of project, hit file, make exe. Note, the exe file will be created in the same folder as the project.
This question has been answered satisfactory. Please close this thread.
Hi Dani,
I'm sorry if I Violated your rules. My message was only intended to help somebody who asked a question. That's all.
TDuck :-)
'Hi Hellen,
'Not that I'm a programming wizard, but I think I know this one.
'It would be nice if I could talk with you about it to make sure that I understand
'more clearly what you mean. I need more information about why you are using the
'progress bar. If this is possible, please let me know.
'I'm in Japan. I'm not sure where you are. I do have Skype so we can talk for free but
'I'm not sure about your time zone. When we get the answer, we'll share it with Dani Web.
'My email is email snipped. My Skype ID is also nipped.
what is the code for calling forms?
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1 + 0.1
If ProgressBar1.Value = ProgressBar1.Max Then
ProgressBar1.Value = ProgressBar1.Min
Else
End If
If ProgressBar1 = Max Then
Load Me
frmHellsy.Show vbmodel
End If
End Subi have tried this code to call that form i.e frmHellsy but its not responding.
Kindly help me.
Thanks in Advance
Hellen
Thank You for all the replies.
I did find what I needed, how to use a VB6 program to close another program.
It uses API commands to do it. Here's where I found the answer.
http://techrepublic.com.com/5208-6230-0.html?forumID=89&threadID=179488&start=0&tag=content;leftCol
I will go back through these posts asap.
If anybody would like to see what I'm doing, please visit my web site.
I'm writing a computer program about learning to read and understand Japanese.
Best Wishes and Thanks Again!!!
TDuck
Thank You!!! I'll try it out. :-)
Thank you for this. This did not however answer my original question, how to close a program. It does close a vb application that is running but I wanted to know how to close an exe file. I'll get back to you when I figure out how to do that. Thanks again.
Tduck
Hi folks,
I'm wondering how to close a VB6 multiform application using the red x on the main form. There should be a message box that lets the user confirm the exit ( yes ), or ( no ) resume the application.
Thank You!
A nice way to close a form using the red x in a multi form application.
I found it myself. Hope this helps others.
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
' If message box conflicts with other forms.
frm_A_About.Visible = False
frm_B.Visible = False
' Only prompt if the user hits the red X
If UnloadMode = 0 Then
If MsgBox("Are you sure you want to quit?", vbYesNo Or vbQuestion) = vbNo Then Cancel = True
Unload frm_A
Unload frm_B
Unload frm_C
Unload frm_Z
Set frm_A = Nothing
Set frm_B = Nothing
Set frm_C = Nothing
Set frm_Z = Nothing
End If
End Sub
Hi folks,
I'm wondering how to close a VB6 multiform application using the red x on the main form. There should be a message box that lets the user confirm the exit ( yes ), or ( no ) resume the application.
Thank You!