|
-
Sep 20th, 2014, 09:54 PM
#1
[RESOLVED] ShowModalAndGetNewCaption
Hi,
I came across Schmidt's ShowModalAndGetNewCaption code in this thread and it works! However, there seems to be a minor problem! After the user clicks the button to unload the form, the form does not unload on the first click but rather it takes to clicks on the button to close the form. Can this be fixed?
Thanks,
Nightwalker
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Sep 20th, 2014, 10:01 PM
#2
Re: ShowModalAndGetNewCaption
Can you be more specific as to which option you used? And if you modified anything, probably be best to let us know that too
-
Sep 20th, 2014, 10:09 PM
#3
Re: ShowModalAndGetNewCaption
The code I am using is in post #20 and I am using the unmodified code.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Sep 20th, 2014, 10:15 PM
#4
Re: ShowModalAndGetNewCaption
Well, as is, seems to work fine. Click OK and calling button's caption changes & form closes. Click Cancel or Alt+F4 & calling button remains unchanged & form closes. Not replicating what you are describing
-
Sep 21st, 2014, 12:05 AM
#5
Re: ShowModalAndGetNewCaption
I figured out what the problem was!
Code:
With Add
cmdindex = Command1(index).index
Command1(index).Caption = .ShowModalAndGetNewCaption(Me, Command1(index).Caption)
.Show
End With
For some reason I had .Show in there! I should have skipped-into the code before decided whether or not to put it there! Removing the ".Show" solved the problem.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|