I'm trying to do a control library. In my control library i have a class like that :
|
In my class i have 2 pcs of double variable.
These codes show MyCamera in PropertyPage in C# (desing time)
|
When i build solution i can see MyCamera in propery page but i can't see Distance and Far variables. I want to see as a treeview in property page. There should be + sign and when i press + sign , variables will shown.
How can i do this? Can someone help me.
Thanks in advance
FatihPosted Nov 20, 2009, 10:33 AM
Code is like that
I really want to thanx in advance one more time for your effort
Roei BarPosted Nov 20, 2009, 6:37 AM
FatihPosted Nov 20, 2009, 3:14 AM
I tested it but my problem is still available.
I put my Control Library on my Form. When i in "View Designer" mode, i can change some properties of my control in design time. But MyCamera properties look like a disabled and there is no my variables (Distance and Far). I can access by using code to MyCamera.
You can see in ss of my program.
Thanks in advance
Roei BarPosted Nov 20, 2009, 2:50 AM
First the Code is Incurrect here is te fixed one:
in order to access Camera properties just do the following :