通常在标准Windows中关闭窗口的窗口顶部栏中的[x]按钮似乎在Windows Compact上进行了最小化.
它是如何让它关闭的?当发生这种情况时我还需要能够引发事件,因为我想在窗口关闭时执行一些逻辑.
有谁知道,我如何在Compact Framework应用程序中使用OpenStreetMap?是否有框架或类似的东西?我可以在他们的wiki中找到的是如何为他们的项目做出贡献以及如何使用他们的软件来映射数据.但我想使用他们的地图在我自己的应用程序中显示用户位置.我找不到任何关于使用他们的Web服务或我必须用来在我的应用程序中显示他们的地图的东西.
我该如何覆盖UserControl Visible属性?或者如何在控件内确定何时更改其Visible状态?
稍后编辑:我需要它在.NET CF 3.5中工作.
谢谢.
我的HTC HD2无法从操作系统重启,只需关闭即可.所以我想写一个小程序来做到这一点.
是否可以使用C#以编程方式重新启动Windows Mobile 6.x设备?
c# compact-framework windows-mobile windows-mobile-6 .net-cf-3.5
I have Database (compact sql server) in a*.sdf file. I converted a compact framework project to a regular pc project and for some reason, with the same code, and the same*.sdf file the following exception was thrown: "the file name is not valid. check the file name for the database"
the weird thing is that on my Pc - the substring "file:\" was added to my original connection string and that's probably why the exception is thrown. when I remove …
我已经看到这段代码在 intertubes 上浮动,用于确定 Windows Mobile 设备是否具有 VGA 屏幕(代码位于 Form 类的方法中):
SizeF currentScreen = this.CurrentAutoScaleDimensions;
bool isVGA = currentScreen.Height == 192;
Run Code Online (Sandbox Code Playgroud)
即使屏幕是 VGA,因为浮点不精确(高度属性是浮点数),isVGA 是否有可能设置为 false?
我希望在我的.NET桌面应用程序和.NET CF应用程序之间共享某些数据功能.
是否可以创建一个可由两个版本的应用程序访问的通用库,或者我需要创建两个单独的DLL?
已分配Combobox数据源
cmbCombobox.DataSource = myCollection
Run Code Online (Sandbox Code Playgroud)
其中myCollection的类型为MyCollection:List
如何清除组合框中的项目?
我有以下问题:
一旦我关闭我的WM6应用程序,然后尝试再次启动它我得到此错误: System.Net.Sockets.Socket.Bind(EndPoint localEP)通常只允许使用每个套接字地址(协议/网络地址/端口)在System.Net.Sockets.Socket.TcpListener.Start()...
我认为这是由于连接超时的时间间隔,所以我想关闭所有打开的连接并强制它创建一个新的连接,这是正确的继续方式还是有不同的方法来处理这个?
以下是用于开始监听的代码:
/// <summary>
/// Listens Asynchronously to Clients, creates a recieveMessageHandler to process the read.
///
/// Check WIKI, TODOS
/// </summary>
/// <returns></returns>
public void Listen()
{
myTcpListener.Start();
while (true)
{
//blocks until a client has connected to the server
try
{
TcpClient myTcpClient = myTcpListener.AcceptTcpClient();
DateTime now = DateTime.Now;
//Test if it's necessary to create a client
ClientConnection client = new ClientConnection(myTcpClient, new byte[myTcpClient.ReceiveBufferSize]);
// Capture the specific client and pass it to …Run Code Online (Sandbox Code Playgroud) c# ×7
.net ×5
winforms ×2
.net-cf-3.5 ×1
audio ×1
components ×1
dll ×1
properties ×1
sql ×1
visible ×1