Click here to Skip to main content
15,891,721 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to use Compare? Pin
DaveAuld9-Sep-10 1:19
professionalDaveAuld9-Sep-10 1:19 
GeneralRe: how to use Compare? Pin
zhiyuan169-Sep-10 1:22
zhiyuan169-Sep-10 1:22 
GeneralRe: how to use Compare? Pin
Luc Pattyn9-Sep-10 1:40
sitebuilderLuc Pattyn9-Sep-10 1:40 
GeneralRe: how to use Compare? Pin
zhiyuan169-Sep-10 1:43
zhiyuan169-Sep-10 1:43 
GeneralRe: how to use Compare? Pin
Dave Kreskowiak9-Sep-10 2:20
mveDave Kreskowiak9-Sep-10 2:20 
Questionhow to align logos/watermarks on form Pin
john john mackey8-Sep-10 12:55
john john mackey8-Sep-10 12:55 
AnswerRe: how to align logos/watermarks on form Pin
Dave Kreskowiak14-Sep-10 3:59
mveDave Kreskowiak14-Sep-10 3:59 
QuestionFile Not Found Exception Pin
eddieangel8-Sep-10 9:12
eddieangel8-Sep-10 9:12 
I am having an issue where suddenly I am getting a file not found exception when populating a picturebox.

Private Sub loadimage(ByVal strImage As String)
    If isOnline Then
        Me.ToolTip1.SetToolTip(Me.pbMain, strImage)
    End If

    Try
        Me.pbMain.Image = Image.FromFile(strImage)
        Me.pbMain.SizeMode = PictureBoxSizeMode.StretchImage
    Catch fn As System.IO.FileNotFoundException
        pbMain.Image = Nothing
    End Try
End Sub


The pain of the thing is that if I can navigate to the file through Explorer using the value of strImage, it just won't load on screen. This has always worked previously, I am not entirely sure why it won't work now.

To top it off, it works fine on my development machine, so it is tough to track down why it is happening. Thoughts?
AnswerRe: File Not Found Exception Pin
Luc Pattyn8-Sep-10 10:01
sitebuilderLuc Pattyn8-Sep-10 10:01 
GeneralRe: File Not Found Exception Pin
eddieangel8-Sep-10 11:32
eddieangel8-Sep-10 11:32 
AnswerRe: File Not Found Exception Pin
Luc Pattyn8-Sep-10 11:41
sitebuilderLuc Pattyn8-Sep-10 11:41 
GeneralRe: File Not Found Exception Pin
eddieangel8-Sep-10 14:21
eddieangel8-Sep-10 14:21 
GeneralRe: File Not Found Exception Pin
Luc Pattyn8-Sep-10 14:47
sitebuilderLuc Pattyn8-Sep-10 14:47 
GeneralRe: File Not Found Exception Pin
eddieangel9-Sep-10 8:09
eddieangel9-Sep-10 8:09 
GeneralRe: File Not Found Exception Pin
Luc Pattyn9-Sep-10 10:46
sitebuilderLuc Pattyn9-Sep-10 10:46 
GeneralRe: File Not Found Exception Pin
Dave Kreskowiak8-Sep-10 18:07
mveDave Kreskowiak8-Sep-10 18:07 
GeneralRe: File Not Found Exception Pin
eddieangel9-Sep-10 7:18
eddieangel9-Sep-10 7:18 
QuestionHow to align decimal value while writing to text file in vb.net Pin
Andraw Tang8-Sep-10 3:15
Andraw Tang8-Sep-10 3:15 
AnswerRe: How to align decimal value while writing to text file in vb.net Pin
Dave Kreskowiak8-Sep-10 3:43
mveDave Kreskowiak8-Sep-10 3:43 
AnswerRe: How to align decimal value while writing to text file in vb.net Pin
Eddy Vluggen8-Sep-10 7:10
professionalEddy Vluggen8-Sep-10 7:10 
GeneralRe: How to align decimal value while writing to text file in vb.net Pin
Andraw Tang9-Sep-10 3:04
Andraw Tang9-Sep-10 3:04 
Questionevent of timer in VB6 Pin
jainiraj8-Sep-10 1:53
jainiraj8-Sep-10 1:53 
AnswerRe: event of timer in VB6 Pin
Dave Kreskowiak8-Sep-10 3:31
mveDave Kreskowiak8-Sep-10 3:31 
JokeRe: event of timer in VB6 Pin
Tom Deketelaere8-Sep-10 4:24
professionalTom Deketelaere8-Sep-10 4:24 
GeneralRe: event of timer in VB6 Pin
dan!sh 8-Sep-10 7:33
professional dan!sh 8-Sep-10 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.