question

NickBuckenham-3845 avatar image
0 Votes"
NickBuckenham-3845 asked AnnaXiu-MSFT commented

VS 2022 upgrade queries

I am upgrading a major VB project developed in VS 2010 to newly installed VS 2022, and would appreciate advice on a couple of things -

  1. I use VB Powerpacks but although my existing project compiles with them still showing I can't get Powerpacks listed in the Toolbox. Tools > Choose Toolbox items doesn't show them. I still have, and have again run, vb_vbpowerpacks.exe but they don't show. Is this a 32 vs 64 bit issue? Is there a better way to ensure this works?

  2. When single-stepping through code, if I reset something and Set Next Statement to a previous line it never works 1st time, but repeating the Set next statement does ... is this a bug?

  3. It's oddly difficult after so many years remembering to use F11 instead of F8 to single step - is this changeable?

Thanks!



vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered AnnaXiu-MSFT commented

Hi @NickBuckenham-3845 ,

Welcome to Microsoft Q&A!

I use VB Powerpacks but although my existing project compiles with them still showing I can't get Powerpacks listed in the Toolbox. Tools > Choose Toolbox items doesn't show them. I still have, and have again run, vb_vbpowerpacks.exe but they don't show. Is this a 32 vs 64 bit issue? Is there a better way to ensure this works?

Can you tell me your project’s target framework is .NET Core or .NET Framework?

It is noted that the Visual Basic Power Packs has ended for support. Running the vb_vbpowerpacks.exe directly does not work. You can see more details here.

If you want to use the PowerPacks controls, you can add a reference by right-clicking on project > Manage NuGet Packages > Browse > search “Microsoft.VisualBasic.PowerPacks.Vs” > install “VisualBasic.PowerPacks.Vs”.

Then, you can go to Toolbox > Choose Items… > Filter the PowerPacks controls to add them to toolbox.

2.When single-stepping through code, if I reset something and Set Next Statement to a previous line it never works 1st time, but repeating the Set next statement does ... is this a bug?

I couldn’t reproduce what you said on my side. You can check if the situations in the document are causing this problem.

3.It's oddly difficult after so many years remembering to use F11 instead of F8 to single step - is this changeable?

In Visual Studio 2022, the F8 shortcut refers to “Go to next location”. F11 is used to “Step into” code line by line.
If you want to reassign, please refer to: Customize a keyboard shortcut.

Sincerely,
Anna


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.








· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Anna,

Thanks for the swift answer. My project is set to .NET Framework 4.8 now, raised from previously 3.0

I have just single-stepped through some code and again for the 1st time right-click and select 'Set Next Statement' with the cursor on a previous line repeatedly stalled, but using Ctrl-Shift-F10 did the job and it seems to have cleared. Perhaps that's cleared it.

I set Debug.Stepinto to F8 as suggested, works fine - though F11 also still does the same. Presumably OK ...

Re: Powerpacks - I successfully added two Powerpacks components I use (rectangle shape and line) as suggested, but if I try to add either to a form I get 'Failed to create component 'RectangleShape'. The error message follows: System.IO.FileNotFoundException: Could not load file or assembly etc. Both items are shown checked in Choose Toolbox Items > .NET Framework Components in both Version 9.0.0.0 (Global Assembly Cache) and 12.0.0.0 (c:\program files (x86)\reference assemblies\microsoft\vbpowerpacks\v12.0

Any clues there?

0 Votes 0 ·

Re: Powerpacks again. I have now decided to get rid of them and use panels to replace the rectangular shape I have been using. Thanks anyway.

0 Votes 0 ·
AnnaXiu-MSFT avatar image AnnaXiu-MSFT NickBuckenham-3845 ·

It's nothing, my pleasure! Thanks for your feedabck!

0 Votes 0 ·