473,734 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add Textbox's PasswordChar property in PropertyGrid Control

Hi Friends

I want to add PasswordChar Property which shows ****** for string which I
type in PropertyGrid Control.

Regards,
Siddharth
Nov 20 '05 #1
7 9729
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you mean you
want to use the dataGrid and want the PasswordChar properties to apply to
that ?

Please explain in more clarity.

Regards - OHM
siddhiash wrote:
Hi Friends

I want to add PasswordChar Property which shows ****** for string
which I type in PropertyGrid Control.

Regards,
Siddharth

Nov 20 '05 #2
Hi

There is PropertyGrid Control in VB.NET like normal property window (it is
same one). In an my application i use propertygrid control to accept
databasename, servername, password. Password property I want as **** while
typing so that it is not visible.

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@sparta.btint ernet.com...
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you mean you want to use the dataGrid and want the PasswordChar properties to apply to
that ?

Please explain in more clarity.

Regards - OHM
siddhiash wrote:
Hi Friends

I want to add PasswordChar Property which shows ****** for string
which I type in PropertyGrid Control.

Regards,
Siddharth


Nov 20 '05 #3
Sorry, now I understand what you are trying to do. The selectObject property
is needed to be set to the object that you want to be able to set properties
for. With the textBox, there is a passwordChr as you suggest. This would
then appear in the propertyGrid.

Are you asking how to set up a similar property on a different type of
object ?

OHM
siddhiash wrote:
Hi

There is PropertyGrid Control in VB.NET like normal property window
(it is same one). In an my application i use propertygrid control to
accept databasename, servername, password. Password property I want
as **** while typing so that it is not visible.

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@sparta.btint ernet.com...
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you
mean you want to use the dataGrid and want the PasswordChar
properties to apply to that ?

Please explain in more clarity.

Regards - OHM
siddhiash wrote:
Hi Friends

I want to add PasswordChar Property which shows ****** for string
which I type in PropertyGrid Control.

Regards,
Siddharth

Nov 20 '05 #4
What you understood is right.
I want to set password field in one object same like what works in TextBox
when we set it PasswordChar = *

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@hercules.bti nternet.com...
Sorry, now I understand what you are trying to do. The selectObject property is needed to be set to the object that you want to be able to set properties for. With the textBox, there is a passwordChr as you suggest. This would
then appear in the propertyGrid.

Are you asking how to set up a similar property on a different type of
object ?

OHM
siddhiash wrote:
Hi

There is PropertyGrid Control in VB.NET like normal property window
(it is same one). In an my application i use propertygrid control to
accept databasename, servername, password. Password property I want
as **** while typing so that it is not visible.

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@sparta.btint ernet.com...
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you
mean you want to use the dataGrid and want the PasswordChar
properties to apply to that ?

Please explain in more clarity.

Regards - OHM
siddhiash wrote:
Hi Friends

I want to add PasswordChar Property which shows ****** for string
which I type in PropertyGrid Control.

Regards,
Siddharth


Nov 20 '05 #5
OK. Now let me further understand. We have an class like so. . . . . .

Public Class MyObject

Dim p As String

Public Property pwd() As String
Get
Return p
End Get
Set(ByVal Value As String)
p = Value

End Set
End Property

End Class
'//Now we instantiate an instance of MyObject
Dim oMyObject = New MyObject

'//Now set the PropertyGrid to look at oMyObject . . .
PropertyGrid1.T ext = "Property Grid"
PropertyGrid1.S electedObject = oMyObject

Now we will see Pwd appear in the property grid and we can set it by typing
in the characters right.

OK, what you want to do is to replace the characters that you type into the
PropertyGrid itself with a character like '*'

Do I read you correctly ?, if so the only way I can think to do this is to
trap the keydown event of the PropertyGrid and do some clever work here.
When you set this property for a textBox, the textbox class replaces the
visible characters for an '*' or whatever you set it to. If you wanted to
do this for another control like a PropertyGrid ( which does not support
this method [ to my knowledge ] ) you would have to write a wrapper, and
handle it this way.

If someon else is reading this and knows of another way, please butt in and
help.
Regards - OHM



siddhiash wrote:
What you understood is right.
I want to set password field in one object same like what works in
TextBox when we set it PasswordChar = *

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@hercules.bti nternet.com...
Sorry, now I understand what you are trying to do. The selectObject
property is needed to be set to the object that you want to be able
to set properties for. With the textBox, there is a passwordChr as
you suggest. This would then appear in the propertyGrid.

