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 4 4039
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.co m
"Hugh" <Hu**@discussio ns.microsoft.co mwrote in message
news:0B******** *************** ***********@mic rosoft.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
Thanks Nicholas, not the answer I was hoping for, but certainly the answer I
was expecting.
Wouldn't it be nice if the PropertyGrid had the ability to hook different
controls in :-)
"Nicholas Paldino [.NET/C# MVP]" wrote:
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.co m
"Hugh" <Hu**@discussio ns.microsoft.co mwrote in message
news:0B******** *************** ***********@mic rosoft.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
Depending on your budget, there are 3rd-party tools that might help,
such as VisualHint. I evaluated this one a while ago and was quite
impressed, but the project scope changed and it became unnecessary. http://www.visualhint.com/index.php/propertygrid/
Marc
Hello Hugh,
First of all, Marc, thanks a lot for the kind words. I must add that
in the next release of Smart FieldPackEditor , there is a new ip
address inplace editor for Smart PropertyGrid.
Hugh, if a commercial product is an option for you I recommend you to
try the demos of both products. You may find that this is exactly what
you need.
Best regards,
Nicolas Cadilhac @ VisualHint ( http://www.visualhint.com)
Home of Smart FieldPackEditor .Net / DateTimePicker replacement (http:// www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC ( http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
On Dec 7, 5:00 am, Marc Gravell <marc.grav...@g mail.comwrote:
Depending on your budget, there are 3rd-party tools that might help,
such as VisualHint. I evaluated this one a while ago and was quite
impressed, but the project scope changed and it became unnecessary.
http://www.visualhint.com/index.php/propertygrid/
Marc
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Dunaway |
last post by:
When using a PropertyGrid, I have an object with a Date property, but I am
only interested in the Time portion. How do I make the PropertyGrid allow
editing the time only? Just the hours and minutes, preferably?
Thanks
--
Chris
dunawaycsbcglobal_lunchmeat_net
|
by: Chris Dunaway |
last post by:
I am using the PropertyGrid and I have set the SelectedObject property to
an instance of my custom class. One of the properties of the custom class
is a bitmap.
The PropertyGrid lets me assign a bitmap ok, but when I want to delete it,
I cannot do it.
For example, in Visual Studio when you set the background image for a form,
you can highlight it and press delete to clear the property. But for my
own class and the PropertyGrid, it...
|
by: margoulin |
last post by:
hello,
i'm currently using a PropertyGrid to monitor the properties of some
numerical objects, mainly composed of ints and floats that must stay in a
specific range. The logical choice for editing that is a TrackBar in a
DropDown control.
I managed to write the code for that and it works. However, I would like the
numerical value displayed in the propertygrid to be updated as I slide the
track bar (for now the value changes when the...
|
by: newbie |
last post by:
Hello,
I maybe asking too much in a single posting, but here it goes:
I building a windows form that mimic's the Outlook XP GUI. Its a three
pane form that will allow a user to view and edit records in a
database. A Treeview in the left pane, a Listview in the TopRight
Pane, and a PropertyGrid in the BottomRight; The Treeview will allow
the user to select an
"Entity" to view, the listview will display a list of instances of
|
by: Alexander Wehrli |
last post by:
Hi,
Two questions about PropertyGrid:
1. How can I achieve that one value in a PropertyGrid is treated as a
Password (like TextBox.PasswordChar behaviour) ?
2. If you edit a TabControl in VS.Net there is a section in the Properties
Window in which you have two links to add and remove a TabPage (above the
description). How can this be done?
| |
by: ANDRES BECERRA |
last post by:
Herfried K. Wagner was kind enough to point me to the PropertyGrid control
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp
I have found a few samples of how to use the PropertyGrid control and have gained a decent understanding of it. But of course, as it usually the case, my needs go far beyond the simple examples shown in online samples. All the online samples show how to take a class...
|
by: ljlevend |
last post by:
Is there any way to prevent a PropertyGrid from allowing the user to expand
the elements of an array? For properties that are of type ArrayList or
CollectionBase a PropertyGrid only allows the items to be edited in the
Collection Editor (by clicking the button with the ellipses). But, for
properties of type Array a PropertyGrid also allows array elements to be
edited directly by expanding the array within the PropertyGrid. The problem...
|
by: taskswap |
last post by:
I've successfully set up a PropertyGrid using custom editors and type
converters. They work very well. However, I have a spot where I want to
generate the TypeConverter converter entries on the fly (from a
database). So far, I can't seem to find a way to do this. The
PropertyGrid wants to reference a TYPE, not an array of strings. You
can make a custom type that inherits StringConverter and overloads
GetStandardValues, and that's fine. But...
|
by: Ron M. Newman |
last post by:
Hi,
Simple imaginary problem:
1) I have a class with three integers in it.
2) An object of this class is a member of a class I will submit to a
propertygrid
3) I want to have a custom dialog box to edit this structure
4) I want this dialog box to be launched from the "..." custom editor button
of a property grid.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |