Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / July 2003

Tip: Looking for answers? Try searching our database.

Odd problem with InputBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 10 Jul 2003 22:17 GMT
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("TESTPROMPT"), I get the following error:

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

System.ComponentModel.Win32Exception: Class already exists
  at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
  at NexGen.Environment.RaiseSpecialEvent(String& strAction, Object&
objSender) in Z:\Source Code\Presentation
Tier\VB.NET\NexGen.Environment\Environment.vb:line 73
  at AMC.frmMain.frmMain_Load(Object sender, EventArgs e) in Z:\Source
Code\Presentation Tier\VB.NET\NexGen.AMC\frmMain.vb:line 2517
  at System.Windows.Forms.Form.OnLoad(EventArgs e)
  at System.Windows.Forms.Form.OnCreateControl()
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.Control.CreateControl()
  at System.Windows.Forms.Control.WmShowWindow(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  at System.Windows.Forms.Form.WmShowWindow(Message& m)
  at System.Windows.Forms.Form.WndProc(Message& m)
  at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

any ideas?

TIA
Nick Jacobsen
njacobsen@pfastship.com
Herfried K. Wagner - 10 Jul 2003 22:22 GMT
Hello,

"news.microsoft.com" <njacobsen@pfastship.com> schrieb:
> 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("TESTPROMPT"), I get the following error:

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
http://www.mvps.org/dotnet
news.microsoft.com - 10 Jul 2003 22:27 GMT
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@pfastship.com

> Hello,
>
[quoted text clipped - 14 lines]
> MVP ? VB Classic, VB .NET
> http://www.mvps.org/dotnet

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.