Click here to Skip to main content
15,911,530 members
Home / Discussions / C#
   

C#

 
AnswerRe: Directory Crawling Class - feedback wanted. Pin
schoetbi26-Nov-07 10:29
schoetbi26-Nov-07 10:29 
GeneralRe: Directory Crawling Class - feedback wanted. Pin
GuyThiebaut26-Nov-07 23:05
professionalGuyThiebaut26-Nov-07 23:05 
QuestionFinding an item in a listview Pin
Lucy26-Nov-07 3:15
Lucy26-Nov-07 3:15 
AnswerRe: Finding an item in a listview Pin
SABhatti26-Nov-07 4:29
SABhatti26-Nov-07 4:29 
GeneralRe: Finding an item in a listview Pin
Lucy26-Nov-07 5:29
Lucy26-Nov-07 5:29 
QuestionDisplaying multiple images in a picture box Pin
Ofori Boadu26-Nov-07 3:12
Ofori Boadu26-Nov-07 3:12 
AnswerRe: Displaying multiple images in a picture box Pin
Colin Angus Mackay26-Nov-07 3:35
Colin Angus Mackay26-Nov-07 3:35 
AnswerRe: Displaying multiple images in a picture box Pin
Ajay.k_Singh26-Nov-07 3:45
Ajay.k_Singh26-Nov-07 3:45 
If you are going to show more than one images on a single picture box, you may try creating a new image containing all images which you want to show.

Following code will show two images img1.jpg and img2.jpg on the same picture box, by drawing them on a third image; second image will be drawn at the bottom of the first image-

-----------------------------Start Code-----------------------------

System.Drawing.Bitmap MergedImage;

System.Drawing.Image Image1 = Image.FromFile("C:\\img1.jpg");
System.Drawing.Image Image2 = Image.FromFile("C:\\img2.jpg");

if (Image1.Width > Image2.Width)
{
MergedImage = new Bitmap(Image1.Width, Image1.Height + Image2.Height);
}
else
{
MergedImage=new Bitmap(Image2.Width,Image1.Height + Image2.Height);

}

Graphics g = Graphics.FromImage(MergedImage);

g.DrawImage(Image1, 0, 0);

g.DrawImage(Image2, 0, Image1.Height);

this.pictureBox1.Image = MergedImage;

g.Dispose();
--------------------------------------End Code-------------------------------

I hope this helpsSmile | :) .

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

GeneralRe: Displaying multiple images in a picture box Pin
Ofori Boadu26-Nov-07 5:25
Ofori Boadu26-Nov-07 5:25 
GeneralRe: Displaying multiple images in a picture box Pin
Ofori Boadu26-Nov-07 22:04
Ofori Boadu26-Nov-07 22:04 
AnswerRe: Displaying multiple images in a picture box Pin
Luc Pattyn26-Nov-07 4:23
sitebuilderLuc Pattyn26-Nov-07 4:23 
QuestionCreating Form Pin
karlschm26-Nov-07 2:25
karlschm26-Nov-07 2:25 
AnswerRe: Creating Form Pin
Colin Angus Mackay26-Nov-07 3:33
Colin Angus Mackay26-Nov-07 3:33 
AnswerRe: Creating Form Pin
new2pgrmg26-Nov-07 17:15
new2pgrmg26-Nov-07 17:15 
GeneralRe: Creating Form Pin
karlschm27-Nov-07 2:05
karlschm27-Nov-07 2:05 
QuestionProblem displaying on gridview by searchByDate Pin
drawmylyfe26-Nov-07 2:08
drawmylyfe26-Nov-07 2:08 
QuestionScroll Bar Issue----How to find whether the scroll bar is desplaying at runtime Pin
pashitech26-Nov-07 1:59
pashitech26-Nov-07 1:59 
QuestionNot able to populate Combobox Pin
subramanyeswari26-Nov-07 1:35
subramanyeswari26-Nov-07 1:35 
AnswerRe: Not able to populate Combobox Pin
Sun Rays26-Nov-07 1:40
Sun Rays26-Nov-07 1:40 
GeneralRe: Not able to populate Combobox Pin
subramanyeswari26-Nov-07 1:52
subramanyeswari26-Nov-07 1:52 
Questionprint form controls Pin
avvaru.murali26-Nov-07 1:31
avvaru.murali26-Nov-07 1:31 
AnswerRe: print form controls Pin
Sun Rays26-Nov-07 1:37
Sun Rays26-Nov-07 1:37 
Questionfolder delete protected Pin
mahdiehIR26-Nov-07 1:13
mahdiehIR26-Nov-07 1:13 
AnswerRe: folder delete protected Pin
Anthony Mushrow26-Nov-07 1:21
professionalAnthony Mushrow26-Nov-07 1:21 
AnswerRe: folder delete protected Pin
Dave Kreskowiak26-Nov-07 4:45
mveDave Kreskowiak26-Nov-07 4:45 

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.