Are you making a stencil yourself?
If yes, then you could do the following:
1. Run Visio in Developer mode. Goto Tools>Options>Advanced Check the "Run
In Developer mode" checkbox.
2. Define custom properties for each of the stencil shapes. While defining
these properties, check the box "Ask On Drop".
Now whenever the user drops a shape on the drawing he will be prompted to
enter values for all the custom properties that u have defined for the shape.
Now if you want the user to see this form when he double clicks on the shape
then edit the shapesheet for the master .... add "DOCMD(1312)" to the cell
EventDblClick in the Events section of the shapesheet.
Further, if using a custom form to show these values is absolutely essential
then you can read the value of these properties by using the Shapesheet
methods....
string value = vsoShape.CellsU("Prop.<You Custom Property Name>").Formula
.... and then display them on the custom form. There is one cavaet over here,
when you read a value from the shapesheet cell, it is returned with an extra
pair of quotes, you will need to trim that before using the value and while
writing back into the cell you will have to add the extra pair of quotes
around the value.
Download Visio 2003 SDK would be very helpful as it has a couple of sample
programs which convert FormulaToString and vice-versa.
Hope this helps.
Regards,
Mayank