home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / sys_util / shelldm / shelldm.frm (.txt) next >
Encoding:
Visual Basic Form  |  1993-09-08  |  2.4 KB  |  55 lines

  1. Form1
  2. Form1
  3. Form15G
  4. Option3
  5. NotePad
  6. Option2
  7. Write
  8. Option1
  9. PaintBrush Picture
  10. Command2
  11. Command1
  12. Text1
  13. Label1
  14. This is a simple demonstration to show how to use the shell command in Visual Basic.  Select the type file you want to open, then enter the full path and filename with extention in the text box, then click on OK.  The program will be opened, and your selected file will be opened (assuming it's a valid path and filename).
  15. Command3D1_Click
  16. TheFile
  17. Text1
  18. TheProgram
  19. Final
  20. TheFinal6
  21. place
  22.     statement
  23. Label1_Clickc
  24. Command1_Click
  25.     terminate
  26. RonOdd
  27. @    Form_Load
  28. BoxName
  29. Caption
  30. Command2_Click
  31. Option1
  32. Value
  33. Option2
  34. Option3
  35. Command1_Click
  36. Define the filename:
  37. Define the program to shell to:n
  38. pbrush.exe
  39. write.exe
  40. notepad.exe
  41. Define the final string (you must include the " " blank space to separateo
  42. the executable program from the file that you wish to be loaded:
  43. Shell to the program and open the file...the 1 is the WindowsState of theo
  44. executable program you've shelled to:e
  45. You could have an option button if you wanted with one option beingo
  46. Paintbrush, the second being NotePad, and the third being Write.
  47. When you exit Write (or whatever executable you choose), you will return to 
  48. your VB application.  If you do not wish to return to the VB application, 
  49. you can simply place an End statement next and your VB application will 
  50. terminate upon exiting Write.  Hope this is what you needed!!!  
  51. See ya, RonOdd
  52. Command2_Click
  53. Form_Load
  54. Visual Basic Shell Demo
  55.