Skip to content

Newbie - accessing My.Computer.Ports from web app #1445

Description

@itg-assistant

Darren asked 2018-03-29 13:32:46 UTC

Hi there,

I'm brand-new to wisej, so excuse any silly questions!

I've built a simple web app. and want to access system port names. Here's the VB.NET desktop code:

Sub GetSerialPortNames()

**    ' Show all available COM ports.**

**    For Each sp As String In My.Computer.Ports.SerialPortNames**

**        ListBox1.Items.Add(sp)**

**    Next**

End Sub

However, the web app doesn't recognise .Ports, so how else do I achieve this?

Thanks

Regards,
Darren

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions