我想让程序开始运行是有个Form 然后上边放上的图片
接着Form逐渐透明消失
然后进入到主程序
如何实现啊
我觉得应该放一个Timer控件
但是具体如何实现还不会
请教大家
(还有个问题,我要给combobox赋值,而且已经有值了!但是我想下拉的时候给其他textbox控件赋值的时候总是说我的datatable 在0处没有任何行,怎么解决呢????)

解决方案 »

  1.   

    可以用Windows的API,AnimateWindow
      

  2.   

    先定义一个类,代码如下:
    public class AnimateWindows
    {
        [DllImport("user32")]
        public static extern bool AnimateWindow(IntPtr whnd, int dwtime, int dwflag);
        // left to right
        public const Int32 AW_HOR_POSITIVE = 0x00000001;
        // right to left
        public const Int32 AW_HOR_NEGATIVE = 0x00000002;
        // up to low
        public const Int32 AW_VER_POSITIVE = 0x00000004;
        // low to up
        public const Int32 AW_VER_NEGATIVE = 0x00000008;
        // center
        public const Int32 AW_CENTER = 0x00000010;
        // hide
        public const Int32 AW_HIDE = 0x00010000;
        // activate
        public const Int32 AW_ACTIVATE = 0x00020000;
        // slide
        public const Int32 AW_SLIDE = 0x00040000;
        // blend
        public const Int32 AW_BLEND = 0x00080000;
    }然后在你得窗体中调用上面类接口AnimateWindowAnimateWindows.AnimateWindow(this.tabPage1.Handle,300,AnimateWindows.AW_VER_POSITIVE | AnimateWindows.AW_HIDE);
      

  3.   

    修正一下AnimateWindows.AnimateWindow(this.Handle,300,AnimateWindows.AW_VER_POSITIVE | AnimateWindows.AW_HIDE);