Re: Problem changing the size property in the Resize event

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The problem might be because you reset Size, the event is reentered. I
did not try it, you'll have to debug it to see.

The following snippet should work as you expected:
private void Form1_Resize(object sender, System.EventArgs e)
{
if (WindowState != FormWindowState.Normal) return;
if (Height != _previousSize.Height)
{
Width = Height;
}
else
{
Height = Width;
}
_previousSize = this.Size;
}

Thi

.



Relevant Pages

  • Re: Soft reset after Nk.bin update does not boot
    ... Looking at the debug output could be valuable here. ... the boot process stop? ... problem with OS failing to reboot after remote image update: ... 3.Device performs a soft reset via IOCTL_HAL_REBOOT ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to hook a context switch??
    ... The below shown code snippet gives some idea about the scenario. ... I'm wondering how to capture or debug which thread/function gets the ... Brendan wrote: ...
    (comp.os.linux.embedded)
  • Re: How to hook a context switch??
    ... The below shown code snippet gives some idea about the scenario. ... I'm wondering how to capture or debug which thread/function gets the ... Brendan wrote: ...
    (comp.os.linux.development.system)
  • panic fails to reset properly
    ... I've been working with Martin to try to debug a crash he's experiencing, ... "reset" from ddb ... will generally reset without a hitch. ... "panic" will usually hang after ...
    (freebsd-current)
  • Re: After reset, the PC register of PPC is not back to 0Xfffffffc
    ... used XMD to debug the system via the jtagppc, when I reset the system, ... FPGA via the JTAGPPC? ... I downloaded the bit file onto the FGPA, then used XMD to debug the ...
    (comp.arch.fpga)