Click here to Skip to main content
14,875,778 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to reset TextBoxes at once? Pin
Alex Dunlop25-Feb-21 19:10
MemberAlex Dunlop25-Feb-21 19:10 
GeneralRe: How to reset TextBoxes at once? Pin
Dave Kreskowiak25-Feb-21 19:44
mveDave Kreskowiak25-Feb-21 19:44 
GeneralRe: How to reset TextBoxes at once? Pin
OriginalGriff25-Feb-21 19:59
mveOriginalGriff25-Feb-21 19:59 
GeneralRe: How to reset TextBoxes at once? Pin
Eddy Vluggen26-Feb-21 6:39
professionalEddy Vluggen26-Feb-21 6:39 
GeneralRe: How to reset TextBoxes at once? Pin
BillWoodruff25-Feb-21 21:43
mveBillWoodruff25-Feb-21 21:43 
AnswerRe: How to reset TextBoxes at once? Pin
Ralf Meier26-Feb-21 3:05
professionalRalf Meier26-Feb-21 3:05 
AnswerRe: How to reset TextBoxes at once? Pin
BillWoodruff25-Feb-21 21:36
mveBillWoodruff25-Feb-21 21:36 
GeneralRe: How to reset TextBoxes at once? Pin
jsc423-Mar-21 0:35
professionaljsc423-Mar-21 0:35 
Wow! Thanks for that, Bill. Good timing.

Yesterday evening I had written
bool found = false;
foreach (object obj in URIsMenu.Items)
    if (obj is ToolStripMenuItem)
    {
        ToolStripMenuItem item = (ToolStripMenuItem)obj;

        item.Checked = item.Text == SelectedItem;
        if (item.Checked)
            found = true;
    }

Your useful reply has shortened that to
bool found = false;
foreach (ToolStripMenuItem item in URIsMenu.Items.OfType<ToolStripItem>())
{
    item.Checked = item.Text == SelectedItem;
    found |= item.Checked;
}

Questionwhy can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
BillWoodruff25-Feb-21 3:11
mveBillWoodruff25-Feb-21 3:11 
AnswerRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
OriginalGriff25-Feb-21 5:32
mveOriginalGriff25-Feb-21 5:32 
GeneralRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
BillWoodruff25-Feb-21 18:26
mveBillWoodruff25-Feb-21 18:26 
GeneralRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
OriginalGriff25-Feb-21 20:04
mveOriginalGriff25-Feb-21 20:04 
GeneralRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
Richard Deeming25-Feb-21 21:59
mveRichard Deeming25-Feb-21 21:59 
GeneralRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
BillWoodruff26-Feb-21 18:35
mveBillWoodruff26-Feb-21 18:35 
GeneralRe: why can we "get away with" creating static Classes outside our Namespace(s) scope (C# language issue) Pin
#realJSOP27-Feb-21 14:05
mva#realJSOP27-Feb-21 14:05 
QuestionI am getting the following error : Method not found: 'Void **************************************************************' Pin
JagadheeshAP25-Feb-21 1:22
MemberJagadheeshAP25-Feb-21 1:22 
AnswerRe: I am getting the following error : Method not found: 'Void **************************************************************' Pin
Victor Nijegorodov25-Feb-21 1:31
MemberVictor Nijegorodov25-Feb-21 1:31 
AnswerRe: I am getting the following error : Method not found: 'Void **************************************************************' Pin
OriginalGriff25-Feb-21 1:43
mveOriginalGriff25-Feb-21 1:43 
AnswerRe: I am getting the following error : Method not found: 'Void **************************************************************' Pin
20212a25-Feb-21 2:46
Member20212a25-Feb-21 2:46 
AnswerRe: I am getting the following error : Method not found: 'Void **************************************************************' Pin
Member 1508430525-Feb-21 15:39
MemberMember 1508430525-Feb-21 15:39 
GeneralRe: I am getting the following error : Method not found: 'Void **************************************************************' Pin
Member 1508430525-Feb-21 15:40
MemberMember 1508430525-Feb-21 15:40 
QuestionExtract RSAParameters from custom Private Key Pin
Member 1508150323-Feb-21 21:09
MemberMember 1508150323-Feb-21 21:09 
AnswerRe: Extract RSAParameters from custom Private Key Pin
Gerry Schmitz24-Feb-21 8:50
mveGerry Schmitz24-Feb-21 8:50 
GeneralRe: Extract RSAParameters from custom Private Key Pin
Member 1508150324-Feb-21 18:33
MemberMember 1508150324-Feb-21 18:33 
AnswerRe: Extract RSAParameters from custom Private Key Pin
Member 1508430525-Feb-21 15:42
MemberMember 1508430525-Feb-21 15: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.