Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
Generaladd OnPaint handler to a proj Pin
R. Thomas28-Nov-03 3:07
R. Thomas28-Nov-03 3:07 
GeneralRe: add OnPaint handler to a proj Pin
Heath Stewart28-Nov-03 4:23
protectorHeath Stewart28-Nov-03 4:23 
GeneralRe: add OnPaint handler to a proj Pin
R. Thomas28-Nov-03 4:36
R. Thomas28-Nov-03 4:36 
GeneralRe: add OnPaint handler to a proj Pin
Heath Stewart28-Nov-03 4:38
protectorHeath Stewart28-Nov-03 4:38 
GeneralDiable Font style and Size from Font Dialog Pin
Abhi158128-Nov-03 2:39
Abhi158128-Nov-03 2:39 
GeneralRe: Diable Font style and Size from Font Dialog Pin
Heath Stewart28-Nov-03 4:19
protectorHeath Stewart28-Nov-03 4:19 
Generalchanging image on picturebox in user control runtime Pin
Shailaja28-Nov-03 1:34
Shailaja28-Nov-03 1:34 
GeneralRe: changing image on picturebox in user control runtime Pin
Heath Stewart28-Nov-03 4:09
protectorHeath Stewart28-Nov-03 4:09 
If you mean embedded resources in a .NET assembly, then embed resources in the assembly from which images can be selected, then use the Bitmap(Type, String) constructor. The Type parameter should be a type that has the same namespace as the embedded resources (in a mannger of speak), and the String should be the name of the resource that begins with the same namespace. See that constructor documentation for more details.

You can also create an image from a stream, which means you can use Assembly.GetManifestResourceStream to get a Stream for the embedded resource, which you then create an image from, and assign that to PictureBox.Image.

 

-----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-----
GeneralRe: changing image on picturebox in user control runtime Pin
Shailaja1-Dec-03 1:22
Shailaja1-Dec-03 1:22 
GeneralRe: changing image on picturebox in user control runtime Pin
Heath Stewart1-Dec-03 2:02
protectorHeath Stewart1-Dec-03 2:02 
GeneralRe: changing image on picturebox in user control runtime Pin
Shailaja1-Dec-03 2:18
Shailaja1-Dec-03 2:18 
GeneralRe: changing image on picturebox in user control runtime Pin
Heath Stewart1-Dec-03 2:22
protectorHeath Stewart1-Dec-03 2:22 
GeneralRe: changing image on picturebox in user control runtime Pin
Shailaja1-Dec-03 2:27
Shailaja1-Dec-03 2:27 
GeneralRe: changing image on picturebox in user control runtime Pin
Heath Stewart1-Dec-03 2:30
protectorHeath Stewart1-Dec-03 2:30 
GeneralRe: changing image on picturebox in user control runtime Pin
Shailaja1-Dec-03 2:43
Shailaja1-Dec-03 2:43 
GeneralRe: changing image on picturebox in user control runtime Pin
Heath Stewart1-Dec-03 3:19
protectorHeath Stewart1-Dec-03 3:19 
GeneralStreams Pin
Dennis Klein28-Nov-03 0:36
Dennis Klein28-Nov-03 0:36 
GeneralRe: Streams Pin
Wouter van Vugt28-Nov-03 0:42
Wouter van Vugt28-Nov-03 0:42 
GeneralRe: Streams Pin
Corinna John28-Nov-03 0:44
Corinna John28-Nov-03 0:44 
GeneralBluetooth Communications Pin
Johan Lombaard27-Nov-03 22:30
Johan Lombaard27-Nov-03 22:30 
Generalneed help Pin
p12327-Nov-03 20:15
p12327-Nov-03 20:15 
GeneralRe: need help Pin
Heath Stewart28-Nov-03 4:04
protectorHeath Stewart28-Nov-03 4:04 
GeneralUSB Driver Pin
sixefftee27-Nov-03 16:07
sixefftee27-Nov-03 16:07 
GeneralRe: USB Driver Pin
J. Dunlap27-Nov-03 16:26
J. Dunlap27-Nov-03 16:26 
GeneralWrapper Class Over Complex Structure (C# calling native dll) Pin
yccheok27-Nov-03 13:47
yccheok27-Nov-03 13: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.