Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make print preview maximized? Pin
blakeb_130-Jan-04 11:02
blakeb_130-Jan-04 11:02 
GeneralRe: How to make print preview maximized? Pin
Heath Stewart30-Jan-04 11:08
protectorHeath Stewart30-Jan-04 11:08 
GeneralRe: How to make print preview maximized? Pin
blakeb_130-Jan-04 11:11
blakeb_130-Jan-04 11:11 
GeneralRe: How to make print preview maximized? Pin
Tom Larsen30-Jan-04 11:31
Tom Larsen30-Jan-04 11:31 
GeneralMaximum value of an array Pin
crushinghellhammer30-Jan-04 9:37
crushinghellhammer30-Jan-04 9:37 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 10:05
protectorHeath Stewart30-Jan-04 10:05 
GeneralRe: Maximum value of an array Pin
crushinghellhammer30-Jan-04 11:19
crushinghellhammer30-Jan-04 11:19 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 11:36
protectorHeath Stewart30-Jan-04 11:36 
Shouldn't 125 be 127? I'm not sure what PosCtr is either, but you could probably just hardcode 0 to start at the beginning of the sub-array. You also shouldn't reset MaxVal each time. Just do something like this:
for (int i=0; i < 17; i++)
{
  int max = 0;
  for (int j=0; j < 127; j++)
    max = Math.Max(max, arr[i, j]);
 
  peekValues[i] = max;
}
If you reset MaxVal (or max in my example), then the value will always be the max because it's greater than 0. This means that AutocorrArray[i, 126] will be the max value whether or not it is.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Maximum value of an array Pin
crushinghellhammer30-Jan-04 11:59
crushinghellhammer30-Jan-04 11:59 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 12:03
protectorHeath Stewart30-Jan-04 12:03 
Generalconsuming a class defined in another assembly Pin
godzooky30-Jan-04 8:56
godzooky30-Jan-04 8:56 
GeneralRe: consuming a class defined in another assembly Pin
Heath Stewart30-Jan-04 10:13
protectorHeath Stewart30-Jan-04 10:13 
GeneralRe: consuming a class defined in another assembly Pin
godzooky30-Jan-04 10:39
godzooky30-Jan-04 10:39 
GeneralRe: consuming a class defined in another assembly Pin
Heath Stewart30-Jan-04 10:46
protectorHeath Stewart30-Jan-04 10:46 
GeneralRe: consuming a class defined in another assembly Pin
Nick Parker30-Jan-04 11:19
protectorNick Parker30-Jan-04 11:19 
GeneralRe: consuming a class defined in another assembly Pin
godzooky30-Jan-04 15:41
godzooky30-Jan-04 15:41 
GeneralWindows Services using C# Pin
Todd J Christensen30-Jan-04 8:19
sussTodd J Christensen30-Jan-04 8:19 
GeneralRe: Windows Services using C# Pin
David R. Tosi30-Jan-04 8:52
David R. Tosi30-Jan-04 8:52 
GeneralRe: Windows Services using C# Pin
Member 64105530-Jan-04 11:29
Member 64105530-Jan-04 11:29 
GeneralComponents: Design-Time support for properties Pin
UB30-Jan-04 6:51
UB30-Jan-04 6:51 
GeneralRe: Components: Design-Time support for properties Pin
Heath Stewart30-Jan-04 9:57
protectorHeath Stewart30-Jan-04 9:57 
GeneralRe: Components: Design-Time support for properties Pin
UB1-Feb-04 6:13
UB1-Feb-04 6:13 
GeneralC# controls in W2K... Pin
EyeOfTheSky30-Jan-04 5:58
EyeOfTheSky30-Jan-04 5:58 
GeneralRe: C# controls in W2K... Pin
Tom Larsen30-Jan-04 6:25
Tom Larsen30-Jan-04 6:25 
GeneralRe: C# controls in W2K... Pin
EyeOfTheSky30-Jan-04 7:17
EyeOfTheSky30-Jan-04 7:17 

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.