vb

What are the implications of running a Microsoft access database in both 2003 and 2007?

What are the implications of running a Microsoft Access Database in both 2003 and 2007? Is there some class I forgot to take? The program was originally built in office 2003, and then run in 2007. Issues seem to happen when the machine it is being run on has both 2003 and 2007 on it. The issue would also appear to stem from reference ...

Extending/Merging VB Arrays

I have a class with a public array of byte(). Lets say its Public myBuff as byte() Events within the class get chunks of data in byte() array. How do i tell the event code to stick the get chunk on the end. Lets say Private Sub GetChunk Dim chunk as byte ... get stuff in chunk Me.myBuff += chunk (stick chunk on end of public array ...

MS Outlook VBA - When is a MailItem not a MailItem?

I have written a message handler function in Outlook's Visual Basic (we're using Outlook 2003 and Exchange Server) to help me sort out incoming email. It is working for me, except sometimes the rule fails and Outlook deactivates it. Then I turn the rule back on and manually run it on my Inbox to catch up. The rule spontaneously fails and...

How to add monsters to a Pokemon game?

My friends and I are starting a game like Pokemon and we wanted to know how will we add monsters to the game? We're using VisualBasic because my friend's brother said it would be easier. So far we can put pictures of the monsters on the screen and you can click to attack and stuff. Right now when we want to add a monster we have to ma...

Test Coverage for visual basic project

We are developing a visual basic 6.0 project.We have written a library, which we were testing using vbunit and vbmock.But, soon found that the tests were not maintainable.So, we decided to write tests using MBunit.Now, we want to know the test coverage.How can we do it? thanks ...

What 3rd Party Controls are .Net Developers using

I am re-evaluating my 3rd party controls. I currently use the Infragistic suite for ASP.Net and WinForms. What controls do you use and would you recommend them? ...

How can I use classes from VisualBasic-Express in VBA for Excel or Access projects?

I saved my VB-Express code as .dll and registered it with regasm and made a .tlb file. But when I try to run a function from it in an Excel-modul I get: Run-time error ‘453’: Can’t find DLL entry point RegisterServiceProcess in kernel32 What step did I miss? ...

Mathematical analysis of a sound sample (as an array of numbers)

I need to find the frequency of a sample, stored (in vb) as an array of byte. Sample is a sine wave, known frequency, so I can check), but the numbers are a bit odd, and my maths-foo is weak. Full range of values 0-255. 99% of numbers are in range 235 to 245, but there are some outliers down to 0 and 1, and up to 255 in the remaining 1%...

How to get all file attributes including author, title, mp3 tags, etc, in one sweep

I would like to write all meta data (including advanced summary properties) for my files in a windows folder to a csv file. Is there a way to collect all the attributes? I see mp3 files have a different set of attributes compared to jpg files. (c#) This can also be a script (vb, perl) Update: by looking at libextractor (thank you) I ...

How do I delay code execution in Visual Basic (VB6)?

I have a long running process in VB6 that I want to finish before executing the next line of code. How can I do that? Built-in function? Can I control how long to wait? Trivial example: Call ExternalLongRunningProcess Call DoOtherStuff How do I delay 'DoOtherStuff'? ...

open IE without toolbar or address bar from Windows VB Application

Shell ("explorer.exe www.google.com") is how I'm currently opening my products ad page after successful install. However I think it would look much nicer if I could do it more like Avira does, or even a popup where there are no address bar links etc. Doing this via an inbrowser link is easy enough <a href="http://page.com" onClick="j...

Setting the focus in a datagridview in windows form

I have a datagridview that accepts a list(of myObject) as a datasource. I want to add a new row to the datagrid to add to the database. I get this done by getting the list... adding a blank myObject to the list and then reseting the datasource. I now want to set the focus to the second cell in the new row. To CLARIFY i am trying to set ...

TcpClient.Connected returns true yet client is not connected, what can I use instead?

In VB.net I'm using the TcpClient to retrieve a string of data. I'm constantly checking the .Connected property to verify if the client is connected but even if the client disconnects this still returns true. What can I use as a workaround for this? This is a stripped down version of my current code: Dim client as TcpClient = Nothing...

What's the best way to create a drop-down list in a Windows application using Visual Basic?

Hi. I'd like to add a drop-down list to a Windows application. It will have two choices, neither of which are editable. What's the best control to use? Is it a combo box with the editing property set to No? I'm using Visual Studio 2008. ...

VB6 / Crystal Report 8.5 error: A string is required here

I recently inherited an old visual basic 6/ crystal reports project which connects to a sql server database. The error message I get (Error# -2147191803 A String is required here) when I attempt to run the project seems to be narrowed down to the .Printout command in the following code: 'Login to database Set Tables ...

VB6 error : Error accessing the system registry

In visual basic 6, when I attempt to access Project > References, it throws an error "Error accessing system registry" I'm logged in as the local computer administrator running windows XP professional and I can execute regedt32.exe and access all the registry keys just fine. VB6 was installed as the local administrator. any ideas w...

Multithreading in visual basic 6.0

How to implement multi-threading in visual basic 6.0. It would be great if someone can give an example. ...

"Information Not Found" page in Visual Studio 2008, VB.NET Express Edition

I'm experimenting with VS 2008 Express edition and when I hit f1 on a keyword or class name I seem to get the Information Not Found page more than 90% of the time. Is this a configuration problem? Is it because this is the "free-as-in-beer" Express edition? Did Microsoft move their online documentation since the version I downloaded? ...

Tool to calculate # of lines of code in code behind and aspx files?

Looking for a tool to calculate the # of lines of code in an asp.net (vb.net) application. The tricky part is that it needs to figure out the inline code in aspx files also. So it will be lines of code in vb files (minus comments) plus the inline code in aspx files (not all the lines of aspx files, just the code between <% %> tags. ...

Should you enforce coding practice on your third party development team?

I've written up a number of guidlines on codeing practice for a third party developer. One such practice is that no vb file should build up HTML in the code behind. Any HTML should appear in ASCX or ASPX files (so our web designers don't have to learn vb). Every time they release code it contains numerous stringbuilders. How can enforce ...