I have a textbox. when pressing enter, I want it to change the DatagridView selected row to the next row. What I have so far below doesnt work. private void textBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (int)Keys.Enter) { sa
I am a beginner when it comes to c#. Can anyone help me? I want the variable Username to be used as the filename like .txt. I have this code: String Username = Nametxt.Text; StreamWriter stream = new StreamWriter(@"*Username*.txt"); I want the v
I wasn't sure how to phrase my question. I'm trying to download 500 csv files in a foreach loop and I'm having errors with something I'm downloading. So I put a .text output before and after each webClient.DownloadFile call. Problem is it doesn't see
I have 4 radio buttons +, -, *, / and I am planning to do if I select + it will add the result of the two textbox and display it to the 3rd texbox and so if I select - sign it will minus the two texbox and display it to the 3rd textbox and so on. Any
I have a simple VB.net app that has a text box that I pass to a URL for searching. So let's say I want to send this: search "*ball" So, my search will look for everything with ball after the *. The problem is, it strips the quotes when I send it
I am writing my code in Visual Studio 2013 , c# . I have a tabControl , it has 2 tabs. there is a textbox in tab 1 ! I want to copy its text to a label in tab2 ! how can I do this? can it be like : label1.text = tabPage1.TextBox1.text; I know it cann
How can I disable the first line of a TextBox in a WPF application? Is there a possibility?Put the first line of text into a separate disabled control.
I have a tiny issue if anybody can help... I am trying to implement a form, so when the page loads the textbox is disabled. If the user wishes to amend information they first have to press a button which will enable the text box. <input id="text&q
Iam creating this project which uses on screen keyboard. The problem is I have several textboxes in my window. The question is, when I selected the textbox and start using the on screen keyboard, the text should be displayed on the textbox that I sel
I have problem with updating data. Sample: protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow row = GridView1.SelectedRow; string id = row.Cells[1].Text; Response.Redirect("edit.aspx?id="+id); } after this co
Newbie here, I need help with a website I'm creating. I have a class that does some analysis on some text that is input by the user, the class then finds an appropriate answer and sends it back to the textbox. (in theory) Problem is I don't know how
In a C# Windows Form App, how do I programatically make it to when a user clicks (or tabs) on/(to) a textbox, the default text is cleared and reverts the font styling back to windows default? I am just doing a basic form for testing. I am not going t
I have an asp:TextBox with TextMode = "Password", and its working fine when I need to type on it. My textbox: <asp:TextBox ID="Txt_NovaSenha" runat="server" TextMode="Password" Width="170px"></asp
Is there anyway to add right click events to all textbox controls in silverlight without needing to manually adding it to each control in the whole project? doing like: <TextBox x:Name="txtName" MouseRightButtonUp="txtName_MouseRightButt
i am using innerHTML to add text boxes dynamically. The code sample is as follows: <html> <head> <script type="text/javascript" > var i=0; function add() { var tag = "<input type='text' name='" + i + "' />
Background: I'm making a facebook wall-alike page, which will have many posts and you should be able to comment every post. And these textboxes, where you post type your comment in, should resize as in Facebook. I have this code so far. It works but
There are three fields(first name, Last name & age) displayed in text boxes. Each field is displayed in separate div's. There are 4 records. On clicking a sort button above each field the div records should be sorted based on the data type of the fie
I have a need to display over 10K records in a rich text box. when all loaded I ran out of memory. How can I load those records in 50+ records and also able to scroll . ThanksDon't. Even if you implemented something like Infinite Scrolling for the Ri
how to fill textbox in asp.net while i am typing in another text .. changes in one textbox will affect in another textbox auto.. and without refreshing my page.Ok, try this. You will need the AJAX Control Toolkit. So read the article Installing AJAX
I want the font size of my labels and textboxes in my LOB form to grow and shrink with window resize or resolution change. To achieve this I've placed my labels and textboxes within viewboxes. The labels and custom radio buttons behave as I expect, b
I'm getting started with WPF and finding it difficult to get even the most simple binding working. Here's some givens... I have an object that queries an existing database and returns a "datatable" object, the data comes back (and for test purpo
I'm pretty new at C# so forgive me if this is a bit of a silly question. Anyway I'm writing a little chat application that so far seems to be going well, I've run into a problem that I seem to have fixed but I'm hoping to work out why I need to do it
I have an application that allows the creation and running of automated testing scripts. The test scripts themselves are xml files that are meant to be portable, which means that once one is configured it should work on any computer. One of the confi
I have a textbox and I need a script to detect when a user types a link using space as a delimiter. I know how to detect links with regex, but I don't know how to effectively check for links (think of Facebook's status updates; type a link, hit space
I have found a similar question to mine in Making a WinForms TextBox behave like your browser's address bar Now i am trying to modify or make it some more different by making it general. I want to apply same action to all the textboxes in form withou
This other SO question asks about an autocomplete textbox in WPF. Several people have built these, and one of the answers given there suggests this codeproject article. But I've not found any WPF Autocomplete Textbox that compares with the WinForms a
By default I have 5 textboxes. When a user clicks on a button, one textbox should be added. How could I do this?If you replace the innerHTML, the previously entered values will be cleared, to avoid that, you can append the input elements programmatic
I want get the value of the text including the character on the keydown event. $(".searchfield").keydown(function(e) { if (e.which >= 32 || e.which < 127) { var c = String.fromCharCode(e.which); callSearch($(this).val() + c)); } }); It wor
Where can I find a control for WinForms that will highlight source code pasted into it? I would like one that has syntax highlighting support for many different languages but if it only works with C# I would be fine with that also.Scintilla.NET is pr
I'm completely new to databinding in WPF, and I'm trying to bind an object property to a textbox. My object is public class TestObj { private m_Limit; public string Limit { get { return m_Limit; } set { m_Limit = value; } } My XAML looks like <Window