[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.vb.general.discussion

Displaying property menu at runtime

avi

7/19/2010 4:31:00 PM

Hello,

Is there a way to display at runtime the property menu of a control so
that the user may interact with the control?

In my case, I'm speaking about the MsChart control which has a
property menu at the design phase (when picking "properties" after
right clicking on the control)

Thanks
Avi
5 Answers

Jeff Johnson [MVP: VB]

7/19/2010 5:26:00 PM

0

"avi" <aviben@bezeqint.net.il> wrote in message
news:e2fc8178-471a-48b1-9671-fc81ca23c912@l14g2000yql.googlegroups.com...

> Is there a way to display at runtime the property menu of a control so
> that the user may interact with the control?
>
> In my case, I'm speaking about the MsChart control which has a
> property menu at the design phase (when picking "properties" after
> right clicking on the control)

Sounds like you're talking about the control's "property pages." (There's a
difference between a dialog box and a menu.) I'm not sure if there's an EASY
way to do this, but I'm sure it's POSSIBLE.


Kevin Provance

7/19/2010 5:49:00 PM

0

I think either Randy Birch or Brad Martinez has an example on their
respective web sites. I forget which one. Google those names, the OP, and
take a look.


"Jeff Johnson" <i.get@enough.spam> wrote in message
news:i221qs$po7$1@news.eternal-september.org...
: "avi" <aviben@bezeqint.net.il> wrote in message
: news:e2fc8178-471a-48b1-9671-fc81ca23c912@l14g2000yql.googlegroups.com...
:
: > Is there a way to display at runtime the property menu of a control so
: > that the user may interact with the control?
: >
: > In my case, I'm speaking about the MsChart control which has a
: > property menu at the design phase (when picking "properties" after
: > right clicking on the control)
:
: Sounds like you're talking about the control's "property pages." (There's
a
: difference between a dialog box and a menu.) I'm not sure if there's an
EASY
: way to do this, but I'm sure it's POSSIBLE.
:
:

Karl E. Peterson

7/19/2010 9:21:00 PM

0

Jeff Johnson formulated on Monday :
> "avi" <aviben@bezeqint.net.il> wrote in message
> news:e2fc8178-471a-48b1-9671-fc81ca23c912@l14g2000yql.googlegroups.com...
>
>> Is there a way to display at runtime the property menu of a control so
>> that the user may interact with the control?
>>
>> In my case, I'm speaking about the MsChart control which has a
>> property menu at the design phase (when picking "properties" after
>> right clicking on the control)
>
> Sounds like you're talking about the control's "property pages." (There's a
> difference between a dialog box and a menu.) I'm not sure if there's an EASY
> way to do this, but I'm sure it's POSSIBLE.

I have trouble imagining for what possible purpose such a call might be
made? To set design-time properties on a control that's already
instantiated???

--
..NET: It's About Trust!
http://vfre...


avi

7/19/2010 9:33:00 PM

0

Actually, I want to give the user at runtime a dialog for changing
most of the properties of the chart related to its apperance.

It happens that the dialog displayed at the design phase when clicking
"properties" is exactly what I want to present to the user and I was
thinking at a way to use it for that new purpose

If there is a way to disclose all the code behind the dialog, I can of
course easily build one of my one

I hope that my request is cleare now

Thanks
Avi

Paul Clement

7/20/2010 12:02:00 PM

0

On Mon, 19 Jul 2010 14:33:23 -0700 (PDT), avi <aviben@bezeqint.net.il> wrote:

¤ Actually, I want to give the user at runtime a dialog for changing
¤ most of the properties of the chart related to its apperance.
¤
¤ It happens that the dialog displayed at the design phase when clicking
¤ "properties" is exactly what I want to present to the user and I was
¤ thinking at a way to use it for that new purpose
¤
¤ If there is a way to disclose all the code behind the dialog, I can of
¤ course easily build one of my one
¤
¤ I hope that my request is cleare now
¤
¤ Thanks
¤ Avi

I would create your own, or use a third-party component. Keep in mind that some control properties
are design-time only.

The following might help:

http://www.codeproject.com/KB/combobox/Property_list_co...


Paul
~~~~
Microsoft MVP (Visual Basic)