Click here to Skip to main content
15,915,869 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
i am doing the login screen and i want this validation :

username and password dose not accept spaces or those simple @#$%^&**!!@


2-how can i add flash movie to the form?

3-if the user enter valid username and password the click on the login button i want thim to wait for 20 second how can i do this?


could any one write the code?
Posted
Comments
Orcun Iyigun 2-Mar-12 15:02pm    
OP;this is very ambiguous. Is this a Winform project, ASP.NET.....???
Sergey Alexandrovich Kryukov 3-Mar-12 23:08pm    
Why disallowing those character in password? Just the opposite, they are very much needed in passwords.
Why waiting those 20 seconds? If this is what I can guess, this is a bad idea. (If not, most likely, too.)
--SA

1 solution

For not allowing the chars "@#$%.." you can use FilteredTextBoxExtender. Here is the link[^].

For playing flash movie in your page follow these links:

VB
How to make a Shockwave Flash Player Using VB.NET

[^]
-OR-
1st;
On your toolbox right click on it and choose the "Choose items". When the page shows up choose "COM components". Then on the list find Shockwave Flash Object. Select it and it will appear under your components tab. Drag it your form and give the URL of your SWF file.

2nd way;

To your project, add a webbrowser. Then add the .SWF to the project as well. Create a link in the browser and or an HTML document that refers to the .SWF object and you will see the SWF movie run.

VB
Drag it onto your form.
Name if AxFlash
in your program...
AxFlash.Movie="your file name.swf")
AxFlash.Play()



for your third question

look at this link[^]

or

You have to use Treading for that like;
VB
using Sytem.Threading;
Thread.sleep(10000); 

This will wait the process for 10 seconds in the function

Good luck,
OI
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900