I have a application contain 1 text book for Multiple line
2 Button(Query and Export) and 1 DataGrid View
If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose
My application is working fine
But i am not getting how can i get the user prompt input

"i want to prompt for use input to get key for validating purpose"

what you mean by this do you need to validate the text box?

do you want to ask user something like "Are you sure?" ?????

If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose

and what does the above mean??

Thanks samuel and sandeep for reply.
For database connection need a connection string which contain the password in the encrpted format for connection i need to decrpt it
For that i am using blowfish
which contain the key to decrpyt the password
which i want the user to provide when the user put query in textbox and click on query button if key is proper then only data will show in Datagrid
else it will say invalid or wrong key provide

Thanks
I got it i created new class for that to retrieve value

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.