Click here to Skip to main content
15,926,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading memory locations of a game/app (VB.NET) Pin
Dave Kreskowiak19-Mar-06 12:31
mveDave Kreskowiak19-Mar-06 12:31 
GeneralRe: Reading memory locations of a game/app (VB.NET) Pin
TDSp19-Mar-06 19:58
TDSp19-Mar-06 19:58 
QuestionHow can I read a picture from a resource file? Pin
JUNEYT19-Mar-06 8:30
JUNEYT19-Mar-06 8:30 
AnswerRe: How can I read a picture from a resource file? Pin
progload19-Mar-06 8:50
progload19-Mar-06 8:50 
GeneralVS 2005 was not sucessful to open the project Pin
JUNEYT19-Mar-06 10:26
JUNEYT19-Mar-06 10:26 
GeneralRe: VS 2005 was not sucessful to open the project Pin
progload19-Mar-06 10:35
progload19-Mar-06 10:35 
AnswerRe: VS 2005 was not sucessful to open the project Pin
TDSp19-Mar-06 12:18
TDSp19-Mar-06 12:18 
AnswerRe: How can I read a picture from a resource file? Pin
Dave Kreskowiak20-Mar-06 4:19
mveDave Kreskowiak20-Mar-06 4:19 
I'm assuming you're using VB.NET 2005. If you have the Application Framework turned on in your project (double-click My Project, Application tab), then it's pretty easy.

Click on the Resrouces tab in My Project. Acrossed the top of the Resources window, the far left icon picks what type of resources are going to be listed in the window. The second one is, of course, Add Resource. Click on the drop-down arrow next to it, then pick Add Existing File. Pick the file has the image you want to add. Done! The image will be added to the window with the resource name under the image. You can rename it if you want to, you'll be using this name to refer to the image in your code.

Close the My Project window and save changes. For an example, say I've added a .JPG with the resource name Sample. Now, in your code, all you have to do to, say, assign this image to a picturebox is:
PictureBox1.Image = My.Resources.Sample

It's that simple!




RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Questionmerging Arrays Pin
foxylady19-Mar-06 7:58
foxylady19-Mar-06 7:58 
AnswerRe: merging Arrays Pin
progload19-Mar-06 8:56
progload19-Mar-06 8:56 
QuestionRow position in a Table Pin
H@is@here19-Mar-06 7:28
H@is@here19-Mar-06 7:28 
AnswerRe: Row position in a Table Pin
CWIZO19-Mar-06 22:07
CWIZO19-Mar-06 22:07 
QuestionPlease Help Setup Deployment Pin
İsmail Durmaz19-Mar-06 5:55
İsmail Durmaz19-Mar-06 5:55 
AnswerRe: Please Help Setup Deployment Pin
mr_1234519-Mar-06 6:44
mr_1234519-Mar-06 6:44 
QuestionTerminal Service in PDA Pin
contact ajo19-Mar-06 4:49
contact ajo19-Mar-06 4:49 
AnswerRe: Terminal Service in PDA Pin
Dave Kreskowiak19-Mar-06 5:45
mveDave Kreskowiak19-Mar-06 5:45 
QuestionPLEASE HELP!!! CRYSTAL REPORT TOTAL DURATION Pin
ensuvari19-Mar-06 3:50
ensuvari19-Mar-06 3:50 
QuestionNDoc problem with VB.NET Pin
HL_SUB19-Mar-06 0:54
HL_SUB19-Mar-06 0:54 
GeneralRe: NDoc problem with VB.NET Pin
Guffa19-Mar-06 2:23
Guffa19-Mar-06 2:23 
Questiona remote program Pin
min1318-Mar-06 20:18
min1318-Mar-06 20:18 
AnswerRe: a remote program Pin
Dave Kreskowiak19-Mar-06 5:43
mveDave Kreskowiak19-Mar-06 5:43 
QuestionMODEM COMMANDS AND NAMESPACE Pin
FinalHokage18-Mar-06 17:36
FinalHokage18-Mar-06 17:36 
AnswerRe: MODEM COMMANDS AND NAMESPACE Pin
Thomas Stockwell19-Mar-06 5:08
professionalThomas Stockwell19-Mar-06 5:08 
AnswerRe: MODEM COMMANDS AND NAMESPACE Pin
Dave Kreskowiak19-Mar-06 5:35
mveDave Kreskowiak19-Mar-06 5:35 
QuestionVisual Basic.NET Pin
foxylady18-Mar-06 15:44
foxylady18-Mar-06 15:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.