Odd problem with InputBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news.microsoft.com

    Odd problem with InputBox

    hey all, I am having an odd problem with the InputBox in VB.NET, and it ONLY
    happens on one of my computers. When I try "Dim x as String =
    InputBox("TESTP ROMPT"), I get the following error:

    ----------------------------------------------------------------------------
    ----
    [Exception Details]
    ----------------------------------------------------------------------------
    ----

    System.Componen tModel.Win32Exc eption: Class already exists
    at Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateGet(O bject o,
    Type objType, String name, Object[] args, String[] paramnames, Boolean[]
    CopyBack)
    at NexGen.Environm ent.RaiseSpecia lEvent(String& strAction, Object&
    objSender) in Z:\Source Code\Presentati on
    Tier\VB.NET\Nex Gen.Environment \Environment.vb :line 73
    at AMC.frmMain.frm Main_Load(Objec t sender, EventArgs e) in Z:\Source
    Code\Presentati on Tier\VB.NET\Nex Gen.AMC\frmMain .vb:line 2517
    at System.Windows. Forms.Form.OnLo ad(EventArgs e)
    at System.Windows. Forms.Form.OnCr eateControl()
    at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
    at System.Windows. Forms.Control.C reateControl()
    at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
    at System.Windows. Forms.Control.W ndProc(Message& m)
    at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
    at System.Windows. Forms.Container Control.WndProc (Message& m)
    at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
    at System.Windows. Forms.Form.WndP roc(Message& m)
    at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
    at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
    at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
    IntPtr wparam, IntPtr lparam)


    any ideas?


    TIA
    Nick Jacobsen
    njacobsen@pfast ship.com


  • Herfried K. Wagner

    #2
    Re: Odd problem with InputBox

    Hello,

    "news.microsoft .com" <njacobsen@pfas tship.com> schrieb:[color=blue]
    > hey all, I am having an odd problem with the InputBox in VB.NET, and it[/color]
    ONLY[color=blue]
    > happens on one of my computers. When I try "Dim x as String =
    > InputBox("TESTP ROMPT"), I get the following error:[/color]

    What version of .NET do you use? What operating system?

    I do not recommend to use the InputBox function because it doesn't properly
    localize the buttons' captions for other languages than English (.NET 1.0).

    Regards,
    Herfried K. Wagner
    --
    MVP · VB Classic, VB .NET
    Die Website von H. Wagner zu .NET, Visual Basic .NET und Classic Visual Basic.



    Comment

    • news.microsoft.com

      #3
      Re: Odd problem with InputBox

      Sorry, Windows 2000 Service Pack 4, both 1.0 and 1.1 of the .Net Framework.
      Is there a different single line solution you would use for user input?

      Nick J
      njacobsen@pfast ship.com

      "Herfried K. Wagner" <aon.912666908. N.O.S.P.@.M.aon .at> wrote in message
      news:%23uC1DmyR DHA.2768@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Hello,
      >
      > "news.microsoft .com" <njacobsen@pfas tship.com> schrieb:[color=green]
      > > hey all, I am having an odd problem with the InputBox in VB.NET, and it[/color]
      > ONLY[color=green]
      > > happens on one of my computers. When I try "Dim x as String =
      > > InputBox("TESTP ROMPT"), I get the following error:[/color]
      >
      > What version of .NET do you use? What operating system?
      >
      > I do not recommend to use the InputBox function because it doesn't[/color]
      properly[color=blue]
      > localize the buttons' captions for other languages than English (.NET[/color]
      1.0).[color=blue]
      >
      > Regards,
      > Herfried K. Wagner
      > --
      > MVP · VB Classic, VB .NET
      > http://www.mvps.org/dotnet
      >
      >[/color]


      Comment

      Working...