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 > december 2004 > threads for thursday december 30

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

Converting a textfile to XML
Posted by helmut36 NO[at]SPAM gmx.at at 12/30/2004 11:39:02 PM
I have a output-file from the program listdlls and i want to conert it to XML. I am new in dotnet and i need some help....more >>

update data row
Posted by gigi at 12/30/2004 11:32:18 PM
i want to update one of data. i have use this method to save my data. 'Decleare the file stream as fs Dim fs As FileStream = New FileStream(filename, _ FileMode.OpenOrCreate, FileAccess.Read) Dim rawData() As Byte = New Byte(fs.Length) {} fs.Read(rawData, 0...more >>

Searching for timestamp in string
Posted by Brian Mitchell at 12/30/2004 11:15:24 PM
Is there an easy way to pull a date/time stamp from a string? The DateTime stamp is located in different parts of each string and the DateTime stamp could be in different formats (mm/dd/yy or dd/mm/yyyy, or hh:mm:ss dd/mm...etc.) Any ideas would be appreciated, Thanks!! ...more >>

Modify the SMTP Setting in Outlook 2003
Posted by Jack at 12/30/2004 10:49:36 PM
Hello, I need to change the SMTP address in Outlook 2003 using VB.net. Thanks for any help, Jack ...more >>

StreamWriter Class Question...
Posted by Anthony Nystrom at 12/30/2004 8:33:01 PM
I am trying to pass a text stream from streamwriter class to a richtextbox, or textbox doesn't matter which one. I have the file write version working fine such as: x.streamwriter = System.IO.File.CreateText("C:\text.txt") Anyway to write to a textbox or rtf rather than file... ? Than...more >>

Namespace variable
Posted by dotNETnews at 12/30/2004 6:51:54 PM
Little confused... When I declare a namespace variable in module I can use it anywhere in the project. That's clear. I read a book in which the author said that namespace variables can be declared in a class outside of any subs or functions... below " Windows Form Designer generated code...more >>

Maximizing Form in vb.net
Posted by sympatico at 12/30/2004 6:47:29 PM
Why can't the form be maximized in visual basic .net by double clicking the title bar like it can in visual basic 6.0? When i double click the title bar of a form in a vb .net project, it just goes to the code. Thanks. ...more >>

Q: "Type Expected"
Posted by Geoff Jones at 12/30/2004 5:39:48 PM
Hi I'm trying to use a class that I've written in a form. Unfortunately, when I write something like: Public x As New myClass I get the compile time error: "Type Expected". Indeed, the "squiggly" blue line does appear under myClass so I half expeced it. However, I had written Imports...more >>



Sorting an array
Posted by John Conklin at 12/30/2004 4:16:49 PM
Hello all, I am trying to help a fellow working with a VB6.NET project and am having trouble. The exercise wants us to read some words in English, German and French into an array from a text file, which I got working fine. But now it wants us to sort the array by the English words, and ...more >>

C# to VB.NET Conversion
Posted by Matthew Hood at 12/30/2004 3:37:47 PM
I'm playing around with converting some C# code to VB.NET as a learning exercise and I'm running into a little confussion for my lack of understanding some C# syntax. The C# code is: public const int LOCSIG = 'P' | ('K' << 8) | (3 <<16) | (4 << 24) Can anybody explain to me what this is d...more >>

Properties or parameters : what's best performing?
Posted by Perre Van Wilrijk at 12/30/2004 3:31:30 PM
Hi there, When I started using VB6, I used to write classes with properties and functions as following ... Private lngf1 As Long Private strf2 As String Public Property Get f1() As Long f1 = lngf1 End Property Public Property Let f1(ByVal vnewvalue As Long) lngf1 = vnewvalue...more >>

Play Sound of Embedded Resource
Posted by S Shulman at 12/30/2004 3:03:26 PM
Hi I am lookin for a code sample of playind WAV file tha was attached to a project as a resource Thank you in advance, Shmuel ...more >>

How best to close sqlclient.connection?
Posted by Paul W at 12/30/2004 2:53:42 PM
Hi - in an asp.net application, how should I close out a sqlclient.connection? What combination and order of Conn.close conn.dispose conn=nothing Should I use? Specifically, is the .dispose required? Thanks, Paul. ...more >>

INSERT ERROR
Posted by INSERT ERROR at 12/30/2004 2:47:04 PM
I am trying to INSERT record in MYSQL database, but each time the code tries to execute the command: MySQL_cmdGLAccount.ExecuteNonQuery(), it reports an error with the message "COLUMN COUNT DOESN'T MATCH VALUE COUNT AT ROW 1" Am using MYSQL CONNECTOR FOR NET VERY 1.0.3 as my provider. Am wonde...more >>

MySQL Insert Error
Posted by INSERT ERROR at 12/30/2004 2:41:02 PM
I am trying to INSERT record in MYSQL database, but each time the code tries to execute the command: MySQL_cmdGLAccount.ExecuteNonQuery(), it reports an error with the message "COLUMN COUNT DOESN'T MATCH VALUE COUNT AT ROW 1" Am using MYSQL CONNECTOR FOR NET VERY 1.0.3 as my provider. Am wonde...more >>

reference path of dll
Posted by Han Sen at 12/30/2004 2:29:43 PM
I have a dll that is used from word. I'd like to have an xml file with some config settings. This xml file I'd like to place in the same folder as the dll. How do I read the path of the dll form the dll so I can find the xml file? Han...more >>

Compress MSAccess DB from VB?
Posted by John Howard at 12/30/2004 2:21:02 PM
Can I compress my MSAccess database from a VB.net program? If so, how? Simple terms and/or example, please. TIA, John ...more >>

