How to get system hostname on SharpDevelop-VB.Net

This quick VB.Net tips will show you how to get and display the system hostname using SharpDevelop (VB.Net language). Its pretty easy to get the current system hostname using VB.Net language. I am not using Visual Basic editor, but here I use the free SharpDevelop application.

Here is my form design

get system hostname 1

Here is the code :

[codesyntax lang=”vbnet”]

[/codesyntax]

Or

[codesyntax lang=”vbnet”]

[/codesyntax]

Those two codes produce the same result when the button is clicked

get system hostname 2

Ariel

Leave a Reply

Your email address will not be published. Required fields are marked *