English 中文(简体)
表格的模拟缩小了,因为从板块中删除了表格,但当其侧重于模拟时,表格仅保持了全部规模。
原标题:Emulated docking the form is sized down, upon removing from dock the form only stays full size when it has focus with a mouse down
  • 时间:2012-01-13 05:55:14
  •  标签:
  • c#-4.0

电话模块:

    private void Indicator_Move(object sender, EventArgs e)
    {
        Sizer size = new Sizer();
        int x = this.Location.X;
        int y = this.Location.Y;
        int width = this.Width;
        int height = this.Height;
        var screenWidth = Screen.PrimaryScreen.WorkingArea.Width - 130;
        if (x >= screenWidth)
        {
            size.checkmove(x, y, width, height, this);
        }
        else if (width == 158 )
        {
            width = 235;
            height = 223;
            this.Size = new System.Drawing.Size(width, height);
        }
    }

模块到磁场,从Sizer类别缩小规模:

    public void checkmove(int movex, int movey,int width, int height, Form mover)
    {
        var moverheight = mover.Height;
        var screenWidth = Screen.PrimaryScreen.WorkingArea.Width - 130;
        var screenHeight = Screen.PrimaryScreen.WorkingArea.Height;
        var finalx = screenWidth;
        if (movex > screenWidth)
        {
            mover.Size = new System.Drawing.Size(154, 45);
            mover.Location = new Point(finalx, screenHeight - 600);
        }
    }
问题回答

我实际上找到了另一种方式来完成我所希望的形式上的两点_活动,只是把它放在桌面上,而我仍然很奇怪的是,为什么它会回去,直截了全尺寸,缩小规模,同时转移和看上去,缩小规模,只显示全方位的大小,而只是在 mo点被点击的形式和搁置的时候。 我觉得,它必须做的是,无论在什么时候,这种形式都会转移。 并感谢Joran的ed。





相关问题
Howto get started with C# 4.0 and .NET 4.0?

I don t want to download Visual Studio 2010. How can I start studying (not developing real applications) C# 4.0 and .NET 4.0 with just a text editor? Can I just download C# 4.0 compiler and .NET 4.0 ...

Mocking Framework with C# 4.0 Support?

Anybody know of a mocking framework that supports C# 4.0? Doesn t matter which one ATM, just need something that will work.

Unit Testing interface contracts in C#

Using the Code Contracts tools available in VS2010 Beta 2, I have defined an interface, a contract class for that interface and two classes that implement the interface. Now when I come to test the ...

How to Iterate Through Array in C# Across Multiple Calls

We have an application where we need to de-serialize some data from one stream into multiple objects. The Data array represents a number of messages of variable length packed together. There are no ...

IronPython ScriptRuntime equivalent to CPython PYTHONPATH

The following import works inside ipy.exe prompt but fails using IronPython ScriptRuntime inside a C# 4.0 program. import ConfigParser C# code: using System; using System.Collections.Generic; using ...

i cant understand the following code

Matrix<float> trainData2 = trainData.GetRows(intVar >> 1, intVar, 1); intVar is integer type... please help me to understand this code.

热门标签