Questions tagged [visual-basic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Oskar_U's user avatar
  • 151
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 ...
vbnewb's user avatar
  • 9
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 ...
Richard's user avatar
  • 211
-2 votes
2 answers

Possible methods of accessing L1 cache and specifying threads/cores

A faster prime number generator with hyperthreading and L1 cache About five years ago I wrote a simple VB widget to generate the first one million prime numbers and then port them to into its single ...
Brett Bergan's user avatar
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 ...
Sebastian Lenartowicz's user avatar
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 . . ...
follmer's user avatar
  • 123
5 votes
4 answers

Why use a local variable over a global variable? [duplicate]

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's user avatar
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 ...
Mark's user avatar
  • 131
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 ...
miroxlav's user avatar
  • 672
0 votes
1 answer

Learning VB, and have a question about Focus()

I know that the .Focus() allows you to focus on a text input field, or wherever you wish your eye to be directed, but I am wondering, is there a way to use Focus to direct the person's view to ...
Matt Ridge's user avatar
-1 votes
2 answers

What is the IDE for Visual basic? [closed]

So weird to ask and I am sorry for the this question. What is the IDE for Visual basic? I searched throughout the internet but I didnt find the nice information about visual basic and its IDE.
Aawaz Gyawali's user avatar
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 ...
Robert van Dijk's user avatar
-3 votes
1 answer

Automating daily procedures [closed]

Is there a way to automate running VBA in Excel to clean up the file from inside an application? Everyday my office has to confirm that 50 people have shown up for work on time. The scheduling ...
Fadebent's user avatar
-1 votes
1 answer

Issue with My.Settings using Visual Basic [closed]

For my A2 Computing project I have created a game using Visual Basic. For the leaderboard section, I have used the My.Settings feature to store the scores when the game closes, but only one or two ...
Joe's user avatar
  • 11
0 votes
1 answer

Convert to Object Oriented Programming

I am currently working on a project that is fairly small for the time being. There was a recent change to implement 3-tier architecture, such that the code is now split up appropriately to data ...
Dave Johnson's user avatar
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 ...
Panzercrisis's user avatar
  • 3,173
0 votes
1 answer

Most efficient multiple condition IF statement

I am using a function to compare over 100 variables inside of classes to each other an am curious if one method of comparing multiple condition statements is more efficient than another. I am ...
Wayne's user avatar
  • 103
0 votes
2 answers

Best Practice - Loop Exit Via Iterator Modification

I had an interesting discussion with my boss today regarding exiting a loop before the terminal condition is met. He had a construct in some of his VB6 code that looked something like this: Dim ...
Bob Mc's user avatar
  • 103
0 votes
3 answers

VB stand alone application or ASP web application

I have experience developing software and web applications and I have decided to do some freelance work on the side. Well, I met with my first client and they are requesting a relatively simple, ...
DrewFerg11's user avatar
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....
Austin R's user avatar
  • 181
3 votes
3 answers

How To Start Programming [closed]

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 ...
nayef harb's user avatar
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) _ ...
Luis's user avatar
  • 535
0 votes
5 answers

Visual Basic link to SQL output to Word

I am in need of some advice/references. I am currently trying to develop a legal document interface. There are certain fields in which I need to query out of my sql db and have those fields output ...
CLO_471's user avatar
  • 11
8 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 ...
ShadowScripter's user avatar
6 votes
3 answers

Meaning of phrase: "Not your father's Visual Basic" [closed]

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's user avatar
  • 207