怎么能通过WebBrowser控件移动窗体呢? 也就有那么点了
解决方案 »
- VS2005 自带的系统图片位置
- cookies不设置过期时间默认是永远不过期吗?
- 一个关于全局变量的问题
- 关于ContextMenuStrip中dropDown选项问题(winform)
- 求教“实现接口”和“显式实现接口”的区别(小弟分数不多)
- treeview控件滚动条为什么不显示阿?急~~~~
- 这里有入门教学区或讨论社区吗?
- 郁闷了三天了,问了N多的人,查了N多的资料,希望在这里得到解决.C#调用C++组件的问题 分少了点,但只有三十分了
- 如何让页面延迟显示?
- 各位同僚!数据结构C++版怎样可以学好啊!在哪可以买到好的呢?
- ~~~~~~~~~~好奇怪的一个效率问题。真的不知道为什么。。~~~~~~~~~~
- 递归的对象属性值比较
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace flash动画
{
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public partial class Form1 : Form
{ private int x, y;
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{ this.Top = 0;
this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
webB.ObjectForScripting = this;
webB.Navigate("http://hjx398.2169.cn/flash.html"); }
public void dow(int mx, int my)
{
x = mx;
y = my; //MessageBox.Show("窗top: " + this.Top.ToString() + "窗left:" + this.Left.ToString() + "flash top:" + my.ToString() + "flash left:" + mx.ToString());
}
public void mov(int vx, int vy, int bt)
{
if (x == vx && y == vy)
{
return;
}
if (bt == 1)
{
this.Left = this.Left + vx - x;
this.Top = this.Top + vy - y;
}
}
}
}