Visual Basic .NET is a .NET oriented-object implementation and evolution of Visual Basic developed by Microsoft.

learn more… | top users | synonyms

0
votes
2answers
40 views

Sending emails from server side

I need to read some of your opinions. I'm developing a desktop app (.net/winform) to keep data in one place. This is used by several clients and the data is stored in MS SQL Server (client-server ...
0
votes
0answers
11 views

WCF, Net.Tcp endpoint, code-first [migrated]

I have a WCF service, this service works perfectly well on a WSHttp endpoint, running as a Windows service under ServiceHost. However I want to move to a TCP endpoint, because of scalability. For the ...
0
votes
1answer
175 views

Are VB.NET and C#.NET projects created from Microsoft Visual Studio “Open Source” safe? [closed]

I'm developing software in VB.NET and C#.NET and planning to release their source codes as fully open source. Are these projects "open-source" safe? My doubts are: VB.NET and C#.NET are using the ...
0
votes
0answers
6 views

WMI queries in vb.net: “the expression doesn't produce a value” [migrated]

As a bit of a skills progression project I've started writing a system information app in VB.net. I currently have 2 list boxes that display all the GPU's installed in the system in the first and then ...
1
vote
3answers
139 views

Where to Populate Objects

As mentioned in this question, I am moving our team towards objects (as opposed to just throwing DataTables and variables around everywhere). I have picked a suitable spot for the project that ...
-4
votes
1answer
71 views

Using strings in different projects (visual studio) [closed]

