小编Nig*_*ker的帖子

XmlElement到字符串转换

有一些简单的转换XmlElement方式string吗?

.net c# xml type-conversion

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

在Qt中制作情节

我需要实现像一些情节或者在我的应用程序,它可以更类似的东西.

我在Qt网站上搜索没有任何进展,我看到Qwt包但没有类似的东西.

有任何想法吗?

c++ user-interface plot qt

22
推荐指数
4
解决办法
5万
查看次数

第一次机会例外

我有一个在windows xp下运行完美的项目.

现在我试图在Windows 7下运行它,并在立即窗口下得到了很多例外.

A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type 'System.ArgumentException' occurred in LP_Wizard.exe
A first chance exception of type 'System.NullReferenceException' occurred in LP_Wizard.exe
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in LP_Wizard.exe
A first chance exception of type …
Run Code Online (Sandbox Code Playgroud)

vb.net visual-studio windows-7

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

如何在不违反MVVM主体的情况下处理拖放操作?

目前我在我的XAML中

<TabControl  
    AllowDrop="True"
    PreviewDragOver="DragOver"
    PreviewDrop="Drop" />
Run Code Online (Sandbox Code Playgroud)

我的所有拖放代码都存在于我的View的代码隐藏中,而不是在我的ViewModel中.

如何在ViewModel中处理拖放操作而不在View上添加任何依赖项?

.net wpf drag-and-drop mvvm

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

了解Bittorrent协议

我正在寻找一些书籍,教程网站.

我想了解Bittorrent协议是如何工作的,以后再实现我自己的跟踪器.

我对网络协议知之甚少,所以我正在寻找新手的东西.

看过以下帖子,但他们没有帮我处理我的问题:

一个完全用C#编写的BitTorrent客户端?

实施Bittorrent协议

在了解Bittorrent时寻找一些好书/资源?

感谢帮助 .

networking p2p bittorrent

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

如何使用不同的解决方案参考一个resx文件?

我有一个resx文件,我想从几个解决方案\项目中使用它,我不想在每个解决方案中都有本地副本(仅在编译时带来一个副本).

有办法吗?因为当我将其添加为"添加现有文件"时,它会在本地复制一份副本.

知道怎么做吗?

.net c# visual-studio

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

获取线程ID

可能重复:
C#/ .NET:如何从线程中获取线程ID?

我如何获得与在Visual Studio中看到的相同的线程ID?

我试过用Thread.CurrentThread.ManagedThreadId,但我的数字不同.

我得到35,38,39等,但在Visual Studio中我有10596,893等...

.net c# multithreading visual-studio

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

WPF应用程序退出代码

我正在尝试设置并获取应用程序退出代码.

我正在尝试做以下事情:

protected override void OnStartup(StartupEventArgs e)
{
    base.OnStartup(e);

    if ( e.Args.Length != 0)
    {


    }
    else
    {
        new MainWindow().ShowDialog();
    }
    Environment.ExitCode = 110;
    this.Shutdown();
}
Run Code Online (Sandbox Code Playgroud)

然后我试图cmd通过它echo %ERRORLEVEL%

但我总是得到结果0,任何想法是什么问题?

.net c# wpf

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

拉伸列以填充DataGrid的所有可用空间

是否可以拉伸列或最后一列来填充数据网格的所有可用空间?

<DataGrid Grid.Row="0" AutoGenerateColumns="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="dataGrid1"   ItemsSource="{Binding Customers}" />
Run Code Online (Sandbox Code Playgroud)

我的列是自动生成的.

.net c# wpf gridview

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

从路径中获取文件夹名称

我有一些路 c:\server\folderName1\another name\something\another folder\.

我怎么能从那里提取最后一个文件夹名称?

我尝试了几件事,但他们没有用.

我只是不想搜索最后一个\,然后采取其余的.

谢谢.

c#

10
推荐指数
2
解决办法
9510
查看次数