Error for Serialport option

Abdul Rahman 21 Reputation points
2022-02-07T16:48:09.667+00:00

why on my visual studio 2022 toolbox there is no Serialport option available, is this a system error? Please help

Developer technologies | VB
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2022-02-08T03:00:07.21+00:00

    Hi @Abdul Rahman ,
    In the .Net Core project, there is no SerialPort in the toolbox of the design view, but you can manually import the package "System.IO.Ports".
    Then you can use SerialPort Class (still not showing in the toolbox though).
    172111-image.png
    Best Regards.
    Jiachen Li

    ----------

    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.


1 additional answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2022-02-07T17:11:42.853+00:00

    Open first your main Form in Design Mode
    (and in a .NET Framework project (not Net Core))

    => (test in C#, but same thing in VB)

    172012-serialporttoolbox.jpg


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.