Hugh,
AFAIK, you won't be able to change the control in the property grid to
be an IPControl. The best you could do is have an IPControl in a drop down
that the grid exposes for you, or a dialog that the grid pops up for you.
You might be able to create a custom class which exposes the four octets
of the IP address and then expose that on the object that you are placing
the IP addresses in. Then, you would be able to expand the object and edit
the individual octets in the grid.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Hugh" <Hu**@discussions.microsoft.comwrote in message
news:0B**********************************@microsof t.com...
Hi there
I have a Propertygrid in a C# project that has a number of IP addresses
displayed.
What I would like to do is to a) Edit them in-place as the 4 octets, ie
edit them as xxx.xxx.xxx.xxx possibly using the IPControl, and b) validate
them on losing focus in the editing area.
I've done a lot of googling, and frankly, I am now confused!
Can anyone please point me as to how to do what I want. I'm not an expert
in
C#, but have done some work using it
Thanks in advance!
Hugh