Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [visual-basic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

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 ...
4
votes
2answers
1k views

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 ...
-2
votes
2answers
232 views

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 ...
3
votes
1answer
620 views

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 ...
1
vote
2answers
179 views

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 . . ...
4
votes
4answers
7k views

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.
3
votes
0answers
116 views

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 ...
1
vote
1answer
1k views

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 ...
0
votes
1answer
382 views

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 ...
-1
votes
2answers
9k views

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.
3
votes
2answers
625 views

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 ...
-3
votes
1answer
602 views

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 ...
-1
votes
1answer
82 views

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 ...
0
votes
1answer
385 views

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 ...
4
votes
1answer
553 views

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 ...
0
votes
1answer
2k views

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 ...
0
votes
2answers
1k views

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 ...
0
votes
3answers
701 views

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, ...
7
votes
3answers
2k views

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....
2
votes
3answers
704 views

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 ...
3
votes
2answers
334 views

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) _ ...
0
votes
5answers
3k views

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 ...
9
votes
6answers
598 views

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 ...
6
votes
3answers
1k views

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?