|
-
Apr 13th, 2008, 06:06 AM
#1
Thread Starter
New Member
[2008] error messages - <sender> and <e>
I have used VB5 for many years and have always found it adequate. Now I want to write something for the internet, and I downloaded a copy of VB Express 2008. But when I try to convert my program using the upgrade wizard, I get two error messages like this :-
Error 1 Argument not specified for parameter 'e' of 'Private Sub form1_initialize_Load(sender As Object, e As System.EventArgs)'.
C:\Program Files\Microsoft Visual Studio 9.0\golfbook\golfbook\Form1.vb 22 9 golfbook
The second message is identical, except that it refers to parameter ‘sender’. Can anyone tell me what they mean? How do I specify <sender> and <e>?
-
Apr 13th, 2008, 06:17 AM
#2
Re: [2008] error messages - <sender> and <e>
Welcome to the forums.
I, and most of the people on this forum, would strongly advice against using automatic conversion tools. You are much better of rewriting your application from scratch.
Now, onto the problem;
Are you trying to call eventhandlers directly? You should not be doing that, ever.
Eventhandlers are called automatically when the event they handle is raised.
-
Apr 13th, 2008, 09:27 AM
#3
Thread Starter
New Member
Re: [2008] error messages - <sender> and <e>
No, I am not trying to call an event handler directly. But I do want to know what <sender> and <e> mean.
jwguk
-
Apr 13th, 2008, 10:05 AM
#4
Re: [2008] error messages - <sender> and <e>
They vary depending upon the event. If you want to know exactly put a break point on the line in question e.g.
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'put break on this line
Then add a watch for sender and e.
I agree, using a converter may be more problem that it is worth.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|