textbox

foreach Control ctrl in SomePanel.Controls does not get all controls

Hello, I have a panel with a bunch of labeles and textboxes inside of it. The code: foreach (Control ctrl in this.pnlSolutions.Controls) Seems to only be finding html table inside the panel and 2 liternals. But it does not get the textboxes that are in the html table. Is there a simple way to get all the controls inside of a panel re...

Change color of textbox in JavaScript

I have this small JavaScript code which I need some help with: function doFocus(text) { if (text.value == "Enter Name") { text.value = "Student Name -"; } } All I need here is when someone clicks on my textbox, the text "Student Name -" should change its color, and should text-align = left. I am looking for the appropri...

c# compact-framework textbox mouseleave

hello, I would like to leave the textbox via code. when user clicks in the textbox, and types in something , and then the user will click outside the textbox. on the screen there are just labels. only this one textbox is on the form. my problem is, that the textbox does not lost focus when I click everywhere on the screen. the texbox...

TextBox Label Control

Hi All I am not worried about whether this is in Winforms or WPF. Is there ANY way at all that I could develop my own user control like the one found in Microsoft Paint, below: If you can't see the pic above, it's here: http://img232.imageshack.us/i/txtboxlblctrl.png/ Is there anyway at all I can do something like this in C#? Thank...

Resizing TextBox At Runtime in WPF

Hi All, Was just wondering how I would go about letting the user resize a TextBox control at runtime by dragging its corners in WPF. Less importantly, is the same technique used for the resizing of all controls? Thank you :) ...

C# wpf: Need to add mouseclick event to certain text within a textbox

I have a textbox with a paragraph of information. There are certain words in the paragraph that i want the user to be able to click on, and when clicked, a different textbox is populated with more information. I know that you can have the event for the whole textbox, but that isn't want i want. I only want to call that event when certai...

"Constrained" HTML textarea/WYSIWYG editor?

I am looking for a web-based JavaScript <textarea> editor with support for standard features like selectable font, text colour, paragraph alignment etc. However, there is one considerable constraint: Formatting should always apply to all the text, not parts of the text. That is, the user is able to colour all of his text red, or all of h...

How to add a click event to a textbox created in code

I'm using silverlight 3 and i'd like to create a handler and event wired up to a mouse click in a text box that was created in code behind. Can someone point me in the right direction. I need to make it so that some things fire off when that textbox is clicked into. if you have an example in vb.net that would be even better. thank...

Is it possible to disable textbox from selecting part of text through double-click.

The default behaviour of doubleclicking in a textbox is select part of text. I wanna override it with selecting a word. But I found handling the doubleclick event(or override the OnDoubleClick method) actually do the default behaviour first, then execute my code. Is it possible to disable the default behaviour. ...

check max characters in textbox

I have textboxes where i only want signed a max number of characters in. an then I'll hear how i could check it easily in c# ...

c# winforms events restore textbox contents on escape

Using c# in 2008 Express. I have a textbox containing a path. I append a "\" at the end on Leave Event. If the user presses 'Escape' key I want the old contents to be restored. When I type over all the text and press 'Escape' I hear a thump and the old text isn't restored. Here what I have so far ... public string _path; public ...

How to get the 'text' value return from 'Textbox'?

I am writing scripts using White for UI automation testing. I need to get the actual text value return from a'Textbox'. I used the following line to search the TextBox first, the AutomationId ("vwSearched_Number") represent the actual text value (e.g. 123456). I want to get this text value (123456) returned to be used for next method. B...

WPF Textbox persist visible caret

Is there a way to make the caret in a textbox visible even when the textbox has lost focus? ...

TextBox and Button - Binding and Command problem

I am using MVVM pattern. I have a Text box whose Text property is bound to ViewModel's(VM supports INotifyProperyChange) Text property Button whose command is bound to VM's ICommand property type You may think of this as a SearchTextBox and SearchButton The problem I am facing is that when I enter the text in SearchTextBox and cli...

Silverlight - use a ScrollViewer in a TextBox template

I'm trying to make a TextBox template and I need to include a ScrollViewer in the template - basically I want to add some content (like line numbers) that needs to scroll along with the normal text. The default template for the TextBox is like this: <Border x:Name="Border" BorderBrush="{TemplateBinding Border...

Contains of textbox to array - C#

I have a textbox filled with boolean. How do I put the contents into an array? Thanks. ...

easiest possible way to clear values of all controls in a div using jquery?

I have an add form inside a div which has 3-5 textboxes.. I submit the form via ajax and hide the div in the success function of it... Now i want to clear all the values of textboxes within the adddiv using jquery? ...

Previous active control in javascript

Hi, I wanted to know how I could find the previous active control on a page. I have a couple of textboxes and a button, and when i am on a certain textbox and I click the button, I want to highlight that textbox. I have the highlight functionality covered, but I don't know how to find out which textbox to run the function on... Please ...

Suggestions for GUI of a multiledia messaging application in J2ME

Hello everyone, We have developed a messaging application in j2me which adds text message, gets pictures from gallery and attaches them to the message etc and sends it over to a server after encryption, i.e. the client wants the messages to be encrypted. The app is ready but the only problem is that the GUI of the app looks miserable co...

Display weekday in textbox or label using date from textbox

I have a textbox with calendar extender and a label <label for="<%= tbxFrom.ClientID %>"> From</label> <asp:Label ID="lblWeekDayFrom" runat="server"></asp:Label> <asp:TextBox ID="tbxFrom" runat="server" CssClass="Calendar"></asp:TextBox> <cc1:CalendarExtender ID="extTbxF...