QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do restrict the characters that a TextBox will accept?

TextBox - Windows Forms FAQs
You can handle the textbox's KeyPress event and if the char passed in is not acceptable, mark the events argument as showing the character has been handled. Below is a derived TextBox that only accepts digits (and control characters such as backspace... You can do this by deriving the TextBox, overriding the WndProc method and ignoring these mouse down messages.

How do I make a TextBox use all upper-case (or lower-case) characters?

TextBox - Windows Forms FAQs
Use the CharacterCasing property of the TextBox. textBox1.CharacterCasing = CharacterCasing.Upper; textBox2.CharacterCasing = CharacterCasing.Lower; Contributed from George Shepherd's Windows Forms FAQ

Do you restrict who can win?

FAQ - CBSRMT Show of the Week - CBS Radio Mystery Theater - ...
No, although I'd say it'd be nice for high-powered collectors to sit back and let the leetle fish get their collections jump-started. And once a month ought to be enough for anyone.

How do I disable pasting into a TextBox?

TextBox - Windows Forms FAQs
How do I prevent the user from being able to paste from the clipboard into a TextBox, e.g., through Ctrl+V and the context menu? First set the ContextMenu property of the TextBox to a dummy, empty ContextMenu instance. This will prevent the default context...

How do I bind a TextBox to a nested relation?

TextBox - Windows Forms FAQs
Say you have a Parent table related to a Child table related to a GrandChildTable, and you want to bind a TextBox to a column in the GrandChild table. To do this you have to have nested relations defined, and you use this nesting to create the DataMember...

How do I support an overwrite mode in a TextBox?

TextBox - Windows Forms FAQs
You can handle the textbox's KeyPress event and if you want the keypress to be an overwrite, just select the current character so the keypress will replace it. The attached sample has a derived textbox that has an OverWrite property and a right-click...

How can I use a TextBox to enter a password?

TextBox - Windows Forms FAQs
Set the TextBox.PasswordChar property. textBox1.PasswordChar = '\u25CF'; Contributed from George Shepherd's Windows Forms FAQ I have a delete key shortcut for my main menu. When my textbox is being edited, pressing delete activates this menu items instead of being processed by the TextBox. How can I get my TextBox to handle this delete? Subclass the TextBox and override its...

Can I restrict or control viewing of the plans?

Parenting Plans Online.net FAQ Page
Yes. Your Guests can only see the plans you have set to be "visible". All other saved plans (such as draft copies or works in progress) will be hidden from them. They will not be able to view or edit the hidden plans.

Will a UV system restrict my water pressure?

Frequently Asked Questions
No, Sterilight systems are designed with inlet/outlet ports correctly sized for the specific application. As an example, the 8 USGPM system comes with 3/4" ports. The typical pressure drop on this system would be 2-3 psi.

How do I restrict by language, license or filename?

Google Code Search FAQ
The lang: operator, which restricts by programming language (e.g., lang:"c++", -lang:java, or lang:^(c|c#|c\+\+)$) The license: operator, which restricts by software license (e.g., license:apache, -license:gpl, or license:bsd|mit) The package: operator, which restricts by package URL (e.g., package:"www.kernel.org" or package:\.tgz$) The file: operator, which restricts by filename (e.g., file:include/linux/$ or -file:\.

What are Control Characters?

FAQ 5
Control Characters are specific characters that can be entered in graphic text (e.g., titles, legends, scale values, added text, category values, category names) in order to customize the text. If the text is entered via the Graphic Text Editor dialog, then specific customizations (e.g., attributes of text) can be entered by highlighting the respective part of the text and then pressing one of the mini-toolbar buttons.

Who were the regular characters on the show?

Frequently Asked Questions about NYPD Blue
Over the course of the 12-season run, there were 24 regular characters. Starting with the eight regulars from the final season, they were: SGT. ANDY SIPOWICZ (Dennis Franz): A hulking, mustachioed, walking contradiction, Sipowicz was a recovering alcoholic, a hot-tempered bully and a crude bigot. He was also a dedicated, brilliant cop, a fiercely loyal friend, and a sensitive soul who, in the last few years, learned to ignore his prejudices, if not forget them.

What are invalid characters?

Domain Name Systems - FAQS - Frequently asked questions
You may only use AlphaNumeric combinations along with a hyphen (-) in a domain name. Any other character within the domain name will cause it to be rejected. Back to top

What letters and characters do you have?

PromoPlates FAQ (Frequently Asked Questions)
We also have a number of non-english language characters. e.g... ß ü ä Ü Ä ö ø

How do I specify the text color of a read-only or disabled TextBox?

TextBox - Windows Forms FAQs
When I set a TextBox to Readonly or set Enabled to false, the text color is gray. How can I force it to be the color specified in the ForeColor property of the TextBox? You can download a VB.NET sample. Override the OnPaint event of the TextBox. For example...

How do I format numbers, dates and currencies in a TextBox?

TextBox - Windows Forms FAQs
Each type has a ToString method that can be used to perform formatting. Also, you can use the String.Format method to format things as well. To format dates, use the ToString member of DateTime. You may want to use the InvariantInfo setting to get culture...

How do I disable the right-click context menu in a TextBox?

TextBox - Windows Forms FAQs
You can set the ContextMenu property of the TextBox to a dummy, empty ContextMenu instance. Contributed from George Shepherd's Windows Forms FAQ

How do I set several lines into a multi-line TextBox?

TextBox - Windows Forms FAQs
There are several of ways to do this. Here are a few: 1) Insert a carriage return, linefeed combination, "\r\n", between lines of text. textBox1.Text = "This is line 1.\r\nThis is line 2"; 2) Use the Environment.NewLine property. This...

How do I support browsing for a text file and reading it into a TextBox?

TextBox - Windows Forms FAQs
You use the Frameworks OpenFileDialog to implement this functionailty. using System.Text; using System.IO; private void button1_Click( object sender, EventArgs e ) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = "Open text file" ; dlg...

How do I add ActiveTextBox capabilities to a textbox?

AbsoluteWay.com : ActiveTextBox : FAQ
Select New ActiveTextBox from Operations menu. In a window that will show up left-click the Finder Tool and point to the needed textbox while holding left mouse button down (in other words drag the Finder Tool over a textbox) If the window class of a textbox is registered with ActiveTextBox (see next question), the cursor changes it's shape and color. Release the left mouse button. Press OK in the New ActiveTextBox window. Enter the description of this textbox and press OK.

Explore Other Topics

How is a blocked tear duct treated?
How do I insert a Landscape page into my (portrait) document?
What can I do to make my fireplace heat my home?
How do I mount a cdrom under Ubuntu?
What's the time zone and when is sunrise and sunset?
When do new hairs start to replace lost hairs?
What is the difference between WebSphere ESB and WebSphere Message Broker?
What are the UMTS frequencies and channel spacing?
What is the difference between MMS and SMS?
How is a dry loop Line installed (Dry ADSL, SDSL, IDSL, Fractional or Full T1)?
Internal web browser with Apache web server support ??? What does that mean?
Is there any connection timeout?
More Questions >>

© Copyright 2007-2009 QueryCAT
About • Webmasters • Contact