小编Phi*_*lMY的帖子

如何删除visual studio PIN TAB图标(显然在选项卡上)

有没有办法完全删除visual studio 2010中的pin选项卡选项(如何?),我不断意外地点击它:( 我想要它已经消失.我从来没有使用它,并且总是偶然点击它.

我需要删除的针

日Thnx

ps右键单击PIN图标确实会显示一些自定义对话框,但无法将其删除 - 无法识别该选项.

右键单击PIN图标时出现的配置对话框

user-interface visual-studio-2010 visual-studio productivity-power-tools

27
推荐指数
2
解决办法
5040
查看次数

如何从命令提示符执行NUnit测试用例

如何使用NUnit从Command Console执行测试用例?我有一套基于NUnit框架用C#编写的Selenium Tests.我只需要从命令控制台运行就可以执行测试用例.

在JUnit中,我们可以从cmd运行测试用例

java junit.swingui.TestRunner test.Run
Run Code Online (Sandbox Code Playgroud)

我们怎么能在NUnit上面做?

c# automation nunit

21
推荐指数
3
解决办法
5万
查看次数

Svn预提交钩子禁止在非根目录上使用svn:mergeinfo

我想使用预提交挂钩,阻止开发人员在非根目录上设置svn:mergeinfo.也就是说,我想强制执行svn:mergeinfo 只能在"trunk"或"branches/branchName"这样的目录上设置.开发人员有时需要"提醒"使用根目录的子目录作为合并目标(根据此处列出的最佳实践)并不是一种好的做法.有没有人有这样的钩子脚本或知道我在哪里找到一个?我在Windows环境中,所以批处理或powershell会更好,但任何东西肯定会有所帮助.

svn pre-commit-hook mergeinfo

19
推荐指数
1
解决办法
2587
查看次数

如何理解和解决崩溃报告:SIGSEGV,SEGV_ACCERR

我有时会得到这个崩溃报告:

Name: SIGSEGV
Reason: SEGV_ACCERR
Stack Trace:

0 MyApp 0x00070456 0x1000 + 455766
1 MyApp 0x0007a34d 0x1000 + 496461
2 MyApp 0x0007a4f1 0x1000 + 496881
3 MyApp 0x000d31dd 0x1000 + 860637
4 MyApp 0x00067f0f 0x1000 + 421647
5 MyApp 0x0005ad69 0x1000 + 367977
6 MyApp 0x000081e3 0x1000 + 29155
7 MyApp 0x00008ae9 0x1000 + 31465
8 CoreFoundation 0x35a547e4 __invoking___ + 68
9 CoreFoundation 0x359af7b1 -[NSInvocation invoke] + 160
10 Foundation 0x3556268f -[NSInvocationOperation main] + 114
11 Foundation 0x354fb393 -[__NSOperationInternal start] …
Run Code Online (Sandbox Code Playgroud)

crash-reports segmentation-fault ios

13
推荐指数
1
解决办法
2万
查看次数

捕获应用程序退出事件 - WinForms

单击应用程序停止时,是否可以捕获Windows窗体关闭事件.我知道应用程序停止工作,但有任何方法可用,在应用程序关闭的任何情况下都会触发?我从谷歌找到了这些方法,但它们不起作用:

 AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);  
Run Code Online (Sandbox Code Playgroud)

要么

  Application.ApplicationExit += new EventHandler(this.OnApplicationExit); 
Run Code Online (Sandbox Code Playgroud)

单击应用程序停止按钮时是否可以获得关闭事件?

c# winforms

12
推荐指数
1
解决办法
2万
查看次数

IE9兼容模式:它模拟的版本是什么?

我正在使用最新的IE9,并在兼容模式下测试我的网站.但是这个版本的IE实际上是在模拟/复制?目前尚不清楚.是6,7还是8?

simulation compatibility internet-explorer internet-explorer-9

10
推荐指数
1
解决办法
8747
查看次数

线程"main"中的异常java.security.AccessControlException:访问被拒绝(java.util.PropertyPermission*read,write)

我正在尝试运行一个用java rmi开发的桌面应用程序.当我试图在eclipse中执行此应用程序时,我收到以下错误.请任何人提前帮助我.

Exception in thread "main" java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
    at java.lang.System.getProperties(Unknown Source)
    at .HeadOfficeManager.Manager.main(Manager.java:103)
