Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Resource files creation and manipulation in VB

Posted on 2000-03-06
3
Medium Priority
?
156 Views
Last Modified: 2010-05-02

How resource files are used in Software development in VB projects.  How to create and manipulate the resource file in VB? Please explain the purpose of Resource files..
0
Comment
Question by:SRIVB
3 Comments
 
LVL 1

Expert Comment

by:NancyShah
ID: 2593674
A resource file allows you to collect all of the version-specific text and bitmaps for an application in one place. This can include icons, screen text, and other material that may change between localized versions or between revisions or specific configurations.

Go thro the msdn help for Resource file

0
 

Author Comment

by:SRIVB
ID: 2594768
Thank you Nancy, but i need more help for creating and manipulating resource files.  Please give step by step procedure and code for that.

0
 

Accepted Solution

by:
mbah022100 earned 50 total points
ID: 2628030
Resources are the things that Nancy listed. Take for example Icons to use for the mouse. You have to draw a icon you want to use. Now you have to start the resource editor (I hope you'll have one installed) and add the icon to the resources for your project and give it a good name.

Now if you want to switch between cursors for the mouse all you have to code is for example:

picPage.MouseIcon = LoadResPicture("curUp", vbResCursor)

The advantage is that the icons etc are included into your exeutable. so you don't have to distribute all kinds of seperate files you want to use within your apllication (with the chnage that the user distroys them). Its a clean way of adding resources to your project.

Hope this will anwes the question.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question