textbox

What is the best way to include links and code in a textbox for asp.net?

Is there a way to include links and formatted code without a 3rd party control? Is there a good third party control to use if not? ...

Fill textbox with current username logged in sharepoint.

I made a custom list, it is actually a form fill out for an absence request workflow. Before publishing it I found a flaw. The first textbox is a Person or Group textbox, this helps out to retrieve the Active Directory username, but the flaw is that I can type whatever username I want, Example: "User X is logged on, but if he types User...

ASP.NET - Swap TextBoxes for Labels when Enabled=False

The setup: Web form with lots of TextBox controls. When I set any one of the TextBox control's Enabled property to False, I'd like to "swap" that TextBox out for a label at runtime. The idea here being if it's read only anyway, don't display it in a control designed for editing. I'm thinking this should be pretty simple and reusable, b...

Vertical Text in Reporting Services (Bottom-Up)

I would like to display my text in a text box in Reporting Services vertically bottom-up. I already can have it top-down by going to the WritingMode property of the text box and switching to 'tb-rl' but there is no option for bottom-up. I have done some research and would really like to avoid creating an image and putting that into the...

NSException thrown loading a XIB file with a UITextView

I have a XIB file with a UITextView, which I'm associating with a UITextView* outlet in my controller: @interface MyController : UIViewController <UITextViewDelegate> { IBOutlet UITextView *textView; } @property (nonatomic, retain) IBOutlet UITextView *textView; I've aded the prototype in desperation, I've not implemented any o...

Verifying if multiline textbox is visibly full.

Hi, I'm trying to make my own control in for .NET using VB and I'm having problems achieving what I want to do. In fact, I'm making a control which inherit from the textbox class and the only modification I'm trying to bring to it is that if the control is visibly full, the user can't type anymore. So: Scrollbars should never appear. T...

Validating WinForms TextBox (in C#)

In TextBox_Leave event i need to check whether numbers entered in textbox is in serial number or not.If it is not in order then i need to display a message as "number" is missing For example : In textbox i have entered 3 and click tab : I need to display message as "Number is not in order , number "1" and "2" is missing " ...

how to tell when scroll bar is at bottom of an asp.net multiline text box

Hello, I am working on an asp.net page and I have a multiline text box that displays some text. I want the user to have to scroll all the way to the bottom before I display a checkbox for them to continue. My question is how can you tell if the scroll bar is at the bottom? ...

Is there a way to set ASP.NET TextBox password char when in Password TextMode?

Hi! <asp:TextBox TextMode="Password" runat="server" /> I want that when the user types in text, it should show • rather than a simple asterisk, is there a way (in win-forms' TextBox there is a property PasswordChar, what is it's similar in web)???? ...

Editable Rich text box

Please Do any one know a free rich text box in C# like the one used in Microsoft Encarta, such that when i write x^2 it makes the 2 up the x with smaller font (like sup in HTML). Thanks very much ...

asp.net-mvc How to change width Html.TextBox

how do you change the width of a textbox in an asp.net-mvc View i want to have these fields side by side and the state textbox much shorter width <p> <label for="city">City:</label> <%= Html.TextBox("city")%> <label for="state">State:</label> <%= Html.TextBox("...

TextBox autocomplete and default buttons

Hello, I have a .NET TextBox with AutoComplete feature on the form. The form has also AcceptButton and CancelButton defined. If I try to commit a suggestion with Enter key or close drop down with Esc, my form closes. How can I prevent this behavior? ...

How to scroll down in a textbox by code in C#

I am using winforms, and I update a text box once in a while (showing messages). however, when the text reaches the end of the box it produces scrollbars and I don't know how to scroll down to the bottom. The only thing I see is ScrollToCaret, but Caret is at the beginning of the text. What is the command to scroll? ...

In C# (winforms) how to synchronize a textbox and datagridview so changes in one show up in the other

No database involved here, I am creating my own datatable in code, and binding it to a textbox and a datagridview. When I change current record in the grid the textbox updates to the current value. But what's the best way to synchronise changes between the values in the textbox and the datagrid. If I change one then it doesn't change t...

Text Input error / validation and restore previous correct value in Flex

I have text input boxes. There is validation for each of the boxes using numberValidator. Now, the thing is that am using alert box to show if any error occurs. Flowchart :: 1> Insert value in textBox. 2> NumberValidator validates the input on "trigger=change". 3> If error, alert message is displayed. The user clicks OK to go back to f...

Action the keypress method after the key is typed

I'm actioning a method on a text box's KeyPress event, but the method is being run before the key is actually typed into the box. If I use KeyUp, I get the behaviour I'm looking for, except KeyUp triggers on soft keys as well as standard characters, which isn't particularly useful for me. Can I get KeyPress to run after the key is type...

C# Bind Generic List To Textbox WinForms?

Hello! I have a method that returns a list of type string. I want to bind each item in the list to the textbox so essentially it looks like a listbox, except it will be editable since its actually a textbox! any ideas on how to go about doing this!? CODE: public List<string> GetAgentsDetails(string writeDir) { List<string>...

MS Access 2003 - Simple value input into a text box from clicking label boxes

Ok so could anyone please help me out with the VB for auto entering information into a text box, by clicking certian label boxes on a form in access 2003. I built this thing using label boxes as "sort of links" instead of button for navigation/commands etc, and I have this power point presentation viewer on one of the forms. The client ...

A textbox/richtextbox that has syntax highlighting? [C#]

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. ...

WPF TextBox. How to define some restriction?

How can I restrict TextBox to accept only capital letters, or for example digits, or forbid to put any special character? Sure it's a piece of cake to catch TextInput event and handle the text here, but is it the proper way to do this? ...