I have a form with 2 text boxes that all do the same thing. They each call the JQuery function below after each keypress. Since I have 2 textboxes that all do the same thing, I'd like this function to work for both. How do I change this function so that it'll grab the textbox's ID that is currently being edited instead of just the one...
I want to detect when the user pasted something into the textbox. I want to detect it whether the user used the mouse or keyboard.
This is vb6
...
I am making a very simple feedback form for an MS-Access application I'm working on. It consists of a textbox (for comments), a Submit button, and a Cancel button.
In your opinion, when the focus is on the textbox, is it more intuitive for the Enter/Return key to click the Submit button or move the cursor to the next line within the tex...
I'm trying to reproduce the layout of some paper forms in a WPF application. Labels for text boxes are to be "inline" with the content of the text boxes, rather than "outside" like normal Windows forms. So, with an Xxxxxx label:
+-----------------------------+
| Xxxxxx: some text written |
| in the multiline input. |
| ...
Hi i m using GridView with hovermenu
and i want that when we click on edit button then we get TextBox to write in Gridview
and also i get error when click on edit for e.commandArgument is null
so please give me code for this both
...
I would like to have direct access to the text inside a textbox on another form, so I added a public variable _txt to a form and added an event like so:
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
_txt = richTextBox1.Text;
}
But the form is loaded like this:
public FrmTextChild(string text)
{
Initializ...
I ran dotTrace on my application (which is having some issues).
IntPtr System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
Void System.Windows.Forms.UnsafeNativeMethods.WaitMessage()
Are the two main functions that came up, taking about 94% of the application time.
Since I didn't know what ...
Hey!
I tried to find a solution but I didn't found what I was searching for. So here is my problem.
I want a google like behaviour with a textbox. As I type "dum" it should find dummy in the database and display it as option under the textbox. It should be selectable.
I don't use ASP.net or any other stuff. Just pure C#.
Thanks for you...
I have a login form for my website. This login form have two text fields, username and password. Currently I am placing labels(username, password) just before textfields. But now I want to removed these two labels and want to show text(username, password) inside textfield. When user focuses on these textfields then texts should be remove...
How can I change the spellchecking language of a WPF textbox to french using XAML?
I tried this but it doesn't work.
<TextBox AcceptsReturn="true" SpellCheck.IsEnabled="true" FontSize="12" BorderBrush="Blue" Height="100" Language="fr-fr" />
French is supposed to be one of the 4 supported languages for spellchecking in WPF so I don't u...
If I want to validate that a text box contains an integer greater than or equal to zero. Do I need to use TWO asp:CompareValidator controls: one with a DataTypeCheck operator and one with a GreaterThanEqual operator?
Or is the datatype operator redundant? Can I just use a single validator with the GreaterThanEqual operator (and the ty...
hello
I have my own textbox which inherits System.Windows.Forms.TextBox
I am trying to display texts like 5000000 formatted ==> 5,000,000
but the problem is that Control.Text should return 5000000 but it should display 5,000,000.
I know it is WTF, but i really need it and i couldn't Google a lot because my native language is not Engl...
Why doesn't this work?
The program stops on: this.textBox1.Text = "(New text)";
Thread demoThread;
private void Form1_Load(object sender, EventArgs e)
{
this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe));
this.demoThread.Start();
textBox1.Text = "Written by the main thread.";
}
private void Thr...
In my grid view i have link type column. as we cannot edit cell of such type i am displaying a text box if user select cell for editing. but my text box is unable read dot character. I checked "key pressed" and "text changed" events but events are not triggered for dot as a input.
EDIT:
I can enter any character or symbol except dot.. ;...
I have a WPF textBox that is declared as ReadOnly
<TextBox IsReadOnly="True" IsTabStop="False" Width="200" />
So, User can not write anything into the TextBox or delete the content but it still allows user to drag the text from this textbox and drop it in any other textbox that caused the text removed from the first textbox(the read-o...
Hello,
I tried searching on stackoverflow for an answer to my question but couldn't seem to find anything relevant.
Since I'm relatively new to Silverlight, I'm not even sure if this is possible, but I am trying to figure out if it is possible to set a Silverlight textbox control's width value proportionally to it's immediate parent co...
How could I make WPF textbox control exceed the maximum size limit? Don't tell me to use richeditbox or AvalonEdit control, since the richeditbox would be performance issues while has large amount of content inside. Thanks
...
Hi,
I am having a problem after opening the notepad once I click the button "btnSearch".
The idea is that once I clicked the button 'btnSearch', the textbox 'txtSearch' should be 'focused' even after a process was initiated/opened outside the main window.
Here's my code:
private void btnSearch_Click(object sender, RoutedEventArg...
I use FPDF to creat PDF from PHP and i have a problem with the Write() function
i use the following code and i want to indent the text block not just the first row:
$pdf->SetX(60);
$pdf->Write(5,'' . str_repeat( ' This is a test of setX.', 30 ));
but as you can understand it's just indents the first row, any idea on how to move the w...
I am writing a text editor and had planned on using the richtextbox control however, the richtextbox's performance is abysmal. On even small documents the wpf richtextbox lags if you hold a key down. I do not need all of the features of the wpf richtextbox, but I do need rtf support.
How can I implement this?
...