Re: Use of Resource File

Tech-Archive recommends: Fix windows errors by optimizing your registry



You could just name the image something like 'MainImage.bmp', and store the
text in a small text file 'MainText.txt', or ini file in your app's root
folder. Then, when the app runs, load the image into the picture box, and
set the text of the heading to the text in the file.

On either user's machine, all you'd need to do is change the bmp, and the
text file accordingly.




"Marv Wade" <NG@xxxxxxxxxxxxxxx> wrote in message
news:OYVbpW3rGHA.4856@xxxxxxxxxxxxxxxxxxxxxxx
Yes, I understand that. But I only want to have one exe file to content
with even though there are two separate users. What I had thought to use
the Resource file to store two pictures and headings- one for each user -
and am looking for some means of "localizing" the program so that the
correct picture and label text appears for that user. I need some method
of creating a trigger that tells the program which picture and test to be
used for each user.

I hope this makes some sense.

Marv

"J French" <erewhon@xxxxxxxxxx> wrote in message
news:44c46fa3.317141915@xxxxxxxxxxxxxxxxxxxxxxx
On Sun, 23 Jul 2006 21:12:40 -0400, "Marv Wade" <NG@xxxxxxxxxxxxxxx>
wrote:

I am strictly a hobbyist user of VB. A couple of years ago I developed a
program for a friend that runs a travel agency to do all of the record
keeping , updating of trip, travelers, mailings, payment processing, etc.
It works just fine.

Recently, another friend asked if they could also use it. The main menu
page
of the program has a picture of the owner of the travel agency and the
heading is the company name. I want to be able to customize this to
reflect
both users.

From what I have been able to determine, it appears that the use of a
resource file to store both pictures and heading should do just fine.
However, I have not been able to determine what triggers the program to
use
which picture and label text. Most of the examples I have found use some
type of option when the program starts to determine who is using the
program. I could do this but I do not want each user to be able to select
the other's picture or label text.

At design time, when you put a Picture into a Form or Picturebox, the
Picture is added to the Form's FRX file which gets compiled into the
EXE as a 'resource'

Unless one is doing major fiddling one might as well utilize that
little feature.

In cases where I need something like a glorified Image List, I just
use a UserControl as an invisible repository.



.



Relevant Pages

  • Re: insignia tv, a lament and a problem!
    ... > Here I will lament a bit over my tv experiences! ... > discovered, for picture quality. ... > it is very very hard for me to check out the picture in a crowded store ... > I wonder how long this Insignia will last, ...
    (sci.electronics.repair)
  • Re: printing a logo
    ... (Store the picture with APPEND GENERAL mygenfield FROM C:\WANTIT.BMP) ... But there are a few downsites of a picture in a general field which depends ... CREATE CURSOR GENDBF, ...
    (microsoft.public.fox.vfp.forms)
  • Re: Why do the HDTVs at circuit city look so awful?
    ... >>half busted roof antenna is getting a better picture. ... > guy told me that these were HD signals but suggested that they might ... > does HD ever expect to achieve any market penetration when the product ... > But when I go to the store, I'm rather disappointed by HD, considering ...
    (alt.tv.tech.hdtv)
  • Re: Why do the HDTVs at circuit city look so awful?
    ... >half busted roof antenna is getting a better picture. ... guy told me that these were HD signals but suggested that they might ... does HD ever expect to achieve any market penetration when the product ... But when I go to the store, I'm rather disappointed by HD, considering ...
    (alt.tv.tech.hdtv)
  • my insignia tv lament, moire!
    ... Here I will lament a bit over my tv experiences! ... I was at the local best buy store last week, ... discovered, for picture quality. ... electronics are off, no good, it is still there, this pattern does not ...
    (comp.sys.ibm.pc.hardware.video)