.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

WPF BUG, Window not show when showintaskbar is set to false when display is turn off automatically

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :WPF


I met a problem regarding to WPF window on windows vista SP2.

I create a window with following properties:

WindowStyle="None" ShowInTaskbar="False" ResizeMode="NoResize" Background="Transparent"

The ShowInTaskbar is set to false, which means the window will not show taskbar button, but you can see it in the taskbarlist using Alt+tab

In my application, when receiving some events, the window will be created and Show(), for example,

window1 wd = new windw1();

wd.topmost = true;


I happen to find in the followin case, the window is not show correctly

My display setting in the power manager is set to turn off display in 1 minute,

After 1 minute, my display turned off, after that, there is a event which triggered the window to show, but after i move the mouse to get the display back, i didn't see the window is showed, instead, when i use Alt+Tab, i can find a window transparent in the taskbarlist with my application icon. It's very strange. after i click "show desktop" for two times, the window show itself.

i googled in the internet, and found it seems that when showtaskbar is set to false, there will be another transparent window created which is the owner for the current window, this explains that why i can see transpa

View Complete Post

More Related Resource Links

FieldTemplate_Edit to show value when custom meta data is set editable equals false

Have a custom FieldTemplate (RadioButtonChooser_Edit.ascx) that shows a radiobuttonlist based on a single character.  Using LinqtoSQL/DynamicData enabled.Example G, F, P  (Good, Fair, Poor).If the custom metadata for a field in the table is set  [Editable(false)]  I get a G, F, or P.  I would like to show the full word when editable is set to false.  Not sure how to approach this.

How to make cause validation false for Show Edit buttons in Gridview control

  HI. I am having 2 (dept name, City)dropdownlist, 1 Save button once if we click the save then record will be displayed in grid (Gridview with ShowEditbutton =true and I have Edit logic in my page). But if I click on Edit button then if I try to update the value then it is firing a message "Select dept" because dept dropdown present in the page so I want to make cause validation false for Show Edit buttons (update and cancel). Pleaase tell me Thanks

Show hyperlink and popup window when Mouseover on image !

Hello , I am developing a web application using asp.net, telerik RadAjax control. I have to need to develop when mouseover the image then show a hyperlink and when click the clink then open a new window(like facebook profile picture change). Please Help me...

How show the Visual of WebBrowser on another Window

