Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: time task scheduler class Pin
Member 136321711-Feb-18 2:45
Member 136321711-Feb-18 2:45 
AnswerRe: time task scheduler class Pin
#realJSOP1-Feb-18 4:52
professional#realJSOP1-Feb-18 4:52 
GeneralRe: time task scheduler class Pin
Member 136321711-Feb-18 4:54
Member 136321711-Feb-18 4:54 
AnswerRe: time task scheduler class Pin
#realJSOP2-Feb-18 0:54
professional#realJSOP2-Feb-18 0:54 
AnswerRe: time task scheduler class Pin
Pete O'Hanlon31-Jan-18 2:54
mvePete O'Hanlon31-Jan-18 2:54 
GeneralRe: time task scheduler class Pin
Member 1363217131-Jan-18 2:58
Member 1363217131-Jan-18 2:58 
Questionusing image button Pin
Member 1365319330-Jan-18 20:22
Member 1365319330-Jan-18 20:22 
AnswerRe: using image button Pin
OriginalGriff30-Jan-18 21:04
mveOriginalGriff30-Jan-18 21:04 
QuestionC# read the footer in a Microsoft Word document Pin
Member 1101829930-Jan-18 15:00
Member 1101829930-Jan-18 15:00 
AnswerRe: C# read the footer in a Microsoft Word document Pin
Richard MacCutchan30-Jan-18 21:39
mveRichard MacCutchan30-Jan-18 21:39 
QuestionPartial static class Pin
#realJSOP30-Jan-18 3:26
professional#realJSOP30-Jan-18 3:26 
AnswerRe: Partial static class Pin
Richard Deeming30-Jan-18 3:44
mveRichard Deeming30-Jan-18 3:44 
GeneralRe: Partial static class Pin
#realJSOP30-Jan-18 3:49
professional#realJSOP30-Jan-18 3:49 
QuestionWhat is the best way to practice unit testing in C#? Pin
Hila Berger30-Jan-18 0:33
Hila Berger30-Jan-18 0:33 
AnswerRe: What is the best way to practice unit testing in C#? Pin
Eddy Vluggen30-Jan-18 0:48
professionalEddy Vluggen30-Jan-18 0:48 
GeneralRe: What is the best way to practice unit testing in C#? Pin
Hila Berger31-Jan-18 23:14
Hila Berger31-Jan-18 23:14 
GeneralRe: What is the best way to practice unit testing in C#? Pin
Eddy Vluggen31-Jan-18 23:23
professionalEddy Vluggen31-Jan-18 23:23 
GeneralRe: What is the best way to practice unit testing in C#? Pin
Hila Berger31-Jan-18 23:48
Hila Berger31-Jan-18 23:48 
GeneralRe: What is the best way to practice unit testing in C#? Pin
Eddy Vluggen31-Jan-18 23:54
professionalEddy Vluggen31-Jan-18 23:54 
SuggestionRe: What is the best way to practice unit testing in C#? Pin
GregoryPres5-Feb-18 2:16
GregoryPres5-Feb-18 2:16 
QuestionPrevent adding of nodes to a TreeNode? Pin
primem0ver29-Jan-18 23:46
primem0ver29-Jan-18 23:46 
I have been researching a solution to this and have not found an answer so I thought I would ask it here.

I have an application that derives from System.Windows.Forms.TreeNode for a few of the classes. I want to create a "lockable" tree node for the base nodes of my tree which ensures that programmers don't accidentally (or purposefully) modify the nodes once they are "locked" because the base nodes are "immutable" while the rest of the tree is not. However, since I cannot derive from TreeNodeCollection and there is no c# equivalent of the C++ const method contract (that I have been able to find for properties), I am having trouble coming up with a way to prevent the following from happening:
C#
someInstanceOfMyLockableTreeNodeClass.Nodes.Add("newNode")

The only thing I can think of is possibly hiding the original Nodes Property (using the new keyword) with a less accessible one (if that would even work). The problem is that I would no longer be able to access the node indexer either... so I would have to create a less intuitive wrapper for that as well. Is there a different approach that I could use?
AnswerRe: Prevent adding of nodes to a TreeNode? Pin
Eddy Vluggen30-Jan-18 0:15
professionalEddy Vluggen30-Jan-18 0:15 
AnswerRe: Prevent adding of nodes to a TreeNode? Pin
BillWoodruff3-Feb-18 7:03
professionalBillWoodruff3-Feb-18 7:03 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
primem0ver3-Feb-18 22:52
primem0ver3-Feb-18 22:52 
GeneralRe: Prevent adding of nodes to a TreeNode? Pin
BillWoodruff5-Feb-18 18:34
professionalBillWoodruff5-Feb-18 18:34 

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.