Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why can't I view the code at startup?

6 views
Skip to first unread message

NadCixelsyd

unread,
Apr 1, 2013, 9:28:20 AM4/1/13
to
This happens on some source programs.

I open VB6. I then open a program. When I click "view", "code" is
not a selectable option. I can't look at the code that I have
previously written.

I then click "Debug" thence "step into" and, voila, the code is not
visible and the "Private Sub Form_Load()" is highlighted.

So why, for some programs, is the source code invisible when I load
the open the program?

Jim Mack

unread,
Apr 1, 2013, 10:00:16 AM4/1/13
to
Maybe I'm misreading your issue, but a VB6 'program' doesn't have any
code. Only forms, classes, modules etc have code. Once you select an
individual code-containing object like a form, the View...Code... option
should become enabled.

--
Jim

ralph

unread,
Apr 1, 2013, 10:32:10 AM4/1/13
to
On Mon, 1 Apr 2013 06:28:20 -0700 (PDT), NadCixelsyd
<nadci...@aol.com> wrote:

>This happens on some source programs.
>

Seems a simple answer, until one re-reads your post ... <g>

Mack has a good observation ...

Perhaps the Setup Object is not what you expect it to be. You can go
into configuration and change it.

Is this a group project?

Note the default location is the _Load event when an object is set as
startup. However, you can change that location using the upper-right
procedure combobox on the edit window. Might try setting a different
location there.


>I open VB6. I then open a program. When I click "view", "code" is
>not a selectable option. I can't look at the code that I have
>previously written.
>

What is visible? If a Form then a right-click should bring up a
context menu ... but you say the "View Code" is not a "selectable
option". Does that mean the option is visible, but is greyed-out, or
not visible, ie, missing?

If the former (visible, but greyed-out), then check if the source is
read-only or some other way protected (using a SCCS for example).

If "missing", then you may need to rebuild the IDE menus/buttons.

1. Unload all Addins. (Optional - see below)
2. Right-click on any toolbar and select the Customize... menu.
3. For each toolbar click the Reset button.
4. Reload the add-ins.
Often you don't have to unload all the Addins. First try to reset the
toolbars, if that doesn't work, unload the Addins and try again.

In addition to the context menu you should be able to simply
double-click the Form.

-ralph
0 new messages