Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# - protected and protected internal Pin
Dave Doknjas3-Jun-07 12:48
Dave Doknjas3-Jun-07 12:48 
AnswerRe: c# - protected and protected internal Pin
Expert Coming3-Jun-07 6:02
Expert Coming3-Jun-07 6:02 
GeneralRe: c# - protected and protected internal Pin
originSH3-Jun-07 21:59
originSH3-Jun-07 21:59 
QuestionLoading a bitmap into an ImageList Pin
Mark F.3-Jun-07 3:35
Mark F.3-Jun-07 3:35 
AnswerRe: Loading a bitmap into an ImageList Pin
Luc Pattyn3-Jun-07 3:46
sitebuilderLuc Pattyn3-Jun-07 3:46 
GeneralRe: Loading a bitmap into an ImageList Pin
Mark F.3-Jun-07 4:45
Mark F.3-Jun-07 4:45 
GeneralRe: Loading a bitmap into an ImageList Pin
Luc Pattyn3-Jun-07 5:10
sitebuilderLuc Pattyn3-Jun-07 5:10 
AnswerRe: Loading a bitmap into an ImageList Pin
Thomas Stockwell3-Jun-07 8:04
professionalThomas Stockwell3-Jun-07 8:04 
To add an image as an embedded resource:
1)RightClick the project or folder in project in the Solution Explorer
2)Select Add an Existing Item
3)Locate the bitmap (I prefer clicking the arrow on the open button to choose the add as link. By doing this the latest bitmap will always be added in the build)
4)RightClick the bitmap in the project
5)In the properties window change the build action or where it says content and in the combo box make the value Embedded Resource

To use the bitmap in your code:
Bitmap b=new Bitmap(/*stream object*/this.GetType().Assembly.GetManifestResourceStream("{projectname}{.foldername if bitmap is in a folder}.{filename});

or something along those lines.

Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios[^]

Questionuser control with a datagridview Pin
zwan133-Jun-07 3:27
zwan133-Jun-07 3:27 
AnswerRe: user control with a datagridview Pin
xibeifeijian3-Jun-07 4:05
xibeifeijian3-Jun-07 4:05 
GeneralRe: user control with a datagridview [modified] Pin
zwan133-Jun-07 4:35
zwan133-Jun-07 4:35 
QuestionService that continously reads keyboard and make a log file? Pin
Gul_#3-Jun-07 2:51
Gul_#3-Jun-07 2:51 
AnswerRe: Service that continously reads keyboard and make a log file? Pin
WillemM3-Jun-07 4:30
WillemM3-Jun-07 4:30 
AnswerRe: Service that continously reads keyboard and make a log file? Pin
Dave Kreskowiak3-Jun-07 5:08
mveDave Kreskowiak3-Jun-07 5:08 
GeneralRe: Service that continously reads keyboard and make a log file? Pin
Paul Conrad3-Jun-07 5:16
professionalPaul Conrad3-Jun-07 5:16 
GeneralRe: Service that continously reads keyboard and make a log file? Pin
Dave Kreskowiak3-Jun-07 7:13
mveDave Kreskowiak3-Jun-07 7:13 
GeneralRe: Service that continously reads keyboard and make a log file? Pin
Paul Conrad3-Jun-07 15:05
professionalPaul Conrad3-Jun-07 15:05 
GeneralRe: Service that continously reads keyboard and make a log file? Pin
Dave Kreskowiak3-Jun-07 17:04
mveDave Kreskowiak3-Jun-07 17:04 
QuestionHow to record a phone call?? Pin
r_jaz3-Jun-07 2:39
r_jaz3-Jun-07 2:39 
AnswerRe: How to record a phone call?? Pin
crash8933-Jun-07 15:02
crash8933-Jun-07 15:02 
GeneralRe: How to record a phone call?? Pin
r_jaz3-Jun-07 19:44
r_jaz3-Jun-07 19:44 
QuestionInterface Pin
Rahul832-Jun-07 23:53
Rahul832-Jun-07 23:53 
AnswerRe: Interface Pin
Arun.Immanuel3-Jun-07 0:16
Arun.Immanuel3-Jun-07 0:16 
AnswerRe: Interface Pin
Hesham Yassin6-Jun-07 8:29
Hesham Yassin6-Jun-07 8:29 
QuestionSearching for an easy way to write fuctions name... Pin
Arish rivlin2-Jun-07 22:15
Arish rivlin2-Jun-07 22:15 

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.