Click here to Skip to main content
15,921,837 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Lost Feature in VB Pin
udatl2-Jan-09 16:25
udatl2-Jan-09 16:25 
GeneralRe: Lost Feature in VB Pin
TheComputerMan3-Jan-09 4:28
TheComputerMan3-Jan-09 4:28 
QuestionWant to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
Nattumakkan2-Jan-09 5:37
Nattumakkan2-Jan-09 5:37 
AnswerRe: Want to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
TheComputerMan2-Jan-09 6:46
TheComputerMan2-Jan-09 6:46 
AnswerRe: Want to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
dan!sh 2-Jan-09 8:26
professional dan!sh 2-Jan-09 8:26 
QuestionFile in use error Pin
TheComputerMan2-Jan-09 5:04
TheComputerMan2-Jan-09 5:04 
AnswerRe: File in use error Pin
Jon_Boy2-Jan-09 5:11
Jon_Boy2-Jan-09 5:11 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 5:21
TheComputerMan2-Jan-09 5:21 
Thanks for responding.

No nothing else is using the file. It just gets placed in the picture box:

Try
    Me.PictureBox1.BackgroundImage = GetAvatar(ContactID)
    Me.cmdDeleteImage.Enabled = True
Catch ex As Exception
    Me.cmdDeleteImage.Enabled = False
End Try


Where GetAvatar =

Friend Function GetAvatar(ByVal ContactID As Integer) As Drawing.Image
    Dim pict As Drawing.Image
    'This just collects a file name
    Dim strFilename As String = cDBHandler.ExtractContactImage(ContactID)

    Try

        If strFilename.Trim > "" Then
            pict = Drawing.Image.FromFile(strFileName)
        Else
            pict = My.Resources.nouserpic_grey
        End If

    Catch ex As Exception

        pict = My.Resources.nouserpic_grey

    End Try
    Return pict
End Function


Might it be because it ic alled in from another routine?? Confused | :confused:
GeneralRe: File in use error Pin
Jon_Boy2-Jan-09 5:30
Jon_Boy2-Jan-09 5:30 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 6:24
TheComputerMan2-Jan-09 6:24 
GeneralRe: File in use error Pin
Jon_Boy2-Jan-09 7:04
Jon_Boy2-Jan-09 7:04 
GeneralRe: File in use error Pin
Christian Graus2-Jan-09 5:45
protectorChristian Graus2-Jan-09 5:45 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 6:22
TheComputerMan2-Jan-09 6:22 
GeneralRe: File in use error Pin
Luc Pattyn2-Jan-09 7:00
sitebuilderLuc Pattyn2-Jan-09 7:00 
AnswerRe: File in use error Pin
Dave Kreskowiak2-Jan-09 6:21
mveDave Kreskowiak2-Jan-09 6:21 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 6:25
TheComputerMan2-Jan-09 6:25 
GeneralRe: File in use error [modified] Pin
TheComputerMan2-Jan-09 6:44
TheComputerMan2-Jan-09 6:44 
GeneralRe: File in use error Pin
Fabio V Silva2-Jan-09 11:53
Fabio V Silva2-Jan-09 11:53 
GeneralRe: File in use error Pin
TheComputerMan3-Jan-09 4:20
TheComputerMan3-Jan-09 4:20 
GeneralNext Inner Pin
dadashri2-Jan-09 1:44
dadashri2-Jan-09 1:44 
GeneralRe: Next Inner Pin
TheComputerMan2-Jan-09 5:10
TheComputerMan2-Jan-09 5:10 
GeneralRe: Next Inner Pin
Dave Kreskowiak2-Jan-09 6:14
mveDave Kreskowiak2-Jan-09 6:14 
GeneralRe: Next Inner Pin
TheComputerMan2-Jan-09 6:47
TheComputerMan2-Jan-09 6:47 
GeneralRe: Next Inner Pin
Dave Kreskowiak2-Jan-09 6:15
mveDave Kreskowiak2-Jan-09 6:15 
NewsSchool Library System Software RUN-TIME error 713 Pin
dadashri2-Jan-09 1:36
dadashri2-Jan-09 1:36 

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.