By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Set variables upon opening an executable

P: 2

I am currently creating a standard executable which, of course, starts with a form. I would like to set some variables to control some of the controls (i.e. set some optionbutton captions and the strting location of a Dirlist) of the form upon opening the executable but I can't find an open document event. Any ideas?

Any help would be greatly apprciated.

Sep 12 '07 #1
Share this Question
Share on Google+
1 Reply

P: 180
Do you mean that you need the event for when the form first loads?
That event is:

Private Sub Form_Load()

Note that it's always the word Form, no matter what your form is called. Since every form has its own code, that event just applies to the form which that code is on.

EDIT: If you're on VB.NET, the code is a little different, and it's called YourFormName_Load() and has some stuff between the brackets.

Whatever version you're using, you can double-click on the form in the main Designer view to get to edit code for this event.

P.S. 'AllCon'?
Sep 13 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.