Results 1 to 6 of 6
  1. #1
    ySoNoob's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    United States
    Posts
    622
    Reputation
    31
    Thanks
    2,250
    My Mood
    Fine

    open resource in VB

    Hello I want to open a resouced I added in my vb project but it wont open!
    this is what ive tried! IO.File.WriteAllBytes(filePath, My.Resources.TheResourceHere)



  2. #2
    Chrome Boy's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Freedom
    Posts
    1,437
    Reputation
    10
    Thanks
    5,133
    My Mood
    Devilish
    If you mean how to add a resource to your project go on project and in buttom you will see ( your project name ) properties then you will see lots of tabs on left click on resources and add your file :P.



  3. #3
    ySoNoob's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    United States
    Posts
    622
    Reputation
    31
    Thanks
    2,250
    My Mood
    Fine
    Quote Originally Posted by Chrome Boy View Post
    If you mean how to add a resource to your project go on project and in buttom you will see ( your project name ) properties then you will see lots of tabs on left click on resources and add your file :P.
    ik how to add it!
    I want to be open it up via button click!



  4. #4
    Riddick's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Delusional
    Posts
    7,704
    Reputation
    529
    Thanks
    5,193
    My Mood
    Devilish
    Quote Originally Posted by ySoNoob View Post
    Hello I want to open a resouced I added in my vb project but it wont open!
    this is what ive tried! IO.File.WriteAllBytes(filePath, My.Resources.TheResourceHere)
    Setup your project so that the file is available in your build directory. Project + Add Existing Item and pick your file. Select the added file and set its Build property to Content (so it gets installed with the rest of your files) and its Copy to Output Directory to "Copy if Newer" (so it gets copied to your build directory).

  5. The Following 2 Users Say Thank You to Riddick For This Useful Post:

    tryhardd (04-30-2013),ySoNoob (04-28-2013)

  6. #5
    Chrome Boy's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Freedom
    Posts
    1,437
    Reputation
    10
    Thanks
    5,133
    My Mood
    Devilish
    Oh kk I'm on phone so couldn't type the full code so check this video YouTube it shows you how to do it skip to 0:50 sec



  7. The Following User Says Thank You to Chrome Boy For This Useful Post:

    ySoNoob (04-28-2013)

  8. #6
    ySoNoob's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    United States
    Posts
    622
    Reputation
    31
    Thanks
    2,250
    My Mood
    Fine
    Quote Originally Posted by Riddick View Post
    Setup your project so that the file is available in your build directory. Project + Add Existing Item and pick your file. Select the added file and set its Build property to Content (so it gets installed with the rest of your files) and its Copy to Output Directory to "Copy if Newer" (so it gets copied to your build directory).
    please explain how more!

    ---------- Post added at 07:27 PM ---------- Previous post was at 07:15 PM ----------

    still didn't help im trying to open a file (.exe) via Button!

    ---------- Post added at 07:54 PM ---------- Previous post was at 07:27 PM ----------

    its ok I found out in Programmersection /Solved @Riddick



Similar Threads

  1. [Help Request] Open Resource
    By ySoNoob in forum Visual Basic Programming
    Replies: 8
    Last Post: 04-29-2013, 01:27 PM
  2. easy AoE1 resource hack
    By oowatsthat in forum Hack Requests
    Replies: 1
    Last Post: 05-02-2006, 09:13 PM
  3. Opening 5-8 Slots
    By ClapBangKiss in forum WarRock - International Hacks
    Replies: 28
    Last Post: 05-02-2006, 05:27 PM
  4. I cant open WPE
    By ValconGSX in forum WarRock - International Hacks
    Replies: 8
    Last Post: 01-17-2006, 05:10 PM