Click here to Skip to main content
15,920,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Packing up an ap for the Framework Pin
Colin Angus Mackay17-Jun-04 11:22
Colin Angus Mackay17-Jun-04 11:22 
GeneralRe: Packing up an ap for the Framework Pin
Dave Kreskowiak17-Jun-04 3:50
mveDave Kreskowiak17-Jun-04 3:50 
GeneralRe: Packing up an ap for the Framework Pin
tanstaafl2817-Jun-04 6:34
tanstaafl2817-Jun-04 6:34 
GeneralRe: Packing up an ap for the Framework Pin
Dave Kreskowiak17-Jun-04 6:59
mveDave Kreskowiak17-Jun-04 6:59 
GeneralRe: Packing up an ap for the Framework Pin
tanstaafl2817-Jun-04 8:40
tanstaafl2817-Jun-04 8:40 
GeneralRe: Packing up an ap for the Framework Pin
Dave Kreskowiak17-Jun-04 11:58
mveDave Kreskowiak17-Jun-04 11:58 
GeneralRe: Packing up an ap for the Framework Pin
tanstaafl2817-Jun-04 8:51
tanstaafl2817-Jun-04 8:51 
QuestionError binding picture box? Pin
mythinky16-Jun-04 16:19
mythinky16-Jun-04 16:19 
Thanks for friends that reply my post before....
I am binding a picture box to a path... It works fine if the path is valid. Problem comes when tha path is invalid or empty...
The code that is red highlighted is where the error come out..

Private Sub BindFields()
Try
Dim b As Binding = New Binding("Image", objDView, "CoverSample")
AddHandler b.Format, AddressOf MyPictureBox_FormatImage
[B]picBook.DataBindings.Add(b)[/B]
Catch ex As Exception
MsgBox(ex.Message, , "BindFields")
End Try
End Sub

Private Sub MyPictureBox_FormatImage(ByVal sender As Object, ByVal e As ConvertEventArgs)
Try
If Trim(e.Value.ToString) <> "" Then
Dim fi As New System.IO.FileInfo(e.Value.ToString)
If fi.Exists() Then
e.Value = Image.FromFile(e.Value.ToString)
isValidPath = True
End If
End If
Catch ex As Exception
MsgBox(ex.Message, , "MyPictureBox_FormatImage")
End Try
End Sub

Learning .NET
AnswerRe: Error binding picture box? Pin
Dave Kreskowiak17-Jun-04 3:46
mveDave Kreskowiak17-Jun-04 3:46 
GeneralRe: Error binding picture box? Pin
mythinky17-Jun-04 21:57
mythinky17-Jun-04 21:57 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak18-Jun-04 10:27
mveDave Kreskowiak18-Jun-04 10:27 
GeneralRe: Error binding picture box? Pin
mythinky23-Jun-04 17:59
mythinky23-Jun-04 17:59 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak24-Jun-04 2:52
mveDave Kreskowiak24-Jun-04 2:52 
GeneralRe: Error binding picture box? Pin
mythinky24-Jun-04 18:42
mythinky24-Jun-04 18:42 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak25-Jun-04 1:20
mveDave Kreskowiak25-Jun-04 1:20 
GeneralRe: Error binding picture box? Pin
mythinky28-Jun-04 15:45
mythinky28-Jun-04 15:45 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak28-Jun-04 17:05
mveDave Kreskowiak28-Jun-04 17:05 
GeneralRe: Error binding picture box? Pin
mythinky28-Jun-04 17:21
mythinky28-Jun-04 17:21 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak29-Jun-04 1:04
mveDave Kreskowiak29-Jun-04 1:04 
GeneralRe: Error binding picture box? Pin
mythinky30-Jun-04 15:31
mythinky30-Jun-04 15:31 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak1-Jul-04 1:32
mveDave Kreskowiak1-Jul-04 1:32 
GeneralRe: Error binding picture box? Pin
mythinky5-Jul-04 15:26
mythinky5-Jul-04 15:26 
GeneralRe: Error binding picture box? Pin
Dave Kreskowiak6-Jul-04 23:49
mveDave Kreskowiak6-Jul-04 23:49 
GeneralRe: Error binding picture box? Pin
mythinky11-Jul-04 23:04
mythinky11-Jul-04 23:04 
QuestionError send email? Pin
mythinky16-Jun-04 16:03
mythinky16-Jun-04 16:03 

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.