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 > may 2005 > threads for tuesday may 24

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 get the total size of a folder?
Posted by grouped2000 at 5/24/2005 9:45:17 PM
g'day group, I need some code that will give me the total size of a folder. In the MSDN I've found some code, but I cannot figure out how to use this code at all ... I am quite new to .NET, I have been using VB6 always. Can anyone point me in the right direction? How will the following c...more >>


Problem using Response.Redirect from a User Control
Posted by Nathan Sokalski at 5/24/2005 9:26:27 PM
I am using the Response.Redirect method in a User Control to allow visitors to click an ImageButton to take them to another page. However, when I click the ImageButton I recieve the following error: Response is not available in this context. I am assuming this is due to the fact that I...more >>

How to open an Excel file and save a copy as CSV programatically?
Posted by Bill nguyen at 5/24/2005 9:03:42 PM
How can I open an Excel file then SAVE AS .CSV file using VB.NET? Thanks Bill ...more >>

Continues TCP recieve
Posted by Jody L. Whitlock at 5/24/2005 8:29:48 PM
I'm kinda stumped at the moment, so... Here's what I'm looking to do: I have a ClientSocket, and I would like to free-thread the recieve end of it. I tried a delegate, but that won't fire. I'm thinking of using a networkstream, but can't really find anything on that. The purpose behind this ...more >>

system.net.webrequest, system.notsupportedexception
Posted by BrentonMCA at 5/24/2005 6:26:03 PM
I am trying to create a webrequest using the create method with a URL (string or system.uri) with the prefix "http://". A "system.notsupportedexception" is raised, even though documentation tells me that this prefix is supported by default. I have tried to register this prefix using the we...more >>

quick question
Posted by Troy at 5/24/2005 5:29:00 PM
Hello, I'd like to validate an input my from user i.e. make sure that the user enters the phone number is the following formats (XXX) XXX-XXXX XXX-XXX-XXXX Any ideas on how I can achieve this with regular expressions? Having difficulty wrapping my head around it. thanks ...more >>

Convert unicode string to ansi
Posted by Clay at 5/24/2005 4:01:02 PM
I need to convert a unicode string to an ansi string. This should not be difficult but I simply cannot find a way to do this. Anyone? ...more >>

Trouble Updating Dataset from DataGrid
Posted by Gary Paris at 5/24/2005 2:41:11 PM
I have a bound datagrid on my windowsform. I have the following declarations in the global module of the project: Public eDS As DataSet Public eDA As OleDb.OleDbDataAdapter In the Load routine of the form, I have the following code Dim eDS As New DataSet Dim eD...more >>



Date conversion
Posted by KK at 5/24/2005 2:38:22 PM
Hi, How can we convert string to date in VB.NET? I will get date in a string "5/24/2005" By using date operations I want to convert this date into another string "24-May-2005". Not by using arrays. Pls help. Regards. ...more >>

passing parameter....
Posted by Joe Smith at 5/24/2005 2:38:13 PM
How to pass parameter to a Vb.Net application? ..Net Framework 1.1. Thanks, Joe ...more >>

Reading List Box...
Posted by Joe Smith at 5/24/2005 2:30:15 PM
What is the syntax to read the nth item in the listbox. ..NetFramework 1.1. and VB.Net 2003. Thanks, Joe ...more >>

Newbie: Checking if Date exists (i.e. Feb. 31 = False)
Posted by steve at 5/24/2005 1:47:59 PM
Hi, As the subject says: I can't seem to find a method to determine wether an assembled string (e.g. 31/09/1994) is an existing date. I mean September didn't have 31 days in 1994. Any help would be appreciated. TIA -steve ...more >>

Threading Question - Newbie
Posted by Benjamin Pierce at 5/24/2005 1:47:26 PM
Hi All, I'm fairly new to the world of threading in VB.NET and would like to know if it's possible (and not unstable) to access a global object (in a form class) with multiple threads that are spawned from within the same form. I know that you're not allowed to access GUI elements from threa...more >>

