RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-211218

code211218's questions

Martin Hope
code211218
Asked: 2020-07-02 00:35:20 +0000 UTC

GUID 可以匹配吗?

  • 9

虽然不能保证每个单独的 GUID 都是唯一的,但唯一密钥的总数如此之大( 2128 或3.4028 ×1038 ),世界上独立生成两个匹配密钥的可能性极小。

如何更改(修改)它以使其永远无法匹配?

guid
  • 3 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-29 01:05:39 +0000 UTC

ASP.NET 中的 GUID 是什么?

  • 0

ASP.NET 中的 GUID 是什么?

为什么他看起来很奇怪 da047c2b-3be1-45f4-b240-ab945ce4991e ?

只使用没有破折号的数字或字母不是更容易吗?有什么好处?

asp.net
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-17 17:35:07 +0000 UTC

如何添加进度条?

  • 1

string[] FileNames用于归档的内部文件。您可以以某种方式为它们附加一个计数器。

        var cmpr = new SevenZipCompressor();

        cmpr.CompressionLevel = CompressionLevel.Fast;
        //cmpr.ArchiveFormat = OutArchiveFormat.SevenZip;

        if (File.Exists(FullNameArchive) == true)
        {
            cmpr.CompressionMode = CompressionMode.Append;
        }
        else { cmpr.CompressionMode = CompressionMode.Create; }

        //cmpr.CompressDirectory(@"путь\к\пакуемой\папке", @"имя\архива");
        cmpr.CompressFiles(FullNameArchive, FileNames);

.

<ProgressBar Height="20" VerticalAlignment="Top"/>
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-10 01:51:48 +0000 UTC

如何更改 Resources.Strings 的值?

  • 4
Resources.Strings.Name= "";

错误 CS0200 无法为属性或索引器“Strings.Name”赋值 - 只读访问。

    /// <summary>
    ///   Ищет локализованную строку, похожую на Name.
    /// </summary>
    internal static string Name{
        get {
            return ResourceManager.GetString("Name", resourceCulture);
        }
    }
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-07 17:35:20 +0000 UTC

为什么 IEnumerable<> 保持为空?

  • 3

为什么 apps2 保持空白?

IEnumerable<AppFile> apps2 = Enumerable.Empty<AppFile>();

var a2 = new AppFile();

a2.Name = Path.GetFileNameWithoutExtension(@"c:\ConsoleApp1.exe");
a2.Path = GetTargetPath(@"c:\ConsoleApp1.exe");


apps2 = Enumerable.Empty<AppFile>();
var af2 = new List<AppFile>() { a2 }; //здесь af2 не пустой
apps2.Concat(af2);
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-06 22:35:22 +0000 UTC

谁能解释一下 NetCoreApp 程序是如何启动的?

  • 6

谁能解释一下 NetCoreApp 程序是如何启动的?

这里只有dll。如何运行它?只能通过控制台dotnet dll?我可以创建一个 exe 来运行吗?(Windows 10)

\StartApp\bin\Debug\netcoreapp1.1\StartApp.dll
\StartApp\bin\Debug\netcoreapp1.1\StartApp.deps.json
\StartApp\bin\Debug\netcoreapp1.1\StartApp.runtimeconfig.json
\StartApp\bin\Debug\netcoreapp1.1\StartApp.runtimeconfig.dev.json
\StartApp\bin\Debug\netcoreapp1.1\StartApp.pdb
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-06 17:30:04 +0000 UTC

如何获取NetCoreApp中程序的路径?

  • 1

错误 CS0117“程序集”不包含“GetExecutingAssembly”的定义

var AppDirectory = ((new DirectoryInfo(Assembly.GetExecutingAssembly().Location)).Parent).FullName

我用NetCoreApp 1.1。失踪GetExecutingAssembly

但是使用时效果很好NetFramework 4.5.2

c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-06-03 13:22:08 +0000 UTC

如何在虚幻引擎中用 C# 编程?

  • 1

在官方网站 http://mono-ue.github.io/download.html上没有关于为虚幻引擎安装单声道的内容。

它说开发处于非活动状态。

该项目未积极开发。

你好,

正如你们所注意到的,使用 Unreal Engine 设置 Mono 的体验并不是很愉快。它涉及从源代码编译代码,它涉及特定版本的虚幻引擎,并且安装过程非常冗长乏味。

Unreal EULA 对第三方供应商怀有敌意,并阻止我们创造我们希望拥有的那种集成体验。

基于以上所述,我们预计此时我们不会继续为虚幻引擎开发 Mono 的绑定。

但是您可以以某种方式尝试已经创建的内容吗?我找不到如何在虚幻引擎中安装单声道?

c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-31 01:29:28 +0000 UTC

包裹面板水平滚动不起作用

  • 0

如果元素超出右边缘,则它们是不可见的。水平滚动不起作用。

<ScrollViewer HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Disabled" Width="auto">
    <WrapPanel Orientation="Vertical" HorizontalAlignment="Left">     
                        <Button Background="AliceBlue" Content="Кнопка 1" Height="250" />
                        <Button Background="Blue" Content="Кнопка 2" />
                        <Button Background="Aquamarine" Content="Кнопка 3" Width="60"/>   
                        ...
    </WrapPanel>
