textbox

ASP.NET with VB. ListBox adding and removing items

Hiya i'm creating a web form and i want a user to be able to make certain selections and then add the selections to a text box or listbox. Basically i want them to be able to type someone name in a text box ... check some check boxes and for it up date either a text for or a list box with the result on button click... e.g. John Smith ...

Remove specified text from beginning of lines only if present (C#)

I have a textbox in which the user can edit text, in a scripting language. I've figured out how to let the user comment out lines in one click, but can't seem to figure out how to uncomment properly. For example, if the box has: Normal Text is here More normal text -- Commented text -- More commented text Normal Text again --Commented ...

Multilingual TextBox-Winforms C#

I need to display Korean and Arabic characters in TextBox. Following code is working fine for Arabic but not for Korean. Any sugeestion will be helpful? private void PrintArabicAndKorean() { char aleph; char ra; char dal; char wao; char korean; string wor...

Drag file and reveal text - VB.NET

Hey guys, How can I drag a file into a textbox, and then it will show the directory of that file. It seems pretty simple, since its a drag and drop kind of thing. Thanks ...

TextBox on a form is acting weird.

I had a main form. I created a child form that is instantiated by this parent form. I have some textbox, buttons and a progress bar on that child form. When I create that form and show it, the textbox's in that form (child) becomes kind of transparent. When I click on them to write something, my child form becomes inactive and the window...

WPF - Text box that grows vertically to accomodate all text

The problem: I am not getting a textbox setting that will have a horizontally wordwrap and vertically auto grow functionality. I ...

WPF Binding Custom Output Window

I am trying to create a custom Output Window for my software that is bound to my ViewModel. Usually in the past I have always used a TextBox and used the appendText() method to write to the Output Window. Of course with a ViewModel and trying to bind to a Textbox, it seems you can only Bind to the Text property. Below is what I am trying...

MS Reporting Services - columns from DataSource in one Textbox

I have the DataSource which returns columns ItemsName and I need to join these all names into one Textbox. The output should look like: "ItemName1, ItemName2", ItemName3, ..." I cannot figure out how use =Join() to do that. Thank you for any help. ...

WPF textbox binding issue.

I have a wpf window which is used to add as well as edit information about an entity. I am using mvvm architecture and ADO.Net entity model. The screen looks something like this - <!-- EmployeeView --> <Window .....DataContext={.....}> <WpfToolkit:Datagrid x:Name="dgEmployees" CanUserAddRows="fals...

textbox or code not case sensitive

I enter a name in textbox eg. "John" and save it in the database which it does, then i again enter "John" which it does not save. But if i enter "john", it saves this again... I need it to not save the john and vice-versa. ok so this is the textbox which is quiet normal: <asp:TextBox ID="TextBox2" runat="server" Width="80%" BorderColo...

Show nested value entity in textbox on databinding (c# - winforms)

Hello, I have an entity with others entities inside. Per example, Entity A has entities B and C. So, I want to show in a text box the value of A.B.SomeProperty when I set a datasource for bindindsource. Is it possible with a workaround? tks ...

How to change text in a textbox on another form in Visual C#?

In Visual C# when I click a button, I want to load another form. But before that form loads, I want to fill the textboxes with some text. I tried to put some commands to do this before showing the form, but I get an error saying the textbox is inaccessible due to its protection level. How can I set the textbox in a form before I sho...

Textbox Wrong Value

Hello, I have an asp.net page with a datalist with few textboxes, and a submit button. when i cahnge the text in the textbox, and click submit, the value i get in the vb code is the old value and not the one i just entered. Any idea? thanks ...

adding pictures in certain places in a richtextbox in C#

Alright, Question #1: well i have a richtextbox, and id like to add emotions to it, so for instance, if ":)" was in the textbox, id want the picture of a smiley face in its place. Question #2: i have a normal textbox, NOT a richtextbox, and id like to add some sort of spell check to it. that highlights the mis-spelt words as you type ...

data in dynamic textbox

Hi, I am new to .Net I created textboxed dynamically, But when i clicked on the button, i loss before created data in the textbox. How can i maintain data in the dynamic textbox. Thanks in advance.. ...

How to make a text field grow to fit the contents of its value field

I am using jQuery as my Javascript library. Is there any way to make a textbox grow to fit the size of its contents? ...

how to word wrap in normal html textbox?

i have this text box <p>Event Data :<input id="data" type="text" wrap="true" value="{{data}}" style="width: 757px; height: 170px" /> </p> i want it to be multiline i can't use asp:textbox is it possible to use exact textbox and make it multiline or make the text in textbox go word wrap ...

DataBind listBox selected item to textboxes

Hi! I have ListBox data bind to list of users (collection): usersListBox.DataSource = null; usersListBox.DataSource = _users; usersListBox.DisplayMember = "Name"; usersListBox.ValueMember = "Id"; Now I want properties of selected item to be shown in different text boxes, so I do the binding: nameTextBox.DataBindings...

C#/WPF: Catch Routed Event (UIElement.PreviewKeyUp) from UserControl

Hello, I've a UserControl which contains a TextBox called myTextBox. This UserControl is placed in a MainWindow.xaml where I'm trying to catch the "UIElement.PreviewKeyUp". Now when debugging, I can see the "UserControl" as sender, not the TextBox. How can I check if the KeyEventArgs e (especially e.Key) were sent from the TextBox call...

Adding Hyperlinks in a richtextbox that activate a method instead of a webpage

Specifically, im looking for a way to add links to all the words in my (rich)textbox that start with #. so, if my richTextBox1.Text property equaled "This is an #example of what i want" i would want "#example" to be highlighted. and if its clicked, id want to add a context menu for right click, and just on left click id want it to trigge...