hi
computing does my head in....if I were just leaving school I would definitely go into computing....but alas....pcs came along too late for me.......
I am amazed at the amount of ( know how) a lot of you people have......
the thing is .....I am too old to learn vb...( or anything else for that matter) for any reason other than pure amusement.......
so I would like to have my pc start-up with my own windows form ready loaded....
with my own logo and menu......etc.......
if anyone could possibly give me some sample code to do this I would be ever so grateful
computing does my head in.....but I love it
thanks
bronco

to old to learn visual basic
Ultrawhack
Hi
Unfortunately, I do not have access to any of the express editions of 2005 as I use VS 2003/2005. In VS 2005 the steps I outlined above were enough to add an audio resource to my windows application.
Did any of the above steps work Maybe there is a different procedure to access resources for your project in the express edition.
Sorry I can't be of more help, but my knowledge of the express editions is non-existant.
bearnhar
Hi
If you are using the VB 2005 or VS 2005 then the My namespace gives you an awful lot of functionality, including the ability to play simple WAV files. The following line of code will play a WAV file from disk:
My.Computer.Audio.Play("C:\Temp\FileName.Wav") 'Replace FileName.Wav with your file name.
You could also add your WAV file as a resource in your program so that you don't have to worry whether the file exists or not on disk. To do this:
Now, instead of specifying a string for the filename, you specify the resource:
My.Computer.Audio.Play(My.Resources.ResourceName, AudioPlayMode.Background) 'Change ResourceName to the name of the resource you added above.
I suppose you could do but I don't see why there should be too long a time lag in loading the images. Probably best to add whatever images as resources too using the instructions above (substitute Audio for Image and instead of pressing Add Resource, instead select Add Existing File from the Add Resource button.).
To load the image for your form (I am assuming that they are going to be a background on the form as opposed to within a picture box control you would do something like:
Me.BackgroundImage = My.Resources.ResourceName 'Change Resourcename to the name of the resource you added above.
You might also want to look into the BackgroundImageLayout property as well where you can specify whether the image should be stretched, centered, tiled etc..
HTH
davevb2005
Hello David Jeavons
I'm another oldie (ex VB6 doodler) who's recently dived heels deep into 2005 express edition (well, it was free) and I was struggling to populate a resource file until I happened upon your simple explanation. You should get a job at Microsoft. The help-file system with the express edition is a bit of a tangled web.
Anywho, thanks a lot.
TheRata
grbz
Hi david
thank you so much...that was most helpful
I have published a trial form and added it to my start-up menu and it workes a treat...
but I have a problem adding anything to my resources...........................
quote...
this bit I dont understand....I cannot find audio anywhere
can you explain further
I am using vb express 2005
thanks
bronco
arongpan
Hi
You are never too old to learn something. I am currently helping out a member of the vbCity community via e-mail who is 64 years old and is attempting to learn VB.NET. In the 6 months that I have been helping him, he has already learned a great deal of the basics and finished 80% of his application which he is writing for his son-in law's building business. So good luck with your learning!
Do you already have this windows form created If so, then you can copy the executable that is created with each build to your startup menu and it will run each time you log onto your machine.
To find the executable, go to your project folder and look in the bin\debug directory (or release directory if you have set it to release mode).
To find your startup directory, this should be somewhere like:
C:\Documents and Settings\<your user name>\Start Menu\Programs\Startup
HTH
Justin Terada
Learning VB at any age is easy.. actually VB is probably the most easiest of the languages to learn as its more "literally" based.. it more obvious as it used words which are easy to read. Ive been of programming in VB since version 3.0 only got back into it with VB 2005 Express. Alot has changed since I used it last.
I would suggest if you want to learn is to download VB 2005 Express, register then go and get the free eBook u get when registering and also download the tutorial vids on VB 2005 Express and go nuts.
The MSDN Library which installs with the Express Editions is also a great starting point and just jumping in and playing with code and using the help fuction assists learning a great deal.
Osamede
hi david
thank you for your reply.......no....I have not created the form yet but I think I can do that....
depending on what I decide to put on the menu....
I can design a form easily....but perhaps you could give me a bit of code to link to a file on my pc......
music is my hobby ..so I may like to have some background music on the form...
that is where I may have the most trouble.......
also
if I have a few pages in my application.......with graphics ...can I preload the lot so there is no delay when I want to access them...
thanks for your help
bronco