Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: changing image on picturebox in user control runtime Pin
Shailaja1-Dec-03 1:22
Shailaja1-Dec-03 1:22 
Hi Heath,
thanks for your input.
I did not get what you have suggested in 1st para.
What I did is I embedded the resources by changing their build property to embedded resource. And I tried to get the required resource from Assembly Manifest by using statements

System.Reflection.Assembly thisExe = System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Stream file = thisExe.GetManifestResourceStream ("ShapeLibrary.5side_Equipment.gif");
baseShape1.PropDisplayImage = Image.FromStream(file);

While I am trying to compile the project getting this exception message
" An exception occurred while trying to create an instance of ShapeLibrary.BaseShape. The exception was "'null' is not a valid value for 'stream'.".
Whereas "ShapeLibrary" is name of assembly containing Embedded resources. BaseShape is the user control in this Library in which I am putting image from this perticular code above.
For that I have written public property which sets image on the picture box.

Have I missed anything?
Regards
Shailaja

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 
GeneralRe: Wrapper Class Over Complex Structure (C# calling native dll) Pin
Heath Stewart28-Nov-03 3:59
protectorHeath Stewart28-Nov-03 3:59 

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.