UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#17674 - 05/26/02 12:11 AM Error
CyberNerd Offline
Member

Registered: 05/17/02
Posts: 189
Loc: Here
Im a total newbie programmer and although im sure it wasnt the best choice i picked visual basic to be my first language. Im using microsoft visual studio 6.0 and a book called Starting with visual basic, im doing a practice lesson right out of the book and I wrote everything correctly and i keep getting a compiling error with one line

Private Sub Form_Load()

i have the smallest bit of knowledge possible on the subject but unless i find out whats going on i cant progress. so my question is, does anyone know whats going on?
_________________________
Just because I dont care doesn't mean that I don't understand.
-Homer Simpson

Top
Sponsored Links
      
#17675 - 05/26/02 09:10 AM Re: Error
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
that line is not the line you're getting an error on. When you execute the program from within VB, it first goes to the Form_Load section and compiles it for execution. But it detected an error and could not compile - so it it showed you the section (procedure) that it had a problem with. But there should also be another word or line that is highlighted and a error message discribing what's wrong. Post the error message and I'll explain what it means.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17676 - 05/26/02 11:18 AM Re: Error
CyberNerd Offline
Member

Registered: 05/17/02
Posts: 189
Loc: Here
Error:

Ambiguous name detected: Form_Load
_________________________
Just because I dont care doesn't mean that I don't understand.
-Homer Simpson

Top
#17677 - 05/27/02 12:08 PM Re: Error
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Well isn't that peculiar. I gotta take 2 minutes to go lookup the error for a description in the MSDN...

"More than one object in the same scope may have elements with the same name. Qualify the element name by including the object name and a period."

Actually, it took me 1.5 minutes. Ahem...

The problem may be that you have "Private Sub Form_Load()" more than once. Or maybe you have "Form_Load" more than once in your code used as variables or something. This fact may be hidden from you. Open the code window and look at the two buttons at the lower left corner of the code panel. If you hover your mouse over the left button, it'll say "Procedure View", the other being "Full Module View". You want "Full Module View" button to be pressed down. The duplicate code could also be in a module (a module is for raw code which isn't "contained" in a window)

If you STILL can't solve it, then open your Form1.frm file in notepad (or whatever you named your form file). Copy the entire contents and paste them into a post.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17678 - 05/27/02 03:48 PM Re: Error
CyberNerd Offline
Member

Registered: 05/17/02
Posts: 189
Loc: Here
ok, thanks thats a step in the right direction
_________________________
Just because I dont care doesn't mean that I don't understand.
-Homer Simpson

Top

Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2152 Members
46 Forums
36292 Topics
71462 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29453
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
cdefgh368568, HushHush, golqm, Tim050, Gecko666
2151 Registered Users
Who's Online
0 registered (), 303 Guests and 318 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!