Where or what is the proper way to get a procedure to start after the form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure is
complete... so whats the best way to get something to start after the form
is loaded and visible? thanks! 8 7147
Smokey,
Form_Activated( )
--
Newbie Coder
(It's just a name)
"Smokey Grindel" <no****@nospam. comwrote in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Where or what is the proper way to get a procedure to start after the form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure is
complete... so whats the best way to get something to start after the form
is loaded and visible? thanks!
Smokey,
Starting with .Net 2.0, you can use the form's Shown event.
Kerry Moorman
"Smokey Grindel" wrote:
Where or what is the proper way to get a procedure to start after the form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure is
complete... so whats the best way to get something to start after the form
is loaded and visible? thanks!
ah awesome, the activated one I was staying away from because every time it
got focus it reactivated the form it seemed like...
"Kerry Moorman" <Ke**********@d iscussions.micr osoft.comwrote in message
news:51******** *************** ***********@mic rosoft.com...
Smokey,
Starting with .Net 2.0, you can use the form's Shown event.
Kerry Moorman
"Smokey Grindel" wrote:
>Where or what is the proper way to get a procedure to start after the form is shown on the screen? I figured out if you put it in Load it will start before the form is shown and the form will not show until the procedure is complete... so whats the best way to get something to start after the form is loaded and visible? thanks!
On 10 Sep, 22:39, "Smokey Grindel" <nos...@nospam. comwrote:
ah awesome, the activated one I was staying away from because every time it
got focus it reactivated the form it seemed like...
"Kerry Moorman" <KerryMoor...@d iscussions.micr osoft.comwrote in message
news:51******** *************** ***********@mic rosoft.com...
Smokey,
Starting with .Net 2.0, you can use the form's Shown event.
Kerry Moorman
"Smokey Grindel" wrote:
Where or what is the proper way to get a procedure to start after the
form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure
is
complete... so whats the best way to get something to start after the
form
is loaded and visible? thanks!
Hi Smokey,
You could use a BackgroundWorke r class. See help on
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio .v80.en/dv_fxmclictl/
html/5b56e2aa-dc05-444f-930c-2d7b23f9ad5b.ht m
Or alternatively, you could start a timer at the end of the form Load
event and perform your job the first time the timer tick is called.
This is not a true background solution though.
JB
Smokey,
If I need to use the Activated method I usually create a boolean value so not to
use it from keep firing:
Example:
Dim blnHasFired As Boolean = False
Then use something like this:
If blnHasFired = False Then
' Do Something Here
blnHasFired = True
Exit Sub
End If
--
Newbie Coder
(It's just a name)
"Smokey Grindel" <no****@nospam. comwrote in message
news:%2******** **********@TK2M SFTNGP03.phx.gb l...
ah awesome, the activated one I was staying away from because every time it
got focus it reactivated the form it seemed like...
"Kerry Moorman" <Ke**********@d iscussions.micr osoft.comwrote in message
news:51******** *************** ***********@mic rosoft.com...
Smokey,
Starting with .Net 2.0, you can use the form's Shown event.
Kerry Moorman
"Smokey Grindel" wrote:
Where or what is the proper way to get a procedure to start after the
form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure
is
complete... so whats the best way to get something to start after the
form
is loaded and visible? thanks!
"Smokey Grindel" <no****@nospam. comwrote in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Where or what is the proper way to get a procedure to start after the form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure is
complete... so whats the best way to get something to start after the form
is loaded and visible? thanks!
My (probably rough!) solution to this is to force the form to show before
doing anything...
So in form_load, I put
{
Form1.Show();
Application.DoE vents();
Do stuff.... ;
}
James,
I thin you got lost a little as this is a VB.NET newsgroup not C#
--
Newbie Coder
(It's just a name)
"JamesB" <ja***@somewher e.com.net.com.n etwrote in message
news:46******** *************** @news.zen.co.uk ...
>
"Smokey Grindel" <no****@nospam. comwrote in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Where or what is the proper way to get a procedure to start after the form
is shown on the screen? I figured out if you put it in Load it will start
before the form is shown and the form will not show until the procedure is
complete... so whats the best way to get something to start after the form
is loaded and visible? thanks!
My (probably rough!) solution to this is to force the form to show before
doing anything...
So in form_load, I put
{
Form1.Show();
Application.DoE vents();
Do stuff.... ;
}
"Newbie Coder" <ne*********@sp ammeplease.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
James,
I thin you got lost a little as this is a VB.NET newsgroup not C#
So I did! Although the logic is presumably still applicable? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: el_roachmeister |
last post by:
Is there a way to make a text link post to a form without passing all
the parameters in the url? The urls tend to get very long and messy. I
often wonder if there is a limit to how long they can get?
|
by: Darryl Kerkeslager |
last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but
....
I have a tab control that will contain several subforms, each bound to a
separate table, and each table/subform will relate to the same person - but
the subform data will not be 'linked' to the main form.
I want to have one Cancel button for all the undo operations on all the
subforms, so the individul subform's Public Sub, Form_Cancel will be called...
|
by: Jozef |
last post by:
I have some old code that I use from the Access 95 Developers handbook. The
code works very well, with the exception that it doesn't seem to recognize
wide screens, and sizes tab controls so that they are too big and wind up
covering up some of the fields on the main form.
Is there any good code out there that works in a similar fashion that will
also either a) stretch the form width wise on widescreens or b), rely on
height rather than...
|
by: Phil |
last post by:
Hello
Can anybody tell me which events are fired immediately after a form is
displayed i.e. appears on screen?
Ta
Phil
|
by: Philip Wagenaar |
last post by:
I have made a form with a tab that containts groupboxes and those contain
checkboxes.
When I run the application sometimes the outlining for some groupboxes are
not shown, if I switch tabs and back sometimes all outlining is shown and
sometimes are not shown. I have no idea what is going wrong.
What also is weird is that when I open the form from my main application I
can resize the form, even though it is locked, and that when I cut...
| |
by: afr0ninja |
last post by:
Hello! I'm currently working on a form that has several input fields
and a subform. What I'm trying to accomplish is that when I first open
the form I'd like to have the input fields displayed only. The fields
are about 3" wide. Then I'd like to have a command button that when
pushed it would expand the form to about 9" displaying the subform
along with the input fields. The command button could then be pressed
again to shrink the...
|
by: Martin H. |
last post by:
Hi,
I'm working on a DLL which I want to make available for download (when
it's ready).
However, since I want to make a few $$, I want that the About dialog of
the DLL is shown each time the program (which references the DLL) is
started.
Is there any chance I can do that? I would not want to call the
|
by: Steve |
last post by:
Hi All
I have an on-screen keyboard within a POS program I have written in VB.net
2005, for touch screen computers
I have it set to 'always on top' so the user can move the cursor to
different text boxes and type using the on-screen keyboard
The keyboard launches via the mouseclick event for any text box
If another form is launched, with the onscreen keyboard still visible, the
|
by: Shashi Sadasivan |
last post by:
Hi All,
I will start working on a form soon which runs as an mdi container (in the main screen)
However there is this "new" requirement, there will be 4 screens, and one of the features of the program is to open child forms (not within the mdi container) but in a totally different screen (as in a second one, not the primary one).
Now it is going to be a quad screen system. not even 2.
I wrote a small snippet
Form frm1 = new Form();
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |