vb

Sending an sms and email in Visual Basic

I'm developing a college project in which I'm providing user with a facility to send an SMS and email to its client. How can I do this in VB or VB.NET ???? ...

VB6 Packaging and Organization

Is there any clean way to package VB6 Class Modules, other than writing DLLs or manually adding prefixes to the module names? EDIT: I'm hoping VB6 has something along the lines of packages or namespaces from other languages. ...

VB Mismatch Error

I keep getting a mismatch error for this line: UPDATE tblLunchTime SET [End] = '06/28/2010 9:41:34 AM' WHERE Start = '06/28/2010 9:41:31 AM' Does anyone know why? EDIT: Rest of the code added. 'Save end time in database. Dim strValuesQuery As String strValuesQuery = _ "UPDATE tblLunchTime " & _ "SET [End] = '" & Now & "' " ...

Visual basic sql command not returning anything to variables

Hi, i am working on this code that is going to query a database for an entry and return the value of the tracking number and the time to print on a label if the tracking number exist in the databse. it does not right now it only seems to reprint the number that is enetered in a text box and it does not grab the date. any ideas? here is t...

How to Save Data from WinForms Controls to a SQL Server Database?

SO I am just getting started with this. New to .NET, SQL Server, C#, VB.NET, etc and the closest thing I have to related to this is some experience with MS Access and the VBA that relates to that and MS Office automation. So I do have Visual VB.NET 2008 Express installed, SQL Server 2005 express installed, and I do know how to start a b...

Switch ASP.NET Project From Visual Basic to C#

Is there a way to change the language of an ASP.NET project from Visual Basic to C# easily? I would even be willing to re-write the code as it's still fairly simple at this point. ...

SQL possibly not returning values for a query in visual basic

In my code I enter a string in a text box and have the query check the server for the entry. If it exists it returns the string and the date into two separate variables. The database only has TrackingNumber and Date. Below is the code. As of right now i get "Invalid attempt to read when no data is present." at the "If (sdr("TrackingNumbe...

Crystal Reports - PrintToPrinter "The handle is invalid"

I'm using the Crystal Reports Basic for Visual Studio 2008 to print reports. I have just one user that gets periodic errors saying "The handle is invalid". If she tries printing a second time, it works just fine. I've looked over her machine and it looks like it has all the same software as everyone else, and of course it never happens w...

Many roundtrips to the database, or all data / filter?

Which method would be fastest / most efficient? A) Read all data (822 rows) including those I do not need then filter / output those I do B) 3 Round trips to the db using params filled via the last query to select only the data I need Thanks. ...

How long would it take for me to program a travelling salesman program with 5 nodes?

I'm considering doing a travelling salesman problem for my computing coursework and would like to know how long a standard computer would take to work out the shortest route between 5 different places. I just want to know if the project is viable. Thanks in advance! I will be using VB express. ...

There are fewer columns in the INSERT isn't the answer

Hello, I have an application that converts one database to another and one of the functions I use is insert_Note below. This application has multipule threads all inserting diffrent data into the new database. The code below works for a number of inserts ranging between 24 and 120 but then fails with the error: There are fewer columns ...

Use a VB variable in a SQL statement

I'm trying to create a sql statement but I require the use of a VB variable. The problem is, I keep getting an error about too few parameters when I try to just put the variable in. Is there some sort of format I need to use in order to add a VB variable into a SQL statement? Set rs = CurrentDb.OpenRecordset("SELECT StartTime " & _ ...

How wide should VB code get?

In times past, most people coded on a terminal that was 80 characters wide. In many languages this has become, if not holy then close to it. But now many people have 20"+ monitors (or dual monitors), so screen real estate isn't as prime as it once was. So my question is this: in Visual Basic code, should code be limited to 80 character...

Trying to get VB anonymous methods working. querying lists

I am trying to get my code working as per the instruction on http://www.paulstovell.com/vb-anonymous-methods So far I have the wrapper: Public Delegate Function PredicateWrapperDelegate(Of T, A)(ByVal item As T, ByVal argument As A) As Boolean Public Class PredicateWrapper(Of T, A) Private _argument As A Private _wrapperDelegat...

Multiple questions for Visual Basic.

How would I do the following in Visual Basic Express? a) Press "delete", "home", and "shift" on the keyboard with the program. // Still need to figure out how to do this. b) Detect when "z" and "x" are pressed. // I'm using buttons instead of this part now. Thanks so much! :) Windows Form Application ...

SendKeys not working?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click CheckBox1.Checked = True While CheckBox1.Checked = True SendKeys("{END}") End While End Sub That is the code, the error is "SendKeys is a type and cannot be used as an expression." How could I fix this? Thanks...

microsoft embedded visual basic

Im making an application for a mobile pocketpc using mircosoft embeddded visual basic 3, i trying the database connection for the application ,is there any examples available thanks. ...

VB Script to find the existance of a macro in microsoft word document

I want to write a VB Script which will check in a word file about the macro name we pass from vb script whether it exists or not. It return the result to VB script and i want to call this VB Script from the JAVA and whatever the result is it should appear in JAVA. tell me how to call the VBScript from java and how to pass the name of the...

Is this a good way to get the difference of two arraylists?

I have two arraylists, and I would like to have a new arraylist with only the uncommon items. Is this the "best" or at least decent way to do it? Public Function diffLists(ByRef first, ByRef second As Collection) As ArrayList Dim retval As New ArrayList() For Each element In first If Not second.Contains(element) Then ...

A comparison between Microsoft Visual studio 2005, visual basic and Netbeans

I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words so any suggestions ar...