Foros del Web » Programación para mayores de 30 ;) » Programación General » Visual Basic clásico »

¿Cómo mostrar la ventana propiedades de un archivo?

Estas en el tema de ¿Cómo mostrar la ventana propiedades de un archivo? en el foro de Visual Basic clásico en Foros del Web. Esa es la cuestión, de que manera puedo mostrar la ventana de propiedades de un archivo (la que aparece al hacer clic en el menu ...
  #1 (permalink)  
Antiguo 17/09/2005, 19:13
Avatar de Jad-Neo  
Fecha de Ingreso: octubre-2004
Mensajes: 344
Antigüedad: 19 años, 6 meses
Puntos: 0
¿Cómo mostrar la ventana propiedades de un archivo?

Esa es la cuestión, de que manera puedo mostrar la ventana de propiedades de un archivo (la que aparece al hacer clic en el menu "Propiedades" del menú contextual). Eso sería nada más. Espero puedan ayudarme y gracias.
__________________
Nunca seas sabio en tu propia opinión.

Última edición por Jad-Neo; 17/09/2005 a las 19:14 Razón: Correción
  #2 (permalink)  
Antiguo 18/09/2005, 13:35
 
Fecha de Ingreso: abril-2005
Mensajes: 351
Antigüedad: 19 años
Puntos: 3
Const SEE_MASK_INVOKEIDLIST = &HC
Const SEE_MASK_NOCLOSEPROCESS = &H40
Const SEE_MASK_FLAG_NO_UI = &H400
Private Type SHELLEXECUTEINFO
cbSize As Long
fMask As Long
hwnd As Long
lpVerb As String
lpFile As String
lpParameters As String
lpDirectory As String
nShow As Long
hInstApp As Long
lpIDList As Long
lpClass As String
hkeyClass As Long
dwHotKey As Long
hIcon As Long
hProcess As Long
End Type
Private Declare Function ShellExecuteEx Lib "shell32.dll" (SEI As SHELLEXECUTEINFO) As Long
Sub ShowProps(FileName As String, OwnerhWnd As Long)
Dim SEI As SHELLEXECUTEINFO
Dim r As Long
With SEI
'Set the structure's size
.cbSize = Len(SEI)
'Seet the mask
.fMask = SEE_MASK_NOCLOSEPROCESS Or _
SEE_MASK_INVOKEIDLIST Or SEE_MASK_FLAG_NO_UI
'Set the owner window
.hwnd = OwnerhWnd
'Show the properties
.lpVerb = "properties"
'Set the filename
.lpFile = FileName
.lpParameters = vbNullChar
.lpDirectory = vbNullChar
.nShow = 0
.hInstApp = 0
.lpIDList = 0
End With
r = ShellExecuteEx(SEI)
End Sub
Private Sub Form_Load()
'KPD-Team 1999
'URL: http://www.allapi.net/
'E-Mail: [email protected]
ShowProps "c:\autoexec.bat", Me.hwnd
End Sub
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:39.