Click here to Skip to main content
15,891,757 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Event handling on remoting classes Pin
S. Senthil Kumar10-Jun-05 22:00
S. Senthil Kumar10-Jun-05 22:00 
GeneralRe: Event handling on remoting classes Pin
Anonymous11-Jun-05 14:07
Anonymous11-Jun-05 14:07 
GeneralRe: Event handling on remoting classes Pin
Anonymous11-Jun-05 14:26
Anonymous11-Jun-05 14:26 
GeneralWrapper class for SqlConnection Pin
Hamlet_h10-Jun-05 4:00
Hamlet_h10-Jun-05 4:00 
GeneralRe: Wrapper class for SqlConnection Pin
Dave Kreskowiak10-Jun-05 4:17
mveDave Kreskowiak10-Jun-05 4:17 
GeneralRe: Wrapper class for SqlConnection Pin
Not Active10-Jun-05 9:31
mentorNot Active10-Jun-05 9:31 
GeneralCheck permissions Pin
cyonite10-Jun-05 2:55
cyonite10-Jun-05 2:55 
GeneralCustom Editor for TreeView Nodes!!!☺ Pin
sharaabi10-Jun-05 2:11
sharaabi10-Jun-05 2:11 
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'



Generalshell extension (windows explorer ) Pin
Anonymous8-Jun-05 23:56
Anonymous8-Jun-05 23:56 
GeneralProject settings - output Pin
john john mackey8-Jun-05 14:46
john john mackey8-Jun-05 14:46 
GeneralVS .NET Installer crashing from CustomActionData Pin
lukemc8-Jun-05 8:43
lukemc8-Jun-05 8:43 
GeneralHiding a class in managed assembly Pin
Member 16649158-Jun-05 5:58
Member 16649158-Jun-05 5:58 
GeneralRe: Hiding a class in managed assembly Pin
Ian Darling8-Jun-05 6:15
Ian Darling8-Jun-05 6:15 
GeneralRe: Hiding a class in managed assembly Pin
Member 16649159-Jun-05 3:19
Member 16649159-Jun-05 3:19 
GeneralCustom Dialogs for VS Installer Pin
lukemc7-Jun-05 16:23
lukemc7-Jun-05 16:23 
GeneralRe: Custom Dialogs for VS Installer Pin
rwestgraham8-Jun-05 1:51
rwestgraham8-Jun-05 1:51 
GeneralInstaller problem when deploying application Pin
LiamD7-Jun-05 1:32
LiamD7-Jun-05 1:32 
GeneralRe: Installer problem when deploying application Pin
MoustafaS7-Jun-05 16:28
MoustafaS7-Jun-05 16:28 
GeneralRe: Installer problem when deploying application Pin
LiamD9-Jun-05 0:17
LiamD9-Jun-05 0:17 
GeneralRe: Installer problem when deploying application Pin
rwestgraham8-Jun-05 2:23
rwestgraham8-Jun-05 2:23 
GeneralRe: Installer problem when deploying application Pin
LiamD9-Jun-05 0:29
LiamD9-Jun-05 0:29 
GeneralRe: Installer problem when deploying application Pin
MoustafaS9-Jun-05 0:40
MoustafaS9-Jun-05 0:40 
GeneralRe: Installer problem when deploying application Pin
rwestgraham9-Jun-05 12:09
rwestgraham9-Jun-05 12:09 
GeneralImage Button Pin
Serenena6-Jun-05 15:27
Serenena6-Jun-05 15:27 
GeneralPrinting address labels in .net Pin
Dave French6-Jun-05 10:34
Dave French6-Jun-05 10: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.