我想让窗体从右向左逐渐显示出来 应该怎么做?
不用GDI画 有别的方法吗?
不用GDI画 有别的方法吗?
解决方案 »
- 请问这道题字符串的长度,i为啥是6不是8?
- 新手问个比较弱的问题。删除大量大代码时,怎么准确删除配对的{}
- NPOI 的查找功能(或是查找与替换),如果有用FpSpread的朋友,我要的就是FpSpread.Search()方法的效果
- 在C#中如何读取由VC++生成的二进制文件,文件头中struct结构
- 错误 2 无法在证书存储区中找到清单签名证书。
- c#如何调用tuxedo。急!!!谢谢各位啦,最好能够给一段代码看看
- 为什么StopBits无法赋值为None?
- 請教原因何在???在線等待
- 删除与DataViewManager绑定的DataGrid中一行数据的问题
- 如何在C#中控制串行端口?
- 请教C#中的Z顺序的使用祥解!
- datagridview的问题。高手请进
using System.Collections.Generic;
using System.Windows.Forms;namespace WindowsApplication4
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 fm = new Form1();
fm.Activated += new EventHandler(fm_Activated);
Application.Run(fm);
} static void fm_Activated(object sender, EventArgs e)
{
Form1 fm=(Form1)sender;
fm.Left = Screen.PrimaryScreen.Bounds.Width;
while (fm.Left > 0)
{
fm.Left-=10;
}
}
}
}
我想要一个逐渐显示的过程。
让宽度逐渐变大 它是从左向右显示
我现在是想从右向左作出这个效果
不是透明度的问题
using System.Collections.Generic;
using System.Windows.Forms;namespace WindowsApplication4
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 fm = new Form1();
fm.Activated += new EventHandler(fm_Activated);
Application.Run(fm);
} static void fm_Activated(object sender, EventArgs e)
{
int StepCount = 100;
int StepX, StepY; Form1 fm=(Form1)sender;
fm.Width = 0;
fm.Height = 0;
fm.Top = 0;
StepX = Screen.PrimaryScreen.Bounds.Width / StepCount;
StepY = Screen.PrimaryScreen.Bounds.Height / StepCount; while (fm.Left > 0)
{
fm.Width += StepX;
fm.Height += StepY;
fm.Left = Screen.PrimaryScreen.Bounds.Width - fm.Width;
}
}
}
}弱弱的问一句,楼主是程序员么?