C# .NET - delay in form load
Asked By Aamir Khan
09-Sep-10 03:32 AM
hi all,
Application.Run(new frmSplash());
Application.Run(new frmLogin());
first splash screen loads and close there after i call Login form which comes after few seconds. in login form only constructor is called.
how to avoid it..
Super Man replied to Aamir Khan
Application.Run(new Form1());
Application.Run(new Form2());
When you write like this.
Then Till Form1, is open, it will not execute second line,
that’s why you can see that Form2 Is taking too much time to Load.
Once Form1 is closed, then it will start to run Form2.
Sagar P replied to Aamir Khan
Can you please explain more about your question?
If you just want to delay form load you can use current thread for that.... On form load just sleep it the time you want like;
private void Form1_Load(object sender, EventArgs e)
{
Thread.Sleep(5000); //This will delay form load for 5 secs
}
Aamir Khan replied to Super Man
hey Khan
Thanks
where were you from last few days..
yesterday i post a question and looking for your answer..plz
my question is .
i want to add AccessDatabaseEngine.exe file as prerequisite how to do it...

difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How Threading (B) What is Multi-tasking? (B) What is Multi-threading? (B) What is a Thread? (B) Did VB6 support multi-threading? (B)Can we have multiple threads in one App A) What does Address Of operator do in background? (A) How can you reference current thread of the method? (I) what is Thread.Sleep () in threading? (A) How can we make a thread sleep for infinite period? (A) What is Suspend and Resume in Threading? (A) What the way to stop a long running thread? (A) How do I debug thread? (A) What is Thread.Join () in threading? (A) What are Daemon threads and how can a thread be created
login page how to compare username, password in sqlserver table in asp.net. . i got error used in my system: Protected Sub Page_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load If (Session( "Check" ) <> Nothing ) And Convert.ToBoolean(Session( "Check" )) Then If (User.Identity.IsAuthenticated) Then comboBox1.Text = = "") { MessageBox.Show("Enter the feilds"); } else if (textBox1.Text = = "") { MessageBox.Show("Enter the Login Id"); } else if (textBox2.Text = = "") { MessageBox.Show("Enter the password"); } else if (comboBox1.SelectedItem = = "") { MessageBox.Show("Select the category"); } } Determining and Validating the Supplied Credentials Use the Login control’s UserName and Password properties to determine the username and password credentials entered by logged on to the site, but in the last two cases you should see the Login control’s invalid credentials message. refer http: / / www.asp.net / learn / security / tutorial-06-cs.aspx for more details. -Paresh Improving the Login Control’s Invalid Credentials Message - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - When a user attempts to log on with invalid credentials the Login control displays a message explaining that the login attempt was unsuccessful. In particular, the control
Preventing Multiple Login in Asp.net Hi. I'm working on Peter A. Bromberg's article Preventing Multiple asax file that contains event for the lifecycle of the page / session. Use the event application-end to track when the application is closed and force the user's session to expire. I tried it in the Sub Application_End( ByVal sender As Object , ByVal e As EventArgs) but it's not firing when I close my browser. Am I supposed to be testB.aspx you wrote something like following Protected Overrides Sub OnLoad(ByVal e As System.EventArgs) Call MyBase.OnLoad(e) ' End The Session Session.Abandon() ' Build A JavaScript String That Will weeks. The same way ebay, google and many others work. Try Below Code : When Your Application Start At That Time You Have To Set Your Session As Default Or Zero(0). Session("Login") = 0; Now Check Condition For User That He / She Is Login Or Not. If Session value Is Zero Then He / She Not Login Means Logout . & If
yahoo login through vb.net code Please help me I am a new vb.net programmer after Imports System.Text Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim symbol As [String] = txtQuotes.Text Dim request As HttpWebRequest Dim response Try End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim s As String() = txtOutput1.Text.Split(", ") Dim word As String 'Dim Next dg1.Rows.Add(dgvRow) End Sub But I did not understand how to add login phase to yahoo finance so that I will fetch Real time quotes from yahoo finance returns a DataSet directly from the webservice, making things like consumption in a Windows Forms application about as easy as it can possibly get. First, the code for the Service: using UTF-8 byte order mark characters in your stream: private void button1_Click( object sender, System.EventArgs e) { YahooMultiQuote.Service1 s = new YahooMultiQuote.Service1(); s.RequestEncoding = new System.Text.ASCIIEncoding(); DataSet ds http: / / www.c-sharpcorner.com / UploadFile / scottlysle / GeocodeAddressCsharp01122008193746PM / GeocodeAddressCsharp.aspx Yahoo uses OpenId for their login. You use one of the many libraries that are listed on their site. Folloe these link , http: / / social.msdn.microsoft.com / Forums / en / vbgeneral / thread / 0b77ca8c-48ce-4fa8-9367-c7491aa359b0 / http: / / stackoverflow.com / questions / 1513267 / how-do-i-integrate-the
transitional.dtd "> < script runat = "server" > Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim csname1 As String = "PopupScript" Dim csname2 As String = "ButtonClickScript" If Not IsClientScriptBlockRegistered(csname1) Then transitional.dtd "> < script runat = "server" > Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim csname1 As String = "PopupScript" Dim csname2 As String = "ButtonClickScript" If Not IsClientScriptBlockRegistered(csname1) Then is to write the logout information into cookie, and check the cookie every time page load. Then we can redirect the url to the login page when detect the logout information in page load. For more information and sample code, please refer to my reply in the following thread: disable back button of browser so that a user can't go on previous pages write a cookie when logout (check the “SetLogoutCookie” function), and read the cookie when page load for each web page except login.aspx (check the “RedirectToLoginPage” function). If the data in cookie means logout then redirect current