Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,
I want to write a code for a company entry system. If there is a visitor at the entrance, the security person should fill all the details viz..name,purpose, person to be met,etc. These details should be send to the company head in a form of pop up window. All the computers are connected in LAN. I want to write the code in C#. Please help me out.
Posted
Comments
Sandeep Mewara 21-Sep-10 14:36pm    
Ok. Good to know. Go ahead write it.
If you face issues while doing it, do tell us what it is.
Dave Kreskowiak 21-Sep-10 15:02pm    
There's no question here. What part of this are you having a problem with?
curiouspoo 22-Sep-10 1:30am    
Thanks for the reply. But I know this. Actualy i m not able to understand, what code should be written so that a pop up window appears automaticaly on the company head computer when he is working with some other application. Please if u can tell me what code should be written on_click event of SUBMIT button.

You should start by installing Visual Studio[^].

Then, you can create a new C# project[^].

Then, create a form with a field for everything you want the security to write down.

1x Textbox for the name

1x Textbox for the purpose

1x ComboBox for the person to be met

1x Text-area for the etc


Then, add a Submit button. That button will send the info to the company head and reset the form. It's important to reset the form, otherwise, the security might press 2 times on submit and then, the head of the company wouldn't be sure if the person would visit once our twice in a row. That might get confusing.

I also suggest to put labels before the textboxes to help the security personnal know what to write in each of the textbox.

In the combo-box, add all the name of all the company personnal. The security personnal willl only have to choose the right person from the list and there would be no errors! Fantastic huh?

Hope it helped!
 
Share this answer
 
Comments
curiouspoo 22-Sep-10 1:29am    
Thanks for the reply. But I know this. Actualy i m not able to understand, what code should be written so that a pop up window appears automaticaly on the company head computer when he is working with some other application. Please if u can tell me what code should be written on_click event of SUBMIT button.
Here's how I'd do it. There's 2 methods I see.

1st method

Use 2 different application.

The one at the security desk record the visits and record them in a database.

The one at the boss desk is a background application that check the database for new entry at regular intervals. If there's one, it shows a popup, then put a flag to true.. so that you don't show the alert multiple time.

What's great about this is that you can also record each visit and print reports because you can keep them over time.

2nd method

Use 2 different application.

The application at the boss desk is listening to a specific socket.

On submit, the security application send the info directly to the boss socket.

It's a bit trickier here because some info could be lost on the way, or ip adresses could change. It might be trickier to set up.

Here's some code sample for socket programming. Might not be good, I just googled. SEND FILE FROM SERVER TO CLIENT USING C# SOCKET PROGRAMMING[^]

one example for a popup window TaskbarNotifier, a skinnable MSN Messenger-like popup in C# and now in VB.NET too[^]
 
Share this answer
 
Comments
curiouspoo 22-Sep-10 14:03pm    
Thanks a lot

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