Solved

Interate through control only on a specified tabpage

Posted on 2016-08-12
2
41 Views
Last Modified: 2016-08-30
I have a VB Windows form. The form has a tab container. On TabPage5 I have a series of controls (textbox and combobox) that I would like to iterate through and check the property of the TAG property. For instance if the tag is "R" I'll check that the field has an acceptable value and if not set enabled.false on the save button to not allow the SAVE command on that tab.

I've worked out  how to do this on the entire form but not just a tabpage.

The goal is I need to validate the control one tab at a time and take action accordingly.

Help?
0
Comment
Question by:SchoolTeacher54
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 41754448
Please use the Controls property of the selected tab page instance,  in your case you could loop this Controls property to find the required child control.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41754823
can you show the code you currently have?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now