View Full Version : Creating Temp Macros using VB.Net Actions
07-28-2004, 12:32 PM
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.
07-29-2004, 12:32 AM
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()
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.
07-29-2004, 06:35 AM
Yes, you are absolutely right. I was not closing the form, but hiding it (ooops).
Thank you for your quick reply.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.