textbox

Textbox in Visual Basic help!

Lately I have been programming an application in Visual Basic 2008, and on one of my Windows Application forms I have several text box forms, and with my code the way it is, none of them can be enabled, and they must all be set to Read Only. Now if I put a big block of text in one of the Text Box's that extends past the parameters of th...

storing a TextBox value(in a html page) in php array variable which is then stored in a session

Hi, I am totally new to coding and i would need some help regarding this question of mine. the question is that, I have around 5 html pages.I am trying to walk the user through each phase and thats the reason i have diffent page for entering the info.Each html page has certain text fields.For ex Page1:lastname,firstname,mi... Page2:ad...

Making a TextBox Transparent

Hello, I have a TextBox in my Form that I want to let it be tranparent and show a picture that is in a PictureBox, behind it, but how I can do this? Thanks. ...

why is the value of textbox (this value is retrieved from the sessions using php) in html shown in IE

Okay the code is, code in first.php <?PHP session_start(); include("script.php"); ?> <form action="script.php" method=POST> <input type="text" value="<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>" name="firstname"> </form> i have saved the file in php and the "script.php" page has all the c...

MouseOver event are missing alternately

I'm using a modified form of treeview, for the treeviewitem there is a template to show a textbox with a done button in a popup. I have used a static class to find if the mouseOver (IInputElement currentPosition = Mouse.DirectlyOver;) event on any of the other treeview item to highlight them other than the one in Popup textbox. Items ar...

script to read input from textbox and output response if input is found or not

I need a script that can read input from a textbox on a webpage and output yes or no (or other words) if the input was found in a .txt file For example, if I have the file of colors located on my website, each separated by ", " and the user puts in "red" and clicks submit, I'd like the next page to say "Yes red is a color". If they in...

WPF: simple TextBox data binding

I have this class: public partial class Window1 : Window { public String Name2; public Window1() { InitializeComponent(); Name2 = new String('a', 5); myGrid.DataContext = this; } And I want to display the string Name2 is a textbox. <Grid Name="myGrid" Height="437.274"> <TextBox Text="{Binding Path=Name2}"/> </...

How can I handle click event to Web readonly TextBox in c#

How can I handle click event to Web readonly TextBox in c# ...

How can I set Regular Expression on TextBox?

How can I set a regular expression on WPF TextBox? I want the textbox to accept input in some predefined format. Is it possible? ...

VB: Allowing Only Numbers (not Letters) To Be Entered Into Textbox

I have a textbox which controls the interval of a Timer control. How do I filter out letters? Is it possible to restrict entry to numbers only (like if you enter a letter or a space, nothing happens)? Is there a property of the textbox that can accomplish this? Thanks! ...

WPF TextBox Height Equals Parent Height minus 50 pixels?

I'm successfully getting a TextBox to resize with a parent Border height but I need the TextBox to actually be 50 pixels smaller in height than the parent Border. Any ideas how to achieve this? The code I'm using is <Border VerticalAlignment="Stretch" HorizontalAlignment="Stretch" > <TextBox x:Name="txtActivityNotes" HorizontalAl...

Auto-scrolling text box uses more memory than expected (C#, .NET v3.5)

I have an application that logs messages to the screen using a TextBox. The update function uses some Win32 functions to ensure that the box automatically scrolls to the end unless the user is viewing another line. Here is the update function: private bool logToScreen = true; // Constants for extern calls to various scrollbar functions...

Silverlight Textbox

I have a textbox which has a very long url inside of it. What I would like to do is, when the user hits the home button I would like the cursor to go to the beginning of the textbox. I would expect this to be the normal behavior but its not, when the text inside of the textbox is very long, and I hit home, it goes to the beginning of t...

PHP web-textbox syntax highlighting

I'm looking for a solution where users can copy/paste PHP code into a textbox and it will be highlighted like it is inside an IDE. (Like stackoverflow does when you paste a code snippet) Any links/ideas/more information would be appreciated. ...

WPF textbox derived control override drag&drop OnPreviewDrop (C sharp)

Hi, I have been working on my custom control derived from the TextBox and I have encountered a problem I can not solve right now. Brief description of the problem: my textbox contains plain text which contains tags which I want to keep consistent - so far I have overriden text selection so they can be selected only as a whole tag etc. R...

Opacity of Buttons/TextBoxes - VB.NET

Hey everyone, Is it possible for me to set the opacity of a button or textbox? I know that you can set the opacity for a form, but I'm not so sure about a button or textbox. Thanks ...

Validate date textbox

I'm using the following code to check if a valid date has been typed into a textbox: public bool ValidateDate(Control ctrl) { if (!string.IsNullOrEmpty(ctrl.Text)) { DateTime value; if (!DateTime.TryParse(ctrl.Text, out value)) { return false; } } return true; } private void ...

Databinding Textbox to Form.Text (title)

I'm trying to bind a Textbox.Text to Form.Text (which sets the title of the form). The binding itself works. But, the title isn't updated until I move the entire form. How can I achieve Form.Text being updated without moving the form? I'd like Form.Text being updated directly when I type something in the Textbox. Edit; I set the title ...

How to customise rendering of a ToolStripTextBox?

I like the ToolStripProfessionalRenderer style quite a lot, but I do not like the way it renders a ToolStripTextBox. Here, ToolStripSystemRenderer does a better job IMO. Now is there a way to combine both renderers' behaviour to use system style for text boxes and pro style for everything else? I have successfully managed to use pro styl...

RESOLVED: Puting textboxes in to a TextBox[] array

im trying to create a loop to avoid copy pasting these lines 30 times. the names is sum1 to sum30 br1txt1 to br30txt1 br1txt2 to br30txt2 // decimal sum30 = decimal.Parse(br30txt1.Text) + decimal.Parse(br30txt2.Text); // sumTxt30.Text = sum30.ToString(); but the error im geting is that the textbox array seems to try to put...