ˇ@

Home 

c# Programming Glossary: textbox

Set focus on textbox in WPF from view model (C#) & wPF

http://stackoverflow.com/questions/1356045/set-focus-on-textbox-in-wpf-from-view-model-c-wpf

focus on textbox in WPF from view model C# wPF I have a TextBox and a Button in my view. Now I am checking a condition upon.. is the view name. But the cursor is not getting set in the TextBox . The xaml is as under igEditors XamTextEditor KeyDown xamTextEditorAllowOnlyNumeric_KeyDown.. wondering what is cs.txtCompanyID in your example Is it a TextBox control If yes then you are on a wrong way. Generally speaking..

Complex UI inside ListBoxItem

http://stackoverflow.com/questions/15532639/complex-ui-inside-listboxitem

Label Content Name Grid.Row 2 HorizontalAlignment Right TextBox Text Binding Id Grid.Row 1 Grid.Column 1 TextBox Text Binding.. Right TextBox Text Binding Id Grid.Row 1 Grid.Column 1 TextBox Text Binding Name Grid.Row 2 Grid.Column 1 Grid Border DataTemplate..

How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?

http://stackoverflow.com/questions/3419159/how-to-get-all-child-controls-of-a-windows-forms-form-of-a-specific-type-button

like this dim ctrls as Control ctrls Me.Controls GetType TextBox I know I can iterate over all controls getting children using.. the initial GroupBox. Inside the nested GroupBox I put 3 TextBox controls and a button. This is the code I used even includes.. object sender EventArgs e var c GetAll this typeof TextBox MessageBox.Show Total Controls c.Count And it returned the proper..

Redirect console output to textbox in separate program C#

http://stackoverflow.com/questions/415620/redirect-console-output-to-textbox-in-separate-program-c-sharp

I need to redirect standard output from the console to a TextBox in my program. I have no problem executing the program from.. an event handler which can then be used to update the TextBox. I am using C# to code the program and using the .NET framework.. app I'll replace Console.WriteLine with code to update the TextBox. I tried to set a breakpoint in my event handler and it isn't..

How do I make a textbox that only accepts numbers?

http://stackoverflow.com/questions/463299/how-do-i-make-a-textbox-that-only-accepts-numbers

didn't fit the specification. I've looked at the MaskedTextBox control but I'd like a more general solution that could work.. had success with this two event handlers on a standard TextBox private void textBox1_KeyPress object sender KeyPressEventArgs.. only allow one decimal point if e.KeyChar '.' sender as TextBox .Text.IndexOf '.' 1 e.Handled true You can remove the check..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

we will use to configure the options. In this form place a TextBox and an Ok Button . Set the DialogResult of the button to Ok..

“The Controls collection cannot be modified because the control contains code blocks”

http://stackoverflow.com/questions/778952/the-controls-collection-cannot-be-modified-because-the-control-contains-code-bl

runat server td td style text align right width 40 asp TextBox ID txtSlider runat server Text 50 style display none ajaxToolkit..

C# AutoComplete

http://stackoverflow.com/questions/796195/c-sharp-autocomplete

best bet. For example you can add a ListBox just below the TextBox and set its default visibility to false. Then you can use the.. to false. Then you can use the OnTextChanged event of the TextBox and the SelectedIndexChanged event of the ListBox to display..

Set focus on textbox in WPF from view model (C#) & wPF

http://stackoverflow.com/questions/1356045/set-focus-on-textbox-in-wpf-from-view-model-c-wpf

focus on textbox in WPF from view model C# wPF I have a TextBox and a Button.. IsEnabled Binding Path IsEditable Please help c# wpf mvvm textbox focus share improve this question Let me answer to your question..

Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on

http://stackoverflow.com/questions/142003/cross-thread-operation-not-valid-control-accessed-from-a-thread-other-than-the

I'm fetching data based on the values of some control like textbox on userControl. The pseudocode would look like this CODE 1 UserContrl1_LoadDataMethod.. would look like this CODE 1 UserContrl1_LoadDataMethod if textbox1.text MyName This gives exception Load data corresponding to.. new MethodInvoker UserContrl1_LoadDataMethod return if textbox1.text MyName Now it wont give an exception Load data correspondin..

How to stop BackgroundWorker on Form's Closing event?

http://stackoverflow.com/questions/1731384/how-to-stop-backgroundworker-on-forms-closing-event

spawns a BackgroundWorker that should update form's own textbox on main thread hence Invoke Action ... call. If in HandleClosingEvent..

Redirect console output to textbox in separate program C#

http://stackoverflow.com/questions/415620/redirect-console-output-to-textbox-in-separate-program-c-sharp

console output to textbox in separate program C# I'm developing an Windows Forms application.. e Console.WriteLine 0 e.Data c# .net winforms textbox console share improve this question This works for me void..

How do I make a textbox that only accepts numbers?

http://stackoverflow.com/questions/463299/how-do-i-make-a-textbox-that-only-accepts-numbers

do I make a textbox that only accepts numbers I have a windows forms app with a.. only accepts numbers I have a windows forms app with a textbox control that I want to only accept integer values. In the past.. feedback about the invalid character. c# .net winforms textbox share improve this question Two options Use a NumericUpDown..

How do parameterized queries help against SQL injection?

http://stackoverflow.com/questions/5468425/how-do-parameterized-queries-help-against-sql-injection

SQL injection In both queries 1 and 2 the text from the textbox is inserted into the database. What's the significance of the..

Watermark in System.Windows.Forms.TextBox

http://stackoverflow.com/questions/578193/watermark-in-system-windows-forms-textbox

share improve this question lately I needed a watermark textbox the first thing that popped in to my head was OnLeave and OnEnter.. popped in to my head was OnLeave and OnEnter events of textbox but first I googled it and I got two links first was the one.. here http vidmar.net weblog archive 2008 11 05 watermarked textbox in windows forms on .net.aspx . I beleive the SendMessage one..

“The Controls collection cannot be modified because the control contains code blocks”

http://stackoverflow.com/questions/778952/the-controls-collection-cannot-be-modified-because-the-control-contains-code-bl

putting a placeholder in the user control and adding the textbox and slider extender to the placeholder programmatically and..

C# AutoComplete

http://stackoverflow.com/questions/796195/c-sharp-autocomplete

I am trying to add an autocomplete feature to a textbox the results are coming from a database. They come in the format..

Event Bubbling and MVP: ASP.NET

http://stackoverflow.com/questions/8851933/event-bubbling-and-mvp-asp-net

The CurrentTimeView displayes time. There is a textbox to add days in the same control. The newly got date is called..

How do I automatically scroll to the bottom of a multiline text box?

http://stackoverflow.com/questions/898307/how-do-i-automatically-scroll-to-the-bottom-of-a-multiline-text-box

scroll to the bottom of a multiline text box I have a textbox with the .Multiline property set to true. At regular intervals.. I am adding new lines of text to it. I would like the textbox to automatically scroll to the bottom most entry the newest.. a new line is added. How do I accomplish this c# winforms textbox scrolling share improve this question At regular intervals..

textbox auto complete (Multi Line)

http://stackoverflow.com/questions/12972761/textbox-auto-complete-multi-line

it to stop the keyupevent at some point private void textBox_KeyUp object sender KeyEventArgs e var x textBox.Left var y.. void textBox_KeyUp object sender KeyEventArgs e var x textBox.Left var y textBox.Top textBox.Height var width textBox.Width.. object sender KeyEventArgs e var x textBox.Left var y textBox.Top textBox.Height var width textBox.Width 20 const int height..

WPF - Set Focus when a button is clicked - No Code Behind

http://stackoverflow.com/questions/2204063/wpf-set-focus-when-a-button-is-clicked-no-code-behind

there a way for this EventTrigger to put to focus on the textBox txtName I am trying to find the way to do something like this..

Sliding & Fading controls on a C# form

http://stackoverflow.com/questions/2917918/sliding-fading-controls-on-a-c-sharp-form

bit.ly aTsxKI SizeMode PictureBoxSizeMode.AutoSize var textBox new TextBox Text Hello World Location new Point 140 140 var.. Location new Point 140 140 var form new Form Controls textBox pictureBox form.Click sender e swap the Left and Top properties.. TransitionType_EaseInEaseOut 1000 t.add pictureBox Left textBox.Left t.add pictureBox Top textBox.Top t.add textBox Left pictureBox.Left..

Best way to limit textbox decimal input in c#

http://stackoverflow.com/questions/3125463/best-way-to-limit-textbox-decimal-input-in-c-sharp

set remove filter public void SetTextBoxFilter TextBox textBox Filters filter SetTextBoxFilter textBox filter AllowedKeys.. TextBox textBox Filters filter SetTextBoxFilter textBox filter AllowedKeys textBox InvalidKeys textBox public void SetTextBoxFilter.. filter SetTextBoxFilter textBox filter AllowedKeys textBox InvalidKeys textBox public void SetTextBoxFilter TextBox textBox..

“UpdateSourceTrigger=PropertyChanged” equivalent for a Windows Phone 7 TextBox

http://stackoverflow.com/questions/4833100/updatesourcetrigger-propertychanged-equivalent-for-a-windows-phone-7-textbox

object sender TextChangedEventArgs e TextBox textBox sender as TextBox Update the binding source BindingExpression.. Update the binding source BindingExpression bindingExpr textBox.GetBindingExpression TextBox.TextProperty bindingExpr.UpdateSource..

Prompt Dialog in Windows Forms

http://stackoverflow.com/questions/5427020/prompt-dialog-in-windows-forms

Label textLabel new Label Left 50 Top 20 Text text TextBox textBox new TextBox Left 50 Top 50 Width 400 Button confirmation new.. prompt.Controls.Add textLabel prompt.Controls.Add textBox prompt.ShowDialog return textBox.Text And calling it string.. prompt.Controls.Add textBox prompt.ShowDialog return textBox.Text And calling it string promptValue Prompt.ShowDialog Test..

Finding all numbers in a string

http://stackoverflow.com/questions/6616969/finding-all-numbers-in-a-string

Part of my app has an area where users enter text into a textBox control. They will be entering both text AND numbers into the.. They will be entering both text AND numbers into the textBox. When the user pushes a button the textBox outputs its text.. into the textBox. When the user pushes a button the textBox outputs its text into a string finds all numbers in the string..

Passing a value from one form to another form

http://stackoverflow.com/questions/7886544/passing-a-value-from-one-form-to-another-form

form1 is made of a label and a button . form2 is made of a textBox and a button When I click the form1 button this will show up.. the form1 button this will show up form2 . Any inputs in textBox should be written back to form1.label once I hit the button.. EventArgs e Form1 objForm1 new Form1 objForm1.PassValue textBox1.Text this.Close And a screenshot How can I realize that c#..

Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word

http://stackoverflow.com/questions/1124639/winforms-textbox-using-ctrl-backspace-to-delete-whole-word

Textbox Using Ctrl Backspace to Delete Whole Word I have a Winforms..

Install to same path when upgrading application

http://stackoverflow.com/questions/11474320/install-to-same-path-when-upgrading-application

for the install path. If you wish to disable the Folder Textbox and the Browse button to prevent users from changing the updaters..

Need help creating control to display data

http://stackoverflow.com/questions/1342689/need-help-creating-control-to-display-data

approach a bit more complicated. Implementing your own Textbox type functionality is a gigantic pain in the petard but a relatively.. a relatively simple solution is to add a real multi line Textbox over top of any text containing rectangle when the user clicks.. it and to put the rectangle's text pre selected into the Textbox. When this temporary Textbox loses focus LostFocus you draw..

Parsing HTML page with HtmlAgilityPack

http://stackoverflow.com/questions/1512562/parsing-html-page-with-htmlagilitypack

Using C# I would like to know how to get the Textbox value i.e john from this sample html script TD class texte width..

C# WinForms - Smart TextBox Control to auto-Format Path length based on Textbox width

http://stackoverflow.com/questions/2397860/c-sharp-winforms-smart-textbox-control-to-auto-format-path-length-based-on-tex

Smart TextBox Control to auto Format Path length based on Textbox width Does a smart textbox control WinForms exists that can..

Exception during iteration on collection and remove items from that collection [duplicate]

http://stackoverflow.com/questions/2545027/exception-during-iteration-on-collection-and-remove-items-from-that-collection

try string attachmentFileNames txtAttachment.Text.Trim Textbox having file names. string names attachmentFileNames.Split new..

PBKDF2 in Bouncy Castle C#

http://stackoverflow.com/questions/3210795/pbkdf2-in-bouncy-castle-c-sharp

The following code is ONLY to show the derived key in a Textbox. string x for int i 0 i result.Length i x result i .ToString..

How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?

http://stackoverflow.com/questions/3419159/how-to-get-all-child-controls-of-a-windows-forms-form-of-a-specific-type-button

controls of a Windows Forms form of a specific type Button Textbox I need to get all controls on a form that are of type x. I'm.. Dim Ctrls From ctrl In Me.Controls Where ctrl.GetType Is Textbox c# .net vb.net winforms share improve this question Here's..

Best Free Controls for .NET [closed]

http://stackoverflow.com/questions/361271/best-free-controls-for-net

share improve this question Winforms Development Masked Textbox Control . MozBar Krypton Control Kit by Component Factory DockPanel..

How to monitor SQL Server Agent Job info in C#

http://stackoverflow.com/questions/3757335/how-to-monitor-sql-server-agent-job-info-in-c-sharp

and info from Job. I need to show status and info on Textbox. What do you suggestion how to do. Developer tools MS SQL Sever..

Show Validation Error in UserControl

http://stackoverflow.com/questions/4168438/show-validation-error-in-usercontrol

doesn't show the validation state...When I use a standard Textbox Which is commented out right now in my example on my MainPage.. validation from the original binding and send it to the Textbox binding. The first thing you'll need to do to achieve this is.. a notifications loop between the original binding and the Textbox binding. ValidatesOnExceptions ValidatesOnDataErrors and ValidatesOnNotifyDataErrors..

Winforms c# - Set focus to first child control of tab page

http://stackoverflow.com/questions/48680/winforms-c-sharp-set-focus-to-first-child-control-of-tab-page

Set focus to first child control of tab page Say I have a Textbox nested within a TabControl . When the form loads I would like..

Perform Button click event when user press Enter key in Textbox

http://stackoverflow.com/questions/5948171/perform-button-click-event-when-user-press-enter-key-in-textbox

Button click event when user press Enter key in Textbox asp UpdatePanel ID UpdatePanel1 runat server UpdateMode Conditional.. perform Button1 click event when user press Enter key in Textbox1 c# javascript asp.net share improve this question this.TextBox1.Attributes.Add..

Get body from Outlook email [Drag?™n?™Drop]

http://stackoverflow.com/questions/7807463/get-body-from-outlook-email-dragndrop

email which I drag into the textbox. Example Drag email 1 Textbox Shows email 1 Drag email 2 Textbox Shows email 2 Drag email.. Example Drag email 1 Textbox Shows email 1 Drag email 2 Textbox Shows email 2 Drag email 1 Textbox Shows email 2 and email 1.. email 1 Drag email 2 Textbox Shows email 2 Drag email 1 Textbox Shows email 2 and email 1 will not be displayed because it already..

WPF: How to dynamically Add Controls in dynamically created WPF Window

http://stackoverflow.com/questions/7884185/wpf-how-to-dynamically-add-controls-in-dynamically-created-wpf-window

it in WPF. I have created all the controls Label Button Textbox but i am unable to add them to my window My window is a window..