I am trying to create or find a way to develop a login feature for a program I am writing in VB.Net. The function would have the same capabilities as when a user signs onto users (username and password). How would I develop this function and what is the code for the function?

For example, a window/form will pop-up each time the program is ran and states:

Username: __________
Password: __________

It will verify the username with its correct password stored in a textbox or somesort. After this function is validated, the rest of the program is open to access to the user. This feature/function will act as a security device, just as how a user wants to secure certain items under a specific username under a windows login.