How to show Property Page

In vb 6 one can make a property page for your custom OCX by the wizzard, its very easy to use, just richtclick on your control and select properties. The only problem is that this feature seems not availeble from inside the ocx it self. Does anybody know how to invoke the property page at runtime from within the OCX.

Thanks

Comments

  • I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www20.brinkster.com/coldshine[/size]

  • : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : _____________________________
    : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : http://www20.brinkster.com/coldshine[/size]
    :
    :
    Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    This is the functionality i am looking for
  • : : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : : _____________________________
    : : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : : http://www20.brinkster.com/coldshine[/size]
    : :
    : :
    : Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    : This is the functionality i am looking for
    :

    I don't know of any method to do so, but you could create a form in your ocx project, set it up to look like the normal property page and then show it. It's overkill to include both, but if you have to...
  • : : : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : : : _____________________________
    : : : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : : : http://www20.brinkster.com/coldshine[/size]
    : : :
    : : :
    : : Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    : : This is the functionality i am looking for
    : :
    :
    : I don't know of any method to do so, but you could create a form in your ocx project, set it up to look like the normal property page and then show it. It's overkill to include both, but if you have to...
    :
    Thanks, thats what i did already, by the way do you know why the writeproperties event is not triggerd after a propertiechanged? VB OCX wizzard by default adds read and write property procedures but if i change my properties from any other place then the property page, i dont get an writeproperties event
  • : Thanks, thats what i did already, by the way do you know why the writeproperties event is not triggerd after a propertiechanged? VB OCX wizzard by default adds read and write property procedures but if i change my properties from any other place then the property page, i dont get an writeproperties event
    :

    I'm afraid not. I've fought with VB and OCXs for quite a while until I finally just gave up. I haven't written one in about a year now and don't recall much of what I did figure out.

    Good luck!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories