Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to learn C# & .NET framework when I know C++ Pin
Simon P Stevens27-Nov-08 5:58
Simon P Stevens27-Nov-08 5:58 
GeneralRe: How to learn C# & .NET framework when I know C++ Pin
just.an.imbecile227-Nov-08 6:05
just.an.imbecile227-Nov-08 6:05 
AnswerRe: How to learn C# & .NET framework when I know C++ Pin
Paul Conrad27-Nov-08 5:59
professionalPaul Conrad27-Nov-08 5:59 
GeneralRe: How to learn C# & .NET framework when I know C++ Pin
EliottA27-Nov-08 6:00
EliottA27-Nov-08 6:00 
GeneralRe: How to learn C# & .NET framework when I know C++ Pin
Paul Conrad27-Nov-08 6:07
professionalPaul Conrad27-Nov-08 6:07 
AnswerRe: How to learn C# & .NET framework when I know C++ Pin
Gary Stafford27-Nov-08 10:08
Gary Stafford27-Nov-08 10:08 
QuestionWebService to Webservice 2 Pin
BASONJS27-Nov-08 4:51
BASONJS27-Nov-08 4:51 
Questionhow to get file's details Pin
Ankit Rajpoot27-Nov-08 4:20
Ankit Rajpoot27-Nov-08 4:20 
Hello friends,

I have an application that reads file properties and stores them in an Access database. It reads the following properties:

size, file's icon (if it has), dates (modified, accessed and created), file attributes (read only etc...), artist name, album title, album year, trackNumber durtion, genre, bitRate, frameRate, sampleRate, height, width, owner, author, title, subject, category, pages, comments,copyright, company, description, major version, minor version, revision number, product name, major product version, minor product version, product revision.

Any advice on how to do that. I decided to use the GetDetailsOf method, but it was only when I started coding, that I realized that the GetDetailsOf method returns strings, and that would mean that I have to manually parse the returned data to extract the required info. Also, I want to keep unmanaged code inside my app. to a minimum.

Problem 2:
The same app. has a Windows Explorer like interface and has pretty much the same purpose. I'm using a ListView and a TreeView control to provide the same UI as Explorer.
Now I need a way to preview the file that the user has selected, much like Windows Explorer. The file can be an Image file or an audio/video file.
The mechanism I'm using now for this feature is a UserControl which has a Preview() method in which I determine the type of the file based on extension and then add a proper control to my UserControl.

The real problem is how to preview a video. I'm currently using the Microsoft.DirectX.AudioVideoPlayback.Video class to provide this functionality. But it has many annoyances.
1. It doesn't have a parameterless const. So I cannot simply create an instance of the class without providing it a video file path.

2. Every time a new instance is created, it pops up a new window the size of the video, and to position it inside my controls bound, I have to assign to its Owner property. To do that, I need a class Instance and that again means a new window.

Please suggest.
QuestionPass enum through methods Pin
Deresen27-Nov-08 4:19
Deresen27-Nov-08 4:19 
AnswerRe: Pass enum through methods Pin
Pete O'Hanlon27-Nov-08 4:47
mvePete O'Hanlon27-Nov-08 4:47 
GeneralRe: Pass enum through methods Pin
Deresen27-Nov-08 4:51
Deresen27-Nov-08 4:51 
GeneralRe: Pass enum through methods Pin
Pete O'Hanlon27-Nov-08 5:07
mvePete O'Hanlon27-Nov-08 5:07 
GeneralRe: Pass enum through methods Pin
Deresen27-Nov-08 5:14
Deresen27-Nov-08 5:14 
GeneralRe: Pass enum through methods Pin
PIEBALDconsult27-Nov-08 5:40
mvePIEBALDconsult27-Nov-08 5:40 
QuestionExtracting from a list. Pin
nlowdon27-Nov-08 4:04
nlowdon27-Nov-08 4:04 
AnswerRe: Extracting from a list. Pin
J4amieC27-Nov-08 4:13
J4amieC27-Nov-08 4:13 
GeneralRe: Extracting from a list. Pin
nlowdon27-Nov-08 4:55
nlowdon27-Nov-08 4:55 
GeneralRe: Extracting from a list. Pin
Malcolm Smart27-Nov-08 6:37
Malcolm Smart27-Nov-08 6:37 
GeneralRe: Extracting from a list. Pin
User 665827-Nov-08 7:07
User 665827-Nov-08 7:07 
QuestionHow to handle the memory Corruption Exception in .Net using C# Pin
abbineni.pavithra27-Nov-08 3:33
abbineni.pavithra27-Nov-08 3:33 
Questionproblem in using VC++ DLL functions in C#.net Pin
kimo_cs27-Nov-08 3:32
kimo_cs27-Nov-08 3:32 
QuestionHow to Send email via gmail smtp server Pin
shovaly27-Nov-08 3:30
shovaly27-Nov-08 3:30 
Questionadding a trackbar into a menustrip? Pin
lane0p227-Nov-08 2:57
lane0p227-Nov-08 2:57 
AnswerRe: adding a trackbar into a menustrip? Pin
Abhijit Jana27-Nov-08 3:22
professionalAbhijit Jana27-Nov-08 3:22 
GeneralRe: adding a trackbar into a menustrip? Pin
lane0p227-Nov-08 3:33
lane0p227-Nov-08 3:33 

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.