FAQ Database Discussion Community


text boxes in html form going beyond borders of form

html5,forms,css3,textbox,border
I am making a form in HTML that contains two text boxes and one text area, and I would like for all three elements to share a common width value. However, if I use width: 100%, referring to 100% of the form width, the text boxes stretch past the right...

How to restrict swear word input when using a textbox within Visual Basic

input,textbox
I have had several ideas yet most of the solutions online only restrict certain keys or only numbers, not full strings. I want a solution that as soon as a keypress of a swear word has been inputted, VB detects it then disallows it. I have been able to do...

ASP.NET : Multiple elements for an event doesn't work

c#,asp.net,events,textbox
so, my problem is I have many textboxes created dynamicly from a database (x fields represents two textbox), I want to handle the same event Textchanged for all. But when i put characters in a textbox, the event is launch for all textboxes who have this event. Here is how...

Javascript: How to get value of textbox in form, then append them to a predefined string AND redirect browser to the value of the result

javascript,jquery,forms,textbox
I would like need help with a simple code. It needs to do the following: Ask the user to input a value in a textbox (e.g. '12345'). Get the value entered and append them to a default URL string (e.g. 'http://mywebsite.com/track/'). Redirect the browser URL to the new value (e.g....

Focusing on a textbox in a different page

javascript,html,button,textbox,focus
How can I create a button that when pressed will open a new page and focus on a certain TextBox there? It's worth pointing out that I cannot add any scripts to page the button directs to. JavaScript and HTML based solutions only please....

Label linked to a text box value

excel,vba,textbox,label
Good morning, I am editing an User Form on VBA Excel and I would like to show an alert if the user insert a certain value in a text box. I wrote this code: If txtbox.Value < 0 Then lbl_Alert.Visible= True Else lbl_alert.Visible=False End IF The code works properly but...

Populate Userform textbox based on cell selected by Combox

excel,vba,combobox,textbox,userform
In my excel document I have the following information in two columns: US Dollar (USD) 1 British Pound (GBP) 0.63 Guatemalan Quetzal (GTQ) 0.13 Honduras Lempira (HNL) 0.046 Other Please give factor Other Please give factor Other Please give factor Other Please give factor I have a combobox that is...

How to copy multiple textboxes text and paste that text into other textboxes?

vb.net,textbox,copying,pasting
I have some textboxes (9) and I want to copy the data from those textboxes so when I press save on my access database I can press past and have my previous data appear on the new grid line. Is this possible? Here is what I have so far COPY...

how to insert multiple textbox value into richtextbox in vb.net

vb.net,textbox
I have one textbox1 and one richtextbox1. when user click the "enter" button the textbox1 data should display in the richtextbox1. if the user enter another new data in the textbox1, it should be displayed in richtextbox1 in next row but previous address shouldn't be erased in the richtextbox1. it...

How to properly display TeX strings in axes' datatips? (MATLAB hg2)

matlab,textbox,matlab-figure,undocumented-behavior,matlab-hg2
I have recently tried to run an old piece of code (written on hg1) on a new version of MATLAB (2015a) that has hg2. I used to be able to do the following (according to the "gnovice-Amro" method): function output_txt = customDatatip(~,event_obj) % Display the position of the data cursor...

Windows Forms C++: Replace dot with comma in textbox input

c++,winforms,input,textbox,c++-cli
I try to tackle very trivial part of problem with autocorrecting users' input to the textbox. I managed to detect whether or not user typed number (as necessary) and control its range. Now I need to autoreplace dots with commas any time user types it into textbox. I expected the...

DataGridTextColumn's “TextBox” styling isn't consistent with its “TextBlock”

wpf,textbox,datagridtextcolumn
I'm having trouble styling the TextBox that's used for editing in a DataGridTextColumn. A bit of background on this column: it's bound to a property called 'Top' (numeric value) there is a property called "ShowAll" used as a trigger to disable the column if the column is enabled, I want...

I would like to control Form1 from Form2 (textbox,picturebox) [duplicate]

c#,winforms,textbox,picturebox
This question already has an answer here: C# - How to make two forms reference each other 6 answers I want to resize my picturebox in Form1 (picturebox1) using textbox1,textbox2 and button in Form2. First I made this in Form1.Designer.cs: public System.Windows.Forms.PictureBox picturebox1; After this in Form2.cs (submit button):...

zk textbox value empty on drag and drop

textbox,drag,zk
i have two textbox: and when i made drag and drop from second textbox to first textbox i see on the screen the value but when i save the page, the first textbox value is empty. In another jsp everything work. Difference between the two jsp: the second one made...

How to set a textbox to allow only numbers, one (1) comma, AND a dash (for negative numbers) at the beginning

c#,textbox,keypress
This is one is a different box than the usual "i want only numbers in a textBox" I came across with the need to use negative numbers, and I'd rather take them in a text box. So far we can easily set decimals using the following code private void textBox_KeyPress_1(object...

Output Command Line (.Bat FILE) show in textbox with c#

c#,textbox
Process proc = new Process(); proc.StartInfo.FileName = @"C:\Users\Administrator\Desktop\Python27\ToolArtworkEmoji.bat"; proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardOutput = true; proc.Start(); proc.OutputDataReceived += proc_OutputDataReceived; proc.BeginOutputReadLine(); proc.WaitForExit(); textbox1.Text = proc.StandardOutput.ReadToEnd(); Why code not active. It not show command in textbox. Can I help me? Thank you very much...

ActiveX textbox value looping

vba,textbox,activex,word-vba
I'm trying to perform a loop on several activeX textboxes named q1, q2, q3 ... q11. Here's what I tried, but it didn't work: For i = 1 To 11 myValue(i) = ActiveDocument.q & i.Value Next I also tried "q" & i, (q & i), ("q" & i), etc, but...

C# Unit Test on Textbox Input from user

c#,unit-testing,textbox
I would like to create an automatic C# unit test to test textboxes and properties of an object. These are the properties of the Customer object: public int CustomerId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string EmailAddress...

C# WPF Android like zoom if TextBox gets Focus

c#,wpf,textbox,touch
I'm developing a WPF Application for Touch Devices. I want a behaviour like in Android Browser, if you focus a TextBox the screen 'zooms' in so you only see the TextBox and the virtual Keyboard. I have already tried Scaling the TextBox and setting the Position if it has Focus...

How can I sum value in 8 textboxes to the a single textbox?

excel,vba,excel-vba,textbox
I can't find a way to do this. I think it's a very basic question, but i'm just new with excel VBA and can't find the right formula. Recently i understand that to do the sum, i have to change each of the textboxes into integer first, then i can...

Store input number inside a variable from a textbox

ios,swift,variables,textbox
In my application I have a textbox that should be filled with a Double and the number should be saved into a variable but there's an error. I dragged and dropped the textbox into ViewController.swift so it should be linked. I created a @IBOutlet. I called the textbox mmolText and...

Modify a value in a foreach to change another one

javascript,php,foreach,textbox,value
I've got a question about this foreach loop: foreach ($result as $row) { $html.='<tr> <td>'.$row['product_name'].'</td> <td>'.recupHourMinSec($row['date_add']).'</td> <td><input type="text" name="preparationTime" id="preparationTime" value="15" /></td> <td>'.date('H:i:s', strtotime("+$preparationTime mins".$row['date_add'])).'</td> <td>'.$row['lastname'].' '.$row['firstname'].'</td> <td>'.$row['phone'].'</td>...

Add TextBoxes Dynamically in VB.NET

vb.net,visual-studio-2012,textbox
I want to create TextBoxes dynamically in tabular format. So far i am successful of creating 10 textboxes in a vertical format. But i want to create 10X10 grid of textboxes. Here is the code. This code runs successfully but creates only 10 textboxes. I know there's a small mistake...

Is it possible to repeatedly use the same text box to get input from users in HTML & Javascript?

javascript,html,input,textbox
So I have a created a text box using html code along with a button for "confirm" <input type="text" id="myInput" style="height: 10px; width: 50px" value=""> <button onclick="enter_value()">Confirm</button> What I intend to do is to use the same text box over and over for different inputs as the website guides the...

Highlight line(s)/characters in WPF

wpf,textbox,lines,highlighting
Scenario I am currently developing an application. Within this application, I have a TextBox/RichTextBox. I have not decided on the control yet. Within this control, there will be a few paragraphs of text. Problem I want to be able to highlight a range of lines, or particular characters within that...

Loop user input from text boxes in Swift

ios,swift,while-loop,textbox
I have two text boxes in my iOS to-do app, one for the name of the task and the other for the description. When the user leaves one or both of the text boxes blank, I want to alert the user about the problem and loop this until the two...

C# Windows Form Application - value not printing in textbox for each time

c#,winforms,textbox,windows-forms-designer,form-control
Value not printing in textbox for each time.. Iam able to see last value only (10) in textbox. private void button1_Click(object sender, EventArgs e) { for(int i = 0; i<=10; i++) { textBox1.Text = i.ToString(); Thread.Sleep(100); } } ...

Masked textbox causing error in VB.net

vb.net,textbox,maskedtextbox
When using maskedtextbox in my code returns an exception "Conversion from string "" to type 'Date' is not valid" My code is Dim msg, first, second As String Dim firstdate, seconddate As Date first = MaskedTextBox1.Text second = MaskedTextBox2.Text firstdate = CDate(first) seconddate = CDate(second) msg = "Days from today:...

change the state of a textbox depending on which view is called

textbox,asp.net-mvc-5,conditional,enable-if
I'm new to MVC, and would like to know in C# mvc5, what kind of code I would need to use, if I wanted to change the state of a textbox from enabled to disabled and vice versa based on which view is calling the partial view.

How to set Superscript in a TextBox in RDLC

c#,textbox,ssrs-2008,rdlc,superscript
I am trying to Superscript in a TextBox in RDLC and not getting any solution, to avoid this, I am using two text boxes one for main text and other for Superscript, and I am setting small font size to Superscript, may be RDLC have built-in function or formatting for...

Update Text Field While Automating iPhone App

iphone,xpath,textbox
I am automating an iPhone App. The scenario is Login Logout and re-Login. But while re-login the username and password field is displaying the details. I am trying to list that xpath as a WebElement and clear() that field if(Webelement.gettext() !="") But it is not happening as in the existing...

C# Digit-only TextBoxes in a GroupBox.

c#,events,textbox,groupbox
I'm using WinForms and I'm struggling trying to make all the TextBoxes from a GroupBox to accept only digits as user input. Is there a way to raise the KeyPress event for all the TextBoxes in a GroupBox? Something like this maybe: private void groupBox1_KeyPress(object sender, KeyPressEventArgs e) { if...

TextBox binding is not working

c#,wpf,binding,textbox,command
I have two UserControls: 1) ContactDetailsView. 2) SearchBarView. In theSearchBarView, I have a Search button, which raises a command when clicked: Command="{Binding SearchCommand}" In the SearchBarView code behind, I have the following code: DataContext = new SearchBarViewModel(); In the ContactDetailsView I have the following code: xmlns:ViewModel="clr-namespace:Accounts_Manager.UserControls.SearchBar" in the definition of...

