Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to refer by name Pin
Jassim Rahma27-Oct-10 5:04
Jassim Rahma27-Oct-10 5:04 
GeneralRe: how to refer by name Pin
Ennis Ray Lynch, Jr.27-Oct-10 5:24
Ennis Ray Lynch, Jr.27-Oct-10 5:24 
AnswerRe: how to refer by name Pin
Luc Pattyn27-Oct-10 5:02
sitebuilderLuc Pattyn27-Oct-10 5:02 
AnswerRe: how to refer by name Pin
_Erik_27-Oct-10 5:28
_Erik_27-Oct-10 5:28 
QuestionChange the properties of the controls Pin
thomforum27-Oct-10 4:04
thomforum27-Oct-10 4:04 
AnswerRe: Change the properties of the controls Pin
kadaoui el mehdi27-Oct-10 4:11
kadaoui el mehdi27-Oct-10 4:11 
AnswerRe: Change the properties of the controls Pin
kadaoui el mehdi27-Oct-10 4:16
kadaoui el mehdi27-Oct-10 4:16 
AnswerRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 4:19
mveOriginalGriff27-Oct-10 4:19 
Try:
foreach (Control c in Controls)
    {
    TextBox t = c as TextBox;
    if (t != null)
        {
        t.Hide();
        }
    }
If you want to select the text box(es) to hide in the ComboBox, then assign a numeric value to each TextBox.Tag property. You can then compare this to the numeric value in your combo box before deciding if you should hide or not.
Don't forget to reveal ones you have hidden already... Laugh | :laugh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

AnswerRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 4:34
sitebuilderLuc Pattyn27-Oct-10 4:34 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 4:53
mveOriginalGriff27-Oct-10 4:53 
GeneralRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 4:58
sitebuilderLuc Pattyn27-Oct-10 4:58 
GeneralMessage Removed Pin
27-Oct-10 7:38
flflshop27-Oct-10 7:38 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 8:37
mveOriginalGriff27-Oct-10 8:37 
GeneralRe: Change the properties of the controls Pin
thomforum27-Oct-10 7:51
thomforum27-Oct-10 7:51 
GeneralRe: Change the properties of the controls Pin
OriginalGriff27-Oct-10 8:14
mveOriginalGriff27-Oct-10 8:14 
GeneralRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 9:14
sitebuilderLuc Pattyn27-Oct-10 9:14 
GeneralRe: Change the properties of the controls Pin
thomforum27-Oct-10 14:50
thomforum27-Oct-10 14:50 
GeneralRe: Change the properties of the controls Pin
Luc Pattyn27-Oct-10 15:14
sitebuilderLuc Pattyn27-Oct-10 15:14 
GeneralRe: Change the properties of the controls Pin
thomforum27-Oct-10 18:59
thomforum27-Oct-10 18:59 
QuestionCDOEXM.dll problem when using from Visual Studio 2005/.NET Framework 2.0 Pin
SomsubhroChat27-Oct-10 3:57
SomsubhroChat27-Oct-10 3:57 
AnswerRe: CDOEXM.dll problem when using from Visual Studio 2005/.NET Framework 2.0 Pin
_Erik_27-Oct-10 4:26
_Erik_27-Oct-10 4:26 
GeneralRe: CDOEXM.dll problem when using from Visual Studio 2005/.NET Framework 2.0 Pin
SomsubhroChat27-Oct-10 7:01
SomsubhroChat27-Oct-10 7:01 
GeneralRe: CDOEXM.dll problem when using from Visual Studio 2005/.NET Framework 2.0 Pin
_Erik_28-Oct-10 5:05
_Erik_28-Oct-10 5:05 
QuestionCalling DISKPart commands Pin
avi_dadi200227-Oct-10 1:47
avi_dadi200227-Oct-10 1:47 
AnswerRe: Calling DISKPart commands Pin
_Erik_27-Oct-10 1:58
_Erik_27-Oct-10 1:58 

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.