Questions tagged [.NET] (1897)

1
answer

The architecture of the game. How to separate menu from the game loop?

Hello. My question relates to the professional developer who knows what, how and why. I am familiar with the basics of C#. Including the PLO. There are difficulties with understanding delegates and events, ie how it works. Planning to write a game. No Unity, Win Forms or Monogame. Start simple. And on simple the question! T...
keyshawn.Wa asked April 19th 20 at 12:33
1
answer

How to display tooltip when you enter prohibited characters?

private void emailBox_KeyPress(object sender, KeyPressEventArgs e) { if(!Char.IsLetter(e.KeyChar) && e.KeyChar != 8 && !Char.IsDigit(e.KeyChar) == true) { e.Handled = true; return; } else if (e.KeyChar < 33 && e.KeyChar > 47) // If you enter for example these symbols tooltip climbs { too...
alaina_Koelpin asked April 19th 20 at 11:53
0
answer

How to change the order of the controls inside the FlowLayoutPanel?

There is a FlowLayoutPanel, in which there are several Button controls lined up horizontally. How do you implement change their order using the mouse by dragging them together. Ie if the last drag to the left to the previous controls, then they would have to make space between them for the dragged control(button). It turns ...
elva.Wolf asked April 18th 20 at 12:53
0
answer

How to make SVG support in Visual Studio .NET?

Actually a subject. I would like to know if this and if Yes then how to do it, to make it possible to build in controls not only the bitmap in the background and so on, and more and SVG vector files saving them in "Resources"?!
jason.Feeney79 asked April 18th 20 at 12:43
1
answer

How to configure proxy on telegrams bot?

Trying to configure a proxy found on this website spys.one/proxys/SG/, hooked, at first it was working, and then stopped, understand the server(only socks5 connect) and shows the error System.AggregateException: "One or more errors occurred. (Response status code does not indicate success: 500 (Internal Server Error).)" ho...
Kailee.Kiehn asked April 18th 20 at 12:42
1
answer

Speech recognition in C# and WPF?

Hello, you need to write a program that will recognize the speech and translate it in a file(in the Internet a lot of information on the control commands, that is already well-known phrase). Will be useful for any information, thanks in advance
carter.Macejkovic asked April 18th 20 at 12:28
1
answer

How to create a custom button in VB .NET?

Trying to create a custom button in VB .NET. Created this class: Imports System.Drawing Imports System.Drawing.Drawing2D Imports System.Windows.Forms Public Class EllipseButton Inherits Button Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim grPath As GraphicsPath = New GraphicsPath() ...
Krista3 asked April 18th 20 at 12:12
0
answer

How to make thin frame of an upper die of the window?

If you make the FormBorderStyle = None then lost the die top (the name of the window and the buttons window) and the window frame. And change the size without a frame is impossible. How to make sure to leave the frame, but to remove the die top, and change the thickness to a few pixels? Or maybe there is another more simple...
Wallace asked April 16th 20 at 11:15
2
answers

How to use a specific dependency in ASP.NET Core DI?

There are classes with such nesting class Parser { public Parser() {} } class Reader { Parser _parser; string _name; Uri _link; public Reader(Parser parser, IOptions<ReaderOptions>) {} } class Service : IHostedService { Reader _reader; public Service(Reader reader) {} } I want each new instance to add a Se...
Jessyca.Rolfs asked April 16th 20 at 10:36
1
answer

Adding text from textBox1 to re-button?

There is a button that captures the path a user selected file in textBox1. How to make so that when you re-add the file (other) way was recorded in the line below, etc. until the set limit? private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { if (openFileDialog1->ShowDialog() == Windows::F...
Amari_Sta asked April 16th 20 at 10:21