Click here to Skip to main content
15,916,180 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to retrieve a single value from datatable Pin
Luc Pattyn22-Jan-12 4:05
sitebuilderLuc Pattyn22-Jan-12 4:05 
GeneralRe: how to retrieve a single value from datatable Pin
Richard MacCutchan22-Jan-12 5:06
mveRichard MacCutchan22-Jan-12 5:06 
Questionhow made a factor i c# Pin
Alireza_Nasr21-Jan-12 7:49
Alireza_Nasr21-Jan-12 7:49 
AnswerRe: how made a factor i c# Pin
Dave Kreskowiak21-Jan-12 14:11
mveDave Kreskowiak21-Jan-12 14:11 
AnswerRe: how made a factor i c# Pin
Nathan Stiles23-Jan-12 10:46
Nathan Stiles23-Jan-12 10:46 
QuestionCreate XML file with C# Pin
RivasBoy21-Jan-12 7:26
RivasBoy21-Jan-12 7:26 
AnswerRe: Create XML file with C# Pin
Eddy Vluggen21-Jan-12 11:24
professionalEddy Vluggen21-Jan-12 11:24 
AnswerRe: Create XML file with C# Pin
Nathan Stiles23-Jan-12 10:48
Nathan Stiles23-Jan-12 10:48 
Question.NET Framework 4.0 and 2.0 Pin
MAW3020-Jan-12 11:23
MAW3020-Jan-12 11:23 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
Richard Andrew x6420-Jan-12 11:54
professionalRichard Andrew x6420-Jan-12 11:54 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
jschell20-Jan-12 12:42
jschell20-Jan-12 12:42 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
Shameel20-Jan-12 18:57
professionalShameel20-Jan-12 18:57 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
PIEBALDconsult21-Jan-12 3:12
mvePIEBALDconsult21-Jan-12 3:12 
QuestionSize Image in PictureBox Pin
Steve Harp20-Jan-12 9:40
Steve Harp20-Jan-12 9:40 
Hi Guys,

I have a PictureBox control in a WinForms application where I need to display the image at the maximum height allowable by the screen size without changing the image's height to width relationship.

The Picture box is docked to the right of the form. Setting the image height is easy enough but calculating the width is problematic as screen pixels aren't square.

How can I calculate the width with the image displayed to it's maximum height without distorting the image? I don't know the actual screen measurements; only the resolution.

Thanks......
AnswerRe: Size Image in PictureBox Pin
Dave Kreskowiak20-Jan-12 10:29
mveDave Kreskowiak20-Jan-12 10:29 
AnswerRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 22:06
mveRichard MacCutchan20-Jan-12 22:06 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn20-Jan-12 22:41
sitebuilderLuc Pattyn20-Jan-12 22:41 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 23:04
mveRichard MacCutchan20-Jan-12 23:04 
GeneralRe: Size Image in PictureBox Pin
Steve Harp23-Jan-12 5:33
Steve Harp23-Jan-12 5:33 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 6:35
mveRichard MacCutchan23-Jan-12 6:35 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn23-Jan-12 16:07
sitebuilderLuc Pattyn23-Jan-12 16:07 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 23:07
mveRichard MacCutchan23-Jan-12 23:07 
QuestionDataBinding Pin
MWRivera20-Jan-12 9:37
MWRivera20-Jan-12 9:37 
AnswerRe: DataBinding Pin
Dave Kreskowiak20-Jan-12 10:27
mveDave Kreskowiak20-Jan-12 10:27 
GeneralRe: DataBinding Pin
MWRivera25-Jan-12 9:11
MWRivera25-Jan-12 9:11 

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.