Groups | Blog | Home


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 > march 2005 > threads for saturday march 19

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

Using DateTime to check "minor" status
Posted by Michael C# at 3/19/2005 11:37:49 PM
Given a DateTime variable, what's the best way to check "minor" status (i.e., less than age 18 years) based on today's date? I came up with this: Dim minor As Boolean = true 'dtDOB is a DateTime variable set to Date of Birth If (DateTime.Now.Subtract(dteDOB.Value.AddYears(18)).TotalDays >= 0...more >>


Memory problem with my VB code.
Posted by Deng Zhang at 3/19/2005 10:32:36 PM
Here is my dilemma. I have a subroutine runs every 100mS. At the first, I found that the system hangs after a few hours when I run this program. I checked the memory usage under XP Task Manager. I found that memory used by my program keep growing in a rate of 12KB per second. Here is what I...more >>

database INSERT choking on dbNULL values
Posted by JohnR at 3/19/2005 9:51:56 PM
Hi, I'm trying to update a DBF file which I'm using VB.NET ODBC adapters, commands and connections. I fill the dataset and databind the columns to textboxes on my form. I can successfully view, delete and update the records. The problem is when I try to add a new record. Because I actual...more >>

Autonumber column in ASP.NET datagrid
Posted by Simon Abolnar at 3/19/2005 9:27:24 PM
How can I add autonumber column in ASP.NET datagrid? Example: 1 | data 2 | data 3 | data Thanks for help! Simon ...more >>

Solution Explorer and Properties windows moved!!!
Posted by M Skabialka at 3/19/2005 9:12:10 PM
I am brand new to visual studio, going through a teach yourself book... After creating a few simple projects, suddenly the Solution Explorer was gone, same with Properties. I found them under View but now can't make them move back to the right of the Visual Studio window - they either sudden...more >>