Are you asking how to set up a similar property on a different type
of object ?

OHM
siddhiash wrote:
Hi

There is PropertyGrid Control in VB.NET like normal property window
(it is same one). In an my application i use propertygrid control to
accept databasename, servername, password. Password property I want
as **** while typing so that it is not visible.

Regards,
Siddharth
"One Handed Man" <Bo****@Duck.ne t> wrote in message
news:bq******** **@sparta.btint ernet.com...
What do you mean by PropertyGrid Control, I have not see this, (
i'm probably missing it while its staring me in the face ! ). Or
do you mean you want to use the dataGrid and want the PasswordChar
properties to apply to that ?

Please explain in more clarity.

Regards - OHM
siddhiash wrote:
> Hi Friends
>
> I want to add PasswordChar Property which shows ****** for string
> which I type in PropertyGrid Control.
>
> Regards,
> Siddharth

Nov 20 '05 #6
* "One Handed Man" <Bo****@Duck.ne t> scripsit:
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you mean you
want to use the dataGrid and want the PasswordChar properties to apply to
that ?


'System.Windows .Forms.Property Grid' -- The control VS.NET uses in the
properties window.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
Yes, we see that

Herfried K. Wagner [MVP] wrote:
* "One Handed Man" <Bo****@Duck.ne t> scripsit:
What do you mean by PropertyGrid Control, I have not see this, ( i'm
probably missing it while its staring me in the face ! ). Or do you
mean you want to use the dataGrid and want the PasswordChar
properties to apply to that ?


'System.Windows .Forms.Property Grid' -- The control VS.NET uses in the
properties window.

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5238
by: Jim Heavey | last post by:
I want to write a routine which will list all of the propetries and all property names for a particular object, say a DataColumn. I there a way for me to do this without manually looking up each property name and the property value? Thanks in advance for your assistance!!!!!!!!!!!
3
583
by: rosty | last post by:
This is taken from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html /frlrfsystemwindowsformstextboxclasspasswordchartopic.asp) "When the PasswordChar property is set to true, cut, copy, and paste actions in the control using the keyboard are not allowed, regardless of whether the Multiline property is set to true or false." Is it a typo in MSDN or something? How can i set PasswordChar to true since it is...
9
11518
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox? Or can I use for mask input some other control?
1
2170
by: Alexander | last post by:
I am building a little unique dialog editor and have derived some new classes like DButton, DLabel and DTextBox. The user adds these Controls to a panel which is part of a class Document which is not a control. The controls in the dialog can be edited with a PropertyGrid. When the user closes the dialog he edited it was first disposed, because it was not part of an Control anymore. I changed that by overriding the Dispose function of the...
1
1692
by: Emaga75 | last post by:
In dotNET windows_based deployment project user interface form, How to mask a textbox for input password? Thanks.
2
4840
by: Lance | last post by:
I want to be able to reset a complex property in a PropertyGrid. I know that for properties that are ValueTypes you can include System.ComponentModel.DefaultValue in the declaration of the property. But, for complex property types (e.g., instance types) this does not work because System.ComponentModel.DefaultValue requires a constant value In order to indicate if a property should be serialized you can include a boolean function named...
5
1725
by: Ger | last post by:
The propertygrid is a great control, but I would like to show a more descriptive text for the properties in the control. I tried to find a solution within the system.componentmodel but did not succeed. As far as I know I can only show the user the property name I use in my class, like "cubic_inches". I would like the user to see something like "Cylinder cubic inches". Is it in any way possible to associate a text to the name of the...
1
2437
by: --== Alain ==-- | last post by:
Hi, I have a huge problem... My property does not appear in the "propertyGrid" of "test Container", when i test my custom control. Here is the custom control code : namespace ARListView.Design {
1
4382
by: asharda | last post by:
I have a custom property grid. I am using custom property grid as I do not want the error messages that the propertygrid shows when abphabets are entered in interger fields. The custom property grid doesn't show colloections i.e. if I have a List<Objectthen the Collection is shown but when I click on the "..." button next to it nothing comes up. If I say CustomPropertyGrid p = new CustomPropertyGrid(); p.SelectedObject = new...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9236
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,...
0
9182
tracyyun
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...
0
8186
agi2029
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...
1
6735
isladogs
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...
0
6031
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();...
1
3261
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
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.