c# Programming Glossary: form_load
Thread Control.Invoke http://stackoverflow.com/questions/1423446/thread-control-invoke timer1.Enabled false WaitPanel.Visible false In Form_Load Function Like this _Thread new System.Threading.Thread new System.Threading.ThreadStart..
Async CTP not working in VS 2010 SP1? http://stackoverflow.com/questions/16062590/async-ctp-not-working-in-vs-2010-sp1 brand new WinForms project language VB.NET and decorated a Form_Load with Async . Problem is that Async keyword is not recognized...
How do I send/receive windows messages between VB6 and c#? http://stackoverflow.com/questions/1645204/how-do-i-send-receive-windows-messages-between-vb6-and-c Command1_Click CSharpClient.DoTest 42 End Sub Private Sub Form_Load CSharpClient.hostwindow Form1.hWnd Module1.SubclassWindow Form1.hWnd..
Can I wait for a webbrowser to finish navigating, using a for loop? http://stackoverflow.com/questions/18303758/can-i-wait-for-a-webbrowser-to-finish-navigating-using-a-for-loop executes asynchronously. Here's how you'd call it from Form_Load and handle the completion of it void Form_Load object sender.. it from Form_Load and handle the completion of it void Form_Load object sender EventArgs e var task DoNavigationAsync task.ContinueWith..
Should I avoid 'async void' event handlers? http://stackoverflow.com/questions/19415646/should-i-avoid-async-void-event-handlers void event handlers as well For example private async void Form_Load object sender System.EventArgs e await Task.Delay 2000 do async.. track the task can implement cancellation private void Form_Load object sender System.EventArgs e this.onFormLoadTask OnFormLoadTaskAsync.. EventArgs e await Task.Delay 2000 ... private async void Form_Load object sender EventArgs e await OnFormLoadAsync sender e share..
Setting a Windows form to be bottommost http://stackoverflow.com/questions/2027536/setting-a-windows-form-to-be-bottommost I can see for this is to call SetWindowPos from the Form_Load and Form_Activate events. If your application is maximized and..
Can't instantiate a COM object written in C# from VBA (VB6 ok) http://stackoverflow.com/questions/375457/cant-instantiate-a-com-object-written-in-c-sharp-from-vba-vb6-ok From a simple VB6 app this works fine Private Sub Form_Load Dim o As Object Set o CreateObject Test9.COMINT o.Init A B End..
C# DLL cannot affect value of a number passed by reference from a VB6 application http://stackoverflow.com/questions/8070033/c-sharp-dll-cannot-affect-value-of-a-number-passed-by-reference-from-a-vb6-appli something like this Private dll As IInteropDLL Private Sub Form_Load Set dll New InteropDLL End Sub Private Sub TestLongReference..
BackgroundWorker - Cross-thread operation not valid http://stackoverflow.com/questions/8738767/backgroundworker-cross-thread-operation-not-valid myClass new MyClass RichTextBox richTextBox In the Form_Load myClass.Initialisation In the Initialisation method in a loop..
|