Disable all texboxes, datetimepicker, comboboxes programatically

c#,windows,winforms,textbox
is there a way where I can disable all texboxes, datetimepicker, comboboxes in a form load? I have a condition in my form_load like this: private void frmTWLeasing_Load(object sender, EventArgs e) { //this.Text = sTitle; this.txtNinja1.Text = sEnable; if (sEnable == "Disabled") { disable all textboxes, datetimepicker, comboboxes or gridviews...

How do I add a vertical scrollbar to a textbox?

vb.net,textbox,scrollbar
Adapted from this question, my answer no longer applies there anymore so I created a new question for it. I am using a theme from the web for my vb.net application and the textbox does not have scrollbars or a scrollbar property. The theme did come with a VScrollBar Control,...

TextBox.TextChange to update an onscreen ListBox in C#

c#,forms,search,textbox,listbox
Now this might not sound horribly cryptic, but I'm a little new to handling on-screen elements and Forms and such in C# so bear with me here. It's also going to be a bit of a long one, as I feel I should provide as much information as possible. I...

How change 2 different UI text via C# script in Unity 4.6

c#,text,unity3d,textbox
I'm trying to change two different text fields in Unity 4.6.3 with C# in monodevelop. using UnityEngine; using UnityEngine.UI; using System.Collections; public class NumberWizard : MonoBehaviour { int max; int min; int guess; public Text GuessUI; public Text TextUI; [...truncated...] GuessUI.text = "500"; TextUI.text = "Welcome to Number Wizard!"; }...

Change in last Textbox will update all textboxes with the same value

validation,c#-4.0,textbox,wpf-4.0
I have added some Validation to my WPF Form, using Gerald Gomes CodeProject Article http://www.codeproject.com/Tips/690130/Simple-Validation-in-WPF And using this I get a strange problem! I have this xaml <Window x:Class="TestValidate.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:TestValidate" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <ControlTemplate...

VB.NET Transferring ListBox and Textbox Data

vb.net,textbox,listbox
I'm trying to transfer textbox data and listbox data into a separate listbox and I'm not sure how to. For example: ListBox1 contains "Soup" TextBox contains a value "4" I want ListBox2 to show "4 Soup" when I click a button that says add. I know how to add them...

I get an error: Additional information: Object reference not set to an instance of an object

c#,mysql,textbox
I've searched other errors like this but I did not found any solution. public string[] vector; //... string comanda = "select * from chat"; MySqlConnection con = new MySqlConnection(conexiune); MySqlCommand cmd = new MySqlCommand(comanda, con); MySqlDataReader dr; int i = 1; con.Open(); dr = cmd.ExecuteReader(); while (dr.Read()) { if (dr[1].ToString().Length...

In multiline textbox, my cursor automatically goes to next line

c#,winforms,textbox,cursor,multiline
I am making a messenger application using winForms. So when I type a message in the sender's text box and press enter, the message gets delivered but the cursor on my text box automatically goes to the next line for the first time. And then it stays there for all...

set padding to dynamic textbox C# asp.net

c#,asp.net,textbox,alignment
here is the code I create textbox from C# code.. for (int x = 0; x < 30; x++) { TextBox txt = new TextBox(); txt.ID = "txt - " + x.ToString(); data.Controls.Add(txt); data.Controls.Add(new LiteralControl("<br/>")); } all textbox will be stick to each other.. I wonder can I add padding-top...

Javascript won't get value from textbox issue, why not?

javascript,input,textbox
I have this code: <script> function getAge() { var birthdate = document.getElementById("birthdatebox").value; document.getElementById("agecomputed").innerHTML = calculateAge2(birthdate); } </script> and <input type="text" name="birthdatebox" /> <button onclick="getAge()" name="birthdatebutton">Get Your Age</button> <div id="agecomputed"></div> It should return the calculated value. Nothing happens. Just doesn't work. Please help. UPDATE: I have a reference to the js...

Bind width of a textbox inside VisualBrush

c#,wpf,xaml,textbox,wpf-binding
I have a small issue that I can't seem to get right. I have a textbox where I'm adding "Search hint" I'm using this XAML snippet <TextBox x:Name="txtboxSearch" Height="22" Margin="3,35,111,0" TextWrapping="Wrap" VerticalAlignment="Top" BorderThickness="1" MaxLines="1" MaxLength="256" Grid.Column="2" BorderBrush="#FF828790"> <TextBox.Style> <Style TargetType="TextBox" xmlns:sys="clr-namespace:System;assembly=mscorlib"> <Style.Resources> <VisualBrush x:Key="CueBannerBrush" AlignmentX="Left" AlignmentY="Center"...

Making empty textbox

c#,winforms,textbox
When I want to clear the following array: userInfo[0] = txtPassword.Text; userInfo[1] = txtVoornaam.Text; userInfo[2] = txtAchternaam.Text; userInfo[3] = txtWoonplaats.Text; userInfo[4] = txtPostcode.Text; userInfo[5] = txtTelnr.Text; I'm doing the following: for (int i = 0; i < 5; i++) { userInfo[i] = ""; } That obviously doesn't work and when...

I cant get the CMD outputs to display in my textbox.

c#,cmd,textbox,user,boolean
Since Local User Group Management doesnt seem to be something I can query in C#, I figured I would do a down and dirty version of what I an trying to accomplish and I need some advice for best practices. THE GOAL: Essentially, I need to determine if the current...

search for file and execute macro using a textbox control

excel,vba,excel-vba,textbox
I am trying to use a textbox and search button in an excel sheet, masterfile. I want to be able to type a file name into a textbox and hit the search button and have it search in a particular folder for that file, open the file, then run my...

Masking textbox to accept only 1 digit after decimal

textbox,vb6,masking
I am using VB6 and I want to allow user to enter only one digit after decimal, please help.

Why does my text value not appear in matlab gui?

sql,matlab,textbox,matlab-guide
I've managed to retrieve 5 string values from my database whereby results = 'something1' 'something2' 'something3' 'something4' 'something5'. Now I want these values to display in my edit texts Matlab GUI. How do I do that? How to pass all values from results = curs.Data; to all 5 different set(handles.edit1,'String');?...

Update an asp:TextBox when a asp:ListBox changes selected item

c#,asp.net,textbox,listbox
I'm new to ASP.Net and I have the following doubt: Is there a way to update the contents of a TextBox when the selected item of a ListBox is changed? I have this: <asp:ListBox ID="myListBox" runat="server" Width="200px"></asp:ListBox> <asp:TextBox ID="myTextBox" runat="server" Width="200" /> The items on the ListBox are strings that...

How to check if a textbox has a line from a TXT File with C#

c#,textbox,.net-4.5,streamreader
It's simple what I'm trying to do; when I click a button, my app should check if textBox1.Text has a line from a text file. Note: I don't want to check if textbox has all the text file in it, just to see if it has a LINE from it....

C# read more lines in text box and edit each line [closed]

c#,textbox,readline
I have a question? Here i have the code that reads from one textbox one line. How can I make it to work, that it will read more lines? Not just one. This code activate with click: private void b_Execute_Click(object sender, EventArgs e) { string one1 = "NO"; string one2...

Textbox hover background image moves and re-sizes

html,css,kendo-ui,textbox,kendo-asp.net-mvc
I have attempted to put in a background image on a Kendo UI Textbox. It's all well when you don't hover over it. But as soon as you hover over it, this happens: How do I fix this? When I hover and click into the Textbox, the image needs to...

Textbox doesn't keep selection on binded list update

c#,wpf,textbox,selection
In my ViewModel i've got an ObservableCollection of string that contains all messages received from ethernet: public ObservableCollection<string> Messages { get; set; } And i binded it to a texbox in the view with a converter: <TextBox Text="{Binding Messages, Converter={StaticResource ListToStringConverter}}" HorizontalAlignment="Center"/> my converter is a simple string finalStr; foreach(var...

C# Delete Row with Dynamic Textbox/Button/Grid

c#,wpf,button,dynamic,textbox
I've tested some thinks with Dynamic Textboxes and Buttons, Adding Items to my Grid works very well, but if I want to Delete it there are some Bugs, sometimes 1 Row is empty and my Add Button disappears or my Program crashs. What did I wrong or what did I...

Adding line numbers to a multi-line text box

c#,winforms,textbox,line-numbers
I have 2 text boxes in my form, one is for the content (mainTextBox), which is on the right, and the other is for the line numbers (linesTextBox), which is on the left. Both boxes are the same height and both are multi-line text boxes. Every time text changes in...

Getting Multi Rows in Database and transferring it in a multiline textbox in VB.net WinForms

database,vb.net,winforms,textbox
Here in my code, i have a database which has table of my applicants. As you will see in the code below, i want to get the number of rows from my command text and transfer it to the string "abc" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...

Access textbox from another class

c#,winforms,textbox
I want to access a textbox from another class. Textbox1 should be accessed from class Log, using void AddLog. So, anywhere in my application, I want to use Log.AddLog("...."), in order to add some text in the log window (textbox1), I wrote a function for that (it's AddLog): public void...

how to restrict special characters and ( /,*,+) only

javascript,regex,html5,validation,textbox
We have one text Field.We know how to restrict special characters.But We need Allow alphabet and Numbers and hyphen(-) only.No need Sepcial characters but except (-) . Give me any idea. Mycode: $('#pduration').keydown(function (e) { if (e.shiftKey || e.ctrlKey || e.altKey) { e.preventDefault(); } else { var key = e.keyCode;...

Enable text hovering cursor when textbox is empty

wpf,xaml,textbox,cursor
I have some TextBox, when I hover my mouse over it, the cursor does not change: However, when I enter some text, I do see a cursor when hovering: I want the cursor to be visible in this text mode even when the textbox is empty....

Is it possible to do calculation in one textbox?

javascript,regex,textbox
I'm looking for something that I like to use for my project. Like excel you can do a formula in a textbox. I was wondering if this is also possible with javascript and regex? Something like this should display the answer after pressing [ENTER] This should display 25 after pressing...

Automatically show string on form open

c#,string,textbox
I have two forms, the main opens a second form prior to main loading. On this secondary form I have a textbox to display the logged in username for Windows. I want this username to show in the textbox when then form opens but currently it only displays when clicking...

How Can I Make Dropdownlist act like a textbox

c#,asp.net,ajax,textbox,dropdownlistfor
I Want to make some dropdownlist act like a textbox without losing the ability to explore the list and i want the list to autoselect the list item that match the text in the textbox (Searchable DropDownList). if the text didn't match any list item i want to insert this...

how to add numbers from inputbox?

vb.net,winforms,for-loop,textbox
This is my code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click InputBox("Enter Amount Of Courses") InputBox("Enter Course Name") InputBox("Enter Course Price") End Sub How can i repeat InputBox("Enter Course Name") InputBox("Enter Course Price") the amount of times the code InputBox("Enter Amount Of Courses") tells me to? And...

how can I display the information in a textbox from this code?

c#,textbox,return-value,boolean-logic,registrykey
I am working on a small tool that essentially looks for multiple installed software on the host computer. I found a piece of code that a much better programmer put together in C#, however, I'm wondering two things. 1. What do I replace with the registry title to search installed...

NSIS : Why “Text” from text box value became numeric?

textbox,nsis,mui
I've created a custom page(.nsh) and there are 3 text boxes (url, user, password) for user typing in it and .NSI file will get these data to write into a properties file. But those text became to numeric such 9502966, 4718976 and 8455398. What should I do? This is my...

Select all text in textbox with autocomplete (C# winforms)

c#,winforms,autocomplete,textbox,selectall
I've created a textbox with autocomplete functionality, but I encounter the following problem. Whenever I press Ctrl+A to select all the text in the textbox, the text disappears. Here is my source code for the textbox: this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1.AutoCompleteCustomSource.AddRange(new string[] { "hello", "test", "ahha", "haha"}); this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;...

How to identify a particular text box?

textbox,ms-word,word-vba,word-2013
My VBA routine is deigned to alter text in a text box in the document's footer. Right now it is identified as follows: Dim R1 as Word.Range Set R1 = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range R1.ShapeRange(1).TextFrame.TextRange.Text = "xxxx" However, users may modify this template and possibly add other text boxes. How do I guarantee...

Split comma separated strings 5 [closed]

c#,windows,datagridview,textbox
I have 5 values in datagridview column with comma like abc,xyz,asdf,qwer,mni how to split into string and display in textbox abc xyz asdf qwer mni ...

TextBox access from different class [closed]

c#,wpf,class,textbox
I have created a C# WPF program, in which I have a TextBox. While running, I want the TextBox to give feedback of events. Simplified example; if a button is clicked, TextBox Displays "...Button clicked". I had it working fine in the "MainWindow" class: public partial class MainWindow : Window...

Is it possible to format a Textbox for currency just in ASP NET?

asp.net,textbox,formatting,currency
I have this textbox that should show currency values to 2 decimal numbers. I would like to do using the "Text" property of textboxes. Is that possible? <asp:TextBox ID="txtImponibile" runat="server" Width="120px" Enabled="False" ></asp:TextBox> Thanks....

ASP.NET TextBox OnTextChanged Event not fired

javascript,c#,asp.net,search,textbox
I'm trying to add a search functionality where the website sends a request to the server to gather information each time the user enters text (letter by letter). For this I'm in need of OnTextChanged event I assume? I tried using it but the event won't fire. <asp:TextBox ID="futu_search" type="text"...

NSIS : How to keep input value from previous dialog after click Next/Back button?

textbox,dialog,nsis
If I change value in textbox and click Next button, then click Back button to back to the page again, I wanna keep new value that I changed it in textbox. How can I do? This is my code : AcustomPage.nsh !macro create_AcustomPage APP_NAME CUS_FULLNAME Page custom create_AcustomPage leave_AcustomPage Function...

Finding page controls starting with some string

c#,asp.net,textbox,control,findcontrol
I have many of TextBoxes in the ASP.NET page that their ID starts with certain string like xyz(e.g: xyz1,xyz11,xyz999). I know FindControl method, but it finds only by complete ID of Control. How can I find controls in which their ID be like that on page?...

ControlTemplate Trigger

xaml,triggers,textbox
<Style TargetType="{x:Type TextBox}"> <Setter Property="SnapsToDevicePixels" Value="True" /> <Setter Property="OverridesDefaultStyle" Value="True" /> <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="MinWidth" Value="120" /> <Setter Property="MinHeight" Value="25" /> <Setter Property="AllowDrop" Value="true" /> <Setter Property="FontSize" Value="16"/> <Setter Property="FontFamily"...

Linq Query then highlight xml text in texbox

.net,xml,linq,c#-4.0,textbox
I've a textbox which display the xml file content. When query for an element/elements, if found, i wish to highlight the found element and value in the textbox. Basically to highlight, i'll call textbox1.Select(startIndex, length). But i'm not sure how to retrieve the index and length for it. Anyone can...

Find textbox value in 2 nested gridviews

asp.net,gridview,textbox
I have a gridview2 which is inside gridview1. gridview 2 has a textbox which i need to get the value of that text box. Usually I do like this when I need to get the value from a textbox when it's inside a single gridview: TextBox txb = (TextBox)GridView1.SelectedRow.FindControl("TextBox1"); I...

Javascript allow only text value

javascript,asp.net,textbox
Javascript: function textonly(e) { var code; if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; var character = String.fromCharCode(code); var AllowRegex = /^[\ba-zA-Z\s-]$/; if (AllowRegex.test(character)) return true; return false; } Html: <asp:TextBox ID="textbox1" onkeypress="return textonly(event);" runat="server"></asp:TextBox> I am trying to allow only...

Are there memory limitations when outputting to a ScrolledText widget?

memory,logging,textbox,tkinter,python-3.4
I am fairly new to Python and to GUI programming, and have been learning the Tkinter package to further my development. I have written a simple data logger that sends a command to a device via a serial or TCP connection, and then reads the response back, displaying it in...

Javascript popup text box on submit

javascript,textbox,submit
I have a form and I know I can use onSubmit to confirm submittion but I want the user to be able to type in a text box that will be passed back to my php script on submit. I've looked around and cant find any examples of a form...

Doing the maths of numbers in a listbox based on the first character of each item

c#,math,textbox,listbox
I have a program that adds items to a list box. The items consist of a character (+,-,*,/) followed by numbers. I want to get my program to recognize the first character of the item in the list box, and do the math appropriately. However, I cannot seem to get...

How can I create a catch that ensures nothing other than a number is entered into a textbox but also accepts a blank entry

c#,wpf,textbox,try-catch
I have a textbox. The lecturer says I must have a catch to ensure nothing other than a valid number is entered but the textbox is optional. In other words the user might not make an entry at all. I have a catch for it that catches any letters entered...

C# WPF: Changing color of Text upon Character Detection

c#,wpf,textbox,textchanged
I'm writing a Console for users, so that they can write code in it similar to Visual Studio. I was wondering how to change the color of a set of text in a WPF TextBox as soon as the program detects the input of a certain character, such as the...

Form textbox content with javascript

javascript,forms,textbox
I would like to know if there is better way to this exercice. Here it is : Create a form that contain a textbox ;after the user enter the text ,all the letters will be converted to lowercase as soon as he or she clicks elsewhere in the form( hint:...

How Jquery get textbox array value when checkbox value checked?

jquery,checkbox,textbox
I want to get only textbox value where checked by checkbox, all textbox and checkbox from database array. <tr><?php foreach($arrbook as $book) { ?> <td><input type="checkbox" name="book" class="book" value="<?php echo $book['id_book']; ?>"/> <?php echo $book['name_book'];?></td> <td><input type="text" name="bookprice"class="bookprice" value="<?php echo $book['book_price']; ?>"/</td> <?php } ?></tr> <td><div class="button"><a href="#"...

vb.net Get value from webbrowser to textbox

vb.net,textbox,value,getattribute
I'm trying to write a code to download a movie from some website and I'm stuck with trying to get this value to textbox, however rest of this code is already done so I think, that there will be no other problems. So this's code from a website:` <div style="width:750px;z-index:...

Html webpage print function does not displaying text box values

html,printing,textbox
I have tried code for a print option in a div on my webpage. But it is not showing the values entered in the text box. Please help me with the code below or give good references to print div values with values inside the text box. <!DOCTYPE html> <html...

WPF | VB .Net || Textbox Placeholder

wpf,vb.net,xaml,textbox,placeholder
i want to have a placeholder in my textbox in wpf.. i tried to search xaml script to solve my problem, and i find that xaml codes are too long for simple placeholder, then i end up with my own solution.. is event handlers will slow down an app? Dim...

How to select the contents of a textbox once it is activated?

vba,excel-vba,events,textbox,control
I have this simple Userform, where I only have TextBox1 and TextBox2. I enter some text in both of them. Assume the focus is on (the cursor is in) the TextBox2. When I click on TextBox1, I want the whole text in this control to be highlighted (selected). Thus I...

click textbox (to enter characters), when submit is clicked

textbox,click,submit,enter
If click the submit button or a-element(<a> Send </a>) then automaticly the input text is clicked. thanks in advance. function send() { var txt = document.getElementById("textbox"); txt.click(); } <input type="text" id="textbox" name="textbox" style="width:90%;"> <a id="send" style="display:none;" onclick="send()" href="">Send</a> ...

c# Pass a multi-line string to a function and return an array

c#,arrays,string,textbox,return
I'm new to C# programming and I'm trying to use good code practices. I know it is poor coding to use global variables in my example below, but I'm having a hard time figuring this out. So,I'm trying to accomplish two things with this question. first of all, I am...

VBA - UserForm with multiples TextBoxes in infinite calculation loop

vba,excel-vba,textbox,infinite-loop,userform
I have an UserForm with 5 TextBoxes, and each time one is updated I recalculate the others. But how do I avoid a "infinite loop" as the first will recalculate second which will recalculate the first and so on... Here is a part of my UserForm's code, only the TextBox_Change(s)...

access the system caret blink rate in java

java,swing,textbox,cursor,caret
I am implementing a simple embedded text editor in java. For the convenience of my users I would like to use the caret blink rate they have set as a system property in their operating system. I am not using a swing or awt text box, but rather building one...

TextBox MaxLength property is counting whitespace

wpf,textbox,whitespace,maxlength
My TextBox has a limit of 100 characters set by MaxLength property. However, if the user types '\n' or '\t', they are counted as an additional character, which would make sense to the programmer, but not to the user. Is there any workaround besides counting the characters by myself?...

Display value from datagridview to textbox in other form c#.Net

c#,vb.net,winforms,datagridview,textbox
I'm a C#.Net Beginner! I have 2 forms Mainform and Derogatory form.. My datagridview is in the Mainform, then my textboxs is in the derogatory form. Question: How to display value from datagridview in Mainform to texthbox in Derogatory Form after clicking the cell of datagridview from Mainform? this is...

C# adding/subtracting/multiplying/dividing different items in listbox based on first character of item

c#,math,textbox,listbox
I have a program at the moment that adds items to a list box, the items consist of a character (+,-,*,/) followed by numbers. I have been attempting to get my program to recognize the first character of the item in the list box and doing the math appropriately all...

icon inside textbox html css

html,css,textbox,icons
So, right now I have a registration form where a person has to enter their username, first name, last name etc. I'm playing around with some CSS and thought it would be a nice idea to have some icons in the textboxes, however I cant seem to get it to...

Picturebox Height/Width using textbox…How?

textbox,resize,height,picturebox,weight
I want to control picture using textbox and button for submit, but ... private void button_Click(object sender, EventArgs e) { int height = int.Parse(textbox1.Text); height = PublicImage.Height; int width = int.Parse(textbox1.Text); width = PublicImage.Width; } ...

VB Remove duplicate lines from textbox

vb.net,visual-studio,textbox,duplicates
I am trying to extract the urls from the webpage below in the code. With this code it works but it give me all the urls a few times. I only need them once in my textbox. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.Navigate("https://www.youtube.com/results?search_query=test+search")...

jquery checkbox and textbox validation

jquery,checkbox,textbox
I have this submit button which will only enable if user entered a word on all textfields as well as chose at least one from my checkboxes. So here's my code: $(document).ready(function() { $('#btnAddUser').attr('disabled', true); var checkboxes = $("input[type='checkbox']"); $('#txtName' && '#txtLastname').on("keyup", action); function action() { if ($('#txtName' && '#txtLastname').val().length...