Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: books Pin
Uwe Keim8-Jun-04 3:36
sitebuilderUwe Keim8-Jun-04 3:36 
GeneralRe: books Pin
surgeproof9-Jun-04 10:07
surgeproof9-Jun-04 10:07 
GeneralRe: books Pin
valikac7-Jun-04 12:05
valikac7-Jun-04 12:05 
GeneralRe: books Pin
surgeproof9-Jun-04 10:08
surgeproof9-Jun-04 10:08 
GeneralRe: books Pin
Werdna8-Jun-04 3:36
Werdna8-Jun-04 3:36 
GeneralRe: books Pin
surgeproof9-Jun-04 10:06
surgeproof9-Jun-04 10:06 
QuestionUsing WMPLib in C# for CD controls? Pin
Admiral Ackbar7-Jun-04 11:09
Admiral Ackbar7-Jun-04 11:09 
AnswerRe: Using WMPLib in C# for CD controls? Pin
Heath Stewart7-Jun-04 11:33
protectorHeath Stewart7-Jun-04 11:33 
Yes, it's possible, but then you're not really writing a CD-ROM player, are you? Smile | :) Besides, if you're new, you should really start out with something a little more basic.

To include the Windows Media Player into your Windows Forms application, customize your toolbox in VS.NET. Click the COM tab and find the Windows Media Player control and add it to your toolbox. Then simply drag and drop that onto a container control (like a Form or UserControl) and two interop assemblies (a.k.a. Runtime Callable Wrappers) are created - one for the ActiveX control, and one for the WMP typelib. Then add your Eject button, for example, and call the method on your player control, which is declared as a variable.

To note, if you're going to strongly name your assembly (and it's always a good idea to, especially if you need to install it into the Global Assembly Cache (GAC) or do anything decent with versioning assemblies) you should right-click on your project and select Properties. Find the assembly key filename and pass the filename (path relative to the project, or an absolute path) of a key pair you generated with sn.exe -k KeyFile.snk (any filename will do). When the interop assemblies are created, they are created with strong names as well. A strong name assembly can only reference other strong named assemblies, though non-strongly named assemblies can reference strongly named assemblies.

 

Microsoft MVP, Visual C#
My Articles
GeneralCheck if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 10:55
Guinness4Strength7-Jun-04 10:55 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Heath Stewart7-Jun-04 11:28
protectorHeath Stewart7-Jun-04 11:28 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 11:31
Guinness4Strength7-Jun-04 11:31 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Heath Stewart7-Jun-04 11:42
protectorHeath Stewart7-Jun-04 11:42 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 11:45
Guinness4Strength7-Jun-04 11:45 
Generalrunning automatically asp.net website Pin
amitmerla7-Jun-04 10:20
amitmerla7-Jun-04 10:20 
GeneralRe: running automatically asp.net website Pin
Heath Stewart7-Jun-04 11:27
protectorHeath Stewart7-Jun-04 11:27 
GeneralException variable never used Pin
Dominik Reichl7-Jun-04 10:03
Dominik Reichl7-Jun-04 10:03 
GeneralRe: Exception variable never used Pin
Dave Kreskowiak7-Jun-04 10:15
mveDave Kreskowiak7-Jun-04 10:15 
GeneralRe: Exception variable never used Pin
leppie7-Jun-04 10:42
leppie7-Jun-04 10:42 
GeneralRe: Exception variable never used Pin
Heath Stewart7-Jun-04 11:25
protectorHeath Stewart7-Jun-04 11:25 
GeneralRe: Exception variable never used Pin
Dave Kreskowiak7-Jun-04 11:57
mveDave Kreskowiak7-Jun-04 11:57 
GeneralRe: Exception variable never used Pin
leppie7-Jun-04 12:54
leppie7-Jun-04 12:54 
GeneralUsing variable in Values for SQL insert Pin
kv_ajay7-Jun-04 8:40
kv_ajay7-Jun-04 8:40 
GeneralRe: Using variable in Values for SQL insert Pin
Alvaro Mendez7-Jun-04 8:55
Alvaro Mendez7-Jun-04 8:55 
GeneralRe: Using variable in Values for SQL insert Pin
Anonymous7-Jun-04 9:47
Anonymous7-Jun-04 9:47 
GeneralRe: Using variable in Values for SQL insert Pin
Dave Kreskowiak7-Jun-04 9:55
mveDave Kreskowiak7-Jun-04 9:55 

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.