getting associated icon for file type out of system

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

How would you get the associated icon for the file type of a file with a
certain extension?

like BMP, JPEG, MPEG, etc etc find their default icon using the File Types
listing that associates the extension with an icon in windows. thanks!
 
when i convert [MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)]

to vb.net as
<MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)>

it gives me an error, why is that? it says sizeconst is not declared.. yet
is is listed as an optional property of the marshalAS.. how do i go about
converting that to vb? thanks
 
Brian,
to vb.net as
<MarshalAs(UnmanagedType.ByValTStr, SizeConst=80)>

it gives me an error, why is that?

The correct syntax is

SizeConst := 80



Mattias
 
Back
Top