Questions tagged as 'vb.net'

1
answer

Problem reading excel data

I want to import an entire Excel into a DataGridView. Public Sub Excel() Dim conn As OleDbConnection Dim dta As OleDbDataAdapter Dim OpenFileDialog As New OpenFileDialog Try OpenFileDialog.InitialDirectory = My.Compu...
asked by 24.08.2018 / 10:30
1
answer

Is it possible to obtain two independent results (sum) from a single query in LINQ?

I am modifying a program and I want to obtain two sums independently of the id and save them in independent variables one of another. It would also be useful to obtain a table resulting from a line with only the two columns added. With this e...
asked by 22.08.2018 / 10:18
1
answer

Get control events created? Visual Basic

I have a problem with which I have battled hours and I hope someone can help me: I am working on a system which clients will handle, remove the edges of the form to avoid being closed by customers joking or such, then I added an "Exit" button w...
asked by 06.07.2018 / 04:45
1
answer

VB.NET ReadProcessMemory ()

I'm trying to read memory address values from a process. At the moment I missed the error that I entered the wrong memory address. It is the variable HPaddr at which I start a value of 005C682C . To read the memory address I u...
asked by 18.05.2018 / 09:51
1
answer

Convert line from vb to C #

I have the following VB code Funtion Encripta(ByVal Pass As String) As String Dim Clave As String, i As Integer, Pass2 As String Dim Car As String, Codigo As String Clave="%ü&/@#$A" Pass2="" For i=1 to Len(Pass) CAR=Mid(Pass, i, 1)...
asked by 29.04.2018 / 18:24
1
answer

Problem Sendkeys.Send ({"ENTER"})

I am distributing a program on vb.net that uses: Sendkeys.Send({“Hola”}, true) Sendkeys.Send({ENTER}, true) I have written it from memory, I do not know if there is a syntax error but the idea is that ... The issue is that the program is...
asked by 19.06.2018 / 12:00
1
answer

Add Unit of Measure To Register In TextBox

Hello good afternoon apologize, there will be some way of when entering the data in a textbox you add the unit of measure you want automatically. Example: In a texbox where the weight of a person is recorded, write "22" and at the time of wri...
asked by 27.03.2018 / 21:57
1
answer

Activate and deactivate a button according to the selection in MS Visual Basic checklistbox?

Cordial greeting colleagues, it turns out that I have a CRUD in MS Visual Basic, connected to a database called quote, works perfectly, I use a checklistbox that is filled with the data of the bd and I also use it to select the records to those...
asked by 13.02.2018 / 20:02
1
answer

Save file inside a shared folder of a server

I am trying to save a file in a folder with a part of a server using this code Archivo.PostedFile.SaveAs(ruta) marks me an error: El método SaveAs está configurado para que requiera una ruta de acceso raíz y la ruta de acceso '~\servido...
asked by 08.02.2018 / 22:52
1
answer

Add values of a combobox only if they are different MS Visual Basic?

Cordial greeting colleagues, it turns out that I have a form in MS Visual basic about activities that should be done, there is a combobox for each activity with values from 1 to 8, depending on what is selected in each combobox should be added t...
asked by 02.02.2018 / 13:27