Visual Basic Dosya Gömme Nasıl Yapabilirim Yardım Edermisiniz ? Visual Basic 2010 kullanıyorum.
Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
Visual Basic Dosya Gömme Nasıl Yapabilirim Yardım Edermisiniz ? Visual Basic 2010 kullanıyorum.
Gömecegın dosyayı resource edeceksın.
Bunu yaptım gömeceğim butona yazacağım kod nedir ?
[FONT=verdana][COLOR=blue]Private Sub[/COLOR] Command1_Click()
Dim resbytes() As Byte
resbytes = LoadResData(101, "CUSTOM")
Dim no As Byte
no = FreeFile
Open App.Path & "[COLOR=green]\\Dosyamın_Adı.TXT[/COLOR]" For Binary As #no
Put #no, , resbytes
Close #no
Shell App.Path & "[COLOR=green]\\Dosyamın_Adı.TXT[/COLOR]", vbNormalFocus
[COLOR=blue]End Sub[/COLOR][/FONT]
Kod:[FONT=verdana][COLOR=blue]Private Sub[/COLOR] Command1_Click() Dim resbytes() As Byte resbytes = LoadResData(101, "CUSTOM") Dim no As Byte no = FreeFile Open App.Path & "[COLOR=green]\\Dosyamın_Adı.TXT[/COLOR]" For Binary As #no Put #no, , resbytes Close #no Shell App.Path & "[COLOR=green]\\Dosyamın_Adı.TXT[/COLOR]", vbNormalFocus [COLOR=blue]End Sub[/COLOR][/FONT]