Run Code Online (Sandbox Code Playgroud)

这是代码.

public static void main(String args[])
{
    Manager frame = new Manager();
    frame.setVisible(true);
    // frame.show(); old 1.4

    // Create and install a security manager
    if (System.getSecurityManager()== null)
    {
        System.setSecurityManager(new RMISecurityManager());
    }
    try
    {
        Properties prop = System.getProperties();
        String httpPath = prop.getProperty("HTTPPath");
        new ClassFileServer(80, httpPath);
    }
    catch (IOException e)
    {}

    try
    { …
Run Code Online (Sandbox Code Playgroud)

java exception

7
推荐指数
1
解决办法
2万
查看次数

IFrame图像大小调整

在任何现代的浏览器,当你访问一个图像URL(例如,http://i.imgur.com/xrM9q.jpg),它会自动调整大小的形象,并让您选择"放大"有一个小的放大镜.iframe的情况并非总是如此:

<iframe src='http://i.imgur.com/xrM9q.jpg'> </iframe>
Run Code Online (Sandbox Code Playgroud)

如果你将一个iframe链接到一个图像,Firefox会给出这样一个好的行为:它开始表现得像max-width: 100%; max-height: 100%,然后你可以点击它来使它变大.

但是,在Chrome中,图片只是全尺寸.尝试在Chrome和Firefox中打开此示例.

如何让Chrome"巧妙地"处理图像?也就是说,默认行为是否显示放大镜光标并提供自动调整大小?

(澄清:我想这是一个Chrome扩展工作,我想出了迄今唯一的解决办法就是把所有的网页内容脚本和手动更改图像风格的页面上的解决方案很烂,所以我.我希望一种方法不那么hacky并且不影响用户访问的每一页

html iframe compatibility

6
推荐指数
1
解决办法
2906
查看次数

使用命令行参数安装IIS8

通过使用以下参数从C#调用pkgmgr.exe,我能够在应用程序开发部分下启用IIS 7功能ASP.NET和.NET可扩展性.

/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;...... /norestart /quiet

对于IIS8,它不再起作用,因为应用程序开发功能下没有ASP.NET选项.而是ASP.NET 3.5和ASP.NET 4.5(.NET Extensibility 3.5和.NET Extensibility 4.5).

如何使用pkgmgr.exe启用它们?

c# windows iis windows-8 iis-8

6
推荐指数
1
解决办法
5248
查看次数

禁用Richtextbox上的平滑滚动

我有一个标签,根据RichTextBox上的文字标记行号.我已经联系了Vscroll的事件来处理标签.

private void rtbLogicCode_VScroll(object sender, EventArgs e)
{
    Point pt = new Point(0, 1);
    int firstIndex = rtbLogicCode.GetCharIndexFromPosition(pt);
    int firstLine = rtbLogicCode.GetLineFromCharIndex(firstIndex);

    pt.X = ClientRectangle.Width;
    pt.Y = ClientRectangle.Height;
    int lastIndex = rtbLogicCode.GetCharIndexFromPosition(pt);
    int lastLine = rtbLogicCode.GetLineFromCharIndex(lastIndex);

    // Small correction
    if (rtbLogicCode.Text.EndsWith("\n"))
        lastLine++;

    labelLogicCode.ResetText();
    LabelLineNum(firstLine+1,lastLine);
}
#endregion

private void LabelLineNum(int startNum, int lastNum)
{
    labelLogicCode.Font = UIConstant.DDCLogicCodeFont;
    for (int i = startNum; i < lastNum; i++)
    {
        labelLogicCode.Text += i + Environment.NewLine;
    }
}
Run Code Online (Sandbox Code Playgroud)

除了RichTextBox使用平滑滚动功能之外,一切似乎都能正常工作,在许多情况下用户没有滚动到下一行的情况下,这会使我的行编号搞砸.这会导致行号与RichTextBox上显示的实际文本不同步.

最后,我需要禁用smoothscrolling功能来完成此任务.我被告知你可以覆盖RichTextBox的postMessage API来禁用所提到的功能,但在搜索了很多文档之后,我找不到任何好的文档.

我将非常感谢有关如何禁用smoothscrolling功能的尽可能详细的解决方案.谢谢.

.net c# richtextbox winforms

4
推荐指数
1
解决办法
1909
查看次数