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
-
2
votes1
answer828
viewsRead tag fields in XML VB.Net
Good morning gentlemen, I need to read a field that is inside an xml tag but I’m having difficulties, I need to do this to assemble a counter. My project is to read the XML of a sale and assemble a…
-
1
votes1
answer392
viewsMonitor Email Inbox
I would like a function to monitor the Email inbox.
-
1
votes1
answer150
viewsMake "Publish" and set prerequisites to run application
I’m developing an application (Vb.net) that contains Krypton elements. After doing "Publish", I compacted and sent one person to test it. However, this person answered me saying that he cannot run…
-
1
votes1
answer132
viewsHow do I get the images in the location the mouse pointer is in?
I need to maintain a system that was originally developed in vb6 and I’m passing to Vb.net. The system uses the CS2 Indesign api, whose documentation is very bad. Part of the program consists of…
-
1
votes1
answer258
viewsCheck Box to call function that changes language
I’m having a doubt on a screen .aspx that generates a grid report and need to do that when checking a checkbox and clicking the button Beget the report is generated in English. To generate this…
-
1
votes1
answer1677
viewsDirect printing on the door
I need a VB.Net code to print directly to the port of a bead printer without using any driver windows. I add that my printer is connected by USB but in the future I needed to print on any type of…
-
1
votes1
answer161
viewsActivex Axvlcplugin2 no event works
I possess in my form a VLC Player. In it, I need to get basic information like video duration and current position. but no event works. Am I doing something wrong? Follow code: public Form1() {…
-
1
votes1
answer486
viewsWrite a Dword value to Decimal in the Windows Register
I need to record a decimal Dword record in Visual Basic Express 2013. How the code was written: Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click Dim Dec As Decimal…
-
1
votes1
answer302
viewsHow do I generate an automatic IP (DHCP) in VB.NET
Good afternoon, I would like to know how I can be generating an automatic IP (DHCP) in VB.NET and if you need to generate Mascara, Gateway and automatic DNS as well? Or in this case to use Automatic…
-
1
votes1
answer40
viewsWhat is Text= Resources from a dxe button?
I want to know what is this chunk that code from a dxe button:Aspxbutton, and how it works? Text="<%$ Resources: Textos, BotaoLogin %>"
-
1
votes1
answer433
viewsOpen PHP Local Server from VB.NET application
I wanted to know if it is possible to open a local PHP server from a VB.NET application, it can be a very basic server, like Vertrigoserv, why is it only to run some basic code even through the…
vb.netasked 9 years, 5 months ago Nickolas Carlos 632 -
1
votes1
answer89
viewsUse only one parameter
Hello, it is possible to use only one parameter of a function? My problem is I have a Function oUtils.CarregarListaDominioAnalise(Session("idioma"), lst_cdocorrencia, 30, True, "", "") In which…
-
1
votes2
answers2143
viewsFilter Datagridview by Interval Between Dates in VB.NET
I’m new to programming and I’m finishing a job, but I have a problem that I’ve been facing for weeks and I haven’t been able to solve. I created a simple system that registers the Oss (service…
-
1
votes1
answer52
viewsDatetimerpicker VBA
I am developing an application in Visual Basic, and would like to know how to load saved hours in the database for control DateTimePicker, I can normally insert the value into the database.…
vb.netasked 9 years, 4 months ago Hebert Lima 987 -
1
votes0
answers253
viewsUse a . tlb that has a dll . net dependency
I have developed a library that uses dll itextsharp, however this library I wrote in VB.Net will be used in a VB6 program and therefore it is necessary to generate a tlb of the same. The doubt…
-
1
votes1
answer68
viewsIndex Error in listbox
My application has the following starting code: BuscaDiretorioPastaOriginal("Diretorio") // isso seria uma função **recursiva** de diretorios BuscaDiretorioPastaPath("Diretorio") // isso seria uma…
vb.netasked 9 years, 7 months ago Vyctor Junior 109 -
1
votes1
answer123
viewsIs there any way to give the columns an automatic width?
I’m assembling a report via Itextsharp and have read about how to assign specific widths to Pdfptable columns, however I would like this width to be automatically assigned according to the content…
-
1
votes1
answer171
viewsHow to avoid reducing the width of the columns?
I’m using the itextsharp library for PDF reporting and although I can generate documents with a nice layout and assign specific widths through an array of dimensions :…
-
1
votes1
answer652
viewsPublish WCF service on IIS with test environment
I created a webservice using WCF . NET 4.0, and hosted on the IIS of our local server (when everything is ok it will be migrated to a web server). In the winform application I managed to consume the…
-
1
votes1
answer1063
viewsHow to make a filter using LIKE in int type fields in a Dataview?
I’m using the code below to make a filter on my DataGridView, but when I filter using the like in a field of the kind int, I get the following error: Cannot perform 'Like' operation on System.Int32…
-
1
votes1
answer656
viewsCut an image every 300 pixels high
I’m developing a clipping report generator where I need to insert images captured from web pages. Most of the time it is necessary to cut them and to distribute them on the PDF pages. How do I…
-
1
votes1
answer116
viewsError while trying to get the value in an XML section, in VB.NET
The error happens right when it passes in the first element "Demi". XML: <ide> <cUF>11</cUF> <cNF>855305</cNF> <mod>59</mod>…
-
1
votes2
answers2831
viewsFormat date (dd/MM/yyyy)
I have here a column in a Datagridview with the name "DBO" (date of Birth) which has the format month/day/year, I wanted to change the style of the date to dd-MM-yyyy but I’m not getting it.…
-
1
votes1
answer55
viewsAccept any Annex format
I have an application where you can insert attachments and then download them. But I did it in a way that with every file format I want to insert as an attachment, I enter a For Each in this way…
-
1
votes2
answers140
viewsChange color of various Panel’s dynamically
I have the following code in the button action: pnl1.BackColor = Color.DarkOrange pnl2.BackColor = Color.DarkOrange pnl3.BackColor = Color.DarkOrange pnl4.BackColor = Color.DarkOrange pnl5.BackColor…
-
1
votes1
answer137
viewsObject cannot be cast from Dbnull to other types
I’m having a problem with Return "Object cannot be cast from Dbnull to other types", how to proceed? Public Function RetornaValorTotalPremiacao(ByVal strCodigoProposta As String) As Decimal Try Dim…
vb.netasked 9 years, 3 months ago WellDotCom 703 -
1
votes0
answers199
viewsCalling a javascript function to execute a logic with data I extract from html
I’m taking some data from an html and need to call a Javascript to generate a parameter with the data I took in html. How do I call Javascript to execute its logic with the extracted data within a…
-
1
votes1
answer89
viewsFeeding codebehind list and displaying value in Asp
I am for the first time having deeper contact with an application in VB.NET. In this case, I need to feed a list that I am 'turning into an object' and later, display it on my Asp. I’m usually used…
-
1
votes3
answers262
viewsHow to Pass Arguments to a class Ex: Dim t as new TL("string","string","string")
I’m having a problem that’s turning my head backwards! I’m building a server connection DLL FTP but right away I’m faced with the following problem: I need to declare the class in a form to open the…
vb.netasked 9 years, 3 months ago Vyctor Junior 109 -
1
votes1
answer574
viewsHow to use Reference in an XML signature?
Doubts about System.Security.Cryptography.Xml.Reference: What exactly is it for? How should I use Reference? What to assign to it? I need to use this in signing an XML Pq? And how to use? What to do…
-
1
votes1
answer99
viewsAutomatically select field
Guys I got a field: I set to automatically fill in VB: Me.WebBrowser1.Document.GetElementsByTagName("select").GetElementsByName("NW_State").Item(0).SetAttribute("value", "AK") But it’s not going at…
-
1
votes1
answer46
viewsError using Mappath http:/.. is not a Valid virtual path. '
I am trying to open a file in page_load through a function Comeback() which returns the file URL. reEditorContrato.Open(MapPath(RetornaCaminho(CodigoArquivo))) Obs: reEditorContract is an…
-
1
votes1
answer135
viewsHow to add these references in VB.net?
I’m not finding these references with the exclamation in Add Reference, does anyone know how to add?…
-
1
votes1
answer190
viewsHow to block mouse scroll in Datagridview?
To disable Scrollbar on a Vb.net grid, there is a problem and I want to block to fix it.
-
1
votes0
answers1823
viewsMocking the Recaptcha
I have a website made in VB.net and he has a contact form where he has a Google Recaptcha 2 in it and today had a citizen who is able to send messages in this form and going through Recaptcha…
-
1
votes1
answer76
viewsType conversion going wrong
I have a data conversion problem when going through For Each, accuses the item "vl_maodeobra" cannot be converted from String to type Integer. The problem is that no matter what conversion I try to…
-
1
votes0
answers39
viewsCompiler "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?
-
1
votes1
answer160
viewsChange label text while running a loop on the server
I have a screen that does a lengthy processing, and there’s a for that each next, I want to set a label for the user to see the process. I know it can be done by ajax, but I haven’t found anything…
-
1
votes1
answer1332
viewsHow to Reference a DLL using <Dllimport> and a variable in the path?
I’m having a problem at the moment of referencing a dll using the <DllImport>, because in the place where I put the dll path <DllImport("C:\MinhaDll.dll")>, i would like to use a…
-
1
votes1
answer1622
viewsHow to get the value of the selected item in the listbox?
That way I did I couldn’t, from Object Reference not set to an instance of an Object! Private Sub btnDeletarPerfil_Click(sender As Object, e As EventArgs) Handles btnDeletarPerfil.Click…
vb.netasked 9 years ago WellDotCom 703 -
1
votes1
answer455
viewsRowcommand VB.Net
I have the following problem deleting a line from asp:gridview. When I leave the code(key) visible="false" in the gridview, the value returned in my variable key comes Empty. But when I let…
-
1
votes1
answer175
viewsHow 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…
-
1
votes3
answers954
viewsHow to get the text of the selected item in the listbox?
My attempt below, is giving Object Reference, why? how to solve?
vb.netasked 9 years ago WellDotCom 703 -
1
votes1
answer113
viewsGet 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…
-
1
votes1
answer217
viewsReceiving Information from a Website
Hello, everybody! I have a problem and I don’t know what else to do about it. The situation is as follows: My program accesses a website selling airline tickets... He needs to get the first ticket…
-
1
votes1
answer236
viewsSlide 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…
-
1
votes2
answers88
viewsEnsure that a set of functions function correctly
Hey there, guys! I’ve got a problem eating at me and I don’t think I can handle it on my own... Here’s the thing: I have a form with a button; that button is responsible for selling a product. The…
-
1
votes2
answers167
viewsCombobox come blank VB.NET with INNER JOIN
I’m having a little problem here and I haven’t found the solution yet, I’m loading data into a combobox using a DATASET from a INNER JOIN done in a database SQL SERVER. Until then it’s okay only…
-
1
votes1
answer77
viewsSoftware with cost. Help?
Hello, everybody! Well, my situation is this: I have a program and I want to charge for the use, but I realized that if I left free there would be more customers. So I thought I’d limit the system…
-
1
votes1
answer48
viewsCustom Control Libary WPF - Dispatchertimer Does Not Start VB.NET
I wanted to know why of this function created in a dll for WPF application in the VS 2013 does not start the DispatcherTimer. Code: Public Sub Iniciar TIniciaAntiDebuggers = New DispatcherTimer()…