Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralIndexed textboxes Pin
patgo10-Jun-05 2:27
patgo10-Jun-05 2:27 
GeneralRe: Indexed textboxes Pin
S. Senthil Kumar10-Jun-05 2:47
S. Senthil Kumar10-Jun-05 2:47 
GeneralThank you very much!!! Pin
patgo10-Jun-05 3:36
patgo10-Jun-05 3:36 
GeneralRe: Indexed textboxes Pin
Colin Angus Mackay10-Jun-05 2:58
Colin Angus Mackay10-Jun-05 2:58 
GeneralThank you very much!!! Pin
patgo10-Jun-05 3:36
patgo10-Jun-05 3:36 
GeneralRe: Indexed textboxes Pin
Member 118129410-Jun-05 4:17
Member 118129410-Jun-05 4:17 
GeneralRe: Indexed textboxes Pin
nemopeti10-Jun-05 12:24
nemopeti10-Jun-05 12:24 
GeneralCustom Editor for TreeView Nodes!!!☺ Pin
sharaabi10-Jun-05 2:08
sharaabi10-Jun-05 2:08 
Hello you!
I need Your HELP.
I have my own TreeView Nodes Editor, in order to add 'MyTreeNode'', like node which are ComboBox and so.

I have two classes. one inherit from 'TreeView' and the other from 'TreeNode'.

In 'MyTreeView' i override 'Nodes' (keyword- new) in order to open my custom editor.

In public partial class MyTreeView : TreeView, I use the next statement:

[

DesignerSerializationVisibility(DesignerSerializationVisibility.Content),

Editor(typeof(NodesTypeEditor), typeof(UITypeEditor)),

]

new public TreeNodeCollection Nodes

{

get { return base.Nodes; }

set

{

TreeNode[] myTreeNodeArray = new TreeNode[((TreeNodeCollection)value).Count];

((TreeNodeCollection)value).CopyTo(myTreeNodeArray, 0);

((TreeNodeCollection)value).Clear();

this.Nodes.AddRange(myTreeNodeArray);

}

}

but the DesignerSerializationVisibility create the next code, which produce casting error on run time:

MyCheckTreeNode myCheckTreeNode1 = ((MyCheckTreeNode)(new TreeNode("TreeNode")));

I need it to be :

MyCheckTreeNode myCheckTreeNode1 = new MyCheckTreeNode("TreeNode");

In the editor i use TreeView and PropertyGrid. the code in 'Add CheckBox Node' is:

treeView1.Nodes.Add(new MyCheckTreeNode("TreeNode"));

How can i fix it???

Please Help me. I need it fast.

Thanks,

Ran S'



QuestionHow to close a form in its Load event handler Pin
Waleed Eissa10-Jun-05 1:14
Waleed Eissa10-Jun-05 1:14 
AnswerRe: How to close a form in its Load event handler Pin
nemopeti10-Jun-05 1:51
nemopeti10-Jun-05 1:51 
AnswerRe: How to close a form in its Load event handler Pin
MoustafaS10-Jun-05 1:53
MoustafaS10-Jun-05 1:53 
AnswerRe: How to close a form in its Load event handler Pin
MoustafaS10-Jun-05 1:56
MoustafaS10-Jun-05 1:56 
AnswerRe: How to close a form in its Load event handler Pin
DavidNohejl10-Jun-05 2:11
DavidNohejl10-Jun-05 2:11 
AnswerRe: How to close a form in its Load event handler Pin
Dave Kreskowiak10-Jun-05 4:01
mveDave Kreskowiak10-Jun-05 4:01 
AnswerRe: How to close a form in its Load event handler Pin
Waleed Eissa10-Jun-05 5:43
Waleed Eissa10-Jun-05 5:43 
AnswerRe: How to close a form in its Load event handler Pin
Waleed Eissa10-Jun-05 5:52
Waleed Eissa10-Jun-05 5:52 
GeneralRe: How to close a form in its Load event handler Pin
methodincharge10-Jun-05 9:10
methodincharge10-Jun-05 9:10 
GeneralRe: How to close a form in its Load event handler Pin
Robert Rohde10-Jun-05 9:12
Robert Rohde10-Jun-05 9:12 
GeneralInformation about png files Pin
Anonymous10-Jun-05 0:57
Anonymous10-Jun-05 0:57 
GeneralRe: Information about png files Pin
DavidNohejl10-Jun-05 1:27
DavidNohejl10-Jun-05 1:27 
GeneralWord.dll Pin
Gktony9-Jun-05 23:59
Gktony9-Jun-05 23:59 
GeneralRe: Word.dll Pin
Vasudevan Deepak Kumar10-Jun-05 0:09
Vasudevan Deepak Kumar10-Jun-05 0:09 
GeneralRe: Word.dll Pin
Gktony13-Jun-05 1:24
Gktony13-Jun-05 1:24 
Generalaccessing label in .aspx from .cs Pin
livez9-Jun-05 22:11
livez9-Jun-05 22:11 
GeneralRe: accessing label in .aspx from .cs Pin
MoustafaS9-Jun-05 23:18
MoustafaS9-Jun-05 23:18 

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.