InputBox problems after upgrade

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jpoquette@mileskimball.com

    #1

    InputBox problems after upgrade

    I have recently upgraded a Visual Basic 2003 win forms application to
    2005. After doing so I can no longer get my project to compile. The
    code is bombing on any line that uses an InputBox. I'm getting a
    MissingManifest ResourceExcepti on unhandled Exception.

    I've read several postings and tried various things, but I can not get
    anything to work. I've also created a new 2005 project from scratch,
    added an InputBox in code, and I still receive the same error.

    Does anyone know how to fix this situation?

    Your help is greatly appreciated!!

  • Samuel Shulman

    #2
    Re: InputBox problems after upgrade

    There is one simple solution and that's to implement one yourself it is not
    too difficult and I can send you some source code

    hth,
    Samuel Shulman

    <jpoquette@mile skimball.comwro te in message
    news:1152554104 .573485.59950@7 5g2000cwc.googl egroups.com...
    >I have recently upgraded a Visual Basic 2003 win forms application to
    2005. After doing so I can no longer get my project to compile. The
    code is bombing on any line that uses an InputBox. I'm getting a
    MissingManifest ResourceExcepti on unhandled Exception.
    >
    I've read several postings and tried various things, but I can not get
    anything to work. I've also created a new 2005 project from scratch,
    added an InputBox in code, and I still receive the same error.
    >
    Does anyone know how to fix this situation?
    >
    Your help is greatly appreciated!!
    >

    Comment

    • Terry

      #3
      RE: InputBox problems after upgrade

      Hi,
      I just tried using the InputBox function and it works fine. What do you
      mean by "added an InputBox in code"? Can you post some code from the new
      project that shows the problem?
      --
      Terry


      "jpoquette@mile skimball.com" wrote:
      I have recently upgraded a Visual Basic 2003 win forms application to
      2005. After doing so I can no longer get my project to compile. The
      code is bombing on any line that uses an InputBox. I'm getting a
      MissingManifest ResourceExcepti on unhandled Exception.
      >
      I've read several postings and tried various things, but I can not get
      anything to work. I've also created a new 2005 project from scratch,
      added an InputBox in code, and I still receive the same error.
      >
      Does anyone know how to fix this situation?
      >
      Your help is greatly appreciated!!
      >
      >

      Comment

      • Samuel Shulman

        #4
        Re: InputBox problems after upgrade

        I tried sending you the source but you email server rejected it as 'Unsafe'



        "Samuel Shulman" <samuel.shulman @ntlworld.comwr ote in message
        news:O45Y%239Ep GHA.1592@TK2MSF TNGP04.phx.gbl. ..
        There is one simple solution and that's to implement one yourself it is
        not too difficult and I can send you some source code
        >
        hth,
        Samuel Shulman
        >
        <jpoquette@mile skimball.comwro te in message
        news:1152554104 .573485.59950@7 5g2000cwc.googl egroups.com...
        >>I have recently upgraded a Visual Basic 2003 win forms application to
        >2005. After doing so I can no longer get my project to compile. The
        >code is bombing on any line that uses an InputBox. I'm getting a
        >MissingManifes tResourceExcept ion unhandled Exception.
        >>
        >I've read several postings and tried various things, but I can not get
        >anything to work. I've also created a new 2005 project from scratch,
        >added an InputBox in code, and I still receive the same error.
        >>
        >Does anyone know how to fix this situation?
        >>
        >Your help is greatly appreciated!!
        >>
        >
        >

        Comment

        • jpoquette@mileskimball.com

          #5
          Re: InputBox problems after upgrade

          I was able to retrieve you attachment from our email server, so I'm
          going to try it now and see how it works.

          Comment

          • jpoquette@mileskimball.com

            #6
            Re: InputBox problems after upgrade

            Here's a code sample. It errors out when it hits the line with the
            InputBox

            Public Sub msMailDate(ByRe f Quit As Boolean)

            '************** *************** *************** *************** ******
            'Author XXX
            'Date Created 5/23/2005
            'Purpose Used to change mail date

            '************** *************** *************** *************** ******
            Dim sMailDate As String
            Dim bIsDate As Boolean = False
            Do Until bIsDate = True

            sMailDate = InputBox("Pleas e enter the mail date", "Mail
            Date", Date.Now)

            If IsDate(sMailDat e) Then
            dtMailDate = CDate(sMailDate )
            Me.StatusBarPan el1.Text = "Mail Date " &
            dtMailDate.Date
            bIsDate = True
            ElseIf sMailDate = "" Then
            Quit = True
            Exit Sub
            ElseIf Not (IsDate(sMailDa te)) Then
            bIsDate = False
            End If
            Loop
            End Sub

            Comment

            • Al Reid

              #7
              Re: InputBox problems after upgrade

              Try changing the "Date.Now" to "Date.Now.ToSho rtDateString" since the InputBox default is looking for a string not a date.

              --
              Al Reid

              <jpoquette@mile skimball.comwro te in message news:1152643045 .600969.268620@ p79g2000cwp.goo glegroups.com.. .
              Here's a code sample. It errors out when it hits the line with the
              InputBox
              >
              Public Sub msMailDate(ByRe f Quit As Boolean)
              >
              '************** *************** *************** *************** ******
              'Author XXX
              'Date Created 5/23/2005
              'Purpose Used to change mail date
              >
              '************** *************** *************** *************** ******
              Dim sMailDate As String
              Dim bIsDate As Boolean = False
              Do Until bIsDate = True
              >
              sMailDate = InputBox("Pleas e enter the mail date", "Mail
              Date", Date.Now)
              >
              If IsDate(sMailDat e) Then
              dtMailDate = CDate(sMailDate )
              Me.StatusBarPan el1.Text = "Mail Date " &
              dtMailDate.Date
              bIsDate = True
              ElseIf sMailDate = "" Then
              Quit = True
              Exit Sub
              ElseIf Not (IsDate(sMailDa te)) Then
              bIsDate = False
              End If
              Loop
              End Sub
              >

              Comment

              • jpoquette@mileskimball.com

                #8
                Re: InputBox problems after upgrade

                Actaully it doesn't matter what I pass in or expect out, anything fails
                to execute.

                Comment

                • jpoquette@mileskimball.com

                  #9
                  Re: InputBox problems after upgrade


                  My fix was to move my solution to my hard drive instead of running it
                  off a network drive. I'm going to do a little more research on why
                  this is, but it boils down to security when trying to execute an
                  assembly that is not on your hard drive.

                  Comment

                  Working...