473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

UserControl Validation

Hi all,

I make a user control that need validation. So before one control is
validated another control cannot focus. but when iam trying to
check/uncheck checkbox and radiobutton, click button with different
usercontrol, these controls can focus and executed. it makes me very
confuse. Need help from all of you guys, how to solve this problem.

I have uploaded my simple program at this link below
http://rapidshare.de/files/13003561/...tion2.rar.html

try to click control in yellow area, compare with control color are.

Thanks in advance
Wirawan


*** Sent via Developersdex http://www.developersdex.com ***
Feb 11 '06 #1
2 2576
> So before one control is validated another control cannot focus.

Do you mean within the UserControl itself, or on the enclosing Form,
from one UserControl to another?

Could you give more details about what your UserControl does? It might
help us give you better information.

Feb 11 '06 #2
Hi Bruce,

Thanks for your response.
Have you seen my simple program?

I add some validation in validating event of textbox control, so when
the text of textbox contain character '.', i give e.Cancel to true so
the focus still in the textbox control. it works when i try to move to
controls in the same parent or on the form. But when i try to move to
another user control, example (in my simple program )where the
background colour is yellow i still can check/uncheck the checkbox.
What i want is before the textbox is valid user cannot execute another
control.

Regards
Wirawan
*** Sent via Developersdex http://www.developersdex.com ***
Feb 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Kate | last post by:
Hi: I have a form with a picture box and some command buttons to make certain shapes appear in the picture box. The shapes are drawn on blank UserControls added like this: 'at top of form...
0
by: SDCII | last post by:
I have a UserControl derived class containing a textbox that wires the 'Validating' event. The textbox remains in focus when I cancel the validation, however another Usercontrol derived class on...
0
by: KB | last post by:
Hi guys, How to cause validation inside the UserControl without validating the whole form. I have controls that must be validated on both the form and in the UserControl. But in the UserControl...
4
by: Fernando Lopes | last post by:
Hi. I have a page with a usercontrol. In this UC, I have two ListBoxes and two buttons. When i click in one button, i get the selected item in the listbox. How can i validate, using validators,...
2
by: Eric Maia | last post by:
I have two UserControls I am using in a form. These are each also used separately in two other forms. The structure is essentially this: CourseUserControl.ascx - select or enter a course...
1
by: freshRecruit | last post by:
Hi, I am having a problem, and is driving me nuts and my deadline is fast approaching. Please do help me.. This is a webapplication with a usercontrol which has some buttons for adding,...
0
by: Matthew | last post by:
All, I have searched google and the newsgroups but can't find anything the same as what I am experiencing (though I may have missed something). I have controls (textboxes) within UserControls...
0
by: Arpan | last post by:
I have created the following UserControl (the file is named LoginForm.ascx): <script language=VB runat="server"> Public UName As String Public UPwd As String Public BColor As String Public...
0
by: Nariban Barkan | last post by:
Hi All, I have two UserControls, KK1 and EFT1. Each one has one ScriptManagerProxy and one UpdatePanel . in addition to these, on first control (KK1) there is one button. on second control...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.