Cannot Open BMP Files in VB
Posted on 2000-05-11
I have the following function defined in VB
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
When I call it with
Call ShellExecute(Me.hwnd, "open", DataGrid1.Columns(1), vbNullString, "C:\", sw_shownormal)
if works fine and will open word documents etc. no problem HOWEVER it will not open up .bmp files (which are associated with paintbrush), any ideas why?