Posts by CypherPotato • 9,292 points
289 posts
-
2
votes2
answers613
viewsA: The referenced component "System.Core" was not found?
The library System.Core is not referenced in your project, you should try one of the below attempts, all are on the project properties page (as I go there?) Method 1 Let’s change the Framework…
c#answered CypherPotato 9,292 -
-1
votes1
answer563
viewsA: How to create a SLN and CSPROJ file that opens the following file types
Archives .csproj, .vbproj and .cppproj are XML files that contain information for solutions or projects that can be used in Visual Studio or in the Sharpdevelop. The archives .csproj do not open…
c#answered CypherPotato 9,292 -
0
votes1
answer38
viewsQ: How to get these lines and blocks?
I’m creating a parser of a language I’m developing, I’m having trouble separating lines and blocks from code, follow the code I use to return lines: Friend Class Splitter Public Itens As New List(Of…
-
2
votes1
answer193
viewsA: Register a custom protocol in Windows
These protocols are called URI schemes. You can create protocols for your project using URI schemes in the Windows registry by navigating the path: HKEY_CLASSES_ROOT/ seu_protocolo_aqui/ (Default) =…
vb.netanswered CypherPotato 9,292 -
2
votes1
answer91
viewsA: How to create an endless process?
I found this class in another OR question: Public Class CriticalProcessInformationProcessor <DllImport("ntdll.dll", SetLastError:=True)> Private Shared Function…
-
4
votes1
answer91
viewsQ: How to create an endless process?
Simple question, how do I make my application process to be "unstoppable" by the system? I want when a user tries to close the application to appear the message "Access denied", and when it forces…
-
4
votes1
answer552
viewsA: CMD WINDOWS commands
Do this with the Windows Powershell, just do this command: Get-Content C:\xampp\apache\logs\error.log -Wait If you really want to use the tail Linux, you can install the GNU Libraries for Win32.…
-
0
votes1
answer68
viewsQ: How to download a simple text file?
As I bass and catch the String contained in an online file on Windows Phone 8.1 SDK?
-
0
votes1
answer76
viewsA: How to make Usercontrol fill all Tabpage
If you edit some property like Control.Top or Control.Anchor the property Dock will be discarded. Only edit property Dock control, nothing more. control.Dock = DockStyle.Fill If you touch the…
-
2
votes2
answers176
viewsA: Webclient downloads a wrong string
I got by another method, I created a Webbrowser and simply navigated to the file link, this is the method now: Public Sub GetLanguageServer(ByVal LangCode As String) Dim address As String =…
-
3
votes2
answers597
viewsA: How to make a structure (struct) in C#?
Same thing as your example, only without the ; at the end. Follow the example: public struct Livro { public decimal Preco; public string Titulo; public string Autor; } For more information, check…
-
3
votes2
answers176
viewsQ: Webclient downloads a wrong string
I’m trying to create a virtual intelligence system, and hosted the language files on my FTP. These files are from a language I made myself, called SVDB, and hosted on FTP, and when I download in the…
-
0
votes4
answers6194
viewsA: Best practices for naming functions
I always use the name summarizing with the minimum of words what the function will do, example: class Calculadora { public static int somar(int a, int b) { return a + b; } } Java has a different…
-
3
votes3
answers8119
viewsA: What are the best practices in field validation?
We will improve the reading of your code so we will ignore the whole numbers and use numerators, as I did below: public enum ResultadoValidacao : int { nomeNulo = 1, enderecoNulo = 2, cargoNulo = 4,…
-
1
votes1
answer439
viewsA: Open files from certain extension on my program
The Own Clickonce creates extensions, but you can also create a key in the registry to associate a file extension to your executable. First, declare this static method: public static void…
-
2
votes1
answer80
viewsA: How to Resolve Settingsfile File Error
Let’s debug that file as error says in tag Settings, line 6. <?xml version="1.0" encoding="utf-8"?> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings"…
vb.netanswered CypherPotato 9,292 -
4
votes1
answer140
viewsQ: Will users from other platforms see my website fonts?
The question is simple: I have a website, its default font is Segoe UI normal, and the Segoe UI Light, the site uses only these two. In Windows, the site appeared correctly and without problems, now…
-
8
votes2
answers98
viewsQ: No need to escape the "." in a field [...] in REGEX?
I was looking at some regular expressions here on the network, and I noticed that in many, in the character field, the . was not escaped \.. Thus : [a-zA-Z0-9.]. He doesn’t need the character \…
regexasked CypherPotato 9,292 -
0
votes1
answer40
viewsQ: If you have this character, discard the capture
How do I stop regular expression from capturing what it has \} in the text? I want you to get all the }, but I want if it’s escaped with the character to be discarded, not ignored. I’m trying that…
-
0
votes2
answers342
viewsA: How to extract data from an XML url for Visual Studio Labels
You can try to get what is between two tags with this method: Public Shared Function GetBetween(IStringStr As String, IBefore As String, IPast As String) On Error Resume Next Dim iString As String…
-
1
votes1
answer54
viewsA: Visual Basic 2013 - Form cannot access/modify data from a Module
On the line frm2 = New Form2 You didn’t declare, you just set the variable frm2 to a new Form2, settle this with Dim. Your code is also very incomplete, put the declaration of variables (all) that…
-
0
votes0
answers24
viewsQ: Changing the container of a custom form
I made a custom form, with the style of Windows 10, but there is a problem, it is considering the caption bar as part of the form client panel. This is the form. The problem is that, the position 0,…
-
7
votes1
answer180
viewsQ: Does Regular Expression vary according to language?
Most languages have support for Regex (Regular Expressions) but, for example, Javascript does not have Negative Lookhead ((?<) , however already . NET Framework has virtually all functions of…
-
1
votes1
answer23
viewsA: manage Multiple windowsForm Splitcontainer
Of course you won’t add, you’re using the Form2.ListBox1.Items.Add as if it were a static member, by re-creating the object with Form2 the item you have defined will appear. It is like a…
-
12
votes1
answer162
viewsQ: Is "Then" really necessary at the end of the If block?
The Visual Basic . NET compiler seems to ignore the reserved word Then, the one at the end of the block If. If (1 + 1 = 2) Then Console.WriteLine("Passou no teste.") End If And now, without the…
-
2
votes1
answer388
viewsA: Windows Form within Windows Form
I have been researching, there are many ways to accomplish this, here is a list with possibilities and attempts that you can make: Example I Place this method in the base class (where you will add…
-
5
votes1
answer353
viewsQ: What to do when Avast detects a threat in a harmless app?
I made a network hack, no virus, and the blessed Avast! Warns and destroys my project:…
visual-studioasked CypherPotato 9,292 -
1
votes1
answer255
viewsA: VB.Net - Imports Null to System.Byte
Try it, it might not work, but it’s worth a try. Dim ms As New MemoryStream(ObtemImagem(CInt(dgvAgenda.SelectedCells(0).Value))) picImagem.Image = Image.FromStream(ms) Catch ex As Exception…
vb.netanswered CypherPotato 9,292 -
0
votes1
answer109
viewsA: Listbox form splitcontainer how to add items?
First option I didn’t quite understand your question, but you could create a loop by checking each type of control that is in the Splitcontainer, and after finding the Form, run the command. Follow…
vb.netanswered CypherPotato 9,292 -
2
votes1
answer87
viewsQ: Is it possible to convert Windows . NET Framework applications to Mac?
Can I get my project ready, and make it run on a Mac OS X? (It was done on . NET Framework 4.5.2, for Windows).
-
3
votes1
answer3189
viewsA: How to change the blinking cursor from "|" to "_" in a textbox
The signs | and the _ are not equal, you can not simply change them, would cause a confusion in the user who would be using the application. The Sign | means to include and insert characters in…
-
0
votes1
answer225
viewsQ: Get all IP-related connections
Is it possible to get all ips that are connected to an IP in Visual Basic? For example, I take the IP of all players who are connected to a game server. I tried the variable…
-
0
votes1
answer31
viewsQ: Regular expression does not detect first entity
That expression: (?<=.*"")\s is not detecting the first space it should detect: <object name="Arrow" id="40" price="$400" description="Uma flecha comum."> the correct would be to detect the…
-
2
votes1
answer300
viewsQ: How to change the default system browser?
How do I change the default system browser? When opening a link, go to my browser with the link already open? I’ve already made him recognize the links when launching the browser: Public Overrides…
-
0
votes1
answer22
viewsA: VB.NET Manipulating a "Birthday Drop Down"
It would be because the element day has no property called "value"? This should be synchronized with an internal database there on their servers, I did not find the value property in any of the…
-
0
votes2
answers1144
viewsA: Update function to update date and time?
First, declare that timer: public Timer WithEventsnowUpdater = new Timer(); Now put this method: public override void OnLoad() { nowUpdater.Enabled = true; nowUpdater.Interval = 1000; /*1 segundo =…
c#answered CypherPotato 9,292 -
1
votes1
answer1315
viewsA: Webbrowser problem to click on elements of the site
I’m doing an advanced browser and edited a lot on it to remove script errors and render the page better, but I’ll share some of my code to see if it can help you. 'Coloque isso no método iniciador…
-
1
votes1
answer294
viewsQ: How to make the Split in some lines except specific?
I want to make a dynamic list that uses the Regex.Split separating each item by the character of a new line, except when you’re in the fields ( ... ) in my lines of code, as follows the example: var…
-
0
votes4
answers10409
viewsA: How do you display "Press ENTER to continue" in Python 3.4?
We will try to do this by finishing the current process and showing the message "Press any key to continue . . ." native to the system: import subprocess…
-
3
votes1
answer582
viewsQ: How to remove certificate messages from Webbrowser?
How do I remove those annoying messages showing that the page certificate is not valid or insecure from the component System.Windows.Forms.WebBrowser? I’ve tried many ways and I haven’t found an…
-
1
votes1
answer32
viewsQ: Problem with a field in Regex
I have the following expression: (?!.*"); it captures anything that is separated by the character ; except when ta inside a string. Here’s an example: ABC; #captura o último ; 123; #captura o último…
-
3
votes2
answers70
viewsA: Install an application
To make a dialogue with a ProgressBar do the following: Start a class with the name you want, example: public class ProgressoDeInstalacao : System.Windows.Forms.Form { /* ... */ } Declare this…
c#answered CypherPotato 9,292 -
6
votes2
answers338
viewsQ: Comments on regular expressions?
REGEX is a very complicated language and not easy to read, but is there any way to describe what that little letter does? Example: Nessa regex: \{.*?[^\}]+\} will capture everything you have in a…
-
1
votes0
answers68
viewsQ: Invert a string from a character
I wanted a method to take a field on the side of a string and pass to the other side after the character '=', example: ColorPickerButton1.SelectedColor = My.Settings.getColorKeyword…
stringasked CypherPotato 9,292 -
1
votes1
answer49
viewsQ: Get multiple pieces of a String equal to Python
I want to make a first dimension matrix that contains the fields of a string equal each block of the Python language, example: primeiro bloco é esse isso ainda faz parte do primeiro bloco agora aqui…
-
-1
votes2
answers474
viewsA: Error "'Object' does not contain a constructor that takes 1 Arguments"
Try doing a different method: public MySQLConnection(MySQLData data, MySQLUser user) { base("meh"); } /* ou */ public MySQLConnection(MySQLData data, MySQLUser user) If you can’t, access this link.…
c#answered CypherPotato 9,292 -
1
votes1
answer236
viewsQ: Slide effect on a panel without that lag
My question is the following: How do I remove that lag that causes when a Panel/Button (etc) is updated by the method Controle.Update()? That’s why I use it to make the slide effect, but this effect…
-
2
votes2
answers155
viewsQ: Differences between arrays declarations
What’s the difference between declaring a matrix like this: 'C# string MinhaMatriz[] = [] 'VB Dim MinhaMatriz() As String = { } and so: 'C# string[] MinhaMatriz = [] 'VB Dim MinhaMatriz As String()…
-
2
votes2
answers1180
viewsA: Is it possible to link a C# form to a VB.NET project?
Create a project in the same solution in C# and another in VB, in C# puts your project, when using this C# project in VB, refer it to your project.
-
2
votes1
answer30
viewsQ: Getting an Interface from a Type
I want to see if a Type is implemented by the interface System.IDirectOutput and access their methods, but I don’t know how, I’m trying to: If GetType(IDirectOutput).IsAssignableFrom(Expression)…