[Repost] Thread Questions
Posted by Mythran at 5/24/2005 1:23:03 PM
Been 11 days since I posted this and 0 replies (although, in OE, it looks like there was 1 but it's just another post with the same subject as before): Part #1: I have a Thread, MainThread, and a child thread that is started in the MainThread called ChildThread. I have a DataSet created ...more >>

sleep simillar function.....
Posted by Sophia Smith at 5/24/2005 12:45:14 PM
What is the statement in VB.Net 2003 to halt the excution of program? Like sleep function in some programming languages. Thanks, Sophia ...more >>

How To pass the client response from a jscript prompt to vb.net
Posted by GRB at 5/24/2005 12:01:04 PM
I'm using VB.Net 2003 to build a web page. I need to prompt the client for a name in order to save a list. I used the following code to btnSaveList.Attributes.Add("onclick", "var listname = prompt('You are about to save the following list. \n\n', '" & cboMailLists.SelectedItem.Text & "');i...more >>

Reading in and combining text files...
Posted by Steve Schroeder at 5/24/2005 12:00:58 PM
If I need to combine a group of files (up to over a 100 even), and the do a search/replace on a static string...is StreamReader my best most effective option? Still working my around VB.Net. I'm assuming I'll be able to do a search/replace on the combined text. It would seem most efficient to ...more >>

Socket.Receive
Posted by Sophia Smith at 5/24/2005 11:49:17 AM
In my FTP application, after login activity I use NLST command to the FTP server. After that I read the output buffer data to read the file listings. When I run through the debug mode I am getting the complete list of files in the FTP server. When I run without debug points, when I read the ...more >>

resolve multiple ip's
Posted by brcimo at 5/24/2005 10:11:03 AM
Does anyone know if there is a way to get all the IP's associated to a host name from a DNS server? I'm thinking along the lines of Dns.Resolve Method. But as stated in the remarks: . The Resolve method queries a DNS server for the IP address associated with a host name or IP address. ...more >>

Getting the SPID of a SqlConnection
Posted by Paul at 5/24/2005 10:00:04 AM
Is there a way to get the SPID at runtime (the server-side connection/process ID, which you can see in the management/current_activity/process_info area in Enterprise Manager) from an active SqlConnection object? I have found zero related info in help, object browser, or the API viewer. Is getti...more >>

Pass by Reference in Managed C++ Class Library
Posted by Qingdong Z. at 5/24/2005 9:18:44 AM
I have a Managed C++ class Library wrapper; this DLL will be called from VB.NET project. If a function parameter passed by reference, I cannot see this function from VB.NET. Otherwise, it works great. void ICCompress(int &iFileSize, int &iKeySize, BOOL &isKEYFRAME) { .... } How can...more >>

Combo boxes and multiple columns
Posted by Thomas Beyerlein at 5/24/2005 9:12:51 AM
I was hoping there is a way to load multiple columns from a dataset into a combo box? Tom *** Sent via Developersdex http://www.developersdex.com ***...more >>

Could not load type error
Posted by Jim at 5/24/2005 7:34:47 AM
Good Morning, I'm hoping someone can assist me. I have a web application, the application code and web pages are sitting on an application server. I have created a virtual directory on the web server pointing to a shared folder containing the app on the application server. When I connect to t...more >>

Cancelling a user change in a combo box
Posted by genojoe at 5/24/2005 7:10:04 AM
I have a combobox control on the form. When the user makes a change, I want to validate a condition before permitting the change. If the condition is not met, I want to return the ComboBox text back to its previous value. He is what I tried. (1) Validating event does not work because use...more >>

Copying Tab pages
Posted by dotnetnewbie at 5/24/2005 6:32:12 AM
I want to add additional tab pages on my form e.g. Dim db As New TabPage tabDetails.Controls.Add(db) Where tabDetails is the tabcontrol on the form. What is the best way of ensuring that all of the controls (e.g. textboxes, combo boxes etc) from the first tab page get cop...more >>

Datagrid Navigation
Posted by Michael at 5/24/2005 5:58:56 AM
Hi All, I would like the datagrid to start off displaying the table data without first forcing the user to use the expanders to get to the table. If I set the AllowNavigation to false, then the grid don't show any data at all. Is there a way to setup the grid to show the data at startup, or u...more >>

Moving in IDE from procedure to procedure
Posted by Billy at 5/24/2005 5:46:42 AM
Anybody know if maybe in VS 2003 IDE exist any keyboard shortcut for quick moving from one procedure up or down like is that in VBA IDE? I can't find anything about that in help under Keyboard shortcuts. In VBA you press Ctrl+UpArrow or Ctrl+DownArrow and you move quickly to second line of nex...more >>

'System.NullReferenceException
Posted by Supra at 5/24/2005 4:14:40 AM
An unhandled exception of type 'System.NullReferenceException' occurred in irc_client.exe Additional information: Object reference not set to an instance of an object. 'UPGRADE_WARNING: Arrays can't be declared with New. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?k...more >>

excel with vb.net
Posted by jakekeke NO[at]SPAM gmail.com at 5/24/2005 1:06:30 AM
Dear all, I would like to use excel and vb.net to create a report(xml) generator, however, i wouldnt find any source for making shapes(button,label) from vb.net to initial excel what i want to know is how can i get the actionlistener of a button, which the coding is made in VB.Net but the but...more >>

VB6 Fix
Posted by Starbuck at 5/24/2005 12:00:00 AM
Can anyone show me a pure .net equivelent of the VB6 Fix procedure as below Function vbfix(ByVal ct As Char, ByVal e As DataGridcstrCellEventArgs, ByVal g As System.Drawing.Graphics) As Double vbfix = Fix(Math.Ceiling(g.MeasureString(ct, e.TextFont, 20, StringFormat.GenericTypographic)...more >>

Help. I am creating a Program for college, in which the Program will read a Folder and create a HTML page.
Posted by Paul at 5/24/2005 12:00:00 AM
I am creating a Program for college, in which the Program will read a Folder and create a HTML page from the pictures that are storrd in that folder. .. What would be the best way to do it in VB Net 2003. Thanks Paul Selwood Paul@DialUpSelwood.demon.co.uk -- The Source For Prem...more >>

Darken or Lighten an area of a form...
Posted by Rlrcstr at 5/24/2005 12:00:00 AM
Is there a way to darken or lighten an area of a form or control via the graphics object? I'm using an ownerdraw listbox and I want to have a small area of the item be a bit lighter than the rest of the object, but I want the user to be able to set the main color. I've read up on the fact th...more >>

Standards
Posted by Nice Chap at 5/24/2005 12:00:00 AM
Are there any tools 1. To check if a screen adheres to pre-defined standards (like positioning and alignment of controls etc.) 2. To check spellings of labels, captions etc. for correctness Thanks in advance ...more >>

Application quits unexpectedly
Posted by Juande at 5/24/2005 12:00:00 AM
Hello, I've a working application made with Visual Studio .Net 2003 and SQL Server 2000 SP3, this application runs on several pc stations with Windows XP SP2 installed. When an user is using the application, it's quits unexpectedly without any previous advice or error message, I'm trying s...more >>

file downloaded using FileStream "in use by another process"
Posted by Loane Sharp at 5/24/2005 12:00:00 AM
Hi there I use the FileStream object to download a zip file over the internet to my local disk. The file downloads successfully, but when I attempt to unzip it, I'm told that the file is in use by another process. This occurs even if I release the object using fs.Close() and fs = Nothing. ...more >>

String Methods
Posted by S Shulman at 5/24/2005 12:00:00 AM
Hi Is there any casting methods in VB.NET to e.g. cast 'ThE' to 'The' etc. Thank you Shmuel Shulman, SBS Technologies LTD ...more >>

How to add run now function after installing program.
Posted by yxq at 5/24/2005 12:00:00 AM
Using the setup function of vs2003 to build msi packet, how to add the run now function? ...more >>

Release memory used from a buffer
Posted by NetMasker at 5/24/2005 12:00:00 AM
I used the following command to keep ~50Mbytes for a buffer: Dim inBuf(50000000) As Byte I used the buffer and now I want to release the 50Mbytes of memory that my buffer used. Is there any way to clear the buffer ??? I tried with the following but nothing happend: Array.Clear(inBuf, 0, ...more >>

Stream as a Mail Attachement
Posted by Malik Asif Joyia at 5/24/2005 12:00:00 AM
Hello how can i send a stream object (a file stream returned from SQL Reporting Service) as a mail attachement. i dont want to write this file to the disk Thanks ...more >>

Including forms in a dll
Posted by Juande at 5/24/2005 12:00:00 AM
Hello, How can I include forms in a dll and then call to those forms needed from my application?, Where can I get an example to do it? Many thanks ...more >>

Add auto increment column in datagrid
Posted by Melson at 5/24/2005 12:00:00 AM
Hi Can anyone help me. I would like to create a product entry form which has 2 tables in ms sql. First table is product header which contain product code and second table is product detail which contain product code, item... etc. Product detail table will be displayed in a datagrid. So f...more >>

Forms/Threading problem
Posted by Oenone at 5/24/2005 12:00:00 AM
Wonder if someone can help me out here as I'm not making any progress with this... I have an application which uses an MDI window. When it is running, the application creates an instance of a COM object, passes into it an instance of a local .NET class from my application, and then calls a ...more >>

Fail to insert Child Table
Posted by Agnes at 5/24/2005 12:00:00 AM
I use this approach for every form, However, I got an error and I don't know What does it mean ?? Please Help myDataRow = dtCurrency.NewRow() Try myDataRow.Item("currcode") = Me.txtCurrCode.Text.Trim catch err as ex I got an error that "no value at index 0" end try ...more >>

Addressing a serial port from within visual basic .NET
Posted by Q at 5/24/2005 12:00:00 AM
Hello you all, I have to create an application which writes data to a serial port, waits for an answer and read this answer from the same serial port. I just don't know where to start. Any suggestions????? Some code snippets would be very helpfull!!! Tks in advance, Q ...more >>

How do I check that a User is in a Security Group
Posted by nate axtell at 5/24/2005 12:00:00 AM
I found the DirectoryServices in the System namespace which I believe is what I need to see if the logged in user to my VB .NET application is in a specific group in active directory. I'm not sure how to specificy or find the entry path, either LDAP://... or WinNT://... I have the user selec...more >>

SystemParametersInfo
Posted by David at 5/24/2005 12:00:00 AM
Hi, I'm trying to use SystemParametersInfo to get the desktop work area: Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Integer, ByVal uParam As Integer, ByRef lpvParam As Integer, ByVal fuWinIni As Integer) As Integer Dim rc A...more >>


DevelopmentNow Blog