disable

C# How do disable a key

How do I prevent the caret to go to the next line when the 'ENTER' key has being pressed on a text-box? In other words how to disable the 'ENTER' or 'RETURN' key on a text-box? ...

How would I disable the 5 same fields of specific forms in a formset?

Some of the forms represent parent objects and I want most field disabled in each of these forms, if they're for a 'parent' object. Is there an easy way to do this? ...

Disabling the exit button on a windows form?

Is there a way to disable the exit button on a windows form without having to import the some external .dll's? I disable the exit button by importing dll's using the following code but I don't like it. Is there a simpler (built-in) way? public Form1() { InitializeComponent(); hMenu = GetSystemMenu(this.Handle, fa...

Disable spell checking on IntelliJ IDEA

Hi! I'm trying - since almost an hour - to disable spell checking in MacOS's IntelliJ IDEA version 8.1. I hate to say: it's a very stupid question: how do I get rid of it? :-) Does someone know that? Thanks a lot! ...

disable cache for some images

Hi there I generate some images using a PHP lib. Sometimes the browser don't load the new generated file. How can I disable cache just for images created dynamically by me? obs I have to use same name for the created images ...

Is there a way to completely disable copy/paste functionality in Visual Studio?

Hello, I'm looking for a way to completely disable the copy/paste functionality in Visual Studio (2005 if it matters). The reason behind this request is that I want to prevent myself from doing too much copy/paste while coding. Thanks to all for your answers! ...

disable "Rename" menuitem in eclipse

I have defined my own project nature . I need to disable right-click->"Rename..." and Refactor->"Rename..." menuitems for projects which are associated with "MyProjectNature". Any clues as to how it can be achieved in eclipse plugins ? ...

Sharepoint Blog: enable/disable comments regarding field value of Posts

Hello! I need to enable/disable post comments regarding the value of a new field in Post list. I don't see how to do this... Any ideas? Why is there an error when converts to XSLT? Is possible to get the querystring to do this? Thanks a lot!!! Xavier ...

JButton question

Can you disable a JButton without graying out the button itself? When you use setEnbaled(false), the button disables and turns to gray. Is it possible to disable the button but make the appearance of the button still the same? ...

How to make a TextBox non-interactive in C#

Hey, I've got a TextBox on a form that I am using to just display data. I have set it to ReadOnly which stops the user from changing the data displayed in the TextBox. Although the user can still highlight the data in the TextBox, how do I disable this? NOTE: I know using a label would be much easier, although for some reason the lab...

Disabling UINavigationItem custom right view?

I create a custom right view as follows: // Build the Segmented Control NSArray *segmentTextContent = [NSArray arrayWithObjects:[UIImage imageNamed:@"arrow-dice.png"], [UIImage imageNamed:@"arrow-up.png"], [UIImage imageNamed:@"arrow-down.png"], nil]; UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:segme...

How does the WPF ComboBox disable the window from scrolling or resizing

I am trying to recreate some of the behaviors that occur when the combobox dropdown is open. When this happens, if there is a scrollviewer then scrolling gets ignored. The ability to resize the window is disable. I know that there is a ResizeMode, but the results of changing the mode are visibly jarring to the window. If the window goes ...

Other ways to disable Silverlight in IE 7?

I know I can disable the Silverlight add-on using the Manage Add-ons dialog, but what other settings would cause Silverlight to not function and display the Install link, if the correct version of Silverlight is actually installed on the computer? Silverlight applications do not display (they show the Install link) in Internet Explorer ...

How I can disable the second-level cache of some certain entities in Hibernate without changing annotations

Hello, I'm using Hibernate second level cache in my application, for certain business reason I can't change the entity annotation any more. In my project, apart from changing the Database from Hibernate, there exist also other native SQL that do not go through Hibernate. Therefore, the Hibernate second-level cache data could be stale a...

jQuery disable a link

Hey, Anyone know how to disable a link in jquery WITHOUT using return false;? Specifically, what I'm trying to do is disable the link of an item, performing a click on it using jquery which triggers some stuff, then re-enabling that link so that if it's clicked again it works as default. Thanks. Dave UPDATE Here's the code. What it n...

JavaScript: toggle links active/deactive

How do I toggle HTML links from being active / deactive using JavaScript? Within my HTML, I have 2 hyper links that call a JavaScript function to sort a table: <a href="javascript:sort('asc');">ASC</a> | <a href="javascript:sort('desc');">DESC</a> What I would like to do is when someone clicks the "ASC" link, it then deactives the "A...

Turn off Line Continuation in VB.net (visual studio 2008)

Is there any way of turning off Line Continuation in VB.net? I want to be able to prevent VS 2008 from automatically editing any long strings so they use line continuation. I would far rather have it all on one line even if i cannot see the entire screen. Any solutions guys? Thanks in advance! ...

Disabling Vista-Style controls in Application

So I'm trying to recompile an application to add some minor features. All is well, except for one thing. The old version has all the windows-vista-style dialog buttons. The corners are rounded, the radio buttons look different, etc. Example How do I turn those things on? I want it to look/feel like the original. EDIT: If anyo...

Registry settings immediate effect using c#

I have used the following code to disable the control panel: RegistryKey RegKey = Registry.CurrentUser.CreateSubKey( @"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); RegKey.SetValue("NoControlPanel", false, RegistryValueKind.DWord); RegKey.Close(); The above code disables control panel only after restarting, I wou...

Simple Javascript question: How do I prevent scrolling with arrow keys but NOT the mouse?

See title. Since I'm using jQuery, any solution via. that would work too. Ideally, I'd like to know both, though. I already have the arrow keys bound to another function on my page (via. jQuery), but having them cause the page to scroll in addition to that causes me problems. I may have known this at one time, but I don't remember it...