求教win8应用商店程序 无法将类型 system.eventhandler 隐式转换.... TextBlock.Text = DateTime.Now.ToString(); 不能用TextBlock吧----> textBlock1.Text = DateTime.Now.ToString(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 谢谢你,这个不影响,我是将TextBlock 命名为了 TextBlock,所以这个是没有问题的,如果我这样写private void TextBlock_Loaded(object sender, RoutedEventArgs e) { timers = new DispatcherTimer(); timers.Interval = new TimeSpan(0, 0, 0, 1); // timers.Tick += new EventHandler(timers_Tick); -------------->这里有问题 timers.Start(); timers_Tick(); ———————>直接调用是能够显示日期时间的,就是无法自动更新 } void timers_Tick(object sender,EventArgs e) { TextBlock.Text = DateTime.Now.ToString(); } pricate DispatcherTimer timers=null; .net VS2005 里实现水印功能的控件。 TreeView的DrawNode的问题! gridview 的奇怪的update的问题!!100分求教 ! 求助grid 急 觅.Net高级工程师 远端伺服器的连线活动中? 告知一下,.aspx中,将页面中某个控件加上,和清除掉的句子是如何写的?? 两个xml问题 求VS2003简体中文正式版下载,可用立马给分 类的继承问题 C# 操作Active Directory 求个简单点的电子商务推荐系统源代码
private void TextBlock_Loaded(object sender, RoutedEventArgs e)
{ timers = new DispatcherTimer();
timers.Interval = new TimeSpan(0, 0, 0, 1);
// timers.Tick += new EventHandler(timers_Tick); -------------->这里有问题
timers.Start();
timers_Tick(); ———————>直接调用是能够显示日期时间的,就是无法自动更新
}
void timers_Tick(object sender,EventArgs e)
{
TextBlock.Text = DateTime.Now.ToString();
}