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

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

Rectangular Default Windows Button

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :WPF
Hi i am messing a bit with styles. I think the following code should make the normal "Button" rectangular, but on my Windows 7 machine only the left side of the button. The blue focus rectangle never changes its rounded corners. <Button> <Button.Resources> <Style TargetType="theme:ButtonChrome"> <Setter Property="RoundCorners" Value="False" /> </Style> </Button.Resources> Rectgangle Button </Button>  I used ' xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" '. Thanks and Greets Balkoth

View Complete Post

More Related Resource Links

Jquery UI buttons style return back to windows default button



i have placed my 

    <link type="text/css" href="css/smoothness/jquery-ui-1.8.5.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>

<link type="text/css" href="css/smoothness/jquery-ui-1.8.5.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>

under my template.master - master page.

so i make a new page based on my master page.&nb

OK button click on Windows dialogue form not triggering click event

I have created an Add-In for Outlook 2003 in Visual Studio 2005. When a new message is sent and a toggle button is selected, a form that I have created will be displayed as a dialogue box, where further information can be entered. Once this information has been entered you can click the OK button and the message is sent. If you were to click the OK button with invalid data in the form, there would be a message box with an error message. This all works perfectly on my development machine but when I have packaged the Add-In and installed it on other machines it does not work. Clicking on the OK button does nothing, there is not even an error message. All the prerequsits are successfully installed and this is the only part of the Add-In that does not work. All help greatly appreciated. Thanks Nick

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             {         

ReportViewer Print Button not working correctly with windows 7 clients

I need some help being pointed in the right direction to fix the following issue: - After building several reports using reportviewer and testing with windows XP clients everything seemed to be fine.  I noticed that the first time the client loaded the asp.net website and clicked the print button it asked permission to install a small file (I assume this is to allow the reportviewer to access the clients printers).   - The problem I have is on Windows 7 Clients.  They can view/export the reports with no problem, but when they click the print button it ask permission to install the small file, but a error is given during the install process and the file is not installed.   If anyone has a solution or can point me in the right direction it would be helpfull.  I am using Visual Studios 2008 on Windows XP PRO and the site is hosted on Windows Server 2003 R3   Thanks 

how to override the default popups for windows logins for guest users?


how to override the default  popup for windows logins for guest users?

So that guests will be provided with restricted access?


How to set the default culture Info for all thread of an application independant from the Windows UI


A classic 'european' topic?

I am working with Windows7Pro in German, and VS2010 in English. I whish I had all exception handling in english.
Thus, I set the explicly the current culture to english:
 var culture = new CultureInfo("en-us");
 Application.CurrentCulture = culture;
        Thread.CurrentThread.CurrentUICulture = culture;
        Thread.CurrentThread.CurrentCulture = culture;

But I do still have some exception in German, because 'by design', .NET Framework considers the Windows UI language as default culture when a new thread in created (e.g. by GUI controls), as I read here http://www.dotnetmonster.com/Uwe/Forum.aspx/winform/14177/setting-culture-of-threads

What is the motivation for such a design? It has always been a problem for us in Europe working with multi languages: it is quite difficult to ensure the software is working properly whereever it is rolled out.
Is there a way to define the default culture of all children threads?

Feedback requested: Default schemas for Windows groups


We want to seek your feedback on understanding the scenarios where you need to assign default schemas to Windows groups.  Based on the requests we have received and reading through one of the longest threads on this issue (http://social.msdn.microsoft.com/forums/en-US/sqlsecurity/thread/7d46a024-7ed5-4c9b-b091-3640dc04f5a1/), it seems there are multiple solutions that people are trying to achieve using default schemas:

-          Have a default schema as part of the user's session that is set up by the application (through something like SET DEFAULT_SCHEMA = <foo>).  Any objects referenced or created will be bound to that schema.

-          Have a setting in SQL where it rejects any object reference without a schema.  This enforces the app to always use 2 part names (best practice).  This works best when you have access to the application source code or are writing a new application.

Auto-complete extender and default button of a panel - Enter key issues


Hi. I have a text box with an auto-complete extender attached to it. This is in a panel. Now, I have set the default button of the panel to the submit button of the panel.


      <text box/>




Now, I find that when the auto-complete options show up and I try to select an option using the enter key, the button is pressed (triggering a postback) due to it being the defaultbutton of the panel.

I want to be able to select an aut-complete option using the enter key and yet not post back. Therefore, the enter key (when the text box is in focus) should not trigger a postback. How can I achieve this?

Why Windows Close Button send data to SQL?


Hi all.


I have UI app windows with combo boxes which updating data into SQL Store Procedure.

I open UI windows do some updating data update correctly but is A problem rise when I open window again and  do nothing only close windows by clicking button close("X") on win a application updating sql table as if I click button send...

problem with connecting to local SQL Server 2008 default instance using windows authentication




I have a user getting some problem with connecting to local SQL Server 2008 default instance using windows authentication with a user which has sysadmin role and is owner of each existing database:

2010-09-28 15:40:35.04 Logon       Error: 18456, Severity: 14, State: 11.


2010-09-28 15:40:35.04 Logon       Login failed for user 'IIS APPPOOL\RoomViewSEWebClient'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT:]



This us

Default .NET support in Windows versions


I'm trying to figure out what versions of .NET are supplied by default in different versions of Windows. I can't find this information in one place, but so far I have:

Win XP: ?
WinXP SP1: ?
WinXP SP2: ?
WinXP SP3: ?
Win Vista: .NET 2.0 and .NET 3.0
Win Vista SP1: ?
Win 7: .NET 3.5 SP1 (includes .NET 2.0 SP1 and 3.0 SP2)

Can anyone extend this list or tell me where to find this information?


code for button in Default.cs


I want to write a button in code for under my table. When i click on that button there need to be an action, anyone?

               AantalKolommen = 4;
                        for (int j = 0; j < AantalKolommen; j++)
                            if (j < AantalKolommen - 1)

MVC2: Set default button for 'Enter' Key


I have the following code in a View:


            <% if ( Model.IsLoggedIn != true ) { %>
                <input class="NavButton" type="submit" name="submitButton" value="Previous" /> 
                <input class="NavButton" type="submit" name="submitButton" value="Login" /> 
            <% } %>

How do I set the "Login" button as the default button for when the "Enter" key is clicked on the keyboard?


Thank You ! 

Default button handling in datalist.......urgent help


Hiii all,


i'm using datalist to display product details.

every item in datalist contains...

override wpf button default behavior - blinking on focus


How do you override the default blinking on a wpf button that has focus or on mouseover etc? I tried turning off all default behavior with 

<Setter.Property="FocusVisualStyle" Value"{x:Null}" /> and various other style settings, but nothing seems to work.




Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

Serving Silverlight Apps from Windows Mobile

Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it's still .Net programming.

Here is the scenario:

You come back home, you have a windows mobile phone wifi capable and you want to quickly get access to your phone pictures from your home network.
You just activate the Wifi, run my app and then browse to the provided link from any computer on the network.
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