我有一个建议腾讯浏览器,双击一个打开的网页,会将其关闭建议VS.NET增加类似功能!

解决方案 »

  1.   

    DataGrid控件绑定的sql server表时,如果表中某记录某字段的值为空格(不是dbnull)时,当鼠标在表头移动到该记录与下一记录交界处变成双箭头时(可调整行高时),双鼠标会出异常,提示如下:
    未处理的异常: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。
    参数名:startIndex
       at System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex)
       at System.String.IndexOf(String value, Int32 startIndex)
       at System.Windows.Forms.DataGridTextBoxColumn.GetPreferredHeight(Graphics g, Object value)
       at System.Windows.Forms.DataGrid.RowAutoResize(Int32 row)
       at System.Windows.Forms.DataGrid.OnMouseDown(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at WindowsApplication6.Form1.Main() in e:\c# program\windowsapplication6\form1.cs:line 257
    程序“[976] WindowsApplication6.exe”已退出,返回值为 0 (0x0)。我是定继承DataGridTextBoxColumn类,并重与DataGridTextBoxColumn.GetPreferredHeight(Graphics g, Object value)方法可以解决。
    不这是不是GetPreferredHeight(Graphics g, Object value)有BUG?
      

  2.   

    我发现了一个大Bug:在一个页中,有三个button控件,并相应的click事件:
    btnSelect(),btnChange(),btnDelete().我在btnChange中任何位置设置断点,但运行的时候并不进入中断(btnChange()中的代码已被执行),在别的事件中则中断正常!重启.net后一切正常!!
      

  3.   

    我经常遇到这样的情况:在form(webForm)里拖放一个Label控件,当在form里删除后,在InitializeComponent()函数中却还有代码!!这绝对是Bug!!
      

  4.   

    我认为有两个可以改进的地方:
    一、在命令行窗口中增加智能提示功能,这样会方便很多;
    二、在命令行窗口中不能执行转义符,
    如键入:? "aaa"+"\\"+"bbb"
    正确答案应为:aaa\bbb
    而她却显示:aaa\\bb
    在命令行窗口的功能还有很多需要改进的地方!