How to make the flash player background transparent in c# - c#

I have used ShockwaveFlash activeX control to display .swf file on the form. And to make the background transparant i set Wmode to transparent but the control is not showing transparant background. How can i set the ShockwaveFlash background transparent
Thanks,

The swf file's author needs to remove its own background. Not much what you can do after doing your part.
BTW, add a winform and a flash tag will help you. Your question has nothing to do with which language you use.

Related

C# launch form when images fully loaded

I'm making C# application design with images, but when I launch it, I see loading images (~1sec), so how to make simple loader, when images (background, logo, etc..) fully loads, to show my app? I know it's possible but I don't know how to. Thanks so much!
This sounds like standard behaviour. The controls get painted one by one in z-order and if one is slow the rest may appear to flicker.
You could try double buffering the whole form as shown here:
How to fix the flickering in User controls
Alternatively you could suspend the layout while everything is drawn and resume it afterwards:
How do I suspend painting for a control and its children?

how does the custom skins for c# 2010 work?

I'm still working on my c# application in changing the GUI and after googling around i found out that there are skins that can be used. I still don't understand how does this work, do i have to start from scratch? or will the skins merge along with my c# application. what changes will the skin do in my c# application aside from the GUI?
What i normally do for skinning is to remove form borders and set a background image,thus you can create forms of any shape.The steps i follow
Set the FormBorderStyle property to None.
Set the BackgroundImage property of the form to the .bmp you created above.
Set the TransparencyKey property of the form to the background color of the .bmp file
There are 2 parts to a winform client area and Non Client Area,You can do anything with the Client Area easily but None Client Area is uneditable.The Skinlibary you have mentioned in your comment hookes into windows message Loop to capture Events.
Check this answer to see how the Title bar color is changed Changing the color of the title bar in WinForm

Blinking Form when background Image set to it c#

When I fix a Background to my winform, It is getting blink on form load. I have a table layout panel on my form and I kept all my controls on the table layout panel.
I set the backcolor of tablelayout panel to Transparent and Set the Image to the background. Why am I getting blink on my form load?
WinForms doesn't handle transparency very well (As I'm sure you may have noticed, not all WinForms controls even support it). The blink is caused because as your TableLayoutPanel is loaded, as well as all its items, the Form has to find the correct 'image' (Because the control doesn't support transparency in the same way as WPF or a game does, it instead uses an image of the controls behind it) to display. It must go through this process as each of your controls are loaded, hence the blinking. You can try enabling DoubleBuffering on your Form, however, if I recall correctly, this can cause issues with transparency.
If you find that you are using a lot of transparency and/or want to customise your Form a lot more, I suggest you take a look at WPF. It offers far greater control over your Form (Window in WPF) as well as supporting transparency on every single control.

Display html in Windows Store app

I am trying to display an html in my Windows Store app (C#/XAML). But I cannot find an appropriate way to display it with the transparent background. Is there any way to get to know app background color and format html for WebView correspondingly? Or shall I better add another page for showing html-description, with setting its background to the one I would like beforehand (in code)? Or maybe there is some better approach?
P.S. I also would like to be able to handle hyperlink clicks, if it's possible. I know I can do so in WebView.
My understanding is that WebView controls are actually rendered as a separate surface on top of the XAML layer and consequently do not support transparency. Your best bet would be to do as you suggested: finding the current app background color and setting the WebView HTML's background accordingly.
Getting the app background color is easy; something like Resources["ApplicationPageBackgroundThemeBrush"] would do the trick.
Applying that color to whatever page you wish to navigate to is trickier, AFAIK. One method that might work (though I haven't tried it myself) is to use HttpClient to download the page's raw HTML and modify the background color prior to calling WebView.NavigateToString(), instead of directly calling WebView.Navigate().
If you can edit the page source, you could simplify the process by adding some JS scripts to change the background color, then use WebView.InvokeScript().

Change Windows 7 app taskbar icon color

I have a Windows Forms application and I want to add a cool little visual to its thumbnail on the Windows Taskbar.
I know that you can have the thumbnail display a Progress Marquee-style thing, but how do we just change the color of it?
I'm not talking about changing the color of the icon, but the color that's behind the icon. Is this even possible?
Any code, documentation or anything to get me on the right track will be much appreciated.
You can use the TaskBar APIs available in the Windows API code pack
// This will highlight the icon in red
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Error);
// to highlight the entire icon
TaskbarManager.Instance.SetProgressValue(100,100);
Please note that this API was intended to indicate an error with a progressing operation (file copy, etc..)

Categories