Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
QuestionTo know which file was opened by an application. Pin
yjoo93172-Feb-06 10:13
yjoo93172-Feb-06 10:13 
AnswerRe: To know which file was opened by an application. Pin
malharone2-Feb-06 11:11
malharone2-Feb-06 11:11 
GeneralRe: To know which file was opened by an application. Pin
yjoo93172-Feb-06 11:26
yjoo93172-Feb-06 11:26 
GeneralRe: To know which file was opened by an application. Pin
Dave Kreskowiak2-Feb-06 15:40
mveDave Kreskowiak2-Feb-06 15:40 
QuestionValidation of WinForm Data Pin
Wayne Phipps2-Feb-06 9:51
Wayne Phipps2-Feb-06 9:51 
QuestionPixel size of frame and control changed Pin
xjsun2-Feb-06 9:35
xjsun2-Feb-06 9:35 
AnswerRe: Pixel size of frame and control changed Pin
malharone2-Feb-06 11:15
malharone2-Feb-06 11:15 
GeneralRe: Pixel size of frame and control changed Pin
xjsun7-Feb-06 8:09
xjsun7-Feb-06 8:09 
Thanks for the help. But I've found the cause of the problem and the solution (workaound) as well.

The cuase of the issue is by changing the DPI setting (under Display -> Settings -> Advanced). When the DPI is set to 120 instead of default 96, some of the controls will get this problem, ie. the picture box. To fix it, there is a workaround to add the following code after the InitializeComponent() in formMain().

SizeF sf = Form.GetAutoScaleSize (this.Font);
this.AutoScaleBaseSize = sf.ToSize ();

John
GeneralRe: Pixel size of frame and control changed Pin
malharone7-Feb-06 8:11
malharone7-Feb-06 8:11 
Questionthread safe calls Pin
Manu_812-Feb-06 8:37
Manu_812-Feb-06 8:37 
AnswerRe: thread safe calls Pin
kasik2-Feb-06 9:35
kasik2-Feb-06 9:35 
GeneralRe: thread safe calls Pin
eligazit2-Feb-06 10:50
eligazit2-Feb-06 10:50 
GeneralRe: thread safe calls Pin
kasik2-Feb-06 11:01
kasik2-Feb-06 11:01 
GeneralRe: thread safe calls Pin
kasik2-Feb-06 11:19
kasik2-Feb-06 11:19 
GeneralRe: thread safe calls Pin
Dave Kreskowiak2-Feb-06 15:29
mveDave Kreskowiak2-Feb-06 15:29 
GeneralRe: thread safe calls Pin
kasik3-Feb-06 2:26
kasik3-Feb-06 2:26 
GeneralRe: thread safe calls Pin
Dave Kreskowiak3-Feb-06 3:07
mveDave Kreskowiak3-Feb-06 3:07 
GeneralRe: thread safe calls Pin
eligazit2-Feb-06 20:42
eligazit2-Feb-06 20:42 
GeneralRe: thread safe calls Pin
kasik3-Feb-06 2:32
kasik3-Feb-06 2:32 
Questiontransferring vb.net solution to c#.net Pin
kourvoisier2-Feb-06 8:34
kourvoisier2-Feb-06 8:34 
AnswerRe: transferring vb.net solution to c#.net Pin
malharone2-Feb-06 11:19
malharone2-Feb-06 11:19 
GeneralRe: transferring vb.net solution to c#.net Pin
kourvoisier2-Feb-06 11:20
kourvoisier2-Feb-06 11:20 
GeneralRe: transferring vb.net solution to c#.net Pin
malharone2-Feb-06 11:41
malharone2-Feb-06 11:41 
Questioncreating a truly transparent control Pin
melanieab2-Feb-06 7:58
melanieab2-Feb-06 7:58 
QuestionRe: creating a truly transparent control Pin
melanieab2-Feb-06 8:34
melanieab2-Feb-06 8:34 

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.