|
#1
|
|||
|
|||
Creating Temp Macros using VB.Net Actions
When running a VB.Net Action program, the logic attempts to set Temporary Macros. The call to the code executes successfully, but the Temporary Macro is not set.
Additionally, I can build the .Net program with a call to MessageBox.Show() -- for debugging, but the message never appears. Zip file attached with VB.Net solution and the .BLD file. |
#2
|
|||
|
|||
It looks like a logic error in your custom action code. When I change the Show call like so:
Dim res As Integer = fInput.ShowDialog() MessageBox.Show(res) If res = DialogResult.OK Then ... The messagebox displays the value 2, but you're comparing with DialogResult.OK, which has a value of 1, and so your logic to assign macros (and I suspect your MessageBox call as well) is skipped. Somewhere you need to update the value that ShowDialog returns or possibly use your own result value in a member variable of your form. |
#3
|
|||
|
|||
Yes, you are absolutely right. I was not closing the form, but hiding it (ooops).
Thank you for your quick reply. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|