Posts by CypherPotato • 9,292 points
289 posts
-
3
votes3
answers3527
viewsQ: Swap characters inside a string, in a string
Simple question: I just want to replace the characters A inside the field " " and not what is out for a B, example: aaaaaaaaaa"aaaa"aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…
-
2
votes1
answer362
viewsA: Modify form a parti User control properties of a VB.NET DLL
Add the following statements in his last line: MyClass.Controls.Add(PlayerHD) PlayerHD.Visible = True : PlayerHD.BringToFront() If not resolved try this: PlayerHD.Location = New…
vb.netanswered CypherPotato 9,292 -
0
votes1
answer263
viewsQ: Getting text within another text
I want to get a List(Of String) of text blocks, but there is a problem: { --isso é um bloco; echo "Aqui tem um } no meio";} and would like to get that way: --isso é um bloco; echo "Aqui tem um } no…
-
0
votes3
answers954
viewsA: How to get the text of the selected item in the listbox?
If (lbPerfis.Items.Count = 0) = False Then If (lbPerfis.SelectedItem Is Nothing) = False Then roles.DeleteRole(lbPerfis.SelectedItem.Text.ToString) End If End If…
vb.netanswered CypherPotato 9,292 -
2
votes2
answers413
viewsQ: Problem with String.Split
My problem is this: I want to get different objects from one string, dividing them by the character ;, except those in parentheses. Example: Linha1; Linha2; L i n h a 3; (linha que não quero que…
-
9
votes1
answer266
viewsQ: Problem with Fast Colored Textbox (indentation)
I’m modifying an open source project created by Pavel Torgashov, called Fast Colored Textbox, and I’m having problems with the language VB in the editor, because methods and properties are indented…
-
2
votes4
answers12786
viewsA: How to create a java class?
class AlgumaCoisa { /* Alguma variável qualquer */ bool ClasseLegal = true; int Arg1 = 0; //primeiro argumento int Arg2 = 0; //segundo argumento /* O método construtor deve ser o nome da classe */…
javaanswered CypherPotato 9,292 -
2
votes1
answer34
viewsQ: Insert objects into an Array without copying them
Is there any way I can put the items in one Array without multiplying them? I am trying the following. I want to add the list items MethodList on the list toAdd, but without repeating what is on the…
-
1
votes1
answer53
viewsQ: Where to get an Assembly from the Roslyn compiler?
Where can I get a Assembly (.dll) containing the CodeDom with the ombudsman of .NET Compiler "Roslyn"? I tried to download a version here and it is with many bugs, including poor performance and…
-
1
votes1
answer444
viewsA: Disable Scrollbar from a Form MDI Container
Correct me if I’m wrong, but to deactivate you can follow these attempts: Has some control within the shape that is extending the size of it, or is larger than the window itself. Change the property…
-
1
votes0
answers39
viewsQ: Compiler "Roslyn" already available in Codedom?
I wonder if the Microsoft Roslyn Compiler is already available in namespace System.CodeDom do. NET Framework... If not, how do I reference this compiler in my project?
-
-2
votes2
answers100
viewsA: Extension Methods in . NET does not work
You didn’t mark the method PrimeiraLetraDeCadaPalavraMiuscula as an extension, add the following attribute to the variable declaration: [Runtime.CompilerServices.Extension()] public static String…
-
3
votes2
answers6412
viewsQ: Comments of multiple lines in Visual Basic
It’s like I put multiple-line comments in Visual Basic?
-
5
votes2
answers6412
viewsA: Comments of multiple lines in Visual Basic
Unfortunately, there is no way to create a multi-line comment in the BASIC language, but there are some "tricks" that we can do: Trick 1: #If You can try creating blocks #If with nonexistent…
-
1
votes0
answers26
viewsQ: Undocumented attribute: Forcetokenstabilizationattribute & __Dynamicallyinvokableattribute
I discovered an attribute undocumented, and he is Friend, is located in the namespace System.Runtime.CompilerServices, as it is used in the system, it has no documentation. I tried to decompile this…
-
1
votes5
answers2964
viewsA: How to display a confirmation message when clicking delete from the grid option?
MessageBox.Show() is what you needed: Advanced way, with Handles to if user click Yes, no or cancel. REM esse Label é onde vamos usar o nosso GoTo se ele ignorar a mensagem. start: REM você pode…
vb.netanswered CypherPotato 9,292 -
2
votes1
answer45
viewsQ: Dynamic Waitforexit process.
I wonder if there is any way to know if the process came out, even continuing the implementation of the project. When using Processo.WaitForExit it to the application, its execution is stopped. I…
-
2
votes1
answer51
viewsQ: Getting multiple values from a String
Is there any way to get the arguments like in the example below, in a separate variable? I’m creating a language, and this is an example block: for 0 to 250 step 50 ^^^ ^ ^^ ^^^ ^^^^ ^^ Then I used…
-
5
votes1
answer831
viewsQ: About the difference between Visual Basic and Basic
I was told that: Visual Basic is the compiler... ...and Basic is the language After all, in visual studio, I am editing the Basic or Visual Basic language?…
visual-basic-6asked CypherPotato 9,292 -
2
votes1
answer41
viewsQ: Get console location and size in pixels
Is there any way to get the size and location of the System.Console in pixels, don’t tiers? I’ve tried this method: 'Para o tamanho: Dim X, Y As Integer X = Console.WindowWidth * 8 Y =…
-
0
votes1
answer46
viewsQ: Buttons, panels and other shapes in the CONSOLE
Well, these days there, I’m making a Console, very simple, and I was curious to see some apps made by super advanced third, with Menus, panels and even buttons! When you click on them, they give the…
-
1
votes1
answer180
viewsA: Update Controls in Custom Toolbox Control
Is your project set to Assembly information? You are set Com Visible for True? Are you using a dynamic or constant URI in your project? Have you tested it on other computers? Have you ever stopped…
-
2
votes1
answer135
viewsA: How to add these references in VB.net?
Checks if you are using the same Framework of the version in which you added the references, example: If the reference System.IO for Framework 4.5 and you are in Framework 4, error will result.…
-
2
votes2
answers65
viewsQ: Get two snippets of a confusing string
*It’s very simple my question: How do I get the string Argumento1 and the string Argumento2, separated into two variables in this code of a language that I’m doing: if Argumento1 = Argumento2 (…
-
1
votes1
answer113
viewsQ: Get two values from a string
I’m creating a programming language and for you to define variables in it you use this code: def NomeDaVariavel = ValorDela; And wanted to know how I only take the field Nome da variável, separate…
-
6
votes1
answer183
viewsQ: Creating Properties, Summary and Custom Colors for Methods and Types
Is there a way or attribute that puts in a Class, Method, Structure or anything else that changes its color? Example of the function CType: Notice that she is colorful, and her arguments instead of…
-
2
votes1
answer555
viewsA: Pass control as parameter
Try that one there: Private Sub search(clausula As String, campo As String, ByRef controle As System.Windows.Forms.TextBox) strsql = "SELECT * FROM motorista WHERE " & clausula & " LIKE '%"…
vb.netanswered CypherPotato 9,292 -
2
votes1
answer68
viewsA: Index Error in listbox
Private Sub AnalisarNovoArquivo() CTN.LSTNewAqui.Items.Add(CTN.LSTOG.SelectedItem.ToString) CTN.LSTOG.Items.RemoveAt(CInt(CTN.LSTOG.SelectedIndex)) CTN.LSTNewAqui.SelectedIndex = 0…
vb.netanswered CypherPotato 9,292 -
2
votes1
answer314
viewsA: Authentication - Current.User.Identity returning null
Tries: Dim senha = Nothing If Not (senhaLogin.Text = "") Then senha = senhaLogin.Text Dim Usuario = GetUsuario.Where(Function(a) a.Email = emailLogin.Text : a.Senha = senha) If Usuario.Count > 0…
-
0
votes1
answer1080
viewsA: Error sending Pedidoenviorps XML to Webservice da Prefeitura São Paulo NFS-e
There was a hyphen in your code, I took it out, that could be the problem in the syntax. <?xml version="1.0" encoding="UTF-8"?> <PedidoEnvioRPS xmlns="http://www.prefeitura.sp.gov.br/nfe"…
-
0
votes2
answers145
viewsA: Concatenate letters/words if it contains "&" and there is space between them
I don’t know about PHP, but try this on: To\040&\040AND TRADE IN SOMETHING LTDA CONSTRUCTION COMPANY LTD or To\s&\sAND TRADE IN SOMETHING LTDA CONSTRUCTION COMPANY LTD…
phpanswered CypherPotato 9,292 -
1
votes2
answers1026
viewsA: Move image (Picturebox) in form
This occurs in a purposeful form of self System.Windows.Forms, because of increasing the performance of window rendering. But you can disable this with the method Refresh() and Update(), the two are…
-
1
votes2
answers269
viewsA: Could not resolve this Reference. Could not locate the Assembly "Mysql.Data"
Copies the class library MySql.Data.dll and send it to the folder Root of your project, example, if you have in Visual Studio, it will be Documents/Visual Studio [version]/Projects/Seuapp/bin/debug/…
-
0
votes2
answers111
viewsA: I’m not getting wheel the first animation of my game
You declared the variable Player? In the first line you could declare as a New Transform. In your code it’s like this: public Transform player; Replace with this: public Transform player = new…
-
2
votes2
answers188
viewsA: How can I have a Radio Group with 10 radio Buttons divided into 2 columns and 5 rows?
Go get the RadioButtons and by placing and copying them, with Ctrl+c and Ctrl+v, they will keep the group and create a selection among them. When you want to take another group, go to Toolbox and…
-
0
votes3
answers172
viewsA: Operator '+' can’t be Applied to operands of types 'decimal' and 'double' - Ncalc
using System; class Program { public void Main() { double a = 1; decimal b = 2; a = Convert.ToDouble(1); b = Convert.ToDouble(2); int valor = a + b; Console.Write(int.ToString()); return 0; } }…
-
3
votes3
answers6793
viewsA: How to execute multiple cmd commands in VB.net
You can use the method Sys() from the "Systemexpansion" class library, it offers additional commands for namespace System. See the example how to use it: Sys("Help") ' Vai mostrar os comandos do…
vb.netanswered CypherPotato 9,292 -
1
votes2
answers140
viewsA: Change color of various Panel’s dynamically
A very simple way: For Each pI As Panel In MyClass.Controls pI.BackColor = Color.DarkOrange Next If you want for a group of panels: Dim PaneisParaEditar As Panel() = { Pane1, Panel2, Panel3 } For…
-
1
votes1
answer175
viewsQ: How to create two classes with the same methods, even though one of them is not`Partial`?
I can create a class to implement the class System.Console, without creating extensions? Example: 'A original, da mscorlib: Public NotInheritable Class Console (...) End Class She’s marked as a…