How can i write a program that creats a password and a username using Visual Basics 6.0

creates password for what ?

you can get help from any search engine. a lot of sample project wait for you.......lol

if you want to have a simple username and password use static username/password
txtpassword = yourpassword
txtusername = youusername

if any one of that didn't match the value in the textbox, its error or your fail to log in somehow like that

Explain further.
Do you just want to create strings you call password and do nothing with them?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.