Results 1 to 6 of 6

Thread: resources

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    10

    resources

    could anyone help me with, easiest way to map resources to a button.

    i have resources added in my project. when i click on a button call " open tutorial" i want it to open this resource. its(the resource is) a power point presentation.

    thank you

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: resources

    How exactly have you added this file to your project?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    10

    Re: resources

    well, they are under a folder... i havnt created this program, am just editing some part of it. i dont mind if i have to relocate the resource file and then map it.. i could copy and paste it to another location if i should

    thanks

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: resources

    What version of VB? Please use the radio buttons provided to specify when creating a new thread.

    Can you see the files on the Resources tab of the project properties or have they just been added to the project with their Build Action property set to Embedded Resource?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    10

    Re: resources

    i can see them in my resources tab. and i am using visual studio 2005

    thanks

    i didnt get you, what you mean by use radio buttons when creating a new thread please.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: resources

    If the file is present in the Resources tab then you can access it via My.Resources in code. What is the type of the property by which you access it? It will likely be Byte() or UnamanagedMemoryStream or the like.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width