Issue related to Connector text edit

D

Deepa

We are using Visio 2003 with C#. In our Project, on double clicking a
connector, one combo box will appear to get the name for that connector.I am
enabling that combobox which is available in a form during the event
BeforeShapeTextEdit event.Once i have entered the name for the connector and
press enter, then name entered in combobox will be assigned to the connector.
but after pressing enter in the combobox also its still in edit mode. What i
need is , After entering the name or selecting the name available in combo
box and press enter, it shud not be in edit mode.
I need a suggession for this immediately. Please let me know the solution
ASAP.

Thanks in Advance!

Thanks!
 
J

JuneTheSecond

Is edit mode you mentioned on Combo Box or Visio Connector?
If connector, is your Combo Box on Dialog or on Form?
If on Dialog or Form is opend with method ShowDialog,
Visio might wait for closing the Dialog.
 
P

Paul Herber

We are using Visio 2003 with C#. In our Project, on double clicking a
connector, one combo box will appear to get the name for that connector.I am
enabling that combobox which is available in a form during the event
BeforeShapeTextEdit event.Once i have entered the name for the connector and
press enter, then name entered in combobox will be assigned to the connector.
but after pressing enter in the combobox also its still in edit mode. What i
need is , After entering the name or selecting the name available in combo
box and press enter, it shud not be in edit mode.
I need a suggession for this immediately. Please let me know the solution
ASAP.

Are you sure this really is a combobox you are using ? If you are
editing the text then pressing any key should should trigger the
OnKeyPress event, you can trap the Enter key here and close the edit
session.
 
D

Deepa

Hi,

Thanks a lot for your reply.
The edit mode which i have mentioned is Connector edit mode.
I have placed the combobox in a form and am showing that form using
showdialog.
After closing the Form also, since we have shown in the BeforeShapeTextEdit
mode, after completing, its waiting for shapeTextEdit event to close the edit
mode.
 
D

Deepa

Hi Paul,

Thanks a lot for your reply.
Am using the combo box which i have placed in a form n using showdialog, we
r enabling the combobox.In that key press event, its not possible to raise
the ShapeTextEdit event right. After entering the name in combo box and press
enter, we r assigning that name to connector text , but after closing the
combo also that edit box still remains so that there is possibilty for the
users to enter in that edit box also Right. Thats the Problem. We shud not
allow to enter in the edit box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top