Hello, basically my idea is to "duplicate" in realtime(i'd want to watch videos too) the visual of WebBrowser on another Window. I add a WebBrowser control and i use it for web navigation. In realtime, i want to project that navigation on another window (that i move to the secondary monitor). I tried to use VisualBrush setting the WebBrowser as Visual but it show nothing. How can i "duplicate" the visual of WebBrowser control? Is there any way?   P.S. Sorry for my bad english

how to display the gridview in the popup window

hi, here i need to display the gridview  with in the popup window
for that the input parameter is the ratings id, it is in the dropdown i need to pass the ratings id to back end
if i select the ratings from the dropdown & click on view button the popup window should populated...
for that  my html code is
            <td class="orgDataLabels">
            <td class="orgDataArea">
                <asp:DropDownList ID="ddlratings" runat="server" Width="150px" Style="height: 22px">
                <asp:Button ID="BtnView1" runat="server" Text="View" ValidationGroup="g2" SkinID="btnGo"
                    OnClick="BtnView1_Click" />
                <asp:Label ID="lblrate" runat="server">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValid

Return true or false from Popup window to Parent window


Hello everybody.

I am trying to return true or false from popup window to the parent window.

Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message.

But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

Please help me.

Thank you.

how to get user name in window login and show in our website


if any one login how to get user name and show in our web page

and how to get location of client side (Physically Ex-India -Delhi-Anand Vihar)

Show WPF Window from any application via Com-Interop (OLE) Interface



I have a C# dll library which contains several utilities and WPF Windows.
I need to use these from an unmanaged application (actually written in Delphi 2009).
To do so I added an Ole interface to my dll.
In my initial call I start a thread and create an Application object in it whith its own Dispatcher.
Every time I need to show a WPF Window I do this by Invoking an the Applications thread.
This works so far, but seems to have a bit overhead when I try to open a WPF window for example.
Here is some of my code below:

  public interface IOleBridge
   bool Startup();

   void ShowWindow();

  // [ComSourceInterfaces(typeof(IOleBridgeEvents))]

Can not display the value in combo box from main windows in another secondary window.


Hi All.

I have a problem : I have main windows with bind to sql combo box. I want to display at the start of second windows selected value from main win combo box in combo box which located in second windows. I have code that does this but I'm having trouble when I bind combo box from second windows to sql. More than I have this code that displays the selected value from main windows but everytime first row in sql table because a code is selectedIndwx = 0 ;

How can I change the code to display the selected value from the main window and bind combo box at the same time.

there is a code.

Main window.

private void button3_Click(object sender, RoutedEventAr

How to show column value in display mode and hide in edit mode?


How to show column value in display mode and hide in edit mode for my custom page layout?

I need similar functionality like PublishingWebControls:EditModePanel with contrary behavior.

I cannot use nor server-side code neither third-party web-parts. Only pure APSX+SP Contol Libraries and client JS allowed.

Edit/Display of Report/Properties/Parameters only 2 decimal places show need 4 decimal places


Does anyone know if there is a way to display 4 decimal places on an Overide Default of data type Float on the Report/Properties/Parameters page.  It accepts 4 decimals and that is what is used in report but when returning to this screen it only displays 2 decimals.

SSRS 2005

Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing? How to show it?


Why is the "WCF Services" entry in the Add New Item window in VS 2010 missing?  How to show it?

I've noticed that several templates are missing in the Add New Item window in VS 2010.

How can i get the WCF Services to show?


.NET framework 4.0 display cmd window with a blinking cursor after booting


pls why does .NET framework 4.0 display cmd window with a blinking cursor after booting?

i use windows 7 professional 64-bit on an Alienware M17x R2

Display single item from List using XSLT and show total count of all items in list


I have a simple SharePoint 2010 list named "Tips". Each item consists of a Title and Description. I want to display a single item at a time in a sidebar on my site with arrows to advance to the next or previous item in the list. I've been able to accomplish this pretty easily using OOTB SharePoint XSLT list view web part settings and AJAX. However, when I tell the web part to only display 1 item at a time the pager always says it's showing item "1 of 1" or "2 of 2". It won't show the total number of items from the list. I'd like it to show something like item "1 of 25", etc. How do I get it to display the total count of items from the list?  I've looked at possibly using aggregation attributes on a FieldRef but I've not been able to get anything to work. I'm not even sure that's the right place to be looking. I'm needing to accomplish this without writing a custom web part. 


Display / Show Multiple Web Parts


Currently i trying to do display / hide multiple web parts (content query) based on user click. I have created 5 content query, on default it will show only 1 web part and others web part will be "hidden". When user click another selection, it will show the correct web part information and hide others. I will really appreciate if anyone could give me the idea, guideline to perform this task.

Roughly i have an idea which is using getElementByID to control the webpart ID however i did not try it yet . I also go through below link however i still cant understand well how it works. Thank you.

Ref: Show/Hide Multiple Web Parts by Bryon Wyle



Cannot open windows .net form in powerpoint slide show window


We have successfully created .NET addin in PowerPoint. On the click of this addin, we have opened a .net Form where there are three buttons(say Login and etc). On the click of Login button, we opened Login form. This works perfectly in PowerPoint.  But when we have slide show window, on the click on Login button, Login form gets opened on main PowerPoint window, but not on SlideShow window. This works properly on winXP m/c. We are facing this issue on win7 m/c. Please help me.

Thanks in advance.

GridView inline Master/Detail record display

This code drop is part of a smash and grab series. If you're in a rush, you can just grab this code and insert it into your application, no understanding is required. When you have some time (ya, right) you may want to review the source code.
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