Click here to Skip to main content
15,895,827 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a control like XP explorer left panel view? Pin
foxms13-Apr-03 4:40
foxms13-Apr-03 4:40 
GeneralPer pixel alpha blended control (Help) Pin
Dixion19-Sep-02 8:40
Dixion19-Sep-02 8:40 
GeneralRe: Per pixel alpha blended control (Help) Pin
Anonymous19-Sep-02 8:54
Anonymous19-Sep-02 8:54 
GeneralRe: Per pixel alpha blended control (Help) Pin
leppie19-Sep-02 10:03
leppie19-Sep-02 10:03 
GeneralRe: Per pixel alpha blended control (Help) Pin
L. Rubers19-Sep-02 13:45
sussL. Rubers19-Sep-02 13:45 
GeneralOk is impossible.... Pin
Dixion20-Sep-02 15:27
Dixion20-Sep-02 15:27 
GeneralRe: Ok is impossible.... Pin
leppie20-Sep-02 16:20
leppie20-Sep-02 16:20 
GeneralGetting a Graphic into an Image Pin
SandyWhite9019-Sep-02 8:30
SandyWhite9019-Sep-02 8:30 
I am trying to simply dclick on a treeview icon and get the associated imagelist entity (a .JPG) to become the actual Image on a picturebox.

I am getting hamstrung on the conversion of a System.Drawing.Graphics object (required for the ImageList1.Draw) to an System.Drawing.Image so I can assigne it to the Picturebox1.Image.

I plan to do additional manipulation of the Picturebox1.Image.

Here is the code, assuming a valid ImageList, Treeview, and Picturebox.

private void ilTracks_DDClick(object sender, System.EventArgs e)
{
//make a graphics object
System.Drawing.Graphics g = PictureBox1.CreateGraphics();

//draw the ImageList image to the Graphic
//note: this sends the correct graphic to the picturebox, but the PictureBox1.Image property is still NULL on the picturebox...
ImageList1.Draw( g, 0, 0, TreeView1.SelectedNode.SelectedImageIndex);

//What do I need here??
//PictureBox1.Image = ????

}

Thanks any and everyone for your time.
Sandy White
GeneralRe: Getting a Graphic into an Image Pin
leppie19-Sep-02 10:10
leppie19-Sep-02 10:10 
GeneralSOLUTION! Re: Getting a Graphic into an Image Pin
SandyWhite9020-Sep-02 9:24
SandyWhite9020-Sep-02 9:24 
GeneralEvent triger Pin
D Shen19-Sep-02 5:16
D Shen19-Sep-02 5:16 
GeneralRe: Event triger Pin
Paul Riley19-Sep-02 5:33
Paul Riley19-Sep-02 5:33 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:38
sitebuilderDavid Stone19-Sep-02 5:38 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
Paul Riley19-Sep-02 9:28
Paul Riley19-Sep-02 9:28 
GeneralRe: Event triger Pin
Shaun Wilde19-Sep-02 11:14
Shaun Wilde19-Sep-02 11:14 
GeneralRe: Event triger Pin
Paul Riley19-Sep-02 11:26
Paul Riley19-Sep-02 11:26 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:36
sitebuilderDavid Stone19-Sep-02 5:36 
GeneralRe: Event triger Pin
leppie19-Sep-02 5:47
leppie19-Sep-02 5:47 
GeneralRe: Event triger Pin
D Shen19-Sep-02 8:17
D Shen19-Sep-02 8:17 
GeneralRe: Event triger Pin
leppie19-Sep-02 8:37
leppie19-Sep-02 8:37 
GeneralDataBound WebControl Pin
Shaun Wilde19-Sep-02 1:21
Shaun Wilde19-Sep-02 1:21 
GeneralRe: DataBound WebControl Pin
James T. Johnson19-Sep-02 1:36
James T. Johnson19-Sep-02 1:36 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 1:48
Shaun Wilde19-Sep-02 1:48 

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.