Click here to Skip to main content
16,019,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Compress a file with password ? Pin
Dave Kreskowiak26-May-15 10:25
mveDave Kreskowiak26-May-15 10:25 
GeneralRe: Compress a file with password ? Pin
satc26-May-15 11:54
satc26-May-15 11:54 
GeneralRe: Compress a file with password ? Pin
Dave Kreskowiak26-May-15 12:23
mveDave Kreskowiak26-May-15 12:23 
QuestionAre there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
LukeVA26-May-15 6:20
LukeVA26-May-15 6:20 
AnswerRe: Are there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
Dave Kreskowiak26-May-15 9:24
mveDave Kreskowiak26-May-15 9:24 
QuestionDetect a Word or Excel file regardless of extension Pin
satc25-May-15 23:27
satc25-May-15 23:27 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Richard MacCutchan26-May-15 3:12
mveRichard MacCutchan26-May-15 3:12 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Dave Kreskowiak26-May-15 3:16
mveDave Kreskowiak26-May-15 3:16 
There is no 100% effective way to do this, other than opening trying to open the file in Word or Excel.

You can open the file using the normal file operations and look at the file header but you'll have to compare the header to the known headers of each file type you want to support.

But, that in no way means that you're really looking at a Word or Excel file.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

AnswerRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre26-May-15 3:24
professionalSascha Lefèvre26-May-15 3:24 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
satc26-May-15 22:13
satc26-May-15 22:13 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre27-May-15 3:19
professionalSascha Lefèvre27-May-15 3:19 
QuestionDrag & drop operation details Pin
satc25-May-15 22:08
satc25-May-15 22:08 
AnswerRe: Drag & drop operation details Pin
Dave Kreskowiak26-May-15 3:08
mveDave Kreskowiak26-May-15 3:08 
GeneralRe: Drag & drop operation details Pin
satc26-May-15 17:59
satc26-May-15 17:59 
GeneralRe: Drag & drop operation details Pin
Dave Kreskowiak27-May-15 2:19
mveDave Kreskowiak27-May-15 2:19 
QuestionEntity Framework : Too slow when executing the first query Pin
satc24-May-15 16:22
satc24-May-15 16:22 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 21:42
mveRichard MacCutchan24-May-15 21:42 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 21:50
satc24-May-15 21:50 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 22:15
mveRichard MacCutchan24-May-15 22:15 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 22:49
satc24-May-15 22:49 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 23:09
mveRichard MacCutchan24-May-15 23:09 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 23:15
satc24-May-15 23:15 
SuggestionRe: Entity Framework : Too slow when executing the first query Pin
Richard Deeming27-May-15 2:10
mveRichard Deeming27-May-15 2:10 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Eddy Vluggen24-May-15 23:30
professionalEddy Vluggen24-May-15 23:30 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 3:46
mveDave Kreskowiak25-May-15 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.