vb

Truncated files when copying CSV files using FileSystemObject

I am helping my son write a program to format files to load into another system. I have done this before with no trouble. Now I get a 13 KB comma delimited text file and I am copying it use FSO to another file with a csv extension. For some reason the new file always stops at the same place, about6 records from the end of the file ori...

Programatically instigate a Windows Live Messenger Notification popup with VB .Net

I really like the MSN notification popup. Basically the popup you see when you receive a new email etc. I'd like to put timers and set times so I, for instance, get a popup at 2PM saying "Don't forget..." I know I could make my own notification bubble but I'd prefer the WLM one. Thanks ...

sql data save query

I want to save new data from access tables to sql tables without overwriting old data in sql. Data table format for access and sql is same.(using Visual Basic) ...

Embed the content from an external file when compiling.

Is there a way in Visual Studio (any version) to embed the content of a file in another file upon compiling? For instance, if one wanted to embed an xml file in a vb code file how would it best be done? ...

Downloading more than one file from a web server

Hello, VS 2008 SP1 I am using the web client to download a file. Which works ok. However, now I have to download many and the number of files to download will change everyday. I am not sure how I can get the web client to know which files have been downloaded or not? I was thinking of using a for loop to download each file. But I wil...

Can't get Formview to update, what am I doing wrong?

I'm messing around with a Formview in asp.net. I know that the UpdateCommand needs to be specified so that the Formview knows what SQL query to run. Do I need to write an event in addition to the code the Formview sets up in order to properly fire off the SQL query? In addition, I don't get a SQL error or anything, it just does not b...

Download a Macro-Enabled Excel Workbook with PHP

I want to download a macro-enabled Excel workbook from my PHP page. When the workbook displays, the macro should run. How can I ensure the macro will run after the user opens the Excel workbook? ...

VB6 Implements & events

I have an older VB6 project that I'm trying to add unit tests for. I was breaking dependencies in classes by mocking objects. Everything was going great until I found some dependencies that were raising events and now I've hit a wall. Here's a quick example of what I'm trying to do that DOESN'T WORK: ITab.cls: Option Explicit Publi...

adding adorners to legacy textboxes

Whats the best way to add an adornment layer to legacy controls, or in other words you know jetbrains refactoring tools, how do they draw the squiggly lines under incorrect text? Also on another note can one draw said adorments on controls not under the direct reference of the application, ie using a handle? If you have insights, or jus...

Classic ASP VBScript offline reference

I don't do a slew of VB in classic ASP, so I'm looking for an offline reference I can use while I'm well...offline. General syntax and ADO goodies are a plus! Thanks in advance! ...

Random Number but Don't Repeat

Hi, I would like to generate a random number less than 50, but once that number has been generated I would like it so that it cannot be generated again. Thanks for the help! ...

local computer group membership from an OU of computers?

I have been trying get get a script that will get the membership from the local computer's Administrators group by using an OU full of computers. I can return the Administrators group membership from my local computer and a list of computers from an OU, can't quite figure out how to do both with resorting to AD Users & Computers and goin...

Get userID of current user logged in from server using asp.net 2.0

How to get userID of current user logged in from server using asp.net vb? ...

MS Access 03 - Query Expression to Add like ID Numbers

So I have a query that is a Top Nth aggregate query, and I have another query built from that one that returns all the offices/locations grouped for each of the top sales. I want to make a report that counts the number of offices associated with each of these top Nth ID values that are returned in this query. I want to use a domain aggre...

Why does Visual Studio not reflect the correct version of the application?

In Visual Basic 2008 Express Edition, in the My Project tab, the version is shown as in this picture: But when I run this code: MsgBox(My.Application.Info.Version.ToString) It just shows 1.0.0.0 ...

What's the proper source for Windows Common Controls 6.0 component (MSCOMCTL.OCX)?

Hi, I'm experimenting with writing ActiveX controls and noticed that I can't seem to create an ActiveX control in Visual Basic (6.0) which features slightly more sophisticated controls. Simple controls like labels, buttons and check boxes seem to work fine, but as soon as I try to add e.g. a tree control to my form, the ActiveX control ...

The History of .Net

I read some where that the .net runtime was effectively Visual Basic 6 (albeit completely re-written) How true is this? or is this just another .net Myth? Darknight ...

Generic method overloading compilation error in VB

I have a problem with the VB.NET compiler failing to compile a class (in a separate C# assembly) which contains two overloads of a method with generic arguments. The equivalent code in C# compiles against the same assembly with no errors. Here are the two method signatures: protected void SetValue<T>(T newValue, ref T oldValue) protect...

Database password from VB6 aplication

I've inherited a Visual Basic 6 application that accesses a database directly, and I intend to rewrite it in Java. However, something I NEED is the database user+password, which I believe is hard-coded into the application's source. Unfortunately, I don't have access to it's source. How could I retrieve the DB password? Is there a way t...

TCP Connection problem (vb .net)

I created a vb .net app and basically it connects to the server (my brother's computer at his house) and sends messages. The problem I'm having is, we both have routers. The only way I'v gotten all of this to work, is by both of us connecting ppeo broadband and then our ips work, otherwise the "real ip" is used for all the pcs in my hous...