I have a validation script that checks for data-* attributes to determine which fields are required. If an element has the 'data-required-if' attribute (which has a jQuery selector as it's value), it checks to see if any elements are found that match that selector. If any are found, the field is required. It does something similar to the...
Hey guys,
It seems to me that the Ribbon control has a problem with textboxes. I was expecting a common TextBox control behaviour: a fixed width and a visible caret when the text exceeds the width. But the RibbonTextBox control changes its width and when the text exceeds the right limit, the overflow is not visible.
I found a hack on a...
I'm pretty new to programming, and I'm creating a simple text-based game.>
I'm wondering if there is a simple way to create my own terminal-type window with which I can place coloured input etc.
Is there a graphics module well suited to this?
I'm using Mac, but I would like it to work on Windows as well
Thanks
...
I am using VB.NET vb 2008 . I am trying to create text boxes dynammically and remove them here is the code i have written so far
Private Sub setTextBox()
Dim num As Integer
Dim pos As Integer
num = Len(word)
temp = String.Copy(word)
Dim intcount As Integer
remove()
GuessBox....
I am trying to add an "KeyPress" event in a textbox (WinForm)
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(CheckKeys);
and here's inside the 'CheckKeys':
private void CheckKeys(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == (char)13)
{
// Enter is pressed - do so...
I have a simple text box in a WPF application.
I need to know when a character was added/deleted in the text box, which character and where it was added or deleted.
I thought to use the TextBox.KeyDown event, but it has some problems:
I can't know where the character was added or deleted.
I have no idea how to determite which charac...
Hi,
I'm using JQuery Validation to validate a particular textbox in my form. The textbox is an optional website section, which uses the url validation method. This works fine and validates accordingly. I would like to have http:// preset into the textbox, to save the user having to type it. However, when the text is set, the validator ...
Hi Folks,
I've never come across this before:
I have a series of text boxes. The text of these boxes get set on page load. then I have a submit button that calls a sub to update the table with the new values (text) in the text box. The problem is it is keeping the original text not the text that is CURRENTLY in the textbox. Anyone come...
I want to make a program that "test passwords" to see how long they would take to break with a basic brute force attack. So what I did was make 2 text boxes.
(textbox1 and textbox2) and wrote the program so if the text boxes had the input, a "correct password" label would appear, but i want to write the program so that textbox2 will run...
Hey!
Ok I have the following problem in Silverlight. I have a control with 2 columns. On the left is a stack panel with line numbers and on the right is a textBox.
So when I write in textBox without wrapping turned on I can simply create the right count of numbers on the left, because I'm searching for '\r' in text.
But when I turn ...
I have a model of events that has various information such as date, location, and description of whats going on.
I would like for my users to be able to search through the events list through a set of different textboxes but I having a hard time getting the syntax just right
in my view I have...
<% form_tag users_path, :method => 'get...
i have created a dynamic table through vb.net, so htmltable, htmltablerow, htmltablecell.
I have added all style and properties in there. so eg.
dim td as htmltablecell
td.style.add("width","100px")
td.style.add("color","blue")
now what i want to do is add the tag to each row. this is because the first td of every row is a checkbox. ...
Is there a MVVM way to select text in a textbox? The MVVM framework that I am using is Laurent Bugnion's MVVM Light Toolkit.
...
I have to add a textbox inside a form that is composed of a lot of textboxes, and one button at the end. It has a datasource, all data is loaded in formload, and the button updates the values of the textboxes. The thing is: this particular textbox won't be in the datasource, I want to get this from the web.config, and I've already manage...
Ok, I have just run into something that is really catching me off-guard.
I was helping a fellow developer with a couple of unrelated questions and in his project he was animating text into some TextBlock(s). So, I went back to my desk and recreated the project (in order to answer his questions), but I accidentally used TextBox instead o...
how do i put the onblur and onfocus attributes on a textbox created programatically?
here's my code -
td = New HtmlTableCell
td.Style.Add("padding-bottom", "5px")
Dim txtbox As New TextBox
txtbox.Style.Add("width", "96%")
txtbox.ID = "ename"
td.Controls.Add(...
i have a textbox received from designer.but i wrote action in GWT.
the problem is textbox is empty but when textbox is filled by value by pressing button then alert box will be displayed informed that value has been changed.
but not worked.help me.
TextBox zip1 = null;
function onModuleLoad() {
zip1 = TextBox.wrap(DOM.getElemen...
I'm trying to display a page in NSIS to obtain two different values. I want both to be not empty. The page actually displays altough I can't get my page leave function to check properly for empty fields.
Function CCInstallOpts
ReserveFile "cc_installopt.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "cc_installopt.ini"
!insertmacro ...
I'm trying to make something like a textbox for a console application,
how to limit the Console.In to only read a defined count of characters from user inputs ?
EDIT
I can't go the Readkey() loop -way, i still need to interact with that box, like using the arrow keys to navigate left an right, Del or Backspace to edit the input and so...
I have this custom textbox that I am working on and I can use it in xaml, but when I run my app I cannot select it or type in it. Here is my code:
public class ModdedTextBox : TextBox
{
private bool selectionStartChangeFromUI;
private bool selectionLengthChangeFromUI;
private bool selectedTextChangeFromUI;
static Modded...