How to get the NetBIOS name of this local computer in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = Environment.MachineName;
        }
    }
}




/*
 * run:
 *
 * COM-KL94BFG1QP
 * 
 */

 



answered Nov 18, 2023 by avibootz

Related questions

1 answer 138 views
1 answer 175 views
1 answer 323 views
1 answer 248 views
248 views asked Apr 8, 2014 by avibootz
1 answer 257 views
...