Click here to Skip to main content
15,900,589 members
Home / Discussions / C#
   

C#

 
QuestionHow to assosiate files to my program Pin
mikker_12327-Dec-04 12:00
mikker_12327-Dec-04 12:00 
AnswerRe: How to assosiate files to my program Pin
Heath Stewart27-Dec-04 20:01
protectorHeath Stewart27-Dec-04 20:01 
QuestionImageList SizeMode ? Pin
geestje27-Dec-04 11:21
geestje27-Dec-04 11:21 
AnswerRe: ImageList SizeMode ? Pin
Heath Stewart27-Dec-04 19:58
protectorHeath Stewart27-Dec-04 19:58 
GeneralRe: ImageList SizeMode ? Pin
geestje28-Dec-04 7:07
geestje28-Dec-04 7:07 
GeneralRe: ImageList SizeMode ? Pin
Heath Stewart28-Dec-04 7:11
protectorHeath Stewart28-Dec-04 7:11 
GeneralRe: ImageList SizeMode ? Pin
geestje28-Dec-04 7:20
geestje28-Dec-04 7:20 
GeneralRe: ImageList SizeMode ? Pin
Heath Stewart28-Dec-04 7:23
protectorHeath Stewart28-Dec-04 7:23 
geestje wrote:
Ok, I'll solve it that way: scale it and fill the rest with white pixels.

Actually you'll want to clear it and fill it with white pixels first (you can do that with one call; read about Graphics.Clear) then scale and draw your image.

It's not weird at all if you understand what these objects actually are. A PictureBox draws an image into an HDC for a window (a control is a window in native terms). An ImageList is a wrapper around a native GDI+ ImageList that draws whatever you give it into an HDC for the images it contains. It is meant only to hold images - not to display them to users. It is the control that uses the images that defines how those images are drawn. Think of it as a simple collection.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralC# Multiple forms... Pin
afrodriguez27-Dec-04 10:18
afrodriguez27-Dec-04 10:18 
GeneralRe: C# Multiple forms... Pin
DavidNohejl27-Dec-04 13:01
DavidNohejl27-Dec-04 13:01 
GeneralRe: C# Multiple forms... Pin
Matt Gerrans27-Dec-04 14:33
Matt Gerrans27-Dec-04 14:33 
GeneralRe: C# Multiple forms... Pin
afrodriguez27-Dec-04 15:24
afrodriguez27-Dec-04 15:24 
GeneralRe: C# Multiple forms... Pin
Matt Gerrans27-Dec-04 23:47
Matt Gerrans27-Dec-04 23:47 
GeneralRe: C# Multiple forms... Pin
Heath Stewart28-Dec-04 7:13
protectorHeath Stewart28-Dec-04 7:13 
GeneralRe: C# Multiple forms... Pin
afrodriguez27-Dec-04 15:21
afrodriguez27-Dec-04 15:21 
Generalcustom controls and design time Pin
Tyrus18227-Dec-04 10:17
Tyrus18227-Dec-04 10:17 
GeneralRe: custom controls and design time Pin
Jay Shankar27-Dec-04 14:47
Jay Shankar27-Dec-04 14:47 
GeneralRe: custom controls and design time Pin
Tyrus18227-Dec-04 16:40
Tyrus18227-Dec-04 16:40 
GeneralRe: custom controls and design time Pin
Jay Shankar27-Dec-04 18:11
Jay Shankar27-Dec-04 18:11 
GeneralRe: custom controls and design time Pin
Heath Stewart27-Dec-04 19:56
protectorHeath Stewart27-Dec-04 19:56 
GeneralDoes anybody have the C# Sorted ListView by Carlos H. Perez Pin
dfsgdsfgdfg27-Dec-04 9:56
dfsgdsfgdfg27-Dec-04 9:56 
GeneralRe: Does anybody have the C# Sorted ListView by Carlos H. Perez Pin
J. Dunlap27-Dec-04 10:08
J. Dunlap27-Dec-04 10:08 
GeneralPlay Sound from Memory Pin
notacake27-Dec-04 8:29
notacake27-Dec-04 8:29 
GeneralRe: Play Sound from Memory Pin
Heath Stewart27-Dec-04 19:52
protectorHeath Stewart27-Dec-04 19:52 
GeneralRe: Play Sound from Memory Pin
notacake28-Dec-04 2:22
notacake28-Dec-04 2:22 

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.