Questions concerning PropertyGrid?

G

Guest

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?

Regards Alexander
 
G

Guest

I got thing with the links (btw. they are called verbs) but I have no idea
how to achieve the password issue...

I will read the article, but it does not seem that they tell something about
the editing process...

Anyone else got an idea?

Regards Alexander
 
T

Tim Haughton

There are two avenues you may wish to explore. The first is probably the
easiest, and that is simply pop a custom UI to enter the password using a
custom type editor. The second possibility would be to capture the
keystrokes at the form level before passing them to the ProperyGrid (See the
KeyPreview property). I'm not sure that you can discern which field has
focus on the PropertyGrid though, so that might be tricky.

Regards,

Tim Haughton

p.s. What are called verbs?
 
G

Guest

That's exactly how I am doing it at the moment. I will take a look at the
KeyPreview thing, thanks.

Those links you can display below the actual properties in the property grid
are called verbs.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top