Questions tagged as 'vb.net'

2
answers

Is there an equivalent to AndAlso and OrElse in C #?

In VB.NET there are two interesting operators: AndAlso and OrElse . When used, the logical expression is not fully evaluated at once. See the following example: If (Not Usuario Is Nothing) And (Usuario.Idade = 18) Then ... E...
asked by 27.07.2017 / 13:52
1
answer

What are the main differences between VB.NET, VB6 and VBA?

What are the main differences between VB.NET, VB6 and VBA?     
asked by 18.09.2016 / 22:59
2
answers

Is it possible to join a C # form to a VB.NET project?

I have two distinct projects, one with just one form in C #, can I embed the form in my project in VB.NET?     
asked by 18.06.2015 / 06:13
1
answer

What is it, what is it for and when do I use Friend?

Code sample: Friend Const Public Frind     
asked by 18.12.2014 / 12:11
2
answers

Writing conventions for controls in ASP.NET

When you drag a control from the Toolbox to a Web Form, Visual Studio automatically adds an ID to this control that consists of its type with the first letter of capital and a number. This is the same pattern used in projects in VB.NET with W...
asked by 15.12.2013 / 02:20
3
answers

Best practice to check if the module is being used

My question that maybe - hopefully not - can be considered as opinion, is conceptual and even simple. In most applications, we work with features that when used by multiple users at the same time, can cause some problem in the database. In my...
asked by 22.05.2015 / 16:24
1
answer

DataGridView VB Editable Cells

Hello, I have a DataGridView that is populated by a BindingSource and when I load the data I can not edit the Cells with value, only when I load the empty DataGridView, I tried to use DataGridView1.BeginEdit(True) but it does not work!...
asked by 25.05.2015 / 21:27
2
answers

Is there any way to handle all software exceptions?

I am creating a DLL for use in many of my projects. I've created a method that captures Source, Message, and other variables I've set, mounts an email, and sends it to myself. (a kind of error log by email). Is there any way to reference th...
asked by 30.01.2015 / 16:14
1
answer

How to add namespaces automatically in Visual Basic?

When creating any class in C #, using Visual Studio, it automatically adds the namespace, as can be seen below: namespace Aplicacao.Modelo { class Cliente { } } In Visual Basic, it does not do the same thing: Public Class Clie...
asked by 27.12.2016 / 00:30
1
answer

Import is not working

Imports System.DirectoryServices    ERROR MESSAGE: "Warning 1 Namespace or type specified in the Imports 'System.Directory.Services' does not contain any public member or can not be found. Make sure the namespace is defined and contains at lea...
asked by 17.01.2015 / 21:20