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
-
0
votes1
answer62
viewsReplica in datagridview (Vb.net and ms-access database)
When I am making a new sale (in the case of this software I am developing), every time I add new items in the datagridview it appears together with items (or sales) previously added. I would like to…
-
0
votes1
answer28
viewsHow to remove the automatically generated gridview table from Asp: Templatefield?
How to remove the automatically generated gridview table from Asp: Templatefield? I’m using a gridview like this <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">…
-
0
votes1
answer450
viewsCompile Visual Studio program with database and move to another PC
Just a basic question, when making a database form in visual studio and after compiled is necessary the computer where I will pass the files to run have the sql installed or I can run the good…
-
0
votes2
answers221
viewsTurn decimal into Vb minutes
Well I know that if I take for example 4.70 and turn the ".70" in minutes, I have q take the 0.70 ( number after the comma ) and multiplied by 60, that would give 42, in value of hours would be 4:42…
vb.netasked 6 years, 2 months ago Mateus Justino 93 -
0
votes2
answers30
viewsSend data from a csv to an array
I need to send the data that is in a csv file into an array. I already have the importer of the csv file and it is read only need to send the data to the array. ------edited------- Using the…
vb.netasked 6 years, 2 months ago José Gomes 214 -
0
votes1
answer99
viewsHow to get all public properties of a class in the order that were declared in VB.NET
I am creating a library to validate the Fiscal SPED in VB.NET and to streamline the process of creating lines, each class already has its pre-defined attributes and in the order according to the…
-
0
votes1
answer46
viewsCreate an array with the data of an xls
I get values from an xls that I want to be stored in a class that has an array to later list them Someone can tell me how to do it? Can help?
vb.netasked 6 years, 2 months ago José Gomes 214 -
0
votes2
answers36
viewsDelete information from textbox when there is Reload
I am creating an Asp.net web page and I wanted when the site was reloaded or pressed the "F5" key all the data of the textbox to pass the "".
-
0
votes0
answers58
viewsError loading google api Chart in ASP.net
When I took the example of the site worked, but when I include a new Webform and in a new project and paste the codes of the codebehind example in VB.net and the aspx code does not work, gives the…
-
0
votes1
answer534
viewsIntellisense does not work
I’m using visual studio 2010 and all of a sudden Intellisense has stopped working. I already hung up and turned the computer back on, restarted the settings of visual studio, I’ve done…
-
0
votes1
answer30
viewsbtnSubmit_Click is not a member of 'ASP.cliente_aspx'
I am creating a site in Asp.net with a master page. When I try to put a datepicker gives me error. I’m using this one Website The same is giving the following error 'btnSubmit_Click is not a member…
-
0
votes0
answers283
viewsAdjust listview width for input from mysql database Vb.net
I have a problem to adjust the width with listview in VB.net, where the data loaded from the database does not adjust the width. Example: Have a database record that has a width of 250 characters…
-
0
votes0
answers100
viewsVb.net and Itextsharp
Good for everyone, I have a problem, through a list I am trying to create a PDF, with the title and with the content. Example: Title 1 Description title 1 My problem is that if you have more than…
-
0
votes1
answer568
viewschange text from fileupload Asp.net
You can change the text inside Fileupload? I wanted to change the text "No files selected"…
-
0
votes1
answer79
viewsVisual basic -Listview data by tables
Dim sqlConString As String = "Server=localhost\TESTE;Database=tempTest;User Id=sa;Password=123" Try Using con = New SqlConnection(sqlConString) con.Open() Using cmd = con.CreateCommand '' Para…
-
0
votes1
answer48
viewsinsert data into an excel spreadsheet
I need to insert data into an excel file and am using Infragistics.documents.excel for that reason. needed to know how to see which is the last column with Indice - In the case of this image would…
vb.netasked 6 years, 2 months ago José Gomes 214 -
0
votes1
answer41
viewsSelect in the access database
I’m having a hard time getting data from the bank. I can put it in my bank with that code Dim comandosql As OleDbCommand cadastro = "Insert INTO usuarios (usuario, senha) Values ('" &…
vb.netasked 6 years, 1 month ago Mateus Justino 93 -
0
votes1
answer551
viewsHow to use a variable that represents the name of a label to change its value?
I created a method to form a Name that there is any Label of the program, and give a numerical value to the property Text of that Label graduate. And I just need to be able to do it like this:…
-
0
votes1
answer94
viewsVisible password
I am building a login in Asp.net and I want to click on the checkbox to show the password to be shown. Design page Asp <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"…
-
0
votes1
answer50
viewsPrintdocument (PDF) in horizontal VB
I have a printDocument that makes mine PDF with the sheet upright (standing) I would like to leave the sheet horizontal (lying down). My code I use to generate the PDF: Dim ppd As New…
vb.netasked 6 years, 1 month ago Mateus Justino 93 -
0
votes1
answer398
viewsRead xml in VB.net
I’d like to read the line tag version="1.0.1.0" and store in a variable in Vb.Net? <?xml version="1.0" encoding="utf-8"?> <Feed> <Tasks> <FileUpdateTask hotswap="false"…
-
0
votes0
answers39
viewsDeserialize an XML file and insert it into a Mysql database
Hail to the crowd here, How to read XML files so that data can be entered into a database mysql. The problem is reading the XML and deserializar, since the retorn is empty, because the insertion in…
-
0
votes1
answer643
viewsDisable the "Close" button of a form
Does anyone know how I disable the "Close" ("X") button of a form in VB.net?…
vb.netasked 6 years ago Mateus Justino 93 -
0
votes0
answers118
viewsShow videos from a Vb.net folder
Guys I was using the following code to show several images in a listview as if it were a library. For Each arquivos In FileIO.FileSystem.GetFiles(caminho,…
vb.netasked 6 years ago Lucas Pedro 297 -
0
votes1
answer394
viewsHow to make an event run only when the mouse is pressed
Hello. I wonder if in VB.NET (Windows Forms) has how to make an event happen only during the time when the mouse button (LMB) is pressed. For example, while the user holds the mouse button, the "W"…
-
0
votes2
answers85
viewsIF condition in Datagridview
Hello. How can I perform a check of the first number of a grid Row ? Example: If Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(0).Value)[0(primeiro número da row)] == (for igual a:) 5 Then…
-
0
votes1
answer38
viewsIs it possible to open a form with an ordinary user and another as an administrator in the same application?
I have a program that in certain parts needs to be run as an administrator, in others it needs to be run as an ordinary user. Example: configuracoes.Show() 'Esse será executado como usuário comum'…
-
0
votes0
answers32
viewsFilter data on Bindingsource without using %
I load the data from a database into a Bindingsource and use it to make searches. The same is tied with a datagridview, whose return me the data sought, at the moment I am using LIKE to do these…
vb.netasked 6 years ago welinton vito 1 -
0
votes1
answer204
viewsInclusion of files in Visual Studio projects
Good evening. I wonder if it is possible to include a file in a Visual Studio project by programming at runtime ?…
-
0
votes1
answer456
viewsVB.NET - How to sort a Datagridview by color
I have a Datagridview, where I do a document review. Datagridview is filled by a file, I use the OpenFileDialog to select the file and fill in Datagridview. Then I call a function where a critique…
-
0
votes1
answer20
viewsHow to insert new text into existing text in textbox
I’m trying to get in the first line of an already imported text in the textbox the date and time , but when I apply with this code it makes a new line but at the end and I need to apply in the first…
vb.netasked 5 years, 8 months ago roffy miranda 37 -
0
votes1
answer44
viewsHow to make a vertical ruler of orientation with the same number of imported text lines Vb.net
I’m building a text editor and I need to make a vertical ruler with the same number of lines of imported text. I already know how to obtain the number of lines of the imported text but I did not…
vb.netasked 5 years, 8 months ago roffy miranda 37 -
0
votes1
answer71
viewsFormatting textbox
Hello, I’m having a formatting problem in the text box which is as follows I am using the following code to format the text box according to the phone number If Len(numtel) = 11 Then CaixaTxt.Text =…
-
0
votes1
answer36
viewsConversion of jpg photo set to avi, empty video
I am developing an application that captures images from Webcamera and named Imgp0.jpg ,Imgp1.jpg But when I try to convert these images to video using ffmpeg but the out put video is empty. This is…
vb.netasked 5 years, 10 months ago Helder Da Silveira Ventura 125 -
0
votes1
answer147
viewsPrint in landscape format in Crystal report
I can’t print out a Crystal report in landscape format. I’ve changed in Designer>Printer Setup>Orientation>Landscape but it didn’t work. I went into the Default Properties didn’t work…
-
0
votes2
answers39
viewsIt is returning me a rounded number and I do not want ex number 1.99 and not 1.00 or 2.00
Private Sub txtPricePerQty_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtPricePerQty.TextChanged Dim i As Double = 0 i = CDbl(Val(txtQty.Text) * Val(txtPricePerQty.Text)) i…
vb.netasked 5 years, 2 months ago Mario Meireles 3 -
0
votes0
answers49
viewshow to add images to a Listviewgroup
Let’s suppose that way: C:\...\imagem have 3 folders: fotos, wallpaper and ferias. What I’d like to do and leave them like this: Photos imagem1 imagem2 imagem3 imagem4 imagem5 imagem6 Wallpaper…
-
0
votes2
answers243
viewsConvert VB code to C# which turns characters into numbers
I have this code in VB and need to convert to C#. Public Function eNumero(s As String) As Boolean If s = "" Then eNumero = False Else eNumero = Asc(s) >= Asc("0") And Asc(s) <= Asc("9") End If…
-
0
votes0
answers54
viewsParallel Task How to improve the performance of this function
I would like a suggestion to improve the performance of these methods. They have taken too long to complete. Please if the question is not very clear just say that I try to improve I will provide…
-
0
votes1
answer296
viewsSelect all textbox text
I have the following code: Private Sub nct_focus(sender As Object, e As EventArgs) Handles nCT.GotFocus, nCT.Click sender.SelectAll() End Sub what happens is this, it works well, however I have some…
vb.netasked 5 years ago Alvaro Alves 1,065 -
0
votes1
answer51
viewsHow can I exchange the part ( "*.jpg", "*.mp4", "*.doc") for a variable?
How can I change the part "*.jpg", "*.mp4", "*.doc" by a variable? I tried some things like: Dim var As String = "*.jpg, *.mp4, *.doc" or Dim var As String = ".jpg .mp4 .doc", ..., but I couldn’t.…
vb.netasked 5 years, 8 months ago Lucas Pedro 297 -
0
votes1
answer37
viewsData from the same table for different views?
I have found it difficult to solve the following problem: Assuming I have the following structure in the database: Id int identity primary key CodigoBanco char(3) Descricao varchar(100) Endereco…
-
0
votes1
answer35
viewsText imported from text to textbox file does not display the seats correctly
I’m developing a Notepad and I’m having trouble importing text from a text file where that text has several seats, but after importing to a multi-line textbox , instead of the seats a different…
vb.netasked 5 years, 8 months ago roffy miranda 37 -
0
votes1
answer26
viewsDanfe procedure error! [-2146233036] The type initializer for '<Module>' threw an Exception
Good afternoon guys, I have a system that performs the impression of Danfes in vb.net, but in a specific client he is making the following mistake: Danfe procedure error! [-2146233036] The type…
vb.netasked 5 years, 8 months ago Alvaro Alves 1,065 -
0
votes0
answers869
viewsException has been thrown by the target of an Invocation
Hello, I am trying to login to the site and I get the error message: Exception has been thrown by the target of an Invocation Dim url As String = "https://www.academia.edu/login" Dim client As New…
-
0
votes1
answer170
viewsError opening a form inside another form [VB.NET]
I am trying to open a form within another form, but I am having a certain difficulty. The idea is that when the clicked on the button "btn_CadastroAlunos" the form "F_cadastro_alunos.Vb" is opened…
-
0
votes1
answer244
viewsHow to catch the monitor serial via code
I need to collect various information from monitors via code, I searched a little and found this link:…
-
0
votes1
answer202
viewsSendkeys.Sendwait() is not working in a particular application
I have a software for my tcc, in which I am emulating the pressing of a key using the SendKeys.SendWait("{F12}"). I created the methods and everything right and went to test, however in the…
-
0
votes1
answer43
viewsDoubt in the Operator Conversion
I have a question about converting an operator into a c# struct for VB. C# public static Angle operator +(Angle a) { return a; } Vb Public Shared Operator +(ByVal a As Angle) Return a End Operator I…
-
0
votes1
answer25
viewsGrab specific part of a Vb.net string
Say hello, all right? Can anyone give a boost? I need to capture a specific part of the string I pull from a pdf. I needed you to capture the part of the code separated by delimiters (spaces), you…