Solved

Console app in vb.net!

Posted on 2004-04-19
3
684 Views
Last Modified: 2007-12-19
how to build the consol application using vb.net, so it will ask you a question for example login user name & password, so when user types in his user name you can see it, but when user types in his password it will hide it. And once you click enter after typing password it will show message, like hello. For example user=Jime password=hello I want my app look like this:

Please type in your username.

User name:
Password:

0
Comment
Question by:g00r00
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 20 total points
ID: 10860442
'create project as Console app


    Module Module1

      Sub Main()
        Dim sEntry As String
        System.Console.Write("Enter your name: ")
        sEntry = System.Console.ReadLine()
        System.Console.WriteLine("Your name is '" & sEntry & "'")
      End Sub

    End Module

0
 
LVL 4

Expert Comment

by:NetPointer
ID: 10861865
I m not sure about this but worth checking..
ProcessInfo.RedirectStandardInput may help u...

0
 

Author Comment

by:g00r00
ID: 10864608
What about second part, like password, when you typing you cannot see it?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Variable Event ? 3 27
How useful is the free version of Selenium? 3 32
Footer for each row on Gridview 2 21
Problem with SelectList in .NET MVC application 1 11
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question