摘要: 其实就是一个Form遮挡另一个Form。The convenience of having custom controls is that they can be usedas normal controls. Where convenient, we adhered to this philosophythroughout the project; e.g. the message box, the picture button andthe sliding list are real controls, ready to be reuse in externalprojects.Custo 阅读全文
posted @ 2009-11-06 15:11 张兴业 阅读(277) 评论(0) 推荐(0)
摘要: 绘制背景透明的图片,在有背景色的Form上显示透明图片,这是.NET CF本身提供的方法,关键是最后一个参数。//在有背景色的Form上显示透明图片(事先准备背景透明的图片) private void Form1_Paint(object sender, PaintEventArgs e) { Assembly asm = Assembly.GetExecutingAssembly(); Bitmap backgroundImage = new Bitmap(asm.GetManifestResourceStream("MyControl.TransparentImg.13.png& 阅读全文
posted @ 2009-11-06 13:47 张兴业 阅读(202) 评论(0) 推荐(0)
摘要: sample下载 实际是用一个Form遮盖另一个。I've received a question from the customer the other day asking mehow he can implement functionality of "dimming" background effect whenamessage box is shown in his Windows Mobile application. In fact itshould be pretty easy to do utilizing theDrawAlpha method 阅读全文
posted @ 2009-11-06 13:31 张兴业 阅读(169) 评论(0) 推荐(0)
摘要: 关键词: 背景渐变、重写OnPaintBackground方法。 GradientFill class and the Win32Helper class可以在这找到 The first thing I started with was to create a gradient background.I found that the best way achieving this would be to override OnPaintBackground in the Screen class. I found a very good article on how to do this o. 阅读全文
posted @ 2009-11-06 11:29 张兴业 阅读(225) 评论(0) 推荐(0)
摘要: 虽然是老话题,但是还是使用图示的方式记录下让你能快速配置,不必到处去查找。最简单的方法是从模拟器的“文件”菜单里面设置绑定到你PC的网卡端口上,如下图:这时可能提示你没有安装Virtual PC 2007,你可以到这里下载。再重新配置第一步,并在模拟器中的“设置”->“连接”->“高级”->“选择网络”中配置为下图所示,打开模拟器的浏览器即可访问网页了。因为我使用的是电信提供的2M带宽,然后我自己的PC通过使用路由器自动分配的IP地址方式上网。如果你不是可能设置更麻烦点,你可以参照这篇文章。另外还可以通过ActiveSync方式上网。首先打开ActiveSync配置如下:打开 阅读全文
posted @ 2009-11-06 10:38 张兴业 阅读(293) 评论(0) 推荐(0)