I have a vb.net form that uses multiple textboxes across several different tabs. Within one of those tabs, I have a sub set of tabs. My save functionality calls stored procs for each tab and cycles through the values on each page to either do an update or a "add new". I noticed that while testing, some of the pages do not save or update any of the values in the textboxes. After a few days of investigating, I realized that if I edit something, then physically click through the other tabs, it all saves/updates properly. If I don't click through them, they don't all save. Is there a reason for this that I am missing? When you enter a search value, I cycle through the pages and populate them all at the same time so I was assuming it wrote those values BEFORE it physically rendered...I guess I am wrong?
相关问题
- 'System.Threading.ThreadAbortException' in
- How to access the camera from my Windows Phone 8 a
- how to use special characters like '<'
- C# to VB - How do I convert this anonymous method
- Scaling image for printing
相关文章
- vb.net 关于xps文件操作问题
- Use savefig in Python with string and iterative in
- Checking for DBNull throws a StrongTypingException
- Make Bootstrap tab Active on the bases of URL link
- Using the typical get set properties in C#… with p
- Load a .NET assembly from the application's re
- C# equivalent of VB DLL function declaration (Inte
- ViewPager first fragment shown is always wrong wit
From the TabPage documentation Remarks section
So the answer to your question is "Yes the tabpage must be shown".
However, the definition of "shown" is subject to interpretation. In reality, all you need to do set the
TabPage.Visible
property toTrue
and not actually cycle through and display eachTabPage
.A recursive scan of the form for
TabPage
controls will work:Example usage: