We help IT Professionals succeed at work.

UserControl property with a dialog

PLavelle
PLavelle asked
on
Medium Priority
369 Views
Last Modified: 2008-03-10
Is there any way to create a user control with a property that will have a button that will bring up a separate dialog?
Comment
Watch Question

not sure what you mean, whats this for ?

Author

Commented:
I want to create my own user control, then link a property grid to it. I want to user to be able to click on a Data row on the property grid and have another form that I have designed pop up.
Sure; you'd do it exactly the same way you'd ever have another form popup:

Dim frmX As New WhateverKindOfForm()
frmX.ShowDialog()
here are property grids being used:
http://www.codeproject.com/vb/net/using_propertygrid.asp

I hope this helps
Senior IT Analyst
CERTIFIED EXPERT
Commented:
Here is what you need ...
 you need to create a uiTypeEditor inherited property edittor that displays a dialog window you will find the details here
in the Time property and design-time LEDEditor Section of  the aritcle
if you need more explaination post here ... :)

http://www.codeproject.com/vb/net/ledclock.asp

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Perfect!! Thanks!!!!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.