Apire file con programma predefinito in vb6 [Santi Caltabiano].txtAPRIRE UN FILE CON IL PROGRAMMA PREDEFINITO [VB6]E suffi...
Upcoming SlideShare
Loading in …5
×

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

306 views
234 views

Published on

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
306
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

  1. 1. Apire file con programma predefinito in vb6 [Santi Caltabiano].txtAPRIRE UN FILE CON IL PROGRAMMA PREDEFINITO [VB6]E sufficiente utilizzare ShellExecute. Il codice riportato di eseguito apre unfile pdf di nome prova.pdfposto nella cartella c:aaaa.-------------------------------------------------------------------------------------------------------------Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVallpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) AsLongPrivate Sub Command1_Click() Dim retval As Long retval = ShellExecute(0, "open", chr(34) & "C:aaaprova.fdf" & chr(34),vbNullString, vbNullString, vbNormalFocus)End Sub------------------------------------------------------------------------------------------------------------- Pagina 1

×