?
Solved

Console app in vb.net!

Posted on 2004-04-19
3
Medium Priority
?
691 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 40 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

850 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