How to create TN3270 connection using Visual Basic .NET Community 2022

Senthil Kumar Sudanthiran 20 Reputation points
2025-01-30T15:33:27.5266667+00:00

I have the below installed in my laptop;

Microsoft Visual Studio Community 2022 - Current Version 17.12.4

Microsoft .NET Framework Version 4.8.09.32

Microsoft Host Integration Server 2020 Evaluation Version 11.0.2020.0

I want to create a Mainframe TN3270 connection using Visual Basic .Net application. Can someone please help me withe list of libraries that i have to use ? if possible a VB .NET Code sample/snipet would be of great 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,778 questions
{count} votes

Accepted answer
  1. Michael Taylor 56,856 Reputation points
    2025-01-30T15:45:29.79+00:00

    Unless IBM provides a library for you to do this then you're going to be stuck doing all the TCP/IP calls yourself. It is a custom interface. Having said that a quick google for TN3270 C# reveals someone wrote a library years ago and posted it on GitHub that supposedly allows you to work with this connection in VB or C#.

    I have no knowledge of this library but given their code you can probably figure it out. They also provide sample projects for working with the library so you should start there. You'll need to translate the C# code to VB though. My recommendation is that you compile the library as a C# project and then just reference it in your VB project directly. If you have a private NuGet repo then you could also build it standalone and upload a NuGet package so you can just pull in the dependency like you do everything else.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.