Results 1 to 3 of 3

Thread: A Property Page question that will stump ya

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    Does anyone know if I can call a property page during runtime???

    For instance, i have this control, and the user clicks on a cmd button to call up the property page. I would like the property page to pop up and allow the user to edit the controls properties. Is this possible? Are there examples to show this.


    Cheers
    Bill Rogers

  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    24
    If you make your own form with text boxes or something, you can edit the control properties.

    For example:
    You click the "Properties" button that brings up a command button property list. This one only lists 3 properties. txtCaption, txtHeight, txtWidth. It also has an "Apply" button.

    Code:
    Private Sub cmdApply_Click()
    
    cmdYourButton.Caption = txtCaption.Text
    cmdYourButton.Height = txtHeight.Text
    cmdYourButton.Width = txtWidth.Text
    
    End Sub
    Just add more properties in the same way.

    -CD

    [Edited by CreepingDeath on 05-18-2000 at 11:07 AM]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    that normally would be the approach to use, but I am developing a MMC snapin, and there could multiple snapins and if I use a form it locks out the other snapin where as if i can figure out how to call my property page at runtime it wouldnt lock out the other snapin's.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width