Is it possible to grab a string from one project (written in VB.net) and use it in another project (written in C#) ? I understand I can use pipeline, but I'm not exactly sure how. Edit: I have a ...
3
votes
1answer
344 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
0answers
31 views

Inventory Management project Unit of measurement conversion issue

We are currently working on an inventory module. We have purchase requisition, purchase order, goods receipt modules etc. There is obviously the need for UOM or Unit of measurement conversion needed. ...
1
vote
0answers
89 views

Managing child worker thread list

After so much research, I thought I should ask the experts. I am working on a project for my corporate employer, we have android and iPhone mobile apps that make request to a web service, the request ...
3
votes
2answers
169 views

Improving the performance of a db import process

I have a program in Microsoft Access that processes text and also inserts data in MySQL database. This operation takes 30 mins or less to finished. I translated it into VB.NET and it takes 2 hours ...
1
vote
2answers
242 views

IL and case-sensitivity

Quoted from A Brief Introduction To IL code, CLR, CTS, CLS and JIT In .NET CLS stands for Common Language Specifications. It is a subset of CTS. CLS is a set of rules or guidelines which if ...
2
votes
3answers
157 views

Parallel.For Inconsistency results

I am using VB.net to write a parallel based code. I use Parallel.For to generate pairs of 500 objects or in combination C(500,2) such as the following code; but I found that it didn't always generate ...
1
vote
1answer
233 views

Should I just always Convert.ToInt32 my integers to account for potential nullable integers?

If my MSSQL database contains a data type that is NULL (i.e. null is allowed) then ORMs, such as EntityFramework in my case, create .NET objects that are nullable. This is great, and the way I use ...
-3
votes
1answer
187 views

What options are there to programmatically use windows application in VB.NET? (Button Press and Keyboard Strokes) [closed]

I have this complex windows application that I need to create an automated testing system for. I need to use VB.NET, and it needs to be able to click all kinds of things, be conscious of the windows ...
-1
votes
1answer
305 views

Increase speed of a VB.net Application to SQL server 2008 and Hamachi VPN [closed]

Our current Information System (complete with path for pictures for records stored in db) has the following specifications: A desktop application was developed in vb.net We use SQL server 2008 r2 as ...
4
votes
1answer
246 views

Is CType() ever the preferred option?

Is there any time CType() is the proper option over other methods? I did plenty of thinking on this myself, but wanted to put the question in hopes there would be answer to my question so I can put ...
3
votes
5answers
522 views

Inner workings of the IF() function - why aren't expressions evaluated?

Short version How does the IF() function cause the passed expressions to NOT be evaluated prior to being passed in as parameters? Detailed version I am part of a standards committee, and a ...
1
vote
1answer
296 views

How can you denote the access modifiers “friend” and “protected friend” in UML?

The symbols for access modifiers that I know are relevant for many different languages: public:        + private:       - ...
4
votes
1answer
199 views

Reference Passing Style Anti Pattern

I'm working on a legacy VB.Net code base. There are very few functions that return values, most of the code is in subs/void methods. The general strategy seems to be to pass everything in by ...
0
votes
1answer
131 views

How should I implement “queueing” of approval on my objects?

I have a list of objects that will need to go through an approval process. I am curious if it would be best to simply add some properties to my object, like ApprovedBy, and ApprovedOn. Another ...
0
votes
0answers
94 views

How do I make a window that acts as a middleman between a client program's IO and the user's IO?

For Windows 7, in any of the tagged languages (vb.net, C#, Java) would it be possible to have a (100*ratio)x100 px^2 "middle" window that would be able to: Copy a windows's graphics data ...
1
vote
1answer
82 views

Multiple visual studio projects/solutions on the go

I am working on a large asp.net app as a single developer. I will often work on a number of change requests concurrently. For example, a change required to the Finance component and a change ...
1
vote
3answers
301 views

Declare variable as interface

When should or shouldn't a variable be declared as a custom Interface type? When walking through some code, I required to know what was happening here: Public Class MyMainProject .... Public ...
2
votes
5answers
368 views

OOP concept: is it possible to update the class of an instantiated object?

I am trying to write a simple program that should allow a user to save and display sets of heterogeneous, but somehow related data. For clarity sake, I will use a representative example of vehicles. ...
1
vote
1answer
457 views

Mixing Fowlers Transaction Script and Domain Model

I am developing a large application where the previous developer used Martin Fowlers Transaction Script pattern. The requirements are becoming more complex and it is becoming a bit of a maintenance ...
0
votes
1answer
230 views

Is VB.NET a viable migration path for an application currently scripted in VBScript? [closed]

Our C++ MFC application gives the user the ability to define custom scripts in vbscript (via the VBScript engine). Since (parts of) the application are moving to .NET anyway, and since vbscript seems ...
0
votes
1answer
791 views

Introducing Fowler's Table Data Gateway to refactor poorly designed systems

I am developing an application, which currently has about 150,000 lines of code. The previous developer didn't really use any discipline when writing code. Application is in production but is ...
2
votes
2answers
285 views

Not using SQL Transactions

I am looking at a codebase where a developer never uses SQL transactions i.e. each update/insert into the SQL database is an atomic operation. I believe the codebase would benefit from transactions. ...
1
vote
1answer
374 views

VB.NET: Two tiers for three layers or three tiers for three layers

I asked a question on StackOverflow in November about separating a very large application into layers and tiers: http://stackoverflow.com/questions/13342626/net-divorcing-layers. The previous ...
4
votes
2answers
540 views

How do I handle having so many SQL queries?

I have an MVC3 project that uses SQL Server. I use data from the SQL database all the time and I often find that I'm reusing/duplicating some SQL queries. I thought I'd solve this problem by creating ...
5
votes
2answers
616 views

COM INTEROP Support - which is better? C# or VB

I keep hearing that c# is "better" than vb... but as far as I can see, aside from syntactical differences, both compile down to the same IL. I've found some good articles by googling that explain what ...
2
votes
4answers
316 views

Should we hire a new developer now, or wait until the code is refactored to make it suitable for a team environment?

I support and develop a large system that uses various technologies e.g. c++,.net,vb6 etc. I am a sole developer. I am debating whether now is the right time to approach my manager (who is not a ...
0
votes
4answers
934 views

Obtain reference to Parent object during instantiation

I have a situation where a custom class is a property of another class. What i need to be able to do, if it is possible at all, is obtain a reverse to the "parent" class (ie the the class that holds ...
2
votes
6answers
2k views

How get and set accessors work

The standard method of implementing get and set accessors in C# and VB.NET is to use a public property to set and retrieve the value of a corresponding private variable. Am I right in saying that ...
3
votes
2answers
2k views

Does 'Me' in VB.NET refer to the instantiated object only?

Does 'Me' in VB.NET refer only to an instantiation of the type? Just occurred to me that since I can reference properties in my VB.NET class without using 'Me', that I don't see a reason for using it ...
5
votes
3answers
711 views

Naming Convention for Dedicated Thread Locking objects

A relatively minor question, but I haven't been able to find official documentation or even blog opinion/discussions on it. Simply put: when I have a private object whose sole purpose is to serve for ...
2
votes
4answers
2k views

.NET mulithreading and quad core processors

I have a single threaded application that runs on a machine with a quad core processor. The scheduled tasks that run VB.NET forms are too slow. I am new to multi threading and parallel computing. ...
-2
votes
3answers
4k views

How do I Export to excel on aspx page?

I am trying to take data that I request from an access database and put it into and excel file on the client computer. I usually use ajax to request a summary of the data I need. It is formatted ...
2
votes
3answers
922 views

Query regarding VBA as career option [closed]

I am a dot net developer, with over 7 years experience in VB, Vb.net, C# and Asp.net. Would it be worthwhile to learn VBA/VSTO? Would it be adding value to my career? Would there be any companies ...
2
votes
2answers
1k views

Testing my VB.NET code?

I'm having trouble developing unit testing approaches to testing both if the "code does what I want it to do", and testing "does my code work". For example, I'm writing code to validate input that ...
6
votes
2answers
866 views

.Net Language Interoperability Gotchas [closed]

I hope this is the appropriate forum to ask this question. A group of colleagues and I just starting learning C# a few weeks ago and we are planning on having a discussion about language ...
2
votes
4answers
631 views

Do I lose anything by coding in c# and using free online vb.net code convertors? [closed]

The company I work for uses vb.net since there are many programmers who moved up from vb6 to vb.net. Basically more vb.net resources in the company for support/maintenance vs c#. I am a c# coder and ...
3
votes
1answer
326 views

Is a readonly field in VB.NET thread safe?

Is a readonly field in VB.NET thread safe? For example, see the code below: Class Customer ReadOnly Name As String ReadOnly ZIP As Integer = 98112 Sub New(ByVal Name As String) Me.Name = ...
6
votes
9answers
888 views

Review quality of code [duplicate]

I have been asked to quality review two code bases. I've never done anything like that, and need advice on how to perform it and report it. Background There are two providers of code, one in VB and ...
7
votes
1answer
546 views

How in the earth CHRW produce unicode codes given that it only accept 65k possible input?

http://babelstone.blogspot.com/2005/11/how-many-unicode-characters-are-there.html says there are 1 million unicode characters and around 240k of which are already assigned. 1 million > 240k > 65k ...
0
votes
1answer
205 views

How to synchronize web page refresh with file upload from windows application?

I have a rather simple app in .net which uploads images in fixed intervals in an ftp server. The file name is specific. I need to have a web page that refreshes but i want this to happen only when ...
3
votes
2answers
2k views

I want to turn VB.Net Option Strict On

I recently found out about strong typing in VB.Net (naturally it was on here, thanks!) and am deciding I should take another step toward being a better programmer. I went from vba macros -> VB.Net, ...
4
votes
7answers
2k views

Changing from VB.NET to C#? [closed]

I am working on co-op at a company as a test engineering specialist. This is not technically a software job, however at the end of the day, I spend most of my time programming. I am not a ...
1
vote
4answers
996 views

About shared (static) Members and its behavior

I just realized that I can access shared members from instances of classes (probably this is not correct, but compile and run), and also learn/discover that, I can modify shared members, then create a ...
1
vote
4answers
1k views

How to create an Intelligent Agent [closed]

I am currently doing my Honours in Computer Science and taking Artificial Intelligence as a subject. As part of completing the subject I have to develop my own basic intelligent agent. I have yet to ...