17 Topics

Member Avatar for
Member Avatar for ddanbe

Sometimes you only want to enter numeric data in a textbox. You have two options here : Let a user type whatever he/she wants into a textbox, validate the input and show him or her an annoying message that he/she has done something wrong.:angry: Or: capture the key before input, …

Member Avatar for noface0711
1
3K
Member Avatar for murali2489

Hi All, I have an online screen in which a form filed is filled with Numeric Characters .. if the entered four digits are not numeric, it will throw an alert message saying "**Only numerics allowed**". Now the new requirement is it should accept alphanumeric characeters instead of Numeric Characters. …

Member Avatar for djjeavons
0
170
Member Avatar for razamughal67

I have a 2 textbox 1 text box is empty . text2 is multine true second text box have some words. text2 text Example : "12345 is my number and 03451234567ddddsfsa somethingis wrong034512345find 03451234567" .............. i want to find 03451234567 11digit number in text box with first 3 or 4 …

Member Avatar for Reverend Jim
0
315
Member Avatar for Triryche

I am trying to use the values from numericUpDown boxes. With the execptoin of totalRunTime, all variables in this sample of code are from numericUpDown boxes. I have tried declaring totalRunTime as an int, decimal, double, ect... Am I missing something simple here? private void button1_Click(object sender, EventArgs e) { …

Member Avatar for Triryche
0
988
Member Avatar for Kewne

I have this line of code: $str = "$str<td><a href=\"javascript:Open($Row->ID , $Row->IDCode)\" title=\"click to open window...\">more...</a></td></tr>"; it works fine when the IDCode at the $Row->IDCode is a numeric but then it doesn't work anymore when the IDCode starts with a character. At my database the ID is int(11) unsigned and …

Member Avatar for Kewne
0
174
Member Avatar for kingsonprisonic

This module is for validating textboxes.... After using this module in your project you can simply validate all of your text boxes like [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AssignValidation(Me.TextBox1, ValidationType.Only_Digits) AssignValidation(Me.TextBox2, ValidationType.Only_Characters) AssignValidation(Me.TextBox3, ValidationType.No_Blank) AssignValidation(Me.TextBox4, ValidationType.Only_Email) End Sub [/CODE]

Member Avatar for Iamateur
4
1K
Member Avatar for dinhunzvi

i have an html form with two text boxes. one is for the product name and the other is for the price. i want the text boxes for price to allow numeric values only. is there a way of limiting user input for this text box using javascript

Member Avatar for radhakrishna.p
0
165
Member Avatar for clubberlangMayo

hi everybody, im doing a project in vb 2010 its a simple "guess the number between 1 and 30" i have it all finished working properly , my only remaining issue is, if i enter a character or letter into the combobox, it crashes the system. i got a piece …

Member Avatar for clubberlangMayo
0
271
Member Avatar for amitash

Hi, I want to change the numeric value in a cell to a string with 1000 Separator(,), e.g. numeric 1000 will to string "1,000" and 123456789 will change to string "123,456,789". How to do that in VBA? Thanks

Member Avatar for QVeen72
0
412
Member Avatar for juss2022

Hello everybody. I've a question. I tried to change font size of textBox named "textBox1" Here is the function of the NumericUpDown: [CODE]private: System::Void numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { String^ Num2 = this->numericUpDown2->Text; this->textBox1->Font->Size = Num2; };[/CODE] Errors that occur: [CODE] error C2039: 'set' : is not a member of …

Member Avatar for Ancient Dragon
0
446
Member Avatar for Jake.20

I'm having trouble with validating my textbox. My textbox should only accept decimal number, and should not accept negative number. i tried this code for validating the input type, but i fail. [CODE]If Not Char.IsDigit(numWeight.Text) Then MsgBox("Incorrect input.") End If[/CODE] And i don't know if this is the right code …

Member Avatar for Jake.20
0
134
Member Avatar for ak24

How can I prevent the beep sound when I use the SendKey command in NumericUpDown1 Box? Here is the code: [CODE] Private Sub NumericUpDown1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles NumericUpDown1.KeyPress Static SAME As Short = TB2 TB1 = SAME - NumericUpDown1.Value If e.KeyChar >= "0" And e.KeyChar …

0
111
Member Avatar for nekogda

Here's a simple question. Need: => to use scipy special package function in my python prog (python2.6). 1. Downloaded & intalled numpy for python2.6 2. Downloaded & intalled scipy (scipy-0.8.0-win32-superpack-python2.6.exe) tested: import numpy import scipy - everything's ok According to scipy docs, a package needs to be loaded before a …

Member Avatar for nekogda
0
208
Member Avatar for DelilahDemented

I'm working on a problem where I am trying to validate the user input to verify only digits have been used. I'm trying to use the ASCII code to do so, but I'm stuck. I would greatly appreciate any help that can be provided. Thank you in advance!!! *Delilah* [CODE]#include …

Member Avatar for Taywin
0
2K
Member Avatar for HiHe
Member Avatar for TrustyTony
0
4K
Member Avatar for pringles08

[code] //to check if numeric public boolean checkNumeric(String user_input) { for( ; x <= user_input.length() ; x++ ) { if(!Char.isDigit(user_input.charAt(x))) { return flag; } } return noError; }[/code] it says: cannot find symbol variable- char Help please.

Member Avatar for BestJewSinceJC
1
151
Member Avatar for adunham1

Hi everyone! I'm a student taking an introduction to Python programming class and I'm in URGENT need of some help! Basically the program I need is to compute the "numeric value" of a name. Ex. a = 1, b = 2, c = 3, etc. So name abc = 6. …

Member Avatar for pysup
-1
112

The End.