Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 744453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:58:47+00:00 2026-05-14T08:58:47+00:00

I have a UserControl with a Tab Control containing three tabs. Within the tabs

  • 0

I have a UserControl with a Tab Control containing three tabs. Within the tabs are multiple controls – Datetimepickers, textboxes, comboboxes.

There is also a Save button which when clicked, calls this.ValidateChildren(ValidationConstraints.Enabled) Now, I click save and a geniune validation error occurs. I correct the error and then click save again – valdiation errors occur on comboboxes on a different tab. If I navigate to this tab and click save, everything works fine. How can this be? I haven’t changed any values in the comboboxes so how can the fail validation then pass validation?

The comboboxes are bound to a dataset with their selectedValue and Text set. I just don’t understand what is happening here.

This behaviour also occurs for some textboxes too. The validation rule is that they have to be a decimal – the default value is zero, which is allowed. The same thing happens, they fail validation the first time – I make no changes, click save again and they pass validation.

EDIT:

The error is not a Framework error – the error is the one I provide during my validation routine. e.g Select a valid drop down option.

I stepped through the process and the sometimes the combobox values are the default values other times the selectedvalue is the default but the text is null. I don’t see how this can happen if I’m not changing anything in the combobox.

If you need any further information please let me know

thanks

Barry

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:58:48+00:00Added an answer on May 14, 2026 at 8:58 am

    The following is a quote from MSDN:

    “Controls contained in a TabPage are not created until the tab page is shown, and any data bindings in these controls are not activated until the tab page is shown.”

    So I’m guessing that if before you press save the first time, you make sure that you’ve clicked on each tab at least once, it’ll work as expected, but if you don’t look at all tabs before saving, it fails?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UserControl that consists of three TextBoxes. On a form I can
I have UserControl which contains a TextBox and a Button control. The Button opens
I have a UserControl with some predefined controls (groupbox,button,datagridview) on it, these controls are
I have a UserControl called CustomerFinder for searhing customers. And there is "ADD" button
I have idea to implement my wpf windows like TabPages in tab control. It
I have a regular old tab control sitting on a form. I have a
I have a usercontrol that acts as a container to hold more usercontrols within
I have a usercontrol that has several public properties. These properties automatically show up
I have a UserControl in my Asp.net project that has a public property. I
I have a usercontrol that is meant to take up the entire form. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.