473,396 Members | 1,975 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,396 software developers and data experts.

Is anyone good with tabs a forms? (C#)

Ajm113
161 100+
Ok, I have dynamic tabs going on my program. So I need to have it so if the user created a new tab with some others he can copy/save or what ever on that tab. So is their a code of some sort that will allow me to do what ever on that tab? Since I am making a text editor all the Rich Text Boxes have the same name so I need to have it so the user may do any changes on the selected textarea on that tab. Any suggestions?
Jul 22 '07 #1
8 1332
kenobewan
4,871 Expert 4TB
Have you tried giving the Rich Text Boxes different names - rtb1, rtb2 ...?
Jul 22 '07 #2
Ajm113
161 100+
That is another problem! When I do have it so the text boxes get generated with a name of "rtb1" and "trb2". So that means I have to have script know which text box the user is currently working on. But if the user would delete a tab and create a new one that means the program has to know that so the editor won't be making any changes to the old rtb.
Jul 22 '07 #3
vanc
211 Expert 100+
I don't really get your point but I think it's not necessary to identify the selected rich text box, since the selected rich text box is identified itself in Controls collection of the current Form. What should be done is just find the current rich text box that got Focused and take it from Controls collection, then you can do anything with it.

cheers.
Jul 23 '07 #4
Ajm113
161 100+
I don't really get your point but I think it's not necessary to identify the selected rich text box, since the selected rich text box is identified itself in Controls collection of the current Form. What should be done is just find the current rich text box that got Focused and take it from Controls collection, then you can do anything with it.

cheers.
Ok example: If i was playing a game that allows me to create people in a room, but since they all can only be named "Joe". I can't talk to a specific one with out them all doing something for me with out having to select them. So I have to select them then tell the one I selected what to do. Like "get coffee." Since I can create tabs with rtbs with the same name. I have to have the program know which rtb I want to do any work on. With the current tab selected. Like if I wanted to paste from the clipboard to my script that I am using on my program. So with out the selection of what rtb I am working on. the clipboard will be pasted on all of my rtb's on each tab. So how do I create a blockage that disables the flow of command to all rtbs on each tab that was user created?

#fast question

Created user creatable tabs with same rtb names as the new one.

When I paste any information on the rtb with the user created tab the info will be pasted on all of rtbs with the user created tabs as well!

How do I stop this!
Jul 23 '07 #5
vanc
211 Expert 100+
Ok example: If i was playing a game that allows me to create people in a room, but since they all can only be named "Joe". I can't talk to a specific one with out them all doing something for me with out having to select them. So I have to select them then tell the one I selected what to do. Like "get coffee." Since I can create tabs with rtbs with the same name. I have to have the program know which rtb I want to do any work on. With the current tab selected. Like if I wanted to paste from the clipboard to my script that I am using on my program. So with out the selection of what rtb I am working on. the clipboard will be pasted on all of my rtb's on each tab. So how do I create a blockage that disables the flow of command to all rtbs on each tab that was user created?

#fast question

Created user creatable tabs with same rtb names as the new one.

When I paste any information on the rtb with the user created tab the info will be pasted on all of rtbs with the user created tabs as well!

How do I stop this!
Ok Let's play your game, I just add some rules to your game and some assumptions like below:
ass: There is one big room with several small rooms inside. All small rooms has a door which should be closed, if someone wants to come in a room, he/she has to open its door and leave it open. Then she/he moves to another room, he/she has to close the door behind and open the door to the room to get in. The bottom line is there is only one room will be opened at a time, the other's doors are closed. There only one people named Joe in a small room.
Now is solution:
You want to ask Joe in the selected room to get coffee, what you have to do is you have to look for the opened door room, then ask the Joe in that room to do the job. By this way, you can't get confused from Joe to Joe because there is only one Joe in one room and there is only one room that has opened door.

cheer.
Jul 23 '07 #6
Ajm113
161 100+
Ok Let's play your game, I just add some rules to your game and some assumptions like below:
ass: There is one big room with several small rooms inside. All small rooms has a door which should be closed, if someone wants to come in a room, he/she has to open its door and leave it open. Then she/he moves to another room, he/she has to close the door behind and open the door to the room to get in. The bottom line is there is only one room will be opened at a time, the other's doors are closed. There only one people named Joe in a small room.
Now is solution:
You want to ask Joe in the selected room to get coffee, what you have to do is you have to look for the opened door room, then ask the Joe in that room to do the job. By this way, you can't get confused from Joe to Joe because there is only one Joe in one room and there is only one room that has opened door.

cheer.
Yeah that looks better but I don't know where you are going off talking about the 'ass' part. You already have something against me all the sudden? Just kidding...
Jul 23 '07 #7
vanc
211 Expert 100+
Yeah that looks better but I don't know where you are going off talking about the 'ass' part. You already have something against me all the sudden? Just kidding...
ass = assumption :D

cheers.
Jul 23 '07 #8
Ajm113
161 100+
oh, ok then. Doesn't anyone know what I am working on or something? At least one person or two has gotten to create dynamic control tabs with rtbs in their programs for a text editor! I have been asking all over the place, but no help!

Doesn't anyone want to support of their knowledge on C# on tab control to help more support in the future? For new users that may ask the same question when you are not on the forum and I may help them out to keep this tree of knowledge growing!
Jul 24 '07 #9

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

Similar topics

3
by: Kent | last post by:
Hi all, Thank you in advance. Here is the issue: I need to create a page that allows users to copy the contents of a MS Word document and paste them into a textarea. All fine and dandy...but the...
2
by: Henro V | last post by:
Can I integrate 3 existing forms (all based on the same query) integrate in one form by using Tab's? Thanx for thinking, Henro
11
by: Steve B. | last post by:
How can I keep the ComboBox textbox empty of datasource items when my local application starts AND keep them empty even after the user clicks different Tabs on the form. I welcome any questions....
5
by: DraguVaso | last post by:
Hi, I want to give my application a Visual Studio .NET-liek interface: With Forms that can appear or disappear at the site like the Toolbox. With docked Forms. With Forms that are selectable...
1
by: ghadley_00 | last post by:
I have an MS Access Database with multiple forms that all update fields in a single table because I can't fit all the required fields onto a single screen. I have looked into converting these...
10
by: Tom | last post by:
I'd like to create a new VB 2005 app that looks like the VS 2005 IDE - in other words, an app that has multiple forms, but instead of displaying them seperately or in an MDI main from, I'd rather...
5
by: givitumee | last post by:
I have a problem with my website: http://www.eecs.tufts.edu/~pgoran01/abet/ I'm using tabbed menus, all of them pop up when you login. However, the interface looks good in firefox but when I...
1
by: jianxin9 | last post by:
Hi, I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the...
4
matrekz42
by: matrekz42 | last post by:
Hello Gurus, I currently have a form that houses multiple subforms and it's all on tabs, within the form. I have a query that I want the date range to be called from a DatePickr that is in one...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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.