Questions tagged [visual-basic]
25 questions
9
votes
6 answers
Software solution from the 2000's, should I attempt to patch or remake the whole thing?
I was sent out to discuss a system that a certain company is currently using and what should be done with it.
The company manufactures various carton displays. This system was developed to keep track of clients, orders and prices. Lots have happened…

ShadowScripter
- 193
- 5
7
votes
3 answers
How can I present some printed Visual Basic source code in an aesthetically pleasing manner?
Right now I'm interning at a major engineering company. I'll be leaving in a few months though, so my project manager has requested a print out of my source code for a VBA project I've been working on.
He would like to have it reviewed to make sure…

Austin R
- 181
- 3
6
votes
3 answers
Meaning of phrase: "Not your father's Visual Basic"
I have ran into the above phrase many times (especially during classic VB days) and I have been wondering what it really mean and where it originated from. Any ideas?

Gichamba
- 207
- 1
- 7
5
votes
4 answers
Why use a local variable over a global variable?
Im a beginner using visual studio 2013, and I know what they are, but I'm puzzled, why would one use a local variable? I would always just use a global variable.

Modrisco
- 61
- 1
- 1
- 3
4
votes
1 answer
PowerShell performance when running Excel macros
I run on a daily basis a set of VBA-rich Excel files. Most of them include MS Office application cross-talk, but also employ third-party applications and MySQL. Due to the fact of running those files in a specific order and at a specific time of day…

Oskar_U
- 151
- 5
4
votes
2 answers
Correct way to implement non blocking async methods in .net?
I've made the code below work and it is mostly non-blocking except where the process.start code is.
However, my question is, in my winforms application is this the best way to implement the use of async/await to prevent blocking?
Having googled a…

Richard
- 211
- 1
- 7
3
votes
1 answer
Why is Systems Hungarian commonly used in the VB world, and seemingly nowhere else?
Kind of as the title implies - I can understand why Apps Hungarian might crop up, but Systems Hungarian seems almost entirely pointless in a strongly-typed language. Why, then, is it so apparently prevalent in the VB world? Going back to my high…

Sebastian Lenartowicz
- 361
- 1
- 2
- 9
3
votes
0 answers
String Rearrangement Algorithm in Visual Basic
Beginning programmer here (mostly engineer). I'm making trapezoids in layers. We begin with the small length layer, and end with the longest length layer.
I want my user to input in a desired maximum length, a desired minimum length, type of…

Mark
- 131
- 4
3
votes
2 answers
An algorithm that spreads similar items across a list
I need an algorithm that distributes same items across a list, so maximizing the distance between occurrences.
E.g.
I have a list of 15 items:
{a,b,c,c,c,d,e,f,f,f,g,h,h,i,j}
The algorithm should reorder these in such a way that all the duplicates…

Robert van Dijk
- 41
- 3
3
votes
1 answer
Why doesn't VB.NET allow unnamed, one-line objects to be used?
Why isn't this allowed in VB.NET:
New SqlCommand("some string", someSqlConnection).ExecuteNonQuery()
Why would the language have been designed to require that this be used instead:
Dim com As New SqlCommand("some string",…

Panzercrisis
- 3,145
- 4
- 19
- 34
3
votes
3 answers
How To Start Programming
I have taken a programming course 2 years ago but I haven't worked in programming since then. I recently found a programmer job, but there is no programming team so for me to gain valuable experience from.
I am Programming by myself and making…

nayef harb
- 201
- 1
- 4
3
votes
2 answers
Better use on the name of variables
I have a method that looks like this:
Public Function NormalizeStreetAddress(country As Namespace.Country,
streetAddress As Namespace.StreetAddress) _
As…

Luis
- 535
- 1
- 4
- 8
1
vote
2 answers
Visual Basic Writing to File with Numbered Lines
This is more of a design/user experience kind of question, so if it belongs somewhere else please let me know.
I have a program that has multiple PictureBoxes:
PictureBox1
PictureBox2
.
.
PictureBox60
Each PictureBox's Tag field is filled in with a…

follmer
- 123
- 3
1
vote
1 answer
Why VB local variables can be 'static', not 'shared'?
In Visual Basic .NET, I can see different keyword for the same(?) concept:
• methods Shared
• properties Shared
• class-level variables Shared
BUT
• local variables Static
Why there is Static and not Shared…

miroxlav
- 672
- 4
- 17
0
votes
0 answers
Use of InstrRev
I am a novice Visual Basic user. I am an engineer, but I don't have much programming experience.
I recently purchased the source code for a data recovery tool. I have decided to work through it, line by line, in order to become familiar with the…

vbnewb
- 9
- 3