(20-03-14, 08:01 PM)bosqah كتب : واسف عللى الازعاج
وشكرا
فهمتك أخي ... ولا يوجد إزعاج إطلاقا ... نحن في خدماتك ... وفي هذا المنتدي الكل يساعد الكل

هذا الكود يستخدم لحفظ ملف موجود بالـ resources الي المسار التي تريده بإستخدام SaveFileDialog
علي سبيل المثال الملف بصيغة pdf
PHP كود :
Using sfd As New SaveFileDialog
With sfd
.AddExtension = True
.DefaultExt = ".pdf"
.Filter = "Portable Document Files (*.pdf)|*.pdf"
.FilterIndex = 1
.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocuments
.Title = "Select The Location To Save This PDF File"
.ValidateNames = True
End With
If sfd.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim b As Byte() = My.Resources.اسم الملف
My.Computer.FileSystem.WriteAllBytes(sfd.FileName, b, False)
End If
End Using
علي الرحب والسعة


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

