Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008


all groups > vb.net > january 2007 > threads for friday january 12

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

how to read image from database and store in file
Posted by androoo at 1/12/2007 11:10:11 PM
Hi all I am reading an image from a database (foxpro) and now want to write it out to file... I have found hundreds of articles on saving a file to the database bu none on how to extract and save to a local drive. Anyone have any clues on how to do this ? Thanks for any help!! ...more >>

Function Warning - Null Reference
Posted by Terry at 1/12/2007 9:49:28 PM
I am getting the following warning for the below function. I understand what it means but how do I handle a null reference? Then how do I pass the resulting value? Regards Warning 1 Function 'Dec2hms' doesn't return a value on all code paths. A null reference exception could occur at...more >>

Is WSE 3.0 in VS2005(VB) required to migrate from VS2003?
Posted by Tony Girgenti at 1/12/2007 5:00:03 PM
Hello. I developed a VS.NET2003(VB), ASP.NET web application client program with ..NET Framework 1.1, ASP.NET 1.1, IIS 5.1 and WSE 2.0. I tried to migrate it to VS 2005 Pro(VB), Web Application Projects, .NET Framework 2.0, ASP.NET 2.0, IIS 5.1, WSE ?. Is WSE 3.0 required for VS 2005? ...more >>

Creating objects dynamically in a loop
Posted by RSH at 1/12/2007 4:45:59 PM
Hi, i have a situation where I need to dynamically create objects in a loop. My question surrounds intantiation naming in such a scenerio. Below is a snippet that is basically hardcoding each object. My problem is that I would like to create the objects dynamically but I can't figure out...more >>

Comparing objects
Posted by Roshawn at 1/12/2007 4:30:10 PM
Hi, I have a function that returns a string. This function can accept any type of object, which determines the structure of the string returned. My question is, how do I know what type of object is passed in? Thanks, Roshawn...more >>

xcopy deployment
Posted by cj at 1/12/2007 3:50:05 PM
In 2003 to deploy a simple program you could copy the exe from the projects obj\release directory. Why in 2005 does it create a bin\release and a obj\release directory, each of which contain what would appear to be identical exe files? 2005 also puts a debug directory under both bin and ob...more >>

DataGridView ComboBox lookup question
Posted by Chris Hlade at 1/12/2007 3:49:00 PM
I am trying to do something that I would think would be easy. I have a dataset that is filled from an XML file. For simplicity, let's say there are two tables: - Table Customer has fields CustomerID and CustomerName - Table Orders has fields OrderNo, CustomerID, and ItemNo My DataGrid...more >>

Creating bmp file from VB.NET
Posted by Andy Baker at 1/12/2007 3:46:56 PM
I have a utility that captures a signature on a handheld device and stores it as as string containing a series of points. I want to recreate this signature as a bmp file using VB.NET code. To do this, I have created a bitmap object using the following code Dim bmpSignature as Bitmap ...more >>



Problem with DataGridView and Cancelling NEW ROW entry after messup
Posted by aasif at 1/12/2007 2:28:18 PM
Hi, I have a DGV and I go to the NEW_ROW and start editing in there ( I only have 1 COLUMN), I enter a value, and try and take focus off the CELL by going to another control on the form or another CELL. The CELL_VALIDATING event kicks in and Says DATA = BAD so it does'nt let focus shift. So I...more >>

DataTable problem
Posted by James Wong at 1/12/2007 2:26:57 PM
In VB.Net 2005, Can I use "GROUP BY" in DataTable? Thanks! James ...more >>

Enum
Posted by shapper at 1/12/2007 1:06:00 PM
Hello, I have an enum: Public Enum Color Red Blue Green End Enum I need: 1. Loop trough all enum items and get each one value (Ex: Red) and index (Ex: 1). For Each color As Color In [Enum].GetValues(GetType(Color)) ??? Next 2. Get an enum value (Ex: Red) by providing...more >>

Copying from one db into another
Posted by John at 1/12/2007 12:36:16 PM
Hi I am trying to copy data from one db into another. Thanks for everyone who suggested ways to do that. After some more research I have come up with the below simple looking way. My question in, is it supposed to work this way and will it work? LocalConn.Open() Dim DBCommand As New ...more >>

Need a method to send byte arrays from Unmanaged C DLL to VB
Posted by Vince Castellano at 1/12/2007 10:38:37 AM
Hello, What is the proper way to send byte arrays (or strings for that matter), from a C DLL to VB? I have tried by prototyping the call in VB with ByRef Byte[] as a parameter, then treating it in C as a pointer to unsigned char, and then I tried a memcpy, as well as using pointer arithmetic ...more >>

Windows Form Designer generated code
Posted by cj at 1/12/2007 10:26:21 AM
In a project done in 2003 about a year ago I was told to add the SocketWrench code below into the Windows Form Designer generated code area as shown below. #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by th...more >>

Startup object
Posted by cj at 1/12/2007 10:12:57 AM
In 2003 I sometimes changed the startup object of a project to Sub Main which was found in Module1.vb. I upgraded one such project to 2005 and I notice in the properties page for the project that nothing is selected as the startup object. It appears to function but should I set it to Sub M...more >>

Multithreading in a looping situation
Posted by RSH at 1/12/2007 9:14:26 AM
Hi, I have a situation in where I have a main loop that queries a "Parent" Global database table. Based on that resultset I loop through all of the databases and the appropriate table in the "children" databases. Because we have roughly 5000 "Children" databases this process is taking q...more >>

XMLDocument Parsing Issue in VB.NET
Posted by rajesh at 1/12/2007 7:53:11 AM
Hi, I am trying to parse a xmldocument and to get value of a name tag "techlanguage" is "vbdotnet". Here i need to select the propername tag which is "techlanguage" and the propervalue which is "vbdotnet" Here is the structure of my XML <?xml version="1.0" encoding="utf-8" ?> <filte...more >>

folders/ auto namespaces // address in VS2005?
Posted by sloan at 1/12/2007 4:40:30 AM
In C#, (2003 and 2005),.... When you add a folder to a project, and then add a new class (in that folder), you get automatic "namespace MyApplication.Folder" inclusion. Example. Your project name is "SuperBankApplication" You add a new folder called "Exceptions". You add a new class cal...more >>

Inserting from one db into another
Posted by John at 1/12/2007 3:36:16 AM
Hi I have open connection to two separate databases. I now need to insert records from a table in one db into a table in second db. How can I go about doing it? Thanks Regards ...more >>

Using variable as form field name
Posted by John at 1/12/2007 2:52:41 AM
Hi I have two fields field1 and field2 on my form. Is there a way that the field names can be accessed via variable so that choice of the actual field to access is decided at runtime? Thanks Regards ...more >>

error on Dim info1 As PropertyInfo = component1.GetType.GetProperty(Me.member.Name)
Posted by Carlos Rodriguez at 1/12/2007 12:29:35 AM
I have the following function in C#public void Undo(IDesignerHost host) { if (!this.componentName.Equals(string.Empty) && (this.member != null)) { IContainer container1 = (IContainer) host.GetService(typeof(IContainer)); IComponent component1 = container1...more >>


DevelopmentNow Blog