how do i use this someone told me before but i forgot. I do not want it only for images i want it text files like txt and stuff. How do i use this.
Printable View
how do i use this someone told me before but i forgot. I do not want it only for images i want it text files like txt and stuff. How do i use this.
1) Load your project
2) go to Add-Ins > add-in manager
3) select resource editor
4) choose loaded/unloaded then OK
You'll get the new toolbar button. Click it to open the editor
5) the buttons across the top allow you to create new "folders" to hold types of data
6) click the one you need (custom, bitmap, icon,cursor, etc) - this creates the new "folder"
7)select a folder then click the 'open' button - locate your file and load it
8) repeat as necessary - each one is auto-numbered
9) close the editor
to access your resources in code:
to load a bitmap into a picture object:
pcircle.Picture = LoadResPicture(101, 0)
You can get the rest from online help - lookup LoadResPicture and follow the trail....
ok thanks. But I am tryingf to load a custom text file and i cant seem to open it in a text box . How do i do this
You can store text in a res two ways:
1) Use a string table and copy/paste or type in the text
Access it like this:
Text1.Text = LoadResString(101)
Or, you can store it in a "Custom" and get it like this:
Text1.Text = StrConv(LoadResData(101, "CUSTOM"), vbUnicode)
thanks it worked. Now can i ask where did you learn this stuff. Is there site
Where did I learn this?
Ha, ha, ha!
VB on line help, sample code and a LOT of dicking around!
You can try these sites for sample code too:
http://www.CodeArchive.com/
http://www.devguru.com/