Visual Basic.NET (VB.NET) is a multi-paradigm, managed, type-safe, object-oriented computer programming language. Along with C# and F#, it is one of the main languages targeting the .NET Framework. VB.NET can be viewed as an evolution of Microsoft's Visual Basic 6 (VB6) but implemented on the Microsoft .NET Framework. DO NOT USE this tag for VB6, VBA or VBScript questions.
137,366
questions
0
votes
1
answer
9
views
Boolean result from hashtable with another Boolean
I have some inherited code that has something in it I have never seen, do not understand and can't find anything about. Essentially it is:
Dim h As Hashtable
Dim a As ...
-1
votes
0
answers
27
views
Problem converting C# programming language to vb .net
I have a piece of code in C # that I converted to Visual Basic, but unfortunately I can not convert part of this code to Visual Basic and I have not been able to do so even using online converters.
I ...
-3
votes
2
answers
33
views
Add a specific character after each character in a new string [closed]
I was wondering if I can create a new string that adds a specific character (.) after each old character. I thought I could use a For Loop but I'm not sure...
var str = "ABCD"; //old string.....
0
votes
1
answer
28
views
If statement not moving to the next item
I am working on a side project in VB, it is a network monitoring tool to pings a number of devices which should come back as successful or failed. I have extreme limits in programming so forgive me.
I ...
0
votes
1
answer
39
views
What is the equivalent DateAndTime.DateAdd in C#
I have an old code written in VB.Net and I am trying to convert it into c#. I am stuck on DateAndTime.DateAdd conversion for c#
DateAdd(DateInterval.Month, -1, Now).ToString("MMM")
This is ...
0
votes
0
answers
14
views
from textboxes to listview or datagridview - vb.net
Hi guys,please help me,
When i click the Button "Pay" i just want to Insert the value of the textbox to Listview or Datagridview
this is the sample of that i want to be the rusult of ...
-1
votes
2
answers
23
views
Create WPF TreeView from array
I am struggling with this and hope someone can help me solving.
I have an array of string that are directories. This is an example of my array:
c:\temp\freigabe
c:\temp\ftptest
c:\temp\ftptest\testen
...
1
vote
2
answers
26
views
(VB.NET) How To Make a Label Blink, But Be On longer than Off For Easier Reading?
I want a warning label (which is an image with text on it) to be on say for 800ms then blink off for 200ms rather than just the standard same interval for on/off. There are other labels and I need ...
0
votes
0
answers
15
views
Reading a text file in binary mode in vb.net
I am reading a text file in vb.net using binary mode but it is ignoring the spaces while reading from the files. Below is the snapshots of the code:
Dim hInFile As Integer
hInFile = ...
0
votes
0
answers
24
views
Wrap text to new line in DataGridview cell
Good afternoon!
The DataGridView column has the following text:
Title (Dep)
programmer (IT infrastcomcture)
programmer (IT infrastcomcture)
System Administrator(IT infrastcomcture)
programmer (IT ...
0
votes
0
answers
24
views
Save the transformed document (the output of the xml/xsl transformation) in a html file on disc
I write code in visual basic (visual studio, Windows Forms Applications), transforming an XML file through an XSL file using: ?xml-stylesheet type="text/xsl" href="XSL.xsl"?, and ...
0
votes
1
answer
13
views
How to create null SQL parameter for a UniqueIdentifier?
While doing
If Me.Id_Padre Is Nothing Then
comandoSQL.Parameters.Add("@Id_Padre", SqlDbType.UniqueIdentifier).Value = DBNull.Value
Else
comandoSQL.Parameters.Add("@Id_Padre"...
0
votes
1
answer
16
views
Nested Classes sharing data
I have a winform program and a Dll that stores nested classes. One of these is a Permissions class, that basically acts as a permissions director for what can be used by whom in either the winform or ...
0
votes
0
answers
12
views
VB.NET: The process cannot access the file 'filename' because it is being used by another process
I should add a list of files into a ZIP. Procedure code is like this
Sub CreateZip
Dim FileList As New ArrayList 'List of File Paths to be added to the ZIP
For Each path in FileList
...
-2
votes
0
answers
13
views
system.invalidoperationexception: collection was modified; enumeration operation might not execute. VB.NET
We have a gridview on which there is a delete command as shown below. While deleting we are getting this error:
system.invalidoperationexception: collection was modified; enumeration operation might ...