Click here to Skip to main content
15,914,109 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Control Pin
bobsugar22231-Jan-07 22:01
bobsugar22231-Jan-07 22:01 
GeneralRe: User Control Pin
Biswajit Ghosh1-Feb-07 19:49
Biswajit Ghosh1-Feb-07 19:49 
GeneralRe: User Control Pin
Biswajit Ghosh1-Feb-07 19:51
Biswajit Ghosh1-Feb-07 19:51 
GeneralRe: User Control Pin
Christian Graus1-Feb-07 20:28
protectorChristian Graus1-Feb-07 20:28 
AnswerRe: User Control Pin
aSarafian1-Feb-07 2:15
aSarafian1-Feb-07 2:15 
GeneralRe: User Control Pin
Biswajit Ghosh1-Feb-07 19:48
Biswajit Ghosh1-Feb-07 19:48 
GeneralRe: User Control Pin
aSarafian1-Feb-07 21:16
aSarafian1-Feb-07 21:16 
AnswerRe: User Control Pin
Luc Pattyn1-Feb-07 7:16
sitebuilderLuc Pattyn1-Feb-07 7:16 
I have 4 different cases for you:

If you need the same TextBox in each of your tab pages, you may consider adding one TextBox
to the TabControl (i.e. outside the tab pages) rather than to each individual page.

If you need the same TextBox on some of your tab pages, you may still put it on the tab control
(outside the tab pages) and you could alter its Visible state according to which tab page
is currently active.

If you need the same TextBox on some of your tab pages, and the instances have identical
properties (such as font, backcolor, location, size, etc), then I would use Visual Studio
Designer to add such TextBox to one of the pages, then programmatically add the same instance
of TextBox to the other relevant tab pages. Something like
tabpage.Controls.Add(myExistingTextBoxFromTabPage1);
Then there is no doubt whatever relevant tab page you select you would see the same TextBox
content, since there is actually only one instance.
This will save you a lot of code that would otherwise be needed to keep multiple TextBoxes
in sync.

If your TextBoxes have different attributes on different tab pages, more code will be
unavoidable.

Smile | :)




Luc Pattyn

GeneralRe: User Control Pin
Biswajit Ghosh1-Feb-07 19:47
Biswajit Ghosh1-Feb-07 19:47 
GeneralRe: User Control Pin
Luc Pattyn1-Feb-07 23:41
sitebuilderLuc Pattyn1-Feb-07 23:41 
QuestionHow to use WM_COPYDATA to send a struct to another process? Pin
huheng_0_031-Jan-07 20:14
huheng_0_031-Jan-07 20:14 
AnswerRe: How to use WM_COPYDATA to send a struct to another process? Pin
Luc Pattyn1-Feb-07 7:38
sitebuilderLuc Pattyn1-Feb-07 7:38 
GeneralRe: How to use WM_COPYDATA to send a struct to another process? Pin
huheng_0_01-Feb-07 17:56
huheng_0_01-Feb-07 17:56 
GeneralRe: How to use WM_COPYDATA to send a struct to another process? Pin
Luc Pattyn2-Feb-07 9:41
sitebuilderLuc Pattyn2-Feb-07 9:41 
QuestionHELP: how to select specific node in XML using c# Pin
drifters31-Jan-07 20:13
drifters31-Jan-07 20:13 
AnswerRe: HELP: how to select specific node in XML using c# Pin
Christian Graus31-Jan-07 20:27
protectorChristian Graus31-Jan-07 20:27 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters31-Jan-07 20:32
drifters31-Jan-07 20:32 
GeneralRe: HELP: how to select specific node in XML using c# [modified] Pin
bobsugar22231-Jan-07 22:19
bobsugar22231-Jan-07 22:19 
GeneralRe: HELP: how to select specific node in XML using c# [modified] Pin
drifters31-Jan-07 22:32
drifters31-Jan-07 22:32 
GeneralRe: HELP: how to select specific node in XML using c# Pin
Stefan Troschuetz31-Jan-07 22:33
Stefan Troschuetz31-Jan-07 22:33 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters1-Feb-07 14:51
drifters1-Feb-07 14:51 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters1-Feb-07 16:20
drifters1-Feb-07 16:20 
GeneralRe: HELP: how to select specific node in XML using c# Pin
Stefan Troschuetz1-Feb-07 20:56
Stefan Troschuetz1-Feb-07 20:56 
QuestionCall Java Code Pin
Expert Coming31-Jan-07 20:03
Expert Coming31-Jan-07 20:03 
AnswerRe: Call Java Code Pin
blackjack215031-Jan-07 20:15
blackjack215031-Jan-07 20:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.