</ScrollViewer>

在此处输入图像描述

没有 Width="auto" 的作品。但是现在如何替换 auto 以使其延伸到屏幕的边缘

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="220"/>
    <ColumnDefinition  />
    <ColumnDefinition Width="Auto" /> //ScrollViewer находится здесь
</Grid.ColumnDefinitions>

在此处输入图像描述

如何在没有自动的情况下将(ColumnDefinition ScrollViewer)自动调整到屏幕边缘?

c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-31 01:11:55 +0000 UTC

为什么 WrapPanel 在带有 VerticalScrollBarVisibility="Auto" 的 ScrollViewer 中不起作用?

  • 0

WrapPanel 方向重叠。结果,您得到的不是列,而是正常的向下滚动。

<ScrollViewer HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Auto" Width="auto">
    <WrapPanel Orientation="Vertical" HorizontalAlignment="Left">        
    </WrapPanel>
</ScrollViewer>
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-30 22:23:36 +0000 UTC

如何制作自动布局网格?

  • 2

当用按钮填充列到底部时,会出现向下滚动。如何添加第二列而不是滚动并继续显示在第二列?

<ScrollViewer HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Auto" Width="auto">
    <Grid VerticalAlignment="Stretch" HorizontalAlignment="Left" " Name="GridCol">
    </Grid>
</ScrollViewer>
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-29 19:34:59 +0000 UTC

如何以编程方式实现 XAML 代码?

  • 2

有一个按钮链接。var button

var button = new Button();
button.ContentTemplate...

如何以编程方式实现 XAML 代码?

XAML:

<Button >
    <Button.ContentTemplate>
        <DataTemplate>
            <WrapPanel >
                <TextBlock />
            </WrapPanel>
        </DataTemplate>
    </Button.ContentTemplate>
</Button>
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-29 15:02:44 +0000 UTC

访问被拒绝 Process.Start

  • 0
 Process.Start(Path);

TheBatPortable.exe 170529 01:03:15 | 未运行 (Click_2) System.ComponentModel.Win32Exception (0x80004005):在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) 在 System.Diagnostics.Process.Start() 在 System.Diagnostics.Process.Start(ProcessStartInfo startInfo) 访问被拒绝在 System.Diagnostics.Process.Start(字符串文件名)

没有帮助:

ProcessStartInfo processInfo = new ProcessStartInfo(); //создаем новый процесс
processInfo.Verb = "runas"; //в данном случае указываем, что процесс должен быть запущен с правами администратора
processInfo.FileName = Path; //указываем исполняемый файл (программу) для запуска
Process.Start(processInfo); //пытаемся запустить процесс

但它只有在执行它的程序是从管理员启动时才会启动

c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-29 13:16:05 +0000 UTC

如何将附加变量传递给按钮点击功能?

  • 3

如何将附加变量传递给函数?

button.Click += Click_2;

void Click_2(object sender, RoutedEventArgs e)

例如

void Click_2(object sender, RoutedEventArgs e, string str)
c#
  • 2 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-28 22:52:04 +0000 UTC

如何获取文件夹图标?

  • 4

如何获取文件夹图标?

例如

控制面板

Shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-27 04:28:40 +0000 UTC

没有传递 cmd 参数

  • -1
var cmdstring = "explorer Shell:::{4234d49b-0245-4df3-b780-3893943456e1}";


System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();

startInfo.FileName = @"cmd.exe";
process.StartInfo = startInfo;
process.Start();
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-27 03:29:21 +0000 UTC

如何使用 C# 获取虚拟 shell 文件夹中的文件列表?

  • 2

例如,如果您创建了一个名为 Applications.{4234d49b-0245-4df3-b780-3893943456e1} 的文件夹,那么当您使用资源管理器打开它时,文件就在那里可见。

您需要获取虚拟 Shell 文件夹中的文件列表

有关它们的更多信息,请访问http://g-ek.com/clsid-guid-spisok-shell-v-windows-10

c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-23 01:12:55 +0000 UTC

多次设置“内容”属性

  • 1
<Button  Content="{l:Localization Key=Name}" >
    <Image Source="Images/Copy.png" Height="32"/>
</Button>

“内容”属性已设置多次。

如何同时添加标题Content="{l:Localization Key=Name}"和图像?

这没有帮助:

<Button.Background>
    <ImageBrush  ImageSource="Images/Copy.png" />
</Button.Background>

所以图片出现了但是文字消失了

<Button.ContentTemplate>
    <DataTemplate>
        <Image Source="Images/Copy.png"/>
    </DataTemplate>
</Button.ContentTemplate>
c#
  • 2 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-22 01:58:56 +0000 UTC

如何在此处添加条件 f is not null?

  • 2

如何在此处添加要添加的条件f != null?

var files = filesA.Select((f) => new FileInfo(f))
c#
  • 1 个回答
  • 10 Views
Martin Hope
code211218
Asked: 2020-05-20 13:03:12 +0000 UTC

如何找出程序(如 calc.exe)的路径?

  • 0

比如在cmd中你可以通过写calc.exe来运行

他的真实道路

c:\Windows\System32\calc.exe

如何在c#中找出calc.exe的路径?

c#
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5