I'm rather new to Microstation V8i VBA. I am testing a toolbox with a user form that uses multipages. It has several command buttons on each of the pages that call simple cad key-ins and other vba's.
An example:
Private Sub levOff_Click()CadInputQueue.SendKeyin "levelmanager level offbyelem"End Sub
The way it is supposed to work is you click the Level Off button, you then select the element for which you wish to turn off that elements level, and it turns it off. The command is activating but it's not allowing me to select the element to be turned off. When I try to select the element, I hear a ding thru my speakers and the form blinks.
This works when I'm not using multipages. What am I missing?
The attached "PEC_Toolbox_Test.mvba" is using the multipage that is not working and the "PEC_Toolbox.mvba" is the one without and it is working.
PEC_Toolbox_Test.mvba
PEC_Toolbox.mvba
Hello Dustin Hunt,
the property 'ShowModal' from the UserForm must be false.
HTH Martin
Answer Verified By: Dustin Hunt
Martin:
That worked! After doing some quick research on the property 'ShowModal', I was able to find an example of it. My UserForm works the way it should. Thanks again!!
Dustin
Dustin Hunt said:After doing some quick research on the property 'ShowModal', I was able to find an example of it
Another way to pop your UserForum is to use its Show method passing argument vbModal or vbModeless...
Show
vbModal
vbModeless
frmDustin.Show vbModeless
More here:
Regards, Jon Summers LA Solutions