Solved

Console app in vb.net!

Posted on 2004-04-19
3
688 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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)…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

719 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