KKS21199's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 6 (0.02 per day)
- Joined:
- 23-June 12
- Profile Views:
- 105
- Last Active:
Jun 27 2012 01:19 AM- Currently:
- Offline
Previous Fields
- Country:
- Who Cares
- OS Preference:
- Who Cares
- Favorite Browser:
- Who Cares
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: How to make a save file from resouces in vb 10
Posted 25 Jun 2012
Bort, on 25 June 2012 - 07:27 AM, said:What you want is SaveFileDialog() but I'll let you figure out how to use it yourself.
We provide help, clarification, and assistance. We do not write code for you.
Guy after days i find out that i can upload files to resources
But still i am stuck i found the codes but its not working
Public Class Form1 Private Sub button1_Click(sender As Object, e As System.EventArgs) myStream = saveFileDialog1.OpenFile() If (myStream IsNot Nothing) Then ' Code to write the stream goes here. myStream.Close() End If PathName = saveFileDialog1.Filename Dim b() As Byte = My.Resources.resourcename System.IO.File.WriteAllBytes(pathname,B)/> End sub end class
if it is fully done
With my resourcename as universe "the file i attached
Public Class Form1 Private Sub button1_Click(sender As Object, e As System.EventArgs) myStream = saveFileDialog1.OpenFile() If (myStream IsNot Nothing) Then ' Code to write the stream goes here. myStream.Close() End If PathName = saveFileDialog1.Filename Dim b() As Byte = My.Resources.Universe System.IO.File.WriteAllBytes("C:/Users/User 1/Destkop",B)/> End sub end class
but something is still wrong
dont also lock this topic
i juz want a small answer
i also found a new thng
Private Sub button1_Click(sender As Object, e As System.EventArgs) Dim myStream As Stream Dim saveFileDialog1 As New SaveFileDialog() saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" saveFileDialog1.FilterIndex = 2 saveFileDialog1.RestoreDirectory = True If saveFileDialog1.ShowDialog() = DialogResult.OK Then myStream = saveFileDialog1.OpenFile() If (myStream IsNot Nothing) Then ' Code to write the stream goes here. myStream.Close() End If End If End Sub
But where to put my resource name
thats my problem
*Fixed Codes*
Public Class form1 Private Sub button1_Click(sender As Object, e As System.EventArgs) myStream = saveFileDialog1.OpenFile() If (myStream IsNot Nothing) Then ' Code to write the stream goes here. myStream.Close() End If PathName = saveFileDialog1.Filename Dim b() As Byte = My.Resources.resourcename System.IO.File.WriteAllBytes(pathname,B)/> End Sub End Class
if it is fully done
With my resourcename as universe "the file i attached
Public Class form1 Private Sub button1_Click(sender As Object, e As System.EventArgs) myStream = saveFileDialog1.OpenFile() If (myStream IsNot Nothing) Then ' Code to write the stream goes here. myStream.Close() End If PathName = saveFileDialog1.Filename Dim b() As Byte = My.Resources.Universe System.IO.File.WriteAllBytes("C:/Users/User 1/Destkop",B)/> End Sub End Class -
In Topic: Juz want know how to replace a file in vb10
Posted 25 Jun 2012
I finally found it out.
i can add my files to resources.
so anyone can save it
Dim b() As Byte = My.Resources.resourcename 'use the name of the resource instead of resourcename System.IO.File.WriteAllBytes("C:/users/user1/destkop",B)/>
but i still have problems
it only save the drectory i choose n it says that yo dont have permission to access the path some times
i want a save directory to pop up so they can choose the fle path
can you give me codes please
and for resourcename pt any file name that uploaded -
In Topic: Juz want know how to replace a file in vb10
Posted 24 Jun 2012
sela007, on 24 June 2012 - 04:12 AM, said:use copy file method
No i want to attach my file to vb or c++ or c# 2010 express so when someone clicks a button it will replace theirs with mine.
Please could anyone help me
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Years Programming:
- 1
- Programming Languages:
- VB , C# ,C++
Contact Information
- E-mail:
- Private
- Website URL:
-
http://tutofsag.webstarts.com
- Facebook:
- https://www.facebook.com/MiztaZino
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
KKS21199 has no profile comments yet. Why not say hello?