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

C#

 
Questionsending and getting current path of a ie window Pin
Dan Neely14-Nov-05 10:42
Dan Neely14-Nov-05 10:42 
QuestionConvert hex to datetime Pin
PaulLou14-Nov-05 10:33
PaulLou14-Nov-05 10:33 
AnswerRe: Convert hex to datetime Pin
Christian Graus14-Nov-05 12:38
protectorChristian Graus14-Nov-05 12:38 
AnswerRe: Convert hex to datetime Pin
Joshua Quick14-Nov-05 14:00
Joshua Quick14-Nov-05 14:00 
GeneralRe: Convert hex to datetime Pin
PaulLou15-Nov-05 12:18
PaulLou15-Nov-05 12:18 
GeneralRe: Convert hex to datetime Pin
Joshua Quick15-Nov-05 13:36
Joshua Quick15-Nov-05 13:36 
Questiona question about image list (not imagelist class) Pin
mack scynox14-Nov-05 9:55
mack scynox14-Nov-05 9:55 
AnswerRe: a question about image list (not imagelist class) Pin
Christian Graus14-Nov-05 12:42
protectorChristian Graus14-Nov-05 12:42 
The most obvious way would be to write code to load the image, then copy each section into a 16x16 bitmap and save it

Bitmap [] bitmaps = new Bitmap[16];

for(int i=0; i < 16; ++i)
{
bitmaps[i] = new Bitmap(16, 16, toolstrip.PixelFormat);
using (Graphics gr = Graphics.FromImage(bitmaps[i]))
{
gr.DrawImageUnscaled(toolstrip, i*16, 0, 16, 16);
}
}

That's not been run, so it could have errors, but you get the idea. bitmaps should contain an array of images for each icon. You can call Bitmap.Save to save them to disc.


Christian Graus - Microsoft MVP - C++
Questionquestion about arrays Pin
savage_14-Nov-05 9:01
savage_14-Nov-05 9:01 
AnswerRe: question about arrays Pin
Christian Graus14-Nov-05 12:44
protectorChristian Graus14-Nov-05 12:44 
GeneralRe: question about arrays Pin
savage_14-Nov-05 16:18
savage_14-Nov-05 16:18 
GeneralRe: question about arrays Pin
Christian Graus14-Nov-05 16:26
protectorChristian Graus14-Nov-05 16:26 
GeneralRe: question about arrays Pin
S. Senthil Kumar14-Nov-05 18:41
S. Senthil Kumar14-Nov-05 18:41 
GeneralRe: question about arrays Pin
Christian Graus15-Nov-05 10:40
protectorChristian Graus15-Nov-05 10:40 
AnswerRe: question about arrays Pin
S. Senthil Kumar14-Nov-05 18:32
S. Senthil Kumar14-Nov-05 18:32 
GeneralRe: question about arrays Pin
savage_14-Nov-05 20:06
savage_14-Nov-05 20:06 
QuestionDrag&amp;Drop selected Text, anyone knows something? Pin
_Kalix14-Nov-05 8:01
_Kalix14-Nov-05 8:01 
AnswerRe: Drag&amp;amp;Drop selected Text, anyone knows something? Pin
n10sive14-Nov-05 8:15
n10sive14-Nov-05 8:15 
GeneralText becomes unselected before the MouseDown event Pin
_Kalix14-Nov-05 20:04
_Kalix14-Nov-05 20:04 
QuestionTabControl problem. Pin
chettu14-Nov-05 8:00
chettu14-Nov-05 8:00 
QuestionCopy an Open File Pin
Osman Ishaque14-Nov-05 8:00
Osman Ishaque14-Nov-05 8:00 
AnswerRe: Copy an Open File Pin
dabuskol14-Nov-05 20:03
dabuskol14-Nov-05 20:03 
GeneralRe: Copy an Open File Pin
Osman Ishaque14-Nov-05 22:18
Osman Ishaque14-Nov-05 22:18 
QuestionUML Class Digram and C# Source Code in MS-Visio Pin
Naif_Prof14-Nov-05 5:56
Naif_Prof14-Nov-05 5:56 
QuestionVisual Studio Class Designer? Pin
Naif_Prof14-Nov-05 5:28
Naif_Prof14-Nov-05 5:28 

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.