Simple, but did it - didn't thought of it, because Visual Studio won't let you add one in a Winforms-project. Thanks.
Firedragonweb
Posts
-
ElementHost and Transparency -
ElementHost and TransparencyHi, I'm trying to write a Winforms Application, in which one Windows has the sole purpose to host a WPF Control. The window itself is transparent (using the TransparencyKey-Property) and so are parts of the hosted WPF control(Using Background-Color=Transparent). The ElementHost has its BackColorTransparent property set to true. Problem is: The transparent areas of the WPF control are painted in the background color of the winforms-host. The one that should be replaced by transparency (because of the TransparencyKey). Seems like an airspace-problem to me, but I'm not sure about that. How can i achieve true transparency (so i can see the underlying desktop through my WPF Control)? Any help would be appreciated. Michael.
-
How can I have *.Pdf files in C# Project ?If you can assume that the Adobe Reader is installed on the target machine, you could use a webbrowser-control to display the pdf, if I'm not mistaken. Michael.
-
How to add an menu item to windows desktop menuHi, have a look at this: http://www.theserverside.net/tt/articles/showarticle.tss?id=ShellExtensions[^] Aside from that, i heard it's not wise to do shell extensions in managed code - if there is more than one of these installed and the target framework versions are not the same, only one is executed and you can't easily determine which it will be.
-
Recording from mic to mp3Hello, the only program i know that streams "directly" to a desired audio format is the VLC Media Player. The good news is, that it is open source and quite well documented. But... it's unmanaged (of course) and i think you will have to dig through quite a bit of code in order to find something useful. Anyway, try this: http://www.videolan.org/developers/vlc.html[^] Michael.
-
Webbrowser-Control and PluginsHi, i've got a problem regarding the System.windows.forms.webbrowser-control as it won't host certain plugins that run fine in the standard iexplorer. The problem occurs roughly on 50% of the machines, interestingly mainly those with windows vista on it. (Although there are vista-PCs where it runs just fine). Any help would be appreciated, Michael.
-
Different audio device in System.Speech.SynthesisOk, here's a new problem: Filler()(from the link above) is called, while the synthesizer is still filling the stream with data. As you can imagine, this results in a disaster. So I cannot make the stream thread-safe (because can't control the filling end) and even if i could, I would have gasps in my output because the buffer would be filled like this: (1 =data in cycle 1 2=data in cycle 2 0= no data) 11111111111111111100000000000000000 |stream is filled until here 22222222222222222220000000000000000 while it should look like this: 1111111111111111112222222222222222222 Any ideas? Edit: Ok, finally got it - i had to wrap the whole synthesizer-class to make the stream thread-safe, but finally, it works. Thanks @ all.
modified on Tuesday, June 24, 2008 2:46 PM
-
Different audio device in System.Speech.SynthesisThanks a lot, that should do it. I'll try it later.
-
Different audio device in System.Speech.SynthesisHi, I'm writing an application that uses an System.Speech.Synthesis.SpeechSynthesizer to generate some speech. The class has a method to set the output to the default audio device or to another audiostream (System.IO.Stream). But how can I tell it to use just another audio device? I think I might have to get a Stream object of that other device to pass it to the SetOutputToAudioStream() method of the synthesizer, but I have no clue how to do so. Any help would be appreciated. Michael.
-
VMR9 Renderless modeHi, I'm just confused. I am trying to implement video playback in a 2D-World using D3D. The best would be to have the video on a D3D-surface, so i chose VMR9 in renderless mode to do the dirty work :/. But i have come to a point where i'm just running against a wall: Although i'm doing quite the same as in the VMR9-Renderless sample, the program crashs while calling RenderFile(). Has anyone a working solution, which he could share?