Executing a procedure upon loading? 
Author Message
 Executing a procedure upon loading?

Kind of a dumb question I guess, but is there some way to
get a procedure to execute immediately and automatically
upon loading the form?  I made a Form_Load procedure,
which I thought was the way to do it, but it isn't
executed when I load the window.  Basically I want
something printed in a picture box the moment I load the
window.  Any help would be appreciated.

Thanks



Sat, 11 Sep 2004 04:52:09 GMT  
 Executing a procedure upon loading?
I should revise my question, I can get Form_Load to
execute and it does work, but it won't print anything.  I
need to print in that procedure, is it possible?

Thanks again

Quote:
>-----Original Message-----
>Kind of a dumb question I guess, but is there some way to
>get a procedure to execute immediately and automatically
>upon loading the form?  I made a Form_Load procedure,
>which I thought was the way to do it, but it isn't
>executed when I load the window.  Basically I want
>something printed in a picture box the moment I load the
>window.  Any help would be appreciated.

>Thanks
>.



Sat, 11 Sep 2004 05:07:47 GMT  
 Executing a procedure upon loading?
It is printing, but you need to set AutoRedraw on the picturebox to true.
Done!

Max Bolingbroke


Quote:
> I should revise my question, I can get Form_Load to
> execute and it does work, but it won't print anything.  I
> need to print in that procedure, is it possible?

> Thanks again

> >-----Original Message-----
> >Kind of a dumb question I guess, but is there some way to
> >get a procedure to execute immediately and automatically
> >upon loading the form?  I made a Form_Load procedure,
> >which I thought was the way to do it, but it isn't
> >executed when I load the window.  Basically I want
> >something printed in a picture box the moment I load the
> >window.  Any help would be appreciated.

> >Thanks
> >.



Sat, 11 Sep 2004 05:33:50 GMT  
 Executing a procedure upon loading?
Wow that fixed everything.  Thanks!

Quote:
>-----Original Message-----
>It is printing, but you need to set AutoRedraw on the
picturebox to true.
>Done!

>Max Bolingbroke



>> I should revise my question, I can get Form_Load to
>> execute and it does work, but it won't print anything.  
I
>> need to print in that procedure, is it possible?

>> Thanks again

>> >-----Original Message-----
>> >Kind of a dumb question I guess, but is there some way
to
>> >get a procedure to execute immediately and
automatically
>> >upon loading the form?  I made a Form_Load procedure,
>> >which I thought was the way to do it, but it isn't
>> >executed when I load the window.  Basically I want
>> >something printed in a picture box the moment I load
the
>> >window.  Any help would be appreciated.

>> >Thanks
>> >.

>.



Sat, 11 Sep 2004 06:25:56 GMT  
 Executing a procedure upon loading?
You'll pay a price for using autoredraw though...  It forces
windows to keep a bitmap of the form in memory and refresh
that bitmap with each change and then redraw that bitmap to the
foreground each time something paints.  Uses memory, and slows
things down a bit...

What are you 'painting' to the form?

D?

| Wow that fixed everything.  Thanks!
|
|

Quote:
| >-----Original Message-----
| >It is printing, but you need to set AutoRedraw on the
| picturebox to true.
| >Done!
| >
| >Max Bolingbroke
| >


| >> I should revise my question, I can get Form_Load to
| >> execute and it does work, but it won't print anything.
| I
| >> need to print in that procedure, is it possible?
| >>
| >> Thanks again
| >>
| >>
| >> >-----Original Message-----
| >> >Kind of a dumb question I guess, but is there some way
| to
| >> >get a procedure to execute immediately and
| automatically
| >> >upon loading the form?  I made a Form_Load procedure,
| >> >which I thought was the way to do it, but it isn't
| >> >executed when I load the window.  Basically I want
| >> >something printed in a picture box the moment I load
| the
| >> >window.  Any help would be appreciated.
| >> >
| >> >Thanks
| >> >.
| >> >
| >
| >
| >.
| >



Sat, 11 Sep 2004 09:23:02 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Unable to execute Oracle Procedure using Ado2.5 - using synonyms for procedures

2. Need TreeView to display upon loading

3. Need TreeView to display upon loading

4. Newbie - Loading App upon Windows startup

5. Trying to execute a private procedure from another form

6. Execute a SS7 stored procedure

7. executing an extended stored procedure on SQLServer from VBA

8. Access executing stored procedures

9. Executing an oracle stored procedure from access 95

10. Executing an Event Procedure

11. Procedure keeps executing after OpenReport

12. Executing procedures

 

 
Powered by phpBB® Forum Software