小编Sel*_*irK的帖子

自定义URI方案和Skype链接

我注册了自己的URL方案.

https://msdn.microsoft.com/en-us/library/aa767914.aspx

如何创建自己的URL协议?(例如:// ...)

链接示例:oce:// 10000

IE,firefox,windows explorer处理得很好.在我的应用中正确打开了Id 10000.

是否可以在Skype中点击此链接?我已经找到了这个未得到答复的支持票http://community.skype.com/t5/Windows-archive/Custom-URI-scheme-handlers/td-p/3627869

uri skype

15
推荐指数
1
解决办法
1217
查看次数

使用HttpWebRequest登录页面

如何使用HttpWebRequest 登录此页面http://www.bhmobile.ba/portal/index

登录按钮是"Pošalji"(左上角).

登录页面的HTML源代码:

<table id="maintable" border="0" cellspacing="0" cellpadding="0" style="height:100%; width:100%">
  <tr>
    <td width="367" style="vertical-align:top;padding:3px"><script type="text/javascript">
function checkUserid(){
    if (document && document.getElementById){
        var f = document.getElementById('userid');
        if (f){
            if (f.value.length < 8){
                alert('Korisni?ko ime treba biti u formatu 061/062 xxxxxx !');
                return false;
            }
        }
    }
    return true;
}
</script>
<div style="margin-bottom:12px"><table class="leftbox" style="height:184px; background-image:url(/web/2007/slike/okvir.jpg);" cellspacing="0" cellpadding="0">
    <tr>
        <th style="vertical-align:middle"><form action="http://sso.bhmobile.ba/sso/login" method="post" onSubmit="return checkUserid();">

            <input type="hidden" name="realm" value="sso">
            <input type="hidden" name="application" value="portal">
            <input type="hidden" name="url" value="http://www.bhmobile.ba/portal/redirect?type=ssologin&amp;url=/portal/show?idc=1111">
            <table class="formbox" …
Run Code Online (Sandbox Code Playgroud)

c# login httpwebrequest

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

如何检查扫描仪是否已插入(C#,. NET TWAIN)

我在我的应用程序中使用http://www.codeproject.com/KB/dotnet/twaindotnet.aspx?msg=1007385#xx1007385xx中的.NET TWAIN代码.当我没有插入扫描仪时尝试扫描图像时,应用程序会冻结.

如何使用TWAIN驱动程序检查设备是否已插入?

c# twain

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

模数运算符中的C#Bug%

解决了一个错误,我得到了一些有趣的发现.

这个程序的结果

    static void Main(string[] args)
    {
        int i4 = 4;
        Console.WriteLine("int i4 = 4;");
        Console.WriteLine("i4 % 1 = {0}", i4 % 1);

        double d4 = 4.0;
        Console.WriteLine("double d4 = 4.0;");
        Console.WriteLine("d4 % 1 = {0}", d4 % 1);
        Console.WriteLine("-----------------------------------------------------------");
        int i64 = 64;
        double dCubeRootOf64 = Math.Pow(i64, 1.0 / 3.0);
        Console.WriteLine("int i64 = 64;");
        Console.WriteLine("double dCubeRootOf64 = Math.Pow(i64, 1.0 / 3.0) = {0}", dCubeRootOf64);
        Console.WriteLine("dCubeRootOf64 = {0}", dCubeRootOf64);
        Console.WriteLine("dCubeRootOf64 % 1 = {0} ??????????????  Why 1. ??????????", dCubeRootOf64 % …
Run Code Online (Sandbox Code Playgroud)

.net c# math modulo

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

如何使用drawString方法来编写对角线方式

我正在使用c#2005我想在图像上对角线写字符串.但默认情况下,c#提供水平或垂直写入的选项.

我们如何写对角线?

谢谢

c# gdi visual-studio-2005 image drawstring

6
推荐指数
2
解决办法
5582
查看次数

将nvarchar列排序为整数

我有混合数据i nvarchar列(单词和数字).这是以数字顺序对此列中的数据进行排序的最快方法.

结果示例:

  • 1
  • 2
  • 3
  • ...
  • 10
  • 11
  • ...
  • AAAA
  • AAAB
  • b
  • BA
  • BA
  • ...

t-sql sql-server sorting

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

使用'in C#拆分字符串

如何拆分此字符串

1014,'0,1031,1032,1034,1035,1036',0,0,1,1,0,1,0,-1,1
Run Code Online (Sandbox Code Playgroud)

并获得此字符串数组作为结果

1014
'0,1031,1032,1034,1035,1036'
0
0
1
1
0
1
0
-1
1
Run Code Online (Sandbox Code Playgroud)

在C#中

c# string split

0
推荐指数
1
解决办法
2490
查看次数