Click here to Skip to main content
15,917,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling a function in another window. Pin
Dimitris Iliopoulos22-May-04 0:06
Dimitris Iliopoulos22-May-04 0:06 
GeneralTest and label fields misalign on windows 2000 Pin
Parrish Pope21-May-04 15:58
sussParrish Pope21-May-04 15:58 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Dimitris Iliopoulos22-May-04 0:10
Dimitris Iliopoulos22-May-04 0:10 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Heath Stewart22-May-04 2:47
protectorHeath Stewart22-May-04 2:47 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Heath Stewart22-May-04 3:38
protectorHeath Stewart22-May-04 3:38 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Dimitris Iliopoulos23-May-04 3:46
Dimitris Iliopoulos23-May-04 3:46 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Heath Stewart23-May-04 3:49
protectorHeath Stewart23-May-04 3:49 
GeneralRe: Test and label fields misalign on windows 2000 Pin
Parrish23-May-04 7:17
Parrish23-May-04 7:17 
Heath,

I appreciate your insight and expertise but your talking to someone who only has a very basic understanding of this type of development environment. Please forgive my ignorance. To be honest I'm not completely sure I understand how to use it. Whenever the screen size is changed do I run all my Text boxes and labels through the scaling functions to reposition them? I did incorporated this class into my code. I instantiate a Display object when I bring up my application and the Update service is called when I change the screen dimensions. I did have to make a few changes to get it to work (as I'm sure you expected). I had to add the following at the appropriate places...are they ok?

static int logsPerPixelX,logsPerPixelY;

IntPtr eightyEight = new IntPtr(88);
IntPtr ninety = new IntPtr(90);


value = GetDeviceCaps(hdc, eightyEight); // LOGPIXELSX
logsPerPixelX = 1440 / value.ToInt32();
value = GetDeviceCaps(hdc, ninety); // LOGPIXELSY
logsPerPixelY = 1440 / value.ToInt32();
ReleaseDC(IntPtr.Zero, hdc);

Because I'm not real sure how to use it, I don't understand why the logsPerPixelX and logsPerPixelY are setup but never used and why twipsPerPixelX and twipsPerPixelY are never setup?

I also don't understand why it is only one tab page out of 7 that has this problem? I have numerous other Forms that display properly. If you could just grit your teeth and drop kick me into the right areas I would be most appreciative.





If it jams, force it!!

Parrish Pope
GeneralRe: Test and label fields misalign on windows 2000 Pin
Heath Stewart23-May-04 7:43
protectorHeath Stewart23-May-04 7:43 
Generalabout one Process, multi AppDomain Design Pin
pig123421-May-04 14:52
pig123421-May-04 14:52 
GeneralRe: about one Process, multi AppDomain Design Pin
Heath Stewart22-May-04 2:45
protectorHeath Stewart22-May-04 2:45 
GeneralPrinting a .pdf Pin
TigerNinja_21-May-04 11:55
TigerNinja_21-May-04 11:55 
GeneralRe: Printing a .pdf Pin
Dave Kreskowiak21-May-04 12:24
mveDave Kreskowiak21-May-04 12:24 
GeneralVolume Control Pin
kratchkov21-May-04 10:15
kratchkov21-May-04 10:15 
QuestionHow Can I Unload an Assembly? Pin
goodpilot21-May-04 10:15
goodpilot21-May-04 10:15 
AnswerRe: How Can I Unload an Assembly? Pin
Heath Stewart21-May-04 10:49
protectorHeath Stewart21-May-04 10:49 
AnswerRe: How Can I Unload an Assembly? Pin
Marc Clifton22-May-04 14:58
mvaMarc Clifton22-May-04 14:58 
GeneralRe: How Can I Unload an Assembly? Pin
goodpilot26-May-04 3:17
goodpilot26-May-04 3:17 
GeneralOverloading Pin
Gary Kirkham21-May-04 9:39
Gary Kirkham21-May-04 9:39 
GeneralRe: Overloading Pin
Heath Stewart21-May-04 9:56
protectorHeath Stewart21-May-04 9:56 
GeneralRe: Overloading Pin
Gary Kirkham21-May-04 10:07
Gary Kirkham21-May-04 10:07 
GeneralRe: Overloading Pin
Heath Stewart21-May-04 10:12
protectorHeath Stewart21-May-04 10:12 
GeneralRe: Overloading Pin
Dave Kreskowiak21-May-04 9:56
mveDave Kreskowiak21-May-04 9:56 
GeneralRe: Overloading Pin
Curi0us_George21-May-04 19:55
Curi0us_George21-May-04 19:55 
GeneralRe: Overloading Pin
Gary Kirkham24-May-04 5:09
Gary Kirkham24-May-04 5:09 

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.