Ok so I have to create a form that takes the contents of a folder and lists it in a textbox (yes a textbox not a list box!)
I then have to filter this textbox using a combobox which contains all the extensions of the folder (e.g. if i choose ".txt" in the combobox the textbox should filter to show all the text files only!)
I've managed...
Hello everyone!
I've got a standard TextBox control which I'm trying to have mimic the "soft descriptions" like those found in the title and tags boxes on StackOverflow. Essentially, when the user's focus enters the control, it hides the description ("Username") in this case, and sets alignment and color to be that of a standard text co...
I have a dynamic text box which is of the size 300 x 300. However, when I load in text from an external file it just ignores this size and keeps on going vertically. The width remains the same which is fine. What I really want to do is use the uiscroller to go through the remaining text. Instead, the text just goes on past the bottom of ...
Ok, so I just started teaching myself C# today, and I have finally gotten completely stuck. I am trying the use a browse option to select a file. The file path will then be displayed in textBox1. Then I need what is textBox1 to be loaded by clicking the Launch button.
I currently have textBox1.Text set as the location of the file. When ...
Is there a .Net function that does that. I guess if there isn't i have to make my own method.
The thing is i have a function. It accepts integers. If you pass a 0 integer or a null value it still works. Problem is that the value of an empty textbox is a String.Empty value.
I don't want to use if's. I mean it could but its much nicer i...
Is it possible to use TextBox in "virtual" mode.
I want to supply text on demand, when user scrolls through the document.
...
I have a script set up where someone picks a comic to go to out of the list by appending it to the URL. However, I can't for the life of me get it to accept an enter stroke while inside the text box and still maintain script functionality. Any solutions would be very very much appreciated.
Script/Form looks like this:
function Go...
When the user presses a tab in this textbox, the cursor jumps an equivalent of 8 spaces.
How can I change it so it jumps only 4 or 2?
<TextBox
Width="200"
Height="200"
Margin="0 0 10 0"
AcceptsReturn="True"
AcceptsTab="True"
Text="{Binding OutlineText}"/>
...
Hiya
I have a GridView on an ASP.NET page with a TemplateField column that has a TextBox in the ItemTemplate. I then have a command field which is supposed to pull the text from this TextBox and use it in a SqlCommand running a stored procedure.
Here is my C# code:
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow selectedR...
Im having some problems parsing a string to a textbox type, im using the code in a diffrent form in the program and its working fine, but when im tying the same two lines here i get a null exception
the two lines of intrest is
string txbName = "br" + bruker + "txt" + 'B' + o;
txtBCont = (TextBox)Controls[txbName];
new info
Greg p...
Dropdown
In my site I have a set of SELECT dropdowns that are set up like this.
<OPTION class="addTitleTag">400</OPTION>
Search Box
There is also a search box that is like the following.
input type="text" class="textbox" onblur="search_SearchBlock_blur()" onfocus="search_SearchBlock_focus()" value="Search" name="g2_form[searchCrit...
Consider a gridview row containing two columns... Each column has two textboxes... Onkeypress in the first textbox i have to update a value in the second textbox..... Is it possible with jquery....
EDIT:
I want to show Closing Advance based on Advance Detucted textbox keypress
ClosingAdvance=OpeningADvance-AdvanceDetucted....
<table...
I use a textbox inside a gridview and its onkeyup function doesn't seem to work....
Here is my gridview
<asp:TemplateField>
<HeaderStyle Width="12%" />
<HeaderTemplate>
Advance Detucted
</HeaderTemplate>
<ItemTemplate>
<asp:TextBox ID="TxtAdvanceDeducted" runat="server"
CssClass="text_box_height_14_width_50" onkeyup=...
I added onkeyup javascript for a dynamically added textbox in javascript... But it doesnt seem to work....
var cell4 = row.insertCell(3);
cell4.setAttribute('align','center')
var e3 = document.createElement('input');
e3.type = 'text';
e3.name = 'txtqt' + iteration;
e3.id = 'txtqt' + iteration;
e3.onkeyup = totalAmount(event,this,'tblsa...
This other SO question asks about an autocomplete textbox in WPF. Several people have built these, and one of the answers given there suggests this codeproject article.
But I've not found any WPF Autocomplete Textbox that compares with the WinForms autocomplete textbox. The codeproject sample works, sort of, ...
...but
it isn't s...
using c# winforms vs2008
Howdy,
ive got a textbox on a form with a method being called from the textBox1_Leave event. The mehtod takes the contents of the textbox in question and populates other textboxes based on the contents.
My problem is that is the user has focus on the text box then clicks the button to close the form (calling th...
I have a gridview with three textboxes txtOpeningAdv , TxtAdvanceDeducted , TxtClosingAdvance..... Using a KeyUp function on TxtAdvanceDeducted i calculated TxtClosingAdvance... My page Shows value in TxtClosingAdvance textbox... But when i accessed it using c# it gives me error Input String was not in a correct format...
When i inspect...
I'm creating a bit of a calculator type program.
I have a textbox which the user can change the value of. This textbox is used in some of the calculations.
How do i save the value of a textbox so that the next time the form opens the text box holds that value.
For example the textbox default is 1.5. The user changes it to 5 and then ...
i want to set length of the textbox as 8. when the length is 8 keys become disabled. and also backspace enable.
...
I'm making a program in win32 for the Windows Mobile platform (testing on WM6.1). Most of the main window consists of a single text box, and I would like to use my finger to scroll it instead of selecting the text. How would I go about doing that?
...