question

RussellPadgett-1635 avatar image
0 Votes"
RussellPadgett-1635 asked RussellPadgett-1635 commented

previous question on printform

Anna,

I received your answer on my previous question on getting Printform into my toolbox. I saw "Printform" in the tools selection window and have clicked on the Printform tool. I now get the following message:

"The following controls were successfully added to the toolbox but are not enabled in the active designer: Printform

Make sure the controls to add are compatible with the current designer and the .NET Framework version."

I've unchecked, close Visual Studio 19, opened Visual Studio 19 and checked the Printform tool to add it to the toolbox several times, but I still get the same message as listed above.

I'm using System.Windows.Forms.Forms in my project and I currently have .NET Framework Components 4.0. I've downloaded dotnet-sdk-6.0.100 preview in an effort to see if that .NET would support loading the Printform tool to the toolbox and make it active. Unfortuneatly I have been unsuccessful in making that happen.

Can you tell me what version of Forms and .NET I should use and how to load them into Visual Studio?

vs-general
· 2
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.


Did you try opening a form for designing, then checking if PrintForm can be found in ToolBox and can be dragged to your form?

By the way, maybe it has sense to write your problem as a comment to https://docs.microsoft.com/en-us/answers/questions/457017/ and continue that thread.


0 Votes 0 ·


I opened a new form, loaded toolbox items (Printform checked) but when I opened the toolbox, printform was not available.

I still get the following message:

" The following controls were successfully added to the toolbox but are not enabled in the active designer: Printform

Make sure the controls to add are compatible with the current designer and the .NET Framework version."

0 Votes 0 ·

1 Answer

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

Hi @RussellPadgett-1635 ,

I need to confirm something with you. What is your project type? Does it target .NET Core or .NET Framework?

The error usually means that the control is incompatible with the current designer and the .NET Framework version. Have you tried to change the target framework and check if the issue happens or not?

Please try to update your Visual Studio to the latest version and check again.

Sincerely,
Anna


If the answer is helpful, please click "Accept Answer" and upvote it.
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.

Anna, I'm sorry to admit this but I really am not sure on your questions.

 What is your project type? How do you determine this?

` Does it target .NET Core or .NET Framework? I believe I am using .NET Framework but I'm not positive. Again, how do I determine this?

  Have you tried to change the target framework? Once again I am going to show my ignorance and ask, how would I change this?

  I really am a novice at this. My program was written by me using Visual Basic 2010 back in 2012 and I am trying to upgrade using VIsual Studio 19.  I uploaded that several 
  weeks ago, but can remove and load again if you think it will fic the issue.
0 Votes 0 ·

You can check the project target framework by right-clicking on the project > Properties. And try to change the target framework and check if the error persists or not.

0 Votes 0 ·
  Anna,

  Thank you. I was able to change the target framework to .NET 4.8 and that worked
0 Votes 0 ·