T
tiger79
Hi uber-programmers
I have made a TreeView (yes again ) and I made a struct(ure) so that I
could define my own object to place in the Nodes.Tag propery.
But now I'd like to query the node to see which kind of structure it has as
a Tag, something like this :
if (treeView1.SelectedNode.Tag == EntityTag() )
{
blah blah blah
}
else if (treeView1.SelectedNode.Tag == AttributeTag() )
{
blah blah again
)
So you can see I will be using a couple of structs.
If I use this code it will (obviously) give me an error :
'FinalDemo1.EntityTag' denotes a 'class' where a 'variable' was expected
ok, I see it doesnt want a clas (or struct I guess) so is there a way to
check (in a fast and easy way) which kind of struct is in the Tag ???
I have made a TreeView (yes again ) and I made a struct(ure) so that I
could define my own object to place in the Nodes.Tag propery.
But now I'd like to query the node to see which kind of structure it has as
a Tag, something like this :
if (treeView1.SelectedNode.Tag == EntityTag() )
{
blah blah blah
}
else if (treeView1.SelectedNode.Tag == AttributeTag() )
{
blah blah again
)
So you can see I will be using a couple of structs.
If I use this code it will (obviously) give me an error :
'FinalDemo1.EntityTag' denotes a 'class' where a 'variable' was expected
ok, I see it doesnt want a clas (or struct I guess) so is there a way to
check (in a fast and easy way) which kind of struct is in the Tag ???