Click here to Skip to main content
15,914,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
Radoslav Bielik28-Nov-03 9:02
Radoslav Bielik28-Nov-03 9:02 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
obelisk2929-Nov-03 10:22
obelisk2929-Nov-03 10:22 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
obelisk2929-Nov-03 10:59
obelisk2929-Nov-03 10:59 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
Heath Stewart29-Nov-03 15:03
protectorHeath Stewart29-Nov-03 15:03 
GeneralHead off API functions Pin
lajiyo28-Nov-03 3:07
lajiyo28-Nov-03 3:07 
GeneralRe: Head off API functions Pin
Heath Stewart28-Nov-03 4:27
protectorHeath Stewart28-Nov-03 4:27 
GeneralRe: Head off API functions Pin
lajiyo28-Nov-03 23:11
lajiyo28-Nov-03 23:11 
GeneralRe: Head off API functions Pin
Heath Stewart29-Nov-03 14:54
protectorHeath Stewart29-Nov-03 14:54 
GeneralRe: Head off API functions Pin
leppie28-Nov-03 6:15
leppie28-Nov-03 6:15 
GeneralRe: Head off API functions Pin
lajiyo29-Nov-03 0:02
lajiyo29-Nov-03 0:02 
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 
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 

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.