Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18013
Number of posts: 55386

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to attach a file in VB application and make the user to download Posted by KKS21199 on 27 Jun 2012 at 2:40 AM
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 directory i choose n it says that yo dont have permission to access the path some times

i want a save dialog to pop up so they can choose the file path

can you give me codes please


and for resourcename pt any file name that uploaded



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.