Results 1 to 4 of 4

Thread: [2008] error messages - <sender> and <e>

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    2

    [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>?

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    2

    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

  4. #4
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    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.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width