Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
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 
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 
Since you want the TextBox visible on each of the tab pages, I would go for one of these
two possibilities:

1)
-with Designer (or programmatically) add the TextBox on the first tab page (say it is named
"textName1"), and leave the same place free on all other tab pages
- programmatically add the SAME TextBox to the other tab pages. Something like:
bool firstPage=true;
foreach (TabPage page in myTabControl) {
    if (!firstPage) page.Controls.Add(textName1);
    firstPage=false;
}

Of course you could also use the tab page names explicitly:
tabPage2.Control.Add(textName1);
tabPage3.Control.Add(textName1);
tabPage4.Control.Add(textName1);



or
2)
do not add the TextBox to one or more tab pages, but add it to the form that is holding
the tab control (not "to the tab control" as I had put in my previous post, that was
slightly wrong, really to the form holding the tab control).


In both cases, there is only one TextBox control, it is named textName1, so you have
to set its text only once, have to save its text only once, etc.

Smile | :)




Luc Pattyn

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 
Questioncombobox selectedindexchanged event Pin
KrunalC31-Jan-07 19:46
KrunalC31-Jan-07 19:46 
QuestionInterprocess communication using impersonation Pin
ParimalaRadjaram31-Jan-07 19:42
ParimalaRadjaram31-Jan-07 19:42 

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.