Hi,
Is there any way to call windows application in VB? Is there any control for this?
Regards,
Hi,
Is there any way to call windows application in VB? Is there any control for this?
Regards,
OLE Control is used to call a windows application into Vb.
There is no control that does that. You either use the 'shell' command (look it up in VB help) or you have to use more detailed windows API calls (see CreateProcessBynum and the various structures that it uses in the windows SDK documentation).
if you want to put it in the right click menu that is reasonably easy by adding registry keys, this does not need to be in your progam, but in the installation, though you can do it in your program the 1st time it is run
but if you want to put it in the main menu someone with more eperience may have to help you.
Here's windows explorer....
Or, if you actually wanted My Computer, add a Common Dialog control to your form then...Code:1. Private Sub Command1_Click() 2. Shell "C:\Windows\Explorer.exe", vbNormalFocus 3. End Sub
Code:1. Private Sub Command1_Click() 2. With CommonDialog1 3. .CancelError = True 4. .InitDir = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" 5. .DialogTitle = "My Computer" 6. .ShowOpen 7. End With 8. End Sub
Bookmarks