Questions tagged as 'vb.net'

1
answer

pass data from the datagrid of one form to the textbox of another form wpf

I have the following code to load my data into a datagrid of a form Private Sub cargarGrid() Dim conexion As New ConexionBD Dim data As DataTable dataGridVehiculos.ItemsSource = Nothing Try data = conexion.mostrarDatose...
asked by 08.02.2017 / 15:00
0
answers

ProgressBar within a custom control is not updated correctly VB.NET

I am creating a custom control that what is intended is to make a progress bar, so that you can define a number of processes, and that each of these processes is assigned a different proportion of the process bar, in addition that each process c...
asked by 26.01.2017 / 20:43
1
answer

How to write a Lamdba function in VB.NET

Note: This is a translation of an OS question in English. I am working on a VB.net project. I am new with VB.net LINQ and I would like to know the Lambda equivalent of var _new = orders.Select(x => x.items > 0); On VB.net O...
asked by 28.02.2017 / 14:36
1
answer

client / server application with TCPClient

Good morning, I am developing an application that communicates with a control box and receives data from it. the control box sends me a plot in ascii with which I determine if a sensor is being covered or a loop is being stepped on, and I send i...
asked by 05.01.2017 / 17:12
1
answer

Access to form in another library of the same solution (cross-reference error)

I am working on a project inherited from other programmers in .NET The solution has several projects in theory separated by functionality, with references between them. The problem I have is accessing a form from another library, which is not...
asked by 14.12.2016 / 09:26
1
answer

MVC - Return View (Model) when I make a POST

I have the following problem. My Controller has 2 Functions. This: <AllowAnonymous, HttpGet> Function Register(urlBack As String) As ActionResult Try Dim DBIvas As New BLIva() Dim DBProvincias As Ne...
asked by 29.11.2016 / 21:30
2
answers

vb.net - image is not displayed when running WPF

Good morning, I have the following design: <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.c...
asked by 03.01.2017 / 19:56
1
answer

How to get an image from a vbhtml view

Dear, how can I get an image from a vbhtml view in this format: @Html.LabelFor(Function(m) m.FchNacimientoPER) @Html.TextBoxFor(Function(m) m.FchNacimientoPER, new With {.class="form-control"}) I want to get the image as an...
asked by 25.11.2016 / 19:32
1
answer

Overwrite visual basic parameters

My program will have a series of parameters that are the following example: Public Module Program Public h As String = "[host]" Public port As Integer = "[port]" Public meltf As String = "[M]" Public Name As String = "[vn]"...
asked by 27.12.2016 / 02:13
1
answer

Break down an HEX variable into binary

Good morning, everyone. I have a problem and I can not find the formula to solve it. I have a hexadecimal number (8000) and it is composed of 16 bits that each of them tell me the state of 16 things. I would like to separate that variable to use...
asked by 27.10.2016 / 05:23