Posts by sYsTeM • 1,136 points
52 posts
-
-1
votes1
answer119
views -
1
votes3
answers379
viewsQ: How to take a value among many keys, but ignoring the keys, except the most internal?
I’m trying to get the value that’s inside the keys. Example: {{{{{{{{{{{{{{{{{{{{Valor aqui dentro}}}}}}}}}}}}}}}}}}}} I’m doing the tests on Regex101. I wanted the end result to be like this:…
-
-1
votes1
answer68
viewsQ: System.Windows.Forms.HtmlDocument.Body.get returned null
I am creating HTML elements by C# using Webbrowser, I am not using the URL property, just using pure code. When I try to use this command: this.webBrowser1.DocumentText =…
-
1
votes1
answer279
viewsQ: Create similar C# dictionary in Typescript?
I have the following dictionary in C#: Dictionary<string, List<string>> ls = new Dictionary<string, List<string>>(); ls.Add("chave1", new List<string>());…
-
0
votes2
answers371
viewsQ: How to read a. txt file in Electron?
I’m trying to read all the contents of a file .txt through Electron possessing the following files: script / index.js index.html file.txt package json. index js. const fs = require('fs'); function…
-
0
votes1
answer490
viewsQ: Failed to install Electron in windows 10
I’m trying to install Electron in windows 10 using these commands: - git clone https://github.com/electron/electron-quick-start - cd electron-quick-start - npm install && npm start I’m…
-
2
votes1
answer53
viewsQ: How to delete repeated names with loaded values?
I have the following names from JSON in this sequence [ { "Animal":"Leão" }, { "Animal":"Leopardo" }, { "Especie":"Aves" }, { "Especie":"Mamiferos" }, { "Especie":"Répteis" }, { "Animal":"Cachorro"…
-
1
votes0
answers46
viewsQ: Problem Including SDL in Codeblocks
I’m downloading the mingw SDL from this website. I unzipped the zipped file and copied those folders: bin, include, lib And I taped them all together on the way to Codeblock C: Program Files (x86)…
-
1
votes1
answer213
viewsQ: How to ignore a Serialization?
I’m having trouble serializing a Socket class with BinaryFormatter, tried to use the attribute NonSerializedAttribute, but it just doesn’t work for this kind of property below.…
-
0
votes1
answer77
viewsQ: Checkbox disappearing when click
I’m making a custom checkbox and when I click, it disappears. I want, when I click it, to appear True or False without it disappearing. When I remove the onClick() event the checkbox does not…
-
1
votes1
answer76
viewsQ: How to select standard words using Regex?
I want to validate this regex: - regex.test.test.test.test - -regex.test.test.test.test - +regex.test.test.test.test If you take a trace from the beginning to the word, I want this regex to be…
-
3
votes2
answers88
views -
2
votes1
answer90
viewsQ: Select text in front of the current text using Textbox
I need that when a person type a word, automatically fills in front of the Textbox. This is the DEFAULT text For Example: sdfdsfasfColor this text in Textboxsdfdsassdf When I fill a piece of the…
-
0
votes1
answer53
viewsQ: How to wait for multiple tasks to finish to run the next line?
I have a button normal that performs three tasks, I want that when the tasks are running stay on the same line until the work is finished, without locking the program. I know there is a method of…
-
4
votes2
answers186
viewsQ: How to convert Two-dimensional array to a Single array?
I have the following definition of Two-dimensional Array: int[,] arrayBidimensional = new int[3, 3] { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; The above variable does not have a method .ToArray()…
-
1
votes2
answers41
viewsQ: How to position DIV in text
I am trying to put a DIV in the same line of text, when I run the HTML below, the DIV is at the bottom line of the text. <html> <head> <style> div { width: 10px; height: 10px;…
-
4
votes1
answer95
viewsQ: How to popular a parameter property with GET access
To understand what I want to do, note the Formclosing() parameter of Windowsforms: private void Form1_FormClosing(object sender, FormClosingEventArgs e) { var r = e.CloseReason; } By analyzing this…
-
2
votes3
answers1422
viewsA: Clear string with Regex
Try the next: \d+\s+-[^-]* As you prefer without the spaces, try that: \d+\s+-[^-]*(?=\s) There are other ways you can do this: 1) \d+ s+-. *? (?= s+-|$) see 2) \d+ s+-(?: s. *? (?= s+-)|.+) see 3)…
-
2
votes2
answers197
viewsQ: How to open external process on second Monitor
I need to open an external program to stay in the second screen. I need it to be exactly embedded in the second monitor. Let’s say I want to open the notepad, I don’t want to open it on the first…
-
1
votes1
answer371
viewsQ: How to fix Blinking Panel (Flickering Control) when drawing something?
I made an example when this happens pisca-pisca, just put the control Panel in the form and execute. public Form1() { InitializeComponent(); this.KeyDown += Form1_KeyDown; this.KeyPress +=…
-
6
votes3
answers293
viewsQ: How to know if class instance inherits another class?
I’m using reflection to know if one class inherits another, what I found was this: bool herda = typeof(A).IsAssignableFrom(typeof(B)); But I want to do it in the variable getting your type. Here’s…
-
0
votes1
answer64
views -
6
votes3
answers820
viewsQ: How to exit the FOR loop within the Switch structure?
I’m in a noose FOR and I want to lock him inside the Switch, but when I give break within the Switch he comes out of Switch and continues the loop FOR, someone can tell me how to get out of the loop…
-
0
votes0
answers169
viewsQ: How to import C++ project to VS?
I’m new in the C++ area, and I need to import a project into VS. I can only open the project folder, and edit file by file. C++ does not have a sln file. to open the entire folder context, I am very…
-
3
votes1
answer75
viewsQ: Wrong Linq expression when avoiding repetitions on a List
I’m trying to avoid duplicate data before giving a set value. I have a class Player that has itself a property called NickName, this class is inserted in List. Player class: public class Player {…
-
2
votes1
answer1394
viewsQ: Add External Library . JAR, to MAVEN project using VSCODE?
I am developing a JAVA project together with MAVEN to be compiled. However, I need to put the library jar. that is already on my computer in the MAVEN project and pull the data that is inside it to…
-
5
votes2
answers1202
viewsQ: Java Runtime could not be Located in Visual Studio Code
I already have JDK installed, but Visual Studio Code does not recognize and presents the following message: What must I do for him to recognize? For I have the Language Support For Java(TM),…
-
1
votes3
answers650
viewsQ: How to pull Header over the top of a DIV?
How do I touch the header to the top of the div, and when the div is scrolled in auto, it doesn’t fix the header when scrolling down? Because when I put the header position in center, it is…
-
0
votes3
answers2989
viewsA: Problem when initiating visual studio solution
The class library is like a book, in your case the following is happening: Book is trying to read the Human and not the Human read the book. Got it? The Human would be the . EXE and the Book would…
-
1
votes1
answer712
viewsQ: How to resolve reference error in Visual Studio Community 2017?
I want to solve a reference error when I click on a word. I used visual studio 2013 and had the "resove > reference". But in the visual studio 2017 community how can I resolve all reference…
-
2
votes1
answer199
views -
2
votes1
answer30
viewsQ: How to invert Control.Controlcollection’s list of controls?
I am inserting in a Panel several Labels, as I am inserting, the first Label becomes last in Panel. But I wanted to reverse this process. I wanted the first Label that was inserted to be in the…
-
1
votes3
answers77
viewsQ: Find an index of a value in a matrix
I’m looking for a matrix index for a value: List<string> list = new List<string>() { "Leão", "Guepardo", "Elefante" }; String[] array = new String[3] { "Leão", "Guepardo", "Elefante" };…
-
1
votes1
answer861
viewsQ: How to list all Access table names?
Hi, I’m wanting to display the table names that are inside the Access file and play for a variable. How can I do this? Does the C# platform itself provide attributes for me to do this? I’m using the…
-
3
votes3
answers1061
viewsQ: Knowing when your computer was Turned On / Off / Stopped
I wanted to know when the computer was switched on, off or interrupted. If I turned on my computer from today’s date, then I want to know the time and date it was turned on. On shutdown the same…
-
0
votes2
answers116
viewsQ: How to use the same instance for multiple classes?
Below I will try to give a value to the progressiBar that is in the class Controles. The method of Form1, will call the class method ManipularProgressBar to change the Control value ProgressBar…
-
0
votes2
answers453
viewsQ: Increment variable while holding a button
I need to do an action inside a Button, when the person presses and holds with the left hand side of the mouse on the Button, increment a variable until release. Let go, to action. Within the method…
-
3
votes1
answer285
viewsQ: View all Intellij projects created
I don’t know much about Intellij’s environment. But what I really wanted to know is how can I see all the projects I’ve created, like in the Eclipse environment. Below, only one project appears,…
intellij-ideaasked sYsTeM 1,136 -
0
votes2
answers124
viewsQ: How to organize an Array in order of Time?
I have two lists with format TimeSpan and another with a format of String. I need to organize these two lists for increasing and decreasing. List<string> horaString = new List<string>()…
-
0
votes1
answer421
viewsQ: What is that vertical and horizontal line for when you click on the Form?
I wanted to know what that vertical and horizontal line is for when you click on the form and it is there, then dps when you click again, another line appears. And how can I get these lines?…
-
0
votes1
answer170
viewsQ: Change Button name via WPF code?
I’m looking to access a control in WPF to access the properties of it and modify. However, I can’t find much approach to Wpf currently. What I want to do, for example, is change the name of a button…
-
1
votes2
answers675
viewsQ: How to organize an Array in Date order?
I am wanting to organize an array by Crescent date order. I was thinking of cutting the parts using the bar (/) and compare with the other parts, but I don’t know if it’s the best way to do it. I…
-
0
votes3
answers262
viewsQ: How to access Form1 members from Form2?
I’m looking to access members of Form1 using the Form2. For example, I want to change the color of "Panel1" that is inside "Form1" to black: This is the way I’m doing it public partial class Form2 :…
-
2
votes2
answers290
views -
2
votes1
answer194
views -
1
votes1
answer905
viewsQ: How to count repeated words in a string and find your position?
Imagine the alphabet, in this alphabet there are words from A-Z, but suddenly there are several letters A, like: To-B-C-D-E-F-G-H-I-To-J-K-L-To-M-To-N-O-P-Q-To The variable nomes below, is this…
-
4
votes1
answer1670
viewsQ: How to implement methods and classes by some keyboard shortcut in visual studio?
I need to implement methods and classes "keyboard" to get a value automatically. 1: Implement UI methods in the Home class: class Inicio : Interface { } 2: Set and Get automatically: private static…
-
1
votes1
answer105
viewsQ: Coloring word "up" a limiter
I need to color in Richtextbox filled with multiple lines, a text before a limiter, Note for example the highlights: 1- not paint because it has no limit 2- paint because it has limit: not paint 3-…
-
0
votes1
answer144
viewsQ: How to highlight a word using REGEX
I need to colorize a text in Richtextbox before a string For example: "Highlight: normal highlight"
-
8
votes3
answers605
viewsQ: How to give a Regex before a string? And select?
What I need to do is this: let’s assume that the string is -> :. However I want to select "only" the string before the : using the Regex. To make it clearer: "select that word: another word here"…