×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PropertyManager API VB.net

PropertyManager API VB.net

PropertyManager API VB.net

(OP)
Let me try this again.

I have a program I am writing and I have very little experience with vb.net. I am trying to figure out how to bring information from a textbox in the property manager, using the swPropertyManagerPageControlType_e.swControlType_Textbox command.
 

RE: PropertyManager API VB.net

swPropertyManagerPageControlType_e.swControlType_Textbox is not a command.  It is 5.

What have you managed to achieve so far?  If you have created controls on a PMP, you must have used the command AddControl.  This command returns a PropertyManagerPageControl object. You can query this object for its Text property.

-handleman, CSWP (The new, easy test)

RE: PropertyManager API VB.net

(OP)
Yes, I Have been able to create a page, and everything looks great. How do I query the text property.

RE: PropertyManager API VB.net

OK.  You used the AddControl method, right?  That line should look something like

myControl = myPMPpage.AddControl(some arguments).

To get the text, use

SomeStringVariable = myControl.Text

-handleman, CSWP (The new, easy test)

RE: PropertyManager API VB.net

(OP)
Thank you. I have been able to get it now.

You got me into the right direction. I was able to retrieve the data as long I was in the same module. So my final line ended up as

BSTR = UserPMPage.textbox1.text


 

RE: PropertyManager API VB.net

I'm relatively new to all this as well.  I need to get the data from a PMP, but with a small catch (maybe)!

I'm creating a "product configurator" using the PMP.  I've got the PMP layed out, it looks great.  I don't want any code to execute until the user clicks OK.  So my main sub starts the PMP, and makes sure the user has selected the appropriate component.

Then, in the PMP event handler class OnClose event, I have a call to a second sub in the same module as the main.  How can I get the inputs from the PMP into the second sub?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources