Most voted "vb.net" questions
Visual Basic . NET (VB.NET) is an object-oriented computer programming language that can be seen as an evolution of Microsoft Visual Basic 6 (VB6), but applied on the . NET Framework by Microsoft.
Learn more…682 questions
Sort by count of
-
3
votes1
answer52
viewsName of field or Property being initialized in an Object initializer must start with '.'
Give me the error: The name of the field or property being initialized on an object initializer must start with '.'. Private myImageList As System.Windows.Forms.ImageList = New ImageList() Private…
-
3
votes0
answers45
viewsBehavior of Math.Round
I have a project in VB.Net that I use the Round Function, but see the strange behavior: System.Console.WriteLine(math.round(32.625,2)) '32.62 System.Console.WriteLine(math.round(32.635,2)) '32.64…
-
2
votes1
answer158
viewsHow to replace an Image with Text?
I am developing a project where I need to replace an image with a certain text when it is not loading. Example: If the image does not click, display a message stating that the image could not be…
-
2
votes2
answers878
viewsHow to update Chart automatically every 60 seconds?
I have a project where I need to update a form every 60 seconds, and in the form there is a function to call Chart (graphic) and when I run the program the form perfectly initializes the graph but…
-
2
votes1
answer194
viewsPut Date in App.Config
I have an application that runs as a service and needed to configure in the app.config some variables, namely dates, so that when it is necessary to make changes to the search criteria (in cases…
-
2
votes1
answer67
viewsIs there a race condition problem in my code?
Is there any problem of race condition in the code below? Private Shared Sub TestRandomNumberGeneration(ByVal random As Random) Dim failed As Boolean = False Parallel.For(0, 100000, Sub(i, state)…
-
2
votes2
answers2983
viewsRun DOS commands in Visual Studio
I need to know which command on Visual Studio 2013 executes the command to stop a Windows system service. No DOS I do like this: net stop Audiosrv netstart Audiosrv exit The other question is how to…
-
2
votes1
answer2006
viewsHow to wait for a Thread to finish and how to receive values from it?
I am working on a situation that requires the use of multiprocessing. I need to read files and a shitload of lawsuits that could take some time. During this process, I want to display a kind of user…
-
2
votes3
answers8837
viewsHow to work with dates in the dd/mm/yyyy format in Vb.net?
I have a text box named txt_cadastro.Text. When using the following command: txt_cadastro.Text = DateString Man textbox is completed in the following format: 04-23-2014 What do I do for it to be…
-
2
votes0
answers831
viewsHow do I digitally sign a . pem file using the SHA256 algorithm
I have a. pem file converted from a A3(.pfx) digital certificate I need to sign 2 Cnpjs concatenated using this file. pem, which contains 2 Keys 1 Public and another Private, I need to use the…
-
2
votes1
answer457
viewsInsert sub-total per page into a RDLC Report (.NET) table
I need to insert cumulative sub-total on each page of my RDLC report. NET, I am using a table to allocate all the values of the fields and their summations. The great difficulty is to insert the…
-
2
votes0
answers209
viewsLoop to affect all records in a table
I wanted you to help me on the following, I wanted to execute the code that I’m going to show you below on a button so that I would do it automatically when I click on it. The program works like…
-
2
votes3
answers226
viewsHow to use Getsetting/Savesetting in Windows Services
I created a service and configured it as Localsystem. In the implementation I try to search for a record saved on REGEDIT by another programme. The method GetSetting always returns me empty. Is…
-
2
votes1
answer608
viewsHow to request administrator permission in Visual Basic.NET
I am creating a project that accesses protected Windows folders. How do I request administrative user access.
-
2
votes2
answers756
viewsPossible SHA256 return 128bytes after signing?
I’m using the following code to get my certificate and sign my Cnpjs, but I’m using the SHA256 algorithm, but it’s returning 128bytes. Can anyone tell me what’s wrong? Follows the Code: Dim data =…
-
2
votes2
answers2810
viewsHow to call a javascript function from an external file?
I’m having trouble validating a field by clicking the button incluir, so I click on incluir gives this error below: Cannot get value from 'value' property: the object is null or undefined. This…
-
2
votes1
answer131
viewsSee changes (delete) on grid Vb.net
Hi, I’d like you to help me with the next one. i have a form that does a search for a code with several grids and a button, this button makes a number of changes in the various grids but also want…
-
2
votes0
answers1739
viewsHow to Develop a Remote Access
I would like to develop a system that could connect a machine to another machine and give me full control of this 2°machine, Ex: Team Viewer, Ammy Admin, Log me In. I would not like to do anything…
-
2
votes2
answers1232
viewsImport Itaucripto DLL into VB
Hello, I’m implementing the second way of boleto Itaú, but I’m trying to work with ASP.NET VB and I don’t have much knowledge in this language. I did everything right and is working locally, but…
-
2
votes3
answers6793
viewsHow to execute multiple cmd commands in VB.net
I know that you can execute a cmd command through VB.Net, with Shell in VB.NET: Shell("CMD.exe /c {comando cmd aki}") However, when you have to use a command like cd to change the directory, it…
vb.netasked 9 years, 5 months ago Nickolas Carlos 632 -
2
votes2
answers949
viewsHow to know the current state of the form?
I am beginner in the area, I could not find my question elsewhere. Is there any code, which shows the state of the form? For example: if it is in focus, if it is minimized or maximized? Thanks in…
-
2
votes1
answer3519
viewsHow do I show and select one of the digital certificates on my computer
In my desktop I have some certificates and I need to select one of them, I would like to know via VN.Net or C# code how to appear a list and I choose the digital certificate I need, without having…
-
2
votes2
answers94
viewsCatching the Location of a POST
I’m using the method HttpRequestHeader to make requests (GET and POST), but I need to take the parameter Location of the response of a POST and I am unable to evolve. There is an example of my…
-
2
votes1
answer703
viewsHow to consume Mayor’s Webservices for NFS-e Error "'Anonymous' client" VB.NET
I am developing a project that will send Xmls to the WS of the IRS, I made the reference using the following URL: https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx But when it passes the Test…
-
2
votes1
answer406
viewsNF-e 3.10 Does MG do how to receive the return of Nfeautorizacaoloteasybc?
I am trying this way (asynchronous), with the synchronous I also can not capture any status or return, but at least transmits the note to MG Suicide With NfeRecepcaoMG .Url =…
-
2
votes1
answer792
viewsTransitions, Effects for Winforms . NET
How to get the fade-in and out effects, transitions, drives and etc, in forms and their controls in VB.NET, natively or using Frameworks?
-
2
votes1
answer41
viewsGet 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 =…
-
2
votes2
answers239
viewsDataset with cloister Where like '%' @parametro Visual Basic 2012
Hello, I am creating a form to generate reports using the Reportviwer control and I came across a problem, I have a Dataset created with Dsclient name, I created a clausa to filter the search…
-
2
votes1
answer45
viewsDynamic 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
answer500
viewsError Signing XML, URI Invalid VB.NET
I have this code to sign an XML, because right now it asks for a URI, I know it’s a namespace that points to some site, but when I assign the URL, it gives an exception error. ' Cria a referencia…
-
2
votes3
answers2384
viewsRejection Nfse SP XML data signature Differs from Calculated SHA1 VB.net
I am signing the following string: 339575410000100000000000120150413NI0000000000000500000000002502917N207293716000260 Using the following code: ' Obtem o certificado Dim CertificadoDig As…
-
2
votes1
answer444
viewsDisable Scrollbar from a Form MDI Container
Does anyone know how to stop Child Forms from moving beyond the screen and displaying a scrollbar? I wish there was a limit to moving the Child Forms... that they only move up to the screen size and…
-
2
votes1
answer30
viewsGetting 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)…
-
2
votes1
answer1296
viewsInsert Listview content into database (Mysql)
Hello, I am developing an application in Vb and would like to know, how to pass a list created in Listviw control to the database? until the moment I built it: Private Sub criarLista()…
vb.netasked 9 years, 1 month ago Hebert Lima 987 -
2
votes2
answers155
viewsDifferences 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
votes1
answer135
viewsHow to export content generated by VB.NET to Excel
I have a page that loads a table, and wanted to export it to Excel, how can I do this? Public Class RelRegepaCap Inherits IcatuHartford.Web.UI.Pagina Protected Sub Pag e_Load(ByVal sender As Object,…
vb.netasked 9 years ago Wesley Dias 35 -
2
votes2
answers473
viewsEnd of ASP.NET Webforms?
I wonder if there is a certain trend in ASP.NET Webforms if "retire", leaving only ASP.NET MVC, because according to this article the answer would be yes. The author of the article (Ramon Durães) at…
-
2
votes2
answers314
viewsSimultaneous tasks (Best way?)
Hello, my dear friends! I’m looking for the best way to work with simultaneous tasks in a graphical environment. I have tried using: (Thread), (Task) and (Backgroundworker). But in all of them I had…
-
2
votes1
answer159
viewsApply function to all list elements using VB.NET
Is there a function/module for an object of type List in VB.NET that is similar to array_map() of PHP? The idea is to create a new variable with the elements that satisfy a certain condition. I have…
-
2
votes1
answer181
viewsHow to set Nothing to a Datetime variable?
I have a function that receives a string and is converted to date time, I did a check for when come string empty, return Nothing. But when I leave the function is returning me the date in this…
-
2
votes1
answer1899
viewsCalling the browser digital certificate
How do I call the browser digital certificate so that my webapp on Asp.net mvc can sign an xml and then return it to the user? I have seen features that use java or another applet, but I would not…
-
2
votes1
answer153
viewsGUI Applications - Speeding up! How?
Hello, everybody! My mission is to give agility and fluidity to a software... leave it without those constant locks in each For... For this I created a problem and would like to know if someone can…
-
2
votes1
answer226
viewsFilter on gridview, how to do?
I am trying to filter my gridview, but it is not returning anything on the grid. The parameters I pass are correct. But still nothing returns! Here is the click of the button: Private Sub…
-
2
votes2
answers602
viewsCombobox and database connection
Good afternoon! I’m having some difficulty submitting the combobox data in listview due to an error that appears and I can not solve. The mistake you make is this This here is the code where the…
-
2
votes1
answer300
viewsHow 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…
-
2
votes2
answers413
viewsProblem 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…
-
2
votes2
answers676
viewsHow to Save Datagridview Items within a Column?
I’m creating a Budget Form, similar to the one in the photo: As you can see, on the New button, I have a new line in the bank with the budget number in the field Código and the customer in the field…
-
2
votes1
answer388
viewsWindows Form within Windows Form
Besides using Splitcontainer, is there any other way to put a Form inside another form, using HTML’s iframe style? Because Splitcontainer I am not able to change the Form data inside it.
-
2
votes3
answers1130
viewsWebbrowser - Click on elements of a website
Hello, everybody! Here’s the thing, I need to make my program click on an element. Here’s a photo to make it easier to understand: http://i.imgur.com/Uitnkvt.png I’ve tried a lot of things, but…
-
2
votes1
answer193
viewsRegister a custom protocol in Windows
I don’t know if I’m asking you correctly, but I don’t know where to start looking. I would like to register a custom protocol in windows like some applications do. Example: Spotify -> Spotify:…