Click here to Skip to main content
       

C#

 
QuestionMVVM. Buttons and thair content Pinmemberboryborawski12-Dec-12 9:00 
AnswerRe: MVVM. Buttons and thair content PinmemberSledgeHammer0112-Dec-12 9:17 
GeneralRe: MVVM. Buttons and thair content Pinmemberboryborawski12-Dec-12 9:40 
GeneralRe: MVVM. Buttons and thair content PinmemberSledgeHammer0112-Dec-12 11:30 
GeneralRe: MVVM. Buttons and thair content Pinmemberboryborawski12-Dec-12 13:22 
QuestionWeb scraping PinmemberKalenzo12-Dec-12 7:12 
AnswerRe: Web scraping PinmemberMatt U.12-Dec-12 7:20 
QuestionCreating an instance to be used as an Object refference Pinmemberbikerben12-Dec-12 6:35 
I dont understand how I can make the "Define File Type" code an instance (is that the term I'm looking for) so it can be be read in the "Open IE and Print" segment.
 
// Define File Type
foreach (FileInfo finfo in dir.GetFiles("*.html"));
 
    // Open IE and Print
    if (Application.Current.Properties["finfo"] != null)
 
Have tried defining it as a string but I get the following error.
 
"Cannot convert type 'string' to 'System.IO.FileInfo'"
 
Any help would be greatly appreciated to help me understand C# further.
AnswerRe: Creating an instance to be used as an Object refference PinmemberMatt U.12-Dec-12 6:49 
AnswerRe: Creating an instance to be used as an Object refference PinmentorDaveyM6912-Dec-12 8:02 
AnswerRe: Creating an instance to be used as an Object refference PinmvpOriginalGriff12-Dec-12 8:11 
GeneralRe: Creating an instance to be used as an Object refference PinmemberKillzone DeathMan13-Dec-12 0:02 
AnswerRe: Creating an instance to be used as an Object refference PinmemberV.12-Dec-12 21:30 
GeneralRe: Creating an instance to be used as an Object refference Pinmemberbikerben18-Dec-12 6:19 
GeneralRe: Creating an instance to be used as an Object refference PinmemberV.18-Dec-12 7:28 
QuestionProblems with File Pinmembertiwal12-Dec-12 4:49 
QuestionRe: Problems with File PinmemberEddy Vluggen12-Dec-12 5:00 
AnswerRe: Problems with File Pinmembertiwal12-Dec-12 5:12 
GeneralRe: Problems with File PinmemberEddy Vluggen12-Dec-12 5:20 
GeneralRe: Problems with File Pinmembertiwal12-Dec-12 21:05 
GeneralRe: Problems with File PinmvpRichard MacCutchan12-Dec-12 22:43 
AnswerRe: Problems with File PinmvpOriginalGriff12-Dec-12 5:03 
GeneralRe: Problems with File Pinmembertiwal12-Dec-12 5:17 
GeneralRe: Problems with File PinmvpOriginalGriff12-Dec-12 5:23 
Questionproblem with using pointers in C# Pinmembersiawash_s12-Dec-12 4:38 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 13 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid