473,378 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
MissingManifestResourceException 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!!

Jul 10 '06 #1
8 1629
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

<jp*******@mileskimball.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.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
MissingManifestResourceException 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!!

Jul 10 '06 #2
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
"jp*******@mileskimball.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
MissingManifestResourceException 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!!

Jul 10 '06 #3
I tried sending you the source but you email server rejected it as 'Unsafe'

"Samuel Shulman" <sa************@ntlworld.comwrote in message
news:O4****************@TK2MSFTNGP04.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

<jp*******@mileskimball.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.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
MissingManifestResourceException 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!!


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

Jul 11 '06 #5
Here's a code sample. It errors out when it hits the line with the
InputBox

Public Sub msMailDate(ByRef 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("Please enter the mail date", "Mail
Date", Date.Now)

If IsDate(sMailDate) Then
dtMailDate = CDate(sMailDate)
Me.StatusBarPanel1.Text = "Mail Date " &
dtMailDate.Date
bIsDate = True
ElseIf sMailDate = "" Then
Quit = True
Exit Sub
ElseIf Not (IsDate(sMailDate)) Then
bIsDate = False
End If
Loop
End Sub

Jul 11 '06 #6
Try changing the "Date.Now" to "Date.Now.ToShortDateString" since the InputBox default is looking for a string not a date.

--
Al Reid

<jp*******@mileskimball.comwrote in message news:11**********************@p79g2000cwp.googlegr oups.com...
Here's a code sample. It errors out when it hits the line with the
InputBox

Public Sub msMailDate(ByRef 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("Please enter the mail date", "Mail
Date", Date.Now)

If IsDate(sMailDate) Then
dtMailDate = CDate(sMailDate)
Me.StatusBarPanel1.Text = "Mail Date " &
dtMailDate.Date
bIsDate = True
ElseIf sMailDate = "" Then
Quit = True
Exit Sub
ElseIf Not (IsDate(sMailDate)) Then
bIsDate = False
End If
Loop
End Sub

Jul 11 '06 #7
Actaully it doesn't matter what I pass in or expect out, anything fails
to execute.

Jul 11 '06 #8

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.

Jul 11 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: news.microsoft.com | last post by:
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: ...
2
by: missimaths | last post by:
I was wondering if anyone knew of a way to control the text a user types into an inputbox? I want the user to type in four letters only. I can check the lenght by using the len() function in vba...
6
by: Mori | last post by:
Hi, What can I use for the equivalent VB InputBox to get a string from the user? thanks, Mori
1
by: Hans Kamp | last post by:
How do I use InputBox? private void addButton_Click(object sender, System.EventArgs e) { string newName; newName = InputBox("t1", "t2", "t3"); namesListBox.Items.Add(newName); }
1
by: | last post by:
When trying to use the InputBox function I get the error "InputBox is a namespace and therefore is not a valid expression". Can anyone tell me what the problem is? Thanks.
1
by: Rich | last post by:
I'm having problems upgrading to 2005 Trial from 2000 Standard Edition. Despite the ms docs saying this was a valid upgrade path and running the upgrade advisor which did not highlight a...
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
2
by: KR | last post by:
Hi, We are running a test upgrade form sql 2000 standard edition to sql 2005 developer edition. Followed through all the steps and specified the account(SA priveleges and currently used by the...
1
by: Tony WONG | last post by:
i have asp program to input data to SQL server before. now i wish to upgrade to asp.net but i don't really like to make use of detail view how can i bind the inputbox to the sql server data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.