Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: random seeds? Pin
antrock10118-Mar-09 17:22
antrock10118-Mar-09 17:22 
QuestionSQL statement problem? Pin
Jon Henry14-Mar-09 11:43
Jon Henry14-Mar-09 11:43 
AnswerRe: SQL statement problem? Pin
Christian Graus14-Mar-09 11:45
protectorChristian Graus14-Mar-09 11:45 
Question[Message Deleted] Pin
jetspike14-Mar-09 10:49
jetspike14-Mar-09 10:49 
GeneralRe: Accessing datatable.rows on Form1 from From2 Pin
Luc Pattyn14-Mar-09 11:19
sitebuilderLuc Pattyn14-Mar-09 11:19 
AnswerRe: Accessing datatable.rows on Form1 from From2 Pin
Christian Graus14-Mar-09 11:51
protectorChristian Graus14-Mar-09 11:51 
QuestionImage Problem Pin
reza assar14-Mar-09 9:20
reza assar14-Mar-09 9:20 
AnswerRe: Image Problem Pin
Christian Graus14-Mar-09 9:31
protectorChristian Graus14-Mar-09 9:31 
It seems you are not understanding some basics of imaging. To resize an image, you need to specify a method to use, and then you need to build the image at the new size. Changing just the height is impossible because, apart from other things, you're not defining what you really want. Assuming the current height is < 200, do you want a new blank area under the image, or do you want to stretch it ? If it's greater, do you want to crop the image, or compress it ? In either case, changing height without changing width and making the image fit, will distort it.

You need to create a new bitmap of the size you want, select it into a Graphics object, and use that to draw your old image onto the new one, either distorting it, or drawing just the portion you want onto the portion of the new bitmap as required.

Christian Graus

Driven to the arms of OSX by Vista.

AnswerRe: Image Problem Pin
Mohammad Dayyan14-Mar-09 11:25
Mohammad Dayyan14-Mar-09 11:25 
Questiondisplay image from SQL Server into Picture control Pin
Jassim Rahma14-Mar-09 7:31
Jassim Rahma14-Mar-09 7:31 
AnswerRe: display image from SQL Server into Picture control Pin
Luc Pattyn14-Mar-09 7:39
sitebuilderLuc Pattyn14-Mar-09 7:39 
AnswerRe: display image from SQL Server into Picture control Pin
Giorgi Dalakishvili14-Mar-09 7:43
mentorGiorgi Dalakishvili14-Mar-09 7:43 
AnswerRe: display image from SQL Server into Picture control Pin
Xmen Real 14-Mar-09 8:10
professional Xmen Real 14-Mar-09 8:10 
GeneralRe: display image from SQL Server into Picture control Pin
Jassim Rahma15-Mar-09 8:43
Jassim Rahma15-Mar-09 8:43 
GeneralRe: display image from SQL Server into Picture control Pin
Xmen Real 15-Mar-09 15:36
professional Xmen Real 15-Mar-09 15:36 
QuestionDynamic buttons in flowlayout panel Pin
Jon Henry14-Mar-09 7:08
Jon Henry14-Mar-09 7:08 
AnswerRe: Dynamic buttons in flowlayout panel Pin
N a v a n e e t h14-Mar-09 7:42
N a v a n e e t h14-Mar-09 7:42 
GeneralRe: Dynamic buttons in flowlayout panel Pin
Jon Henry14-Mar-09 7:59
Jon Henry14-Mar-09 7:59 
QuestionMS remote for Media Player Pin
electriac14-Mar-09 6:29
electriac14-Mar-09 6:29 
QuestionFormat date to system timezone Pin
Tony Pottier14-Mar-09 6:24
Tony Pottier14-Mar-09 6:24 
AnswerRe: Format date to system timezone Pin
Christian Graus14-Mar-09 8:15
protectorChristian Graus14-Mar-09 8:15 
QuestionPInvoke void * parameter Pin
Jason McPeak14-Mar-09 5:32
Jason McPeak14-Mar-09 5:32 
AnswerRe: PInvoke void * parameter Pin
Luc Pattyn14-Mar-09 5:56
sitebuilderLuc Pattyn14-Mar-09 5:56 
GeneralRe: PInvoke void * parameter Pin
Jason McPeak14-Mar-09 7:02
Jason McPeak14-Mar-09 7:02 
GeneralRe: PInvoke void * parameter Pin
Luc Pattyn14-Mar-09 7:30
sitebuilderLuc Pattyn14-Mar-09 7:30 

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.