Datagrid sorting
Posted by Nikolay Petrov at 12/30/2004 2:17:38 PM
Is it possible to sort datagrid from code and how? Tnx in advance ...more >>

how to code a user defined loop to run a progress bar as a separate thread
Posted by Viet at 12/30/2004 2:06:52 PM
I am trying to code a program that inputs a number (the max value) for a progress bar which will execute as a separate thread. I know how to create a progress bar as a separate thread but I am having difficulty trying to create the user defined loop for the progress bar. Any help is appreciated! ...more >>

Attaching the .net debugger to process
Posted by DaveF at 12/30/2004 2:06:50 PM
Any Ideas? Attaching the .net debugger to process '[3668] winformhello.exe' on machine 'PC50781' failed. Error code 0x80040001. -- Dave ...more >>

Can't get design view for form?
Posted by Brett at 12/30/2004 1:33:58 PM
I have a form with a Form1_Load() Subprocedure and no other code. For some reason, the design view does not come up. If I add a new form, the design view does come up. The form does appear when I execute the EXE. The design view for this form use to come up but I'm not sure when it stopped ...more >>

Q: Updating a smooth progress control
Posted by Geoff Jones at 12/30/2004 12:23:54 PM
Hi I have been using a smooth progress control using the following link: http://support.microsoft.com/default.aspx?scid=kb;en-us;323088#2 It works well, however I can't seem to get it to update properly. For example, I created a test application which had the smooth progress form and t...more >>

Exiting an Application from a class Library
Posted by Juan Pedro Gonzalez at 12/30/2004 12:04:31 PM
Helo, My question is how can I exit an application from a class Library... I've got a class library wich I use to load and save user setting for my application, some of this settings are mandatory, therefore if the setting is not present the application should exit. I know I could throw an ...more >>

Open a text file and replace text help
Posted by Jim at 12/30/2004 12:04:11 PM
Below is my code, I'm opening an xml file and I have a chat name node within it. By default the node has a value of "mypc" for which I'm replacing and putting in a new value. I don't know if this is the best approach but I'm trying it. I can open the stream fine and replace the text. But whe...more >>

Downloading mail through VB.NET?
Posted by Brett at 12/30/2004 11:46:20 AM
I'd like any references to code that demonstrates how to download email messages from a mail server strictly through VB.NET. I'd also like to split each message into seperate components such as: - header - return path - to - from - subject - folder it was downloaded from - body (multi ...more >>

CDO.Message.DataSource.Open() in .NET
Posted by Zoury at 12/30/2004 11:31:55 AM
Hi folks! :O) I need to take a email from a given mailbox and forward it to another mailbox. The code we had in VB 6 looked like this one : '*** Dim objMsg As Object Dim objFwd As Object ' get the mail we need to forward Set objMsg = CreateObject("CDO.Message") objMsg.DataSource.Open ...more >>

windows services
Posted by alvis at 12/30/2004 10:11:03 AM
Hi, i created this killer windows service, well it works :-) any way now the people that will be using it want to use parameters when starting the service, and have default parameter if the service is started automaticly. could you please tell me how to find an article that explains how to ac...more >>

How can I change listview gridlines color???
Posted by AstronusX at 12/30/2004 10:04:50 AM
How can I change listview gridlines color??? ...more >>

is my code accrurate....
Posted by Supra at 12/30/2004 9:22:54 AM
i had usercontrol name doColor, then i added function procedure called doColor. then i added module and called from method doColor into module. the problem is i had to traced error:... An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Addi...more >>

Convert to VB question
Posted by Jon at 12/30/2004 8:13:10 AM
I need help converting the following to vb from c# base.Load +=new EventHandler(CommonPage_Load); I've tried a couple of things, but none is working. I think the closest I came is: MyBase.Load += New EventHandler(AddressOf PageAuth_Load) Anyone care to show me the correct way? Thanks ...more >>

Working with word object (S.O.S)
Posted by Eran AMiel at 12/30/2004 8:13:06 AM
Hi I Am working with word object in vb.net and i need to know two thing 1. what is the rows number in the current page ? 2. in what row am i ? -- Thank For The Help Eran...more >>

Calling functions with hardcoded fieldnames?
Posted by Eych at 12/30/2004 7:31:23 AM
I have a module which has a function that returns values from a table. e.g. GetFromUsersTable(userID,"UserName") GetFromUsersTable(userID,"UserDept") etc. depending on the userID passed, it will return the field requested. Question is where/how do I define constants that I can use in pla...more >>

Get all ip addresses of the computers connected to LAN
Posted by tushar.n.patel NO[at]SPAM gmail.com at 12/30/2004 5:00:07 AM
hi there!!! very much newbie to socket progammin in .net. i've try the DNS class to get the ip addresses but it always returns 1 ip that of my pc though i got 50 PCs connected to the LAN. i tried everywhere so if anyone have code for getting all the ip addresses of the PCs. plz copy paste here ...more >>

how to get printpreview in ASP.NET
Posted by Nandini at 12/30/2004 2:58:08 AM
Hello Everybody, Can anyone please tell me how to get the printpreview in ASP.NET, just like as in yahoo calendar, I want to show a preview for the particular page. so please help me regarding this. Regards, Nandini....more >>

Get an IP address
Posted by Terry Petty at 12/30/2004 2:54:07 AM
I want to write a program that gets the leased IP address off of my DSL router and then tells a remote machine what that address is so that machine can find it. The remote machine on the web with a fixed IP will have a page with a link to a video camera that is located on a closed internal...more >>

Visual Studio Installer files
Posted by Ike at 12/30/2004 2:49:21 AM
How do I install msi files on a client computer, via a web download? What do I need to do in visual studio to create something that the client can instlal msi files? Can someone point me in the right direction on how to do this? Thanks, Ike ...more >>


DevelopmentNow Blog