Skip to main content

AccessTr.neT


Etiketler
Yazar: Uğur ŞİRİN - Cevaplar: 3 - İzleme: 2011
Win32Exception Was Unhandled. Nerede Hata Yapıyorum ?
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim strPDFFile As String = Dir("d:\Test.pdf")
Dim PrintPDFFile As New ProcessStartInfo

Do Until strPDFFile Is Nothing
PrintPDFFile.UseShellExecute = True
PrintPDFFile.Verb = "print"
PrintPDFFile.WindowStyle = ProcessWindowStyle.Hidden
PrintPDFFile.FileName = strPDFFile
Process.Start(PrintPDFFile)
strPDFFile = Dir()
Loop

End Sub
End Class

bu kodda
Yazar: ercens - Cevaplar: 12 - İzleme: 2723
İo Exception Was Unhandled Hatası
merhaba,

Kod:
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click

        PictureBox1.Image = Nothing
        guncelle()
        Dim Hedef As String
        yol = Directory.GetCurrentDirectory()
        Hedef = yol + "\resim\\" + Me.TextBox2.Text + ".jpg"
        Kill(Hedef)
        TextBox9.Text = Hedef

        Kill(Hedef)


     
    End Sub

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif
Task