Questions tagged as 'vb.net'

2
answers

Run DOS commands in Visual Studio

I need to know which command in Visual Studio 2013 runs the command to stop a Windows system service. In DOS I do this: net stop Audiosrv netstart Audiosrv exit The other question is how to execute the DOS commands inside Vi...
asked by 20.07.2014 / 13:57
2
answers

How to know the current status of the form?

I'm a beginner in the field, I could not find my question elsewhere. Is there a code that shows the state of the form? For example: if it is in focus, is it minimized or maximized? Thanks in advance!     
asked by 24.03.2015 / 16:14
1
answer

Place Date in App.Config

I have an application that runs as a service and needed to configure some variables, such as dates, in the app.config so that when it is necessary to make changes to the search criteria (in cases where a failure may occur) in debug the applicati...
asked by 14.02.2014 / 12:24
1
answer

How to drill down to an entity from the STP @PRIMAVERA module

I am implementing a drilldown for the PRIMAVERA ERP 9 STP process table, but it is giving error. My code. Public Sub ExecutaEventoDrillDown_Processos(ByVal IdProcesso As String) Dim objParametros As StdBEValoresStr Dim objCampoDrillDown As...
asked by 20.02.2018 / 17:56
1
answer

Left Zeros [duplicate]

I will receive several numbers that can be up to 9 digits. I would like that when it was not 9 (111 for example) the system automatically replaced with 000000111. The examples I found on the internet put to fill fixed numbers on the left, I...
asked by 05.09.2017 / 21:12
1
answer

When to use And, AndAlso and Or, OrElse? [duplicate]

I do not know when to use the syntaxes Or or OrElse and / or And or AndAlso , because I do not understand what difference it makes in the logic circuit. Being in C #, And = & , AndAlso =...
asked by 24.09.2017 / 20:05
1
answer

Is there an equivalent to VB.Net Call in C #?

The question is simple. Is there a keyword equivalent to Call of Visual Basic .NET in C #? In Visual Basic, I called a method of a class without explicitly declaring a member for it: Call New Form() With {.Text = "Olá, mundo!"}.ShowD...
asked by 01.08.2017 / 05:25
1
answer

Error: Value can not be null. Parameter name: dataTable. VB.NET

I'm trying to make a query in the database and display it in a datagrid , I do not have as much experience, I do technical course and it's my first question here, the code I'm using is this: Public Sub PreencheDataGrid(ByRef x As DataGri...
asked by 24.05.2017 / 15:33
1
answer

Does an ordinary Class Library work in Silverlight?

A non-target class library can be used in .NET Silverlight ? The same, would it work in a Silverlight web application? Thanks!     
asked by 09.07.2016 / 00:52
1
answer

Hide form via C # keys [closed]

I am making a menu in C # and it only opens when the game is open or running, ie if the game is running show the menu, so far so good it runs, however I wanted to hide the menu for example by pressing F1 on the keyboard without using the minimiz...
asked by 24.12.2016 / 17:34