Where Are My Labels Going?
Posted by eBob.com at 3/19/2005 8:50:31 PM
Despite my bad cold and headache I should be able to correctly code what I am trying to code below. Or should at least be able to determine why such simple code does not work. I do have very similar but more complicated code working in another project (thanks, I might add, to several people he...more >>

set property in reflection
Posted by JimM at 3/19/2005 7:53:17 PM
how do you set property using Activator.CreateInstance? Dim ty As Type = Type.GetTypeFromProgID("Project1.Class1") Dim o As Object = System.Activator.CreateInstance(ty) Dim pi As PropertyInfo = ty.GetProperty("Test") Dim params() As Object = {1S} pi.SetValue(o, "Test", params) ...more >>

WebForm_PostBackOptions javascript Error
Posted by Corey at 3/19/2005 6:55:47 PM
I recently received a Javascript error, "'WebForm_PostBackOptions' is undefined" from an application I'm working on. It occurs during the PostBack from a DropDownList. I've created a project which is only a DropDownList, with some Data and AutoPostBack = True, and it caused the error. I...more >>



Com interop
Posted by JimM at 3/19/2005 5:58:33 PM
what do I need to use in vb.net to create an object as I do in vb6: Dim o as Object Set o = CreateObject("Class1.Test") Thanks ...more >>

ComboBox Sort
Posted by Dennis at 3/19/2005 5:57:01 PM
Whenever I change an item in my combobox, it doesn't resort the items. If I add an item, then it sorts ok. Is this normal? -- Dennis in Houston...more >>

Convert Simple Liberty Basic to VB.NET
Posted by Basil Fawlty at 3/19/2005 4:01:59 PM
Hi everyone, I could use some help in converting a simple Liberty BASIC program toa VB.NET 2003 SE program. I have built the simple form with a label, text box and button, Under the button I have inserted the old LIberty BASIC code. Now my problem is how to go about making the mod to the ...more >>

newbie forms cross-referencing
Posted by sb at 3/19/2005 1:52:40 PM
How do I reference/update a textbox on another form (ie. the current forms owner). SB...more >>

My Class
Posted by patang at 3/19/2005 12:41:04 PM
When I create my own class, to use the functions of that class I have to create an object of that class and then I can access the functions of that class, for example: dim obj1 as myclass obj1 = new myclass obj1.myfunction("parameter") However, when I use .net class e.g. strings I do ...more >>

Question re structures and scope
Posted by Steve at 3/19/2005 12:01:24 PM
Hi all, In a module I have the following structure.. Public Structure ButtonStatusFlags Public butOK As Boolean Public butNew As Boolean Public butView As Boolean End Structure And in a usercontrol at class-level I want to declare one of these as protected.. Protected ButtonSta...more >>

Need reverse engineering software?
Posted by at 3/19/2005 11:35:55 AM
Is it possible to convert a VB exe into source code? If so, which program would do that, and are there any free of shareware ones. tia....more >>

ftp file timestamp
Posted by JimM at 3/19/2005 11:23:23 AM
is it possible to change file timestamp on ftp server using ftp command? Thanks ...more >>

OwnerDrawn Listbox anyone??
Posted by Geoff at 3/19/2005 10:57:04 AM
Hey all! By chance does anyone have a really good example of an ownerdrawn Listbox. I am trying to make a UI that is similar to the outlook look and feel demo done in Winforms 2.0 in 1.1. Essentially, i want a listbox that allows for the insertion of an icon and supports multiline text....more >>

Convert Numbers to Words
Posted by patang at 3/19/2005 10:09:02 AM
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function declaration statments (first lines) e.g. Public Function ConvertCurrencyToEnglish(ByVal MyNumber As...more >>

New Conversation: Stand Alone EXE non .NET
Posted by Brett at 3/19/2005 10:08:14 AM
Ok, we all know a stand alone .NET EXE isn't possible, unless you want to shell out $4k (see previous post with similar subject). Frankly, I don't. Given that, what are the options for VB programmers? 1. There's VB6. One acronym and one word: DLL Hell (tip of the hat to Microsoft for this...more >>

The difference about namespace between VB.NET and C#
Posted by ad at 3/19/2005 6:56:14 AM
Is there any difference about namespace between VB.NET and C#. All functions in c# must include in a namespace. Why I can't find namespace in the files .vb . How VB.NET implement the concept of namespace ...more >>

Display .jpg thumbnails in ListView
Posted by Paul at 3/19/2005 6:01:12 AM
Hi, I'm struggling to create an app that contains a window showing thumbnails of all. jpg files within a specified directory. I've been a couple of examples of how to iterate through a directory and extract thumbnails from each jpg file but nothing about what should happen to the extracted...more >>

Windows Message Queue and MSMQ
Posted by kd at 3/19/2005 5:11:05 AM
Hi All, Can Windows message queues be used to communicate between 2 applications running on the same computer? I am not sure whether this is possible, if it is possible how can this be compared to MSMQ? When is Windows Message queues used and when is MSMQ used? Thanks kd ...more >>

Error trying to use ODBC Connection with .csv File?
Posted by Mits at 3/19/2005 3:37:05 AM
I am using following connection string to get data from a .csv file using vb.net strConnstr = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + System.IO.Path.GetDirectoryName(sFileName) + ";" It gives me following error on this line da.Fill(DS, "Test") Following is the erro...more >>

Link to download MSMQ required
Posted by kd at 3/19/2005 2:33:02 AM
Hi All, I am working on Windows XP. I guess, Microsoft Message Queuing is not installed by default. Can anybody give me a link from where I can download the same? Thanks. kd...more >>

Using a VB .NET DLL in VB 6
Posted by Howard Kaikow at 3/19/2005 1:31:50 AM
I did the following: 1, Created a VB 6 ActiveX DLL. 2. Created a separate VB 6 project that used a function in the DLL. 3. Ran the DLL project, then added a reference to the VB 6 project that called a function in the DLL. 4. Stopped the DLL project. 5.. Used VB .NET to upgrade the VB...more >>

Communicate between 2 applications on the same machine
Posted by kd at 3/19/2005 12:11:02 AM
Hi All, Can anybody suggest as to what is the best way communicate between 2 applications residing on the same machine? Thanks. kd...more >>


DevelopmentNow Blog