473,803 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing Controls / User Controls / Tab Controls

2 New Member
Guys,

Let me explain the application


I have - Form > Main Tab Control > Main Tab Page > User Control > Sub Tab Control > Sub Tab Page > User Control > Contols/Text Box.

Form - The main form

Main Tab Control - This contains Main Tab Pages.

Main Tab Pages - Each Tap Page is a separate file. Each Main Tap Page contains a User Control which has a Sub Tab Control.

Sub Tab Control - This contains various Tab Pages [Lets say TabOne, TabTwo, TabThree]. Only the TabOne is different for each Main Tab Page.

Sub Tab Pages - Have various controls - Text Boxes, Buttons etc.

So I want a way to access Controls in the Sub Tab Pages keeping in mind what file is open[Tab Pages in the the Main Tab Control]

Lets say I have a File Save Event from the Main Menu Bar, I need only the contents of the active file to be saved. Simplest form like a webbrowser, when you save the page only the page in the active tab is saved. In my case of course I need to keep track of the Main Tab Control active tab and the Sub Tab Control Active tab.

How do I keep track of it?

In the most simplest forms

Create a Tab Control with a tab page [TP1] . Embed a another User Cntrl - Sub Tab Control in TP1. The Sub Tab Control has tap pages [STP1, STP2]. STP1 has some text boxes, other controls. Now duplicate TP1 thru an event [new files] so that there is TP1, TP2, TP3, ....Now lets say we fire an external event, how do I keep track of the values in textboxes wrt to what Main Tab Page is open.

Should I be following a different approach?

Ideas are welcome!
Jan 8 '10 #1
2 3055
mzmishra
390 Recognized Expert Contributor
I am not sure if this solution will work or not,but try to pass some parameter to your method to identify the page.
Jan 14 '10 #2
San24
2 New Member
I found a solution..I`m using Interfaces for the UserControls.
Jan 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
9623
by: Hari | last post by:
What is the difference between HTML controls, HTML server controls , ASP.Net controls? Which will give more performance?
2
1292
by: Terrance | last post by:
Hello all I have a question I'm hoping someone can shed some light on. I have 2 user Inherited Controls on a form. When I click 1 inherited control I would like to change the text of the other Inherited Control. Is there anyway to do this? For example, I have an ADD button which is inherited and a EXIT button which is inherited. The reason I made them inherited is because I want to use the function of these buttons in other forms and don't...
6
3546
by: Liz | last post by:
In VB.NET I add user defined controls to the main panel of a form :- Dim controlInfo As MainTemplate controlInfo = New Details controlInfo.Dock = DockStyle.Fill ' remove the old one if one already on display If pnlMain.Controls.Count > 0 Then pnlMain.Controls.RemoveAt(0) pnlMain.Controls.Add(controlInfo)
3
6359
by: poi | last post by:
In VS.NET 2003, I get intellisense if I do this: LiteralControl literalControl = new LiteralControl(); literalControl.ID = "something"; literalControl.Controls.Add..... And it compiles fine but I get an error saying that the LiteralControl does not allow child controls.
7
1273
by: Adam Knight | last post by:
Just out of interest, what is everbody's thought on using HTML Controls Vs Web Controls. Any preferences?? Cheers, Adam
1
975
by: Troy | last post by:
Best books on writing controls? Looking for User/Custom controls and coding for the IDE as well thanks troy
0
2134
by: JohnyStyles | last post by:
I have a templated user control which looks like this: ----------------------------------------------------------------- <uc:MyUserControl runat=server> <TemplateProperty> </TemplateProperty> </uc:MyUserControl> -----------------------------------------------------------------
1
1163
by: shri124 | last post by:
please help me what is the difference between user controls and custom controls?
4
6022
by: raghunadhs | last post by:
Hi everybody! I would like to develope an application, in this a should abel to create user defined controls. i should have some properties. when ever i drag and drop that control it should apper on the form and should work. i can abel to write code behind that(when i clicked that contro, some thing should be done). for ex: now i am developing a electrical circuit GUI in v.b 6.0.my user defined control is generator( asume it is like a...
2
1614
by: =?Utf-8?B?bGFyc2dyZWdlcnNlbg==?= | last post by:
Hi I have created a couple of Windows Forms controls in C# either by composition or by subclassing existing controls. I'm able to use these controls as ActiveX controls by using "register for COM Interop". I then access the control in a old application written in C++ (using VS 205). This works fine! What if I wish to use a standard control, e.g. TreeView, as an ActiveX control? I can of course subclass the control, without changing the
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5496
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.