26-03-14, 10:35 AM
وتستخدم الكود التالي لفتح الملف من الـ Resources


PHP كود :
Imports System.IO
Imports System.Diagnostics
PHP كود :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim pdf As Byte() = My.Resources.SamplePdf
Using tmp As New FileStream("test.pdf", FileMode.Create)
tmp.Write(pdf, 0, pdf.Length)
End Using
Process.Start("test.pdf")
End Sub


{ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ }
" Mohamed M. Bedair - " Abu Anas
Genius Live , Egypt

