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

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,615 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 27,496 Reputation points Microsoft Vendor
    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 82,231 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