.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Behind Visible Window (No Transparent Window) ?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application


My there was a question about WPF.http://social.msdn.microsoft.com/Forums/en/wpf/thread/7190959b-b1c6-4cd3-8108-600becc8b03b

Same question but now subject is Windows Forms.I can making transparent windows (back of form is visible) with below code

this.BackColor = Color.White;
this.TransparencyKey = this.BackColor;

And I have a panel on form object.This panel's background color is transparent.Because panel's behind must be visible...and While Application running ,I'm clicking panel object.Rather I can't click to panel object.When I changed panel's background color to other color (except Color.Transparent) ,I can click panel object.What necessary I need to do ?

C Sharp Coder

View Complete Post

More Related Resource Links

Windows Workflow : Activity Binding Properties Window Ellipses button not visible for one property

I have created a custom activity, when I am using this activity in workflow designer I am not getting the ellipsis button to select a property.  I am getting the ellipses button for first property LongValue while not getting the option for "NavigationUrl" property. This is the code for my custom activity. public partial class SetLongAsResult: Activity {         public SetLongAsResult() { InitializeComponent(); }         public static DependencyProperty LongValueProperty = DependencyProperty.Register("LongValue", typeof(long), typeof(SetLongAsResult));           public static DependencyProperty NavigationUrlProperty = DependencyProperty.Register("NavigationUrl", typeof(string), typeof(SetLongAsResult));           [Description("long value to be returned")]         [Category("Set Result Data")]         [BrowsableAttribute(true)]         [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]         public long LongValue         {             get             {         

Transparent WPF window blinks when background is redrawn

Hello everyone. I have a problem with a window which is transparent. If the background changes under the window, you can see that the whole window is redrawn, so it blinks and it doesnt look well.   <Window x:Class="Transparent" WindowStyle="None" AllowsTransparency="True" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Transparent" Background="Transparent" Width="190" Height="200" Topmost="True">   <Canvas Background="#FF444444" Height="200" Width="190" Name="TranspaerntCanvas"></Canvas> </Window> On some changing background it works fine (for example when I put it over a youtube video), but over openGL background the window is blinking. I use .NET 3.5 on win XP. Does anyone know, how to fix this problem? Thank you

WPF transparent window has white box arround it on XP but not vista

Hi I have a WPF Transparent window which works fine on Vista but on XP, there is a white box around it. I am not sure what's causing it on XP, any suggestions will be very much appreciated. R

drag and drop into transparent canvas on transparent window




Short version: how can I drag/drop into a transparent window.


Long version:

I have a transparent borderless window with a transparent canvas in it. The canvas can hold usercontrols that can be dragged around (like gadgets, widgets).

I want the user to be able to click anywhere outside the gadgets but within the canvas and hit whatever that is behind, like other windows from other programs or icons on the desktop for example. This is easy because everything is transparent except the gadgets. The problem comes when I want to drag new gadgets in from another window. When the window and canvas is transparent, it is not allowed to drop anything on them... (the drop target canvas is not registering any mouse events)

So what I want is some kind of partial HitTestVisibility. For MouseDown in the canvas, it should be HitTestVisible=false, but when I drag something (my own stuff, not  files for example) over the canvas, it should be able to drop it.

I have tried setting the opacity of the background to 0.01 when entering the window with the mouse, that works sometimes if I have a small border that the mouseenter event can trigger on, but if I move the mouse to fast, it wont work.... So a 100% fool proof way of enabling Drop on a transparent control would be nice :)



WPF Issue - Toast Window does not appear after hibernate even though visibility is Visible


I'm working on an app which can make and receive calls. When receiving calls the application displays a toast on the bottom right of the screen. This toast is just a new WPF Window. If the machine has a graphics card the toast will scroll up from underneath the screen. If it does not support graphics hardware the toast will just appear.

However I'm seeing on Windows 7 (and its also been reported on Vista and XP) that the first incoming call after a hibernate or standby (or occasionally after leaving the app idle for a few hours) does not produce a toast. Looking at my logs I can see that my logic is correct. The window is positioned correctly and its Visibility is Visible. But the user does not see anything. At this stage I'm thinking its a WPF problem. This happens on machines both with and without a graphics card.

If I make a second call directly after the first one the toast appears. The logs are exactly the same for both cases. It just appears that WPF does not render the toast for the first call. This is not fully reproducible but it happens often enough to be a major concern. Does anybody have any suggestions on what could be causing this problem? The method I'm using to show the window is newNotification.Show() where newNotification is a Window.

Modal popup window in ASP.Net

A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

lossing focus from model pop up window controls


hi i using a model pop up window with some textbox but when i click on textbox of model pop up focus move to back to page textbox control plz help me 

Open PopUp Window From Error httpModule


I would like to open a popup window from the assembly to present the information to the user. Does anyone know if this is possible, I am presently doing the following:

        WriteLine("body {font-family:""Verdana"";font-weight:normal;font-size: .7em;color:black; background-color:white;}")
        WriteLine("b {font-family:""Verdana"";font-weight:bold;color:black;margin-top: -5px}")
        WriteLine("H1 { font-family:""Verdana"";font-weight:normal;font-size:18pt;color:red }")
        WriteLine("H2 { font-family:""Verdana"";font-weight:normal;font-size:14pt;color:maroon }")
        WriteLine("pre {font-family:""Lucida Console"";font-size: .9em}")

Create a user friendly pop up window


Hello friends I am new to asp.net programming. While working with windows form(windows application) i have created a window for editing purpose(just like popup window ) which contains three bounded dropdown list a button and a gridview. After making selections from the drop down when we press button the corresponding result should display in a grid.After that when you click on the grid row it will load the corresponding datas in my form. i want to create such control in asp.net . i have to use jquery or ajax.And this pop up window i have to use more than twenty times in my application.am using VS2008 ASP.NET and C# 3.5 . Plese suggest me what to do. Thanks in advance

problem in consuming WCF service through Window application


I have a silverlight application and WCF service all made in VS 2010 , i had hosted my site to web server which contain Window 2008 and IIS 7.0

now the problem is i have another application which is a window application developed in VS2008 , when i try to add the service reference it gives me error


The document at the url was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://dev_qa.emspa.com/HRDev3/Service.svc?disco'.'.

  - The request failed with HTTP status 400: Bad Request.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from '' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: ''.

Content Type application/soap+xml; charset

Crystal Report parameter value window.


 Hi friends,

   I am using Crystal report which displays the result of stroed procedure which have 2 paramater.

  When i run report it shows two window for getting each parameter.

  My need is, can i have one window for getting all the paramter value for stored procedure.


  With Advanced thanks,






Aero Glass: Create Special Effects With The Desktop Window Manager


In this article we introduce the Desktop Window Manager, the new interface that manages how windows are rendered on the Windows Vista desktop.

Ron Fosner

MSDN Magazine April 2007

C++ Q&A: Window Destruction in the .NET Framework


If a window is destroyed, does the .NET Framework immediately destroy the corresponding Form, or does it wait until a garbage collection to do this? How can you release my resources as soon as the window is destroyed? This month Paul DiLascia gives you the answers.

Paul DiLascia

MSDN Magazine May 2003

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend