I am new to programming and .NET. I have created Class for opening a connection to a tcp port. Everything works fine, but I just can't get over a mental block. Here it is. I have an event trigger which is fired when any data is received and I have to look at the first 3 lines of data and wait for "Password:", at which time I call my function "SendData" which include the password. Then after it successfully logs in, I have to pass a value which represents "last known good record", at which point my "comma delimited records" will begin to flow, one line at a time. This is all functional, I can grab the data, throw it into an array, parse the individual fields which I acquired through "Split(Data, ",") and then update my dataset for final merging with my database. So here is my question: How can I run my login routine and get to the point where the records come in, without my code for the login routine (The if then routines looking for certain data and also to verify that the password was entered correctly) running everytime a new record arrives. The best solution I came up with was to setup a DoWhile loop with a boolean which will run until the boolean equals true, which means the login was successful. The problem is that it will still test to see if it should run the loop and my mind just can handle the fact that a test needs to be performed (which is no longer necessary after the login), every time the dataArrived Event is triggered. It's driving me nuts and I am new to programming, so I don't know if this is just the way things are or if there is a better way. I am not suffering from any performance issues, but I just want to make sure I am practicing good habits. Also, I am looking for programmers, so there will definitely be work. My budget for the project is 1500 man hours. Thank you in advance, Justin
## Deliverables
Help with my problem and discusss project further.
## Platform
vb.net
## Deadline information
This is part of a real project for which I will need at least 1 or 2 programmers. Needs to be proficient with data access, web forms, dynamic page generation, and tcp/ip sockets.