Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralWindows shortcuts Pin
Jonathan Slenders14-Nov-03 0:22
Jonathan Slenders14-Nov-03 0:22 
GeneralRe: Windows shortcuts Pin
Heath Stewart14-Nov-03 3:38
protectorHeath Stewart14-Nov-03 3:38 
Generalvoice communication with c# Pin
Mertli Ozgur Nevres13-Nov-03 23:27
Mertli Ozgur Nevres13-Nov-03 23:27 
GeneralRe: voice communication with c# Pin
Heath Stewart14-Nov-03 3:40
protectorHeath Stewart14-Nov-03 3:40 
Generalcheck box... Pin
ramya8313-Nov-03 22:50
ramya8313-Nov-03 22:50 
GeneralRe: check box... Pin
Corinna John13-Nov-03 23:48
Corinna John13-Nov-03 23:48 
GeneralRe: check box... Pin
ramya8314-Nov-03 2:45
ramya8314-Nov-03 2:45 
GeneralRe: check box... Pin
Heath Stewart14-Nov-03 3:08
protectorHeath Stewart14-Nov-03 3:08 
It's PictureBox.Image. It's there. The other thing is make sure the Bitmap is found. If you read it from a file, make sure the file actually exists and is resolved correctly. Since this file is necessary for your app, you could also embed it as an embedded resource and get a Bitmap easily by using the Bitmap(Type, string) constructor (read the docs for details). Assign that bitmap to the PixtureBox.Image property.

Using an embedded resource ensures that your image is always available and found, and that you don't have to worry about distributing it separately (either as a separate file or as a separate copy command), which could lead to file resolution (finding the file) problems.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow to use C# Pin
Xuan Thuy13-Nov-03 22:12
Xuan Thuy13-Nov-03 22:12 
AnswerRe: How to use C# Pin
Heath Stewart14-Nov-03 2:56
protectorHeath Stewart14-Nov-03 2:56 
Questionhow to get the indexes of selected items in DataGrid? Pin
wangier13-Nov-03 21:13
wangier13-Nov-03 21:13 
AnswerRe: how to get the indexes of selected items in DataGrid? Pin
Heath Stewart14-Nov-03 2:49
protectorHeath Stewart14-Nov-03 2:49 
GeneralTab control issue Pin
Gambit00713-Nov-03 20:05
Gambit00713-Nov-03 20:05 
GeneralSimple Question: COM interop Pin
CillyMe13-Nov-03 17:15
CillyMe13-Nov-03 17:15 
GeneralRe: Simple Question: COM interop Pin
Heath Stewart14-Nov-03 2:29
protectorHeath Stewart14-Nov-03 2:29 
Generalresizing controls Pin
udaan200313-Nov-03 13:16
udaan200313-Nov-03 13:16 
GeneralRe: resizing controls Pin
Heath Stewart14-Nov-03 2:41
protectorHeath Stewart14-Nov-03 2:41 
GeneralRe: resizing controls Pin
udaan200314-Nov-03 4:24
udaan200314-Nov-03 4:24 
GeneralRe: resizing controls Pin
Heath Stewart14-Nov-03 4:31
protectorHeath Stewart14-Nov-03 4:31 
Generalreleasing System.IO.FileInfo Pin
assinine13-Nov-03 11:35
assinine13-Nov-03 11:35 
GeneralRe: releasing System.IO.FileInfo Pin
Heath Stewart14-Nov-03 2:35
protectorHeath Stewart14-Nov-03 2:35 
GeneralToolbar Component Setting Pin
zuhx13-Nov-03 11:08
zuhx13-Nov-03 11:08 
GeneralRe: Toolbar Component Setting Pin
Heath Stewart14-Nov-03 2:37
protectorHeath Stewart14-Nov-03 2:37 
Generalhandling a voice event Pin
eafares26513-Nov-03 10:15
eafares26513-Nov-03 10:15 
GeneralRe: handling a voice event Pin
Kentamanos13-Nov-03 10:47
Kentamanos13-Nov-03 10:47 

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.