Solved

Resource files creation and manipulation in VB

Posted on 2000-03-06
3
148 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 25 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now