|
-
Dec 3rd, 2024, 06:30 PM
#1
Thread Starter
Fanatic Member
How do you jump back after VB6 moves to ".Show vbModal"?
Hello!
I spent too much time to locate / go back to where I was before VB6 put the cursor to the line
Code:
Form.Show vbModal, Me
How do you handle this?
I spent too much time to navigate back. In case somebody wants to see what I am talking about I have recorded a video here:
What I sometimes do in such a situation:
I use "Undo". Then VB6 undoes my last text input and automatically jumps to this line, but sometimes that stops the debugger, that is why I need to find a better way.
Thank you!
-
Dec 3rd, 2024, 07:03 PM
#2
Lively Member
Re: How do you jump back after VB6 moves to ".Show vbModal"?
I'm a ctrl-Zer myself. Axtools Codesmart has a History panel that you could use. It's an expensive purchase though.
Could use bookmarks but I don't know of any keyboard shortcuts for those, so it's a pain.
-
Dec 3rd, 2024, 07:18 PM
#3
Re: How do you jump back after VB6 moves to ".Show vbModal"?
Good question, something like "go to last edited line".
But I don't know of anything like this in the VB6 IDE. I also use Control+Z and maybe Edit/Redo after that.
If the action undoes some declaration, the debugger will stop, and if there is some subclassing or something, the IDE can crash
-
Dec 3rd, 2024, 07:18 PM
#4
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by bahbahbah
It's an expensive purchase though.
I don't envy someone in this position as I'd feel like this is a rip off given that this is a standard feature in modern versions of Visual Studio.
-
Dec 3rd, 2024, 07:26 PM
#5
Re: How do you jump back after VB6 moves to ".Show vbModal"?
There is a "Last Position" option in the context menu but for some reason it doesn't work in debug mode.
-
Dec 3rd, 2024, 07:43 PM
#6
Re: How do you jump back after VB6 moves to ".Show vbModal"?
If I've understood what you're looking for, pressing Ctrl+Tab will flip you back to the window that was active before the IDE jumps to the .Show vbModal line. The caret will be at the last position it was at too.
-
Dec 3rd, 2024, 07:56 PM
#7
Lively Member
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by Niya
I don't envy someone in this position as I'd feel like this is a rip off given that this is a standard feature in modern versions of Visual Studio.
Certainly is a rip off in that respect. On the other hand, not a rip off as no way I'm going back to stock ever again. F that s.
 Originally Posted by jpbro
If I've understood what you're looking for, pressing Ctrl+Tab will flip you back to the window that was active before the IDE jumps to the .Show vbModal line. The caret will be at the last position it was at too.
-
Dec 4th, 2024, 07:58 PM
#8
Thread Starter
Fanatic Member
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by jpbro
If I've understood what you're looking for, pressing Ctrl+Tab will flip you back to the window that was active before the IDE jumps to the .Show vbModal line. The caret will be at the last position it was at too.
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I don't want to count the hours and hours, but rather days that I have spent on this task that (as you told you and you were right!) can be done with a key combination.
Thank you!!!
-
Dec 4th, 2024, 08:15 PM
#9
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by tmighty2
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I don't want to count the hours and hours, but rather days that I have spent on this task that (as you told you and you were right!) can be done with a key combination.
Thank you!!!
Glad that did the trick! Hope it saves you some hours from this point forward
Note that Ctrl+Tab cycles through the open windows in one direction, and Ctrl+Shift+Tab cycles through them in the opposite direction. Both of these shortcuts can be handy for hopping around your code when it spans a few different windows.
-
Dec 5th, 2024, 05:22 AM
#10
Re: How do you jump back after VB6 moves to ".Show vbModal"?
Try using Ctrl+Shift+F2 to go to last position.
I'm using Ctrl+L to navigate stack all the time too but here it won't be very useful.
RC6 custom forms have this unfortunate side-effect where the application loop is actually replaced with a single VB6 form Show method call (i.e. a dialog loop) so Ctrl+Breaking always shifts focus to it.
Btw, Ctrl+F6 = Ctrl+Tab and Ctrl+Shift+F6 = Ctrl+Shift+Tab
cheers,
</wqw>
-
Dec 5th, 2024, 12:06 PM
#11
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by wqweto
Btw, Ctrl+F6 = Ctrl+Tab and Ctrl+Shift+F6 = Ctrl+Shift+Tab
Wasn't aware of the F6 analogs, but Ctrl+Tab/Ctrl+Shift+Tab have one advantage: most tab based interfaces use the Ctrl+Tab/Ctrl+Shift+Tab shortcuts to navigate around tabs which ensures your keyboard muscle-memory is useful outside the VB6 IDE.
-
Dec 5th, 2024, 02:50 PM
#12
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by jpbro
Wasn't aware of the F6 analogs, but Ctrl+Tab/Ctrl+Shift+Tab have one advantage: most tab based interfaces use the Ctrl+Tab/Ctrl+Shift+Tab shortcuts to navigate around tabs which ensures your keyboard muscle-memory is useful outside the VB6 IDE.
Yes, but inside ActiveReports designer Ctrl+Tab navigates reports controls so I’m always switching open files with Ctrl+F6 in VB IDE to not care if inside report designer or not.
-
Dec 5th, 2024, 03:33 PM
#13
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by wqweto
Yes, but inside ActiveReports designer Ctrl+Tab navigates reports controls so I’m always switching open files with Ctrl+F6 in VB IDE to not care if inside report designer or not.
Good thing we have 2 options then
-
Dec 5th, 2024, 05:14 PM
#14
Re: How do you jump back after VB6 moves to ".Show vbModal"?
 Originally Posted by wqweto
Btw, Ctrl+F6 = Ctrl+Tab and Ctrl+Shift+F6 = Ctrl+Shift+Tab
Ctrl+F6 and Ctrl+Shift+F6 do nothing here (IDE in English).
-
Dec 5th, 2024, 06:07 PM
#15
Re: How do you jump back after VB6 moves to ".Show vbModal"?
Works as advertised over here. Quite handy shortcuts too!
Tags for this Thread
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
|