.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

How to disable Windows 7 right click close of winforms.?

Posted By:      Posted Date: October 10, 2010    Points: 0   Category :Windows Application

How to disable Windows 7 right click close of winforms.?

When right click of the icon on the taskbar,shows close option to close the form.

How to disable it?


View Complete Post

More Related Resource Links

how can I disable right click on the picture of website?

Hi Friends, Could you please recommend me a solution to disable right click on the pictures of website? thanks in advance , sepid  

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

WinForms Controls under Windows 7

I have a small WinForms application which looks fine under Windows XP. When it's run under Windows 7 the controls look awful. The TabControl uses different sizing (horizontal/vertical dimensions) and tab spacing. The images in buttons are very small and lose definition. The CheckBox is very tiny. The height of the header row for DataGridView controls is very small, even though I have set an explicit height. Controls in a certain dialog box do not even work unless I "Disable visual themes" on the Compatibility tab of the application properties. I had carefully sized and aligned controls for a clean appearance under Windows XP. Windows 7 appears to have destroyed those efforts. What's going on and how can I restore the appearance to be as desired? Thanks!

How to Disable Webpart Close Rights

Hello, I have one group. I have given contibution rights to this group. user from this group can close & modify webpart. Is there any way I can take that right from user.  Thanks, Sam

Enable Disable Save Button in Winforms App

Hi, In our windows forms application we have many forms with "Save" buttons. We want to enable them only if the data in the form is changed. At the moment it is handed by adding flags to check whether the data is dirty. Is there any easy way to handle this? May be something with the famework? Thanks,CJ

Close Thickbox From Button Click inside of iframe

I know this question has been asked several times, but all fo the answers I found did not work for me.I have a jQuery Thickbox that pops up and display's an iframe.  Within the iframe, there is a button that will sumit the form and then I would like thickbox to close as well.From what I have found, adding the command "parent.document.tb_remove()" to the OnClick tag in the button shoudl work but I keep getting the error:  Compiler Error Message: BC30456: 'document' is not a member of 'System.Web.UI.Control'.Here is the code of the aspx page that opens in the iframe:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="LeagueEmail.aspx.vb" Inherits="LeagueEmail" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <link rel="Stylesheet" type="text/css" href="CSS/mf42_layout1_setup.css" /> <link rel="Stylesheet" type="text/css" href="CSS/mf42_layout1_text.css" /> <link rel="stylesheet" href="CSS/thickbox.css" type="text/css" media="screen" /> <title></tit

Disable "enter" click on imagebutton

When i press "enter" i dont want the first button that is on my page getting fired. This is a imagebutton. I did try with a javascript function that checks the event keycode but this always returns 13.<script language="javascript"> function noEnter() {  if (event.keyCode == 13) {  return false;    }  }  </script> When i add OnClientClick="return false;" then you can't press the button at all.<asp:ImageButton ID="backButton" runat="server" CausesValidation="false" ImageAlign="AbsBottom" ImageUrl="../../images/Global/back.gif" OnClientClick="GoBack2_Click" OnClick="GoBack_Click" OnClientClick="return false;"/> When i click with the mouse on the button the Goback function does not get called. So what i'm trying to get here that the imagebutton need to be clicked with a mouseclick and not with and enter keystroke. ty ;)      

Disable button on first click

Hey folks, I have this below piece of code which fires on second time but not first time for me. I am using it as a login button checking for Username n password validations. Please correct. I don't want to use javascript:btnLogin.Attributes.Add("onclick", "this.disabled=true;" + Page.ClientScript.GetPostBackEventReference(btnLogin, "").ToString())  

Disable SharePoint Workspace alert on Windows 7 PC with Norton Firewall Provider.

My wife has a laptop with Windows 7 and Office 2010.  Recently she was playing with some settings on her PC and did something which now causes a "Microsoft SharePoint Workspace" alert to appear when she boots up the machine. She wants this message to go away.  I do not know how to do this, and searching for portions of the alert have lead nowhere.  Here is the exact message. SharePoint Workspace is unable to communicate through your firewall and will run with limited functionality.  To resolve this problem, enable SharePoint workspace as a Windows Firewall exception.  For assistance, contact your Windows administrator. To remedy this, here is what I attempted: Start > Control Panel > View by Small Icons > Windows Firewall This opens a dialog with the caption, "Help protect your computer with Windows Firewall".  Below that, there is an orange box with the notification, "These settings are being managed by vendor application NORTON FIREWALL PROVIDER." Of the half-dozen options that appear in the left navigation panel of that dialog, only 3 are enabled: control panel home, advanced settings, and troubleshoot my network.  The option to "Turn windows firewall on or off" is disabled. We have Norton 360, so I opened that program and chose the "Settings" tab, which displays a Firewall link to

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...

Disable/Hide/Redirect Close Button


Hi all,

was wondering if there was any way Out of Box to disable/hide/redirect the close button when drilling down on a list item. I see it is possible using code, but this is not an option for us at this time as it is not supported.


Is there a way to disable the Open in Windows Explorer option for a single document library (SP2010)

I am looking to disable the Open in Windows Explorer option for a single document library (SP2010). Can someone help me with this?

how to disable right click with message window along with IP address ?


I want to disable right click on my website and would like to display a popup window on right click, along with the person's IP address who right clicked on my website, how to accoplish that ?

Till now i have added this script on my master page which disable right on I.E but doesn't popup any message window and it works in mozilla and shows popup. why message is not poping up in I.E ?

<script type="text/javascript">
            var message = "Right Click Have Been Disabled!";
            function clickIE() { if (document.all) { alert(message); return false; } }
            function clickNS(e) {
(document.layers || (document.getElementById && !document.all)) {
                    if (e.which == 2 || e.which == 3) { alert(message); return false; }

how to disable one button after fisrt click in a day


i want the submit button be disable after  user click one time , i meant i want 1 user has rights to submit onetime only in a day . thank

Disable Hardware Acceleration in Windows 7 Through Regedit (No Entry for Avalon.Graphics)


I attempted to disable hardware acceleration through regedit as described here.  Unfortunately, my system doesn't have an entry for avalon.graphics.  (I do, however, have .NET Framework 4 installed, which I thought was part of avalon.)  Is there any sort of work-around?  Can I simply create my own entry for avalon.graphics?


Winforms Webbrowser - disable warning on script errors



i am hosting the winforms webbrowser control in a wpf window (whilst i believe that the wpf context doesn't matter)
i do some programmatical loading of urls and process the document's content in the handler for DocumentComplete...
If there is an error in the documents script the control displays a warning message box
sth like
"an error occured in the script of this page..{details}..do you wish script execution of this page to continued?"
As long as the warning is displayed the code asynchronously keeps on loading new urls, but fails to handle
DocumentComplete (which isn't fired while the warning is displayed).

Can I somehow programatically disable this warning?
I already did disable the checkbox under "displaying script errors" in system-control/IE-Settings.
This only seems to affect instances of IE as an desktop browser, but not of the WF-webbrowser control.
Is there a way to supress warning messages while laoding URLS in the WF-webbrowser?


Disable Mouse Right click in datagrid


Hi Friends,

       Can any one Suggest,how to disable mouse right click in WPF Datagrid.


Thanks in Advance,


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