Questions tagged [validating]
107 questions
2
votes
2 answers
validate a textbox on textchanged but not on keypress
I am using Textbox_Validating event to validate a textbox on one of my window form.
I wanted to validate the textbox, if the text of the texbox changes. So I called the validating event from the textbox_Texchanged event. But it has a sideffect as…

Vaibhav Jain
- 33,887
- 46
- 110
- 163
1
vote
1 answer
QUERY_STRING handling in php
It's possible via .htaccess send query to another file?
A bit explaining:
index.php handle all pages like this:
switch($page) {
case 'index':
require_once START . '/includes/pages/index.php';
break;
case 'another':
…

ZeroSuf3r
- 1,961
- 8
- 25
- 36
1
vote
1 answer
In Winforms, why is validation not being fired after leaving TextBox and entering a DataGridView?
I'm overriding the OnValidating event in a custom Winforms text box. I'm finding that if the text box (which is bound to an object) has focus and then I give a grid focus using the mouse, the OnValidating event doesn't always get fired. When I…

bsh152s
- 3,178
- 6
- 51
- 77
1
vote
1 answer
How to show custom error message in ValidationSummary directly (without validator)?
Can I set custom message to the ValidationSummary control?
I've got Delete button in the edit page. I want if the validation fail to set the error message in the validation summery to prevent putting another label with red style.
I think using…

French Boy
- 1,471
- 3
- 18
- 23
1
vote
2 answers
Laravel Custom Validation Rules should be lowercase?
I have model, and it has several field names, and 'lastName' is among them.
In my FormRequest file, I have rules and messages for this field:
$rules = ['lastName.*' => 'lastName_fail: index'];
$messages = ['lastName.*lastName_fail' => This lastName…

Sergej Fomin
- 1,822
- 3
- 24
- 42
1
vote
1 answer
SAXParseException XML document structures must start and end within the same entity
So I know using this API, some of my xml files which are produced on a server might be generated wrongly or without closing some tags, or badly structured.
Now my code is working fine, but for certain files, some of these xml files throw these…

Theg8nj
- 135
- 1
- 16
1
vote
3 answers
Validating user only enters a one word answer and that the first letter is capitalized
I'm currently self-teaching myself C# and have had a pretty decent grasp on it, but I'm lost on how to validate that the user only enters one word answer and that it's capitalized otherwise I want to give them another chance to try.
This what I…

Pandda
- 43
- 1
- 2
- 9
1
vote
1 answer
Validating user input in inputbox
When I run the following snippet, and enter an acceptable value, I get the desired result.
do while len(strselect) = 0 'or strselect<>"1" or strselect<>"2" or strselect<>"3"
strselect = inputbox ("Please select:" &vbcrlf&vbcrlf&_
"1. Add an…

Albert F D
- 529
- 2
- 13
- 33
1
vote
1 answer
c# Control.Validating event leaves mouse focus on other controls?
I have a c# .net 2.0 winForm with a textbox and a trackbar. The textbox Validating event sets e.cancel if the user clicks the trackbar and the validation fails. I am then left with the cursor in the textbox, but the mouse focus is still on the…

BillyG
- 11
- 2
1
vote
2 answers
Validating with errorProvider using dropdownlist in Windows Forms?
So basically I am trying to validate my drop down list (combobox) using the Validating event. This works, but calls the focus to my drop down list, not allowing a selection to be made.
Is there any way to get the errorProvider working with…

Spooks
- 6,937
- 11
- 49
- 66
1
vote
1 answer
ios app validation error : Invalid BundleOS TypeCode - Xcode 7
I created a provisioning profile for distribution on apple developpers and create my app page on itunes connect linked to this profile. The app is running properly.
Now, I am trying to submit my app to the app store but I got an error when I want to…

AnthoPgt
- 11
- 2
1
vote
3 answers
c++ Validating a Double in a String
Please excuse any amateur mistakes, I'm still quite new to this. For my class we need to convert a double input to a string to use in a different part of the project. The verification for the integers worked just fine and I attempted using some of…

Bowski
- 11
- 3
1
vote
2 answers
Validating DataGridView in C# win form
I have a DataGridView that is sourced from a datatable. I'm trying to stop the user inputting non-numerical or negative integers or doubles into different columns from the datagridview.
I understand that a CellValidating method is commonly used but…

Alston Cheung
- 33
- 1
- 6
1
vote
3 answers
Add Validating event handler in constructor of a custom TextBox control
I created a custom control that inherits from TextBox.
I have a ValidateTextBoxEntry method that is called by the Validating event.
Normally, I would use the Property editor in the visual editor to add ValidateTextBoxEntry to the Validating event of…

Davide Andrea
- 1,357
- 2
- 15
- 39
1
vote
1 answer
User input validation using TextBox_Validating event
I'm trying to use this custom method for user input validation in text boxes. But I see something missing here as now I cannot move (focus) to next text box in the form!
private void textBox_Validating(object sender, CancelEventArgs e)
{
TextBox…

CAD
- 4,112
- 6
- 29
- 47