|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
InputBox problems after upgradeI 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!! 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 <jpoque***@mileskimball.com> wrote in message Show quoteHide quote news:1152554104.573485.59950@75g2000cwc.googlegroups.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!! > I tried sending you the source but you email server rejected it as 'Unsafe'
Show quoteHide quote "Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message news:O45Y%239EpGHA.1592@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 > > <jpoque***@mileskimball.com> wrote in message > news:1152554104.573485.59950@75g2000cwc.googlegroups.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!! >> > > I was able to retrieve you attachment from our email server, so I'm
going to try it now and see how it works. 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? -- Show quoteHide quoteTerry "jpoque***@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!! > > 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 Try changing the "Date.Now" to "Date.Now.ToShortDateString" since the InputBox default is looking for a string not a date.
-- Show quoteHide quoteAl Reid <jpoque***@mileskimball.com> wrote in message news:1152643045.600969.268620@p79g2000cwp.googlegroups.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 > Actaully it doesn't matter what I pass in or expect out, anything fails
to execute. 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.
variable usage
combobox gives unexpected cast error Redrawing graphics in userControl - Button regular expression problem Get Icon from CallingAssembly (or ...) ListView iteration order Don't understand this warning message window application refresh every minute Scrolling columns in datagrid Splash Screens and Windows 2000 |
|||||||||||||||||||||||