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 > april 2007 > threads for thursday april 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

Show Splitter-like box when resize a form
Posted by ljlevend2 at 4/19/2007 11:14:01 PM
I want to implement the following: If the user clicks on the border of a form, then I want to show a box around the form that represents the form's bounds. As the user moves the mouse only the box's bounds would change. When the user releases the mouse the form's bounds would be set to th...more >>


Print spooler status
Posted by James Wong at 4/19/2007 10:01:59 PM
Hi everybody, I would like to know whether there is a method to know how many pending jobs to be printed in print spooler from VB .NET 2005. My problem is that if a large document is sent to printer, then another document is sent almost at the same time, the second one may not print correc...more >>

Formatting string
Posted by John at 4/19/2007 9:47:07 PM
Hi How can I format a string in format xxx xxxx xxxx ie 3 chars then space then 4 chars then space then 4 chars? This should work even if there are insufficient characters. Thanks regards ...more >>

Proper way to bind data from sqlserver to datagrid
Posted by Cylix at 4/19/2007 7:55:04 PM
I am going to show database table to a datagrid. I try to select the table to a sqlDataReader, but I found it is not straight to show it to the datagrid. It needs to convert the sqldatareader to a data table and add the datatable to a dataset, then setdatabinding from the datagrid ... Is it ...more >>

A value copy, not reference, of SqlParameter?
Posted by Tim Zych at 4/19/2007 7:11:20 PM
' Declare a new parameter object Dim param() As SqlParameter = New SqlParameter(0) {} ' Set this to null and make it an InputOutput parameter param(0) = New SqlParameter("@Something, DBNull.Value) ' Can also be non-null, but sometimes is null param(0).Direction = ParameterDirection.InputOutpu...more >>

Load a text file in a Listview
Posted by mrjaune NO[at]SPAM hotmail.com at 4/19/2007 6:00:10 PM
Hi Everyone, I try to load a text file into a listview. Here is my text file: 10 "Babar" 9 6 15 "Robert" 3 7 I want: Line 1 in column 1 Line 2 in column 2 Line 3 in column 3 Line 4 in column 4 Line 5 in column 1 Line 6 in column 2 Line 7 in column 3 Line 8 in column 4 etc... ...more >>

How do you set the value between tags in code
Posted by rdufour at 4/19/2007 5:06:28 PM
For instance I have <h1>my header</h1> in a web page, how would I set this value using the VB.net code behind file for that web page in VS2005? Thanks for any help. Bob ...more >>

Stringbuilder / XmlTextWriter does not allow Encoding override
Posted by Rob at 4/19/2007 4:24:41 PM
VB.net I need to create xml using Windows-1252 encoding... So I try... Dim sw as new StringWriter Dim tw as new XmlTextWriter(sw, Encoding(1252)) But I get an error stating that... System.IO.StringWriter cannot be converted to string And System.IO.StringWriter cannot be converted ...more >>



Trouble referencing a series of pre-defined arrays within a loop.
Posted by Doug_J_W at 4/19/2007 4:21:34 PM
I have a Visual Basic (2005) project that contains around twenty embedded text files as resources. The text files contain two columns of real numbers that are separated by tab deliminator, and are of different lengths (e.g. usually between 25 and 45 rows. The columns in each file have the same l...more >>

Open Access form through from VB.net
Posted by Vayse at 4/19/2007 4:02:27 PM
Using Vb 2005 and Access 2000. From within VB, I'd like to open a form in Access. frmCustomer is the form, and I'd like to view the form for a particular CustomerID. I remember doing something similiar a few years ago in VB6, so it should be possible. Thanks Vayse ...more >>

Post build events
Posted by Smokey Grindle at 4/19/2007 3:57:42 PM
I have a post build event script... I need it to do a task only when the cpu arch is 64bit for the compiled output... is there any way to check this and then do a block of code if that is the case? if so how? thanks! ...more >>

Must inherit forms don't show up in list.. is this a bug?
Posted by Ronald S. Cook at 4/19/2007 3:21:55 PM
I have many forms in my Windows project. When I go to create an inherited form, I see all my forms in the list of choices. HOWEVER, if any form is marked as must inherit, then it doesn't show up in the list! Is this a bug? Thanks, Ron ...more >>

How change default 8.25 pt size?
Posted by Ronald S. Cook at 4/19/2007 2:43:27 PM
Is there a way I can change the default font size in my Windows project? Thanks ...more >>

using the quote mark in a string
Posted by Tracey at 4/19/2007 2:20:57 PM
Is there a way to include the quote mark/character when using the MessageBox.Show? In other words is there an alternative/secondary delimiter for strings in VB2005? <"> denotes the desired use/position of the quote mark/character: MessageBox.Show( <"> & txtText.Text & <"> & " is plain text in...more >>

count records in table
Posted by Etayki at 4/19/2007 1:39:27 PM
Hi! I am trying to find the number of records stored in my table within a MS SQL database. This is part of a Console Application. Here is my code: Sub RecordCount() Dim cmd2 As New System.Data.SqlClient.SqlCommand("SELECT COUNT(*) FROM Keyword", conn) Dim count As Int...more >>

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Posted by tamasumalta NO[at]SPAM hotmail.com at 4/19/2007 1:38:26 PM
I am using the attached code Private Sub StartApplicationProcess InitialiseObject() oWord.Visible = True oDoc = oWord.Documents.Open(StrStackPath) oWord.Visible = True end sub The variables oWord and oDoc are declared in the class as below attached Private WithEvents oWo...more >>

Getting byte size of image
Posted by Jerry Spence1 at 4/19/2007 12:50:14 PM
I am trying to come up with a focussing routine for a camera and I need to detect when the image is in focus. As I understand it, JPG Image size goes up sharply when it is in focus as it is very sensitive to the presence of sharply defined edges (high spatial frequency information). I have ...more >>

ClickOnce
Posted by vovan at 4/19/2007 11:59:04 AM
I'm new to the ClickOnce deployment. I have VB 2005 project and want users to install it from mapped drive (located on the server). I also want automatic updates. My development machine has the same mapped drive. If I select Install From UNC path or file share and give the path like 'N:MyApp'...more >>

Move DataRow to Top of DataTable
Posted by Mike at 4/19/2007 11:46:02 AM
Hi. Excuse me if this is a simple question, but I can't seem to figure it out. Can a specific datarow within a datatable be moved to be the first datarow of the datatable? For example - If I have a datatable with 30 rows, how would I move row# 10 the the first row? Thanks, Mike...more >>

Converted app to a Windows Service
Posted by Blasting Cap at 4/19/2007 11:39:38 AM
I have an application that was converted from a VB application to a windows service. I pass in parameters in a file that tells the application where to pull a file from & read it and put it into a web page. The application works fine when the input & output locations are local on the s...more >>

Vb.net application - progress update screen
Posted by tedqn NO[at]SPAM yahoo.com at 4/19/2007 10:57:41 AM
I have simple vb application that loops through a list of filename and perform a System.IO.File.Copy from one server to another. I have a readonly textbox where I append messages showing what's going on. ie. Processing .. Copy \\Server1\file1 to \\Server2\file1 ... Done Copy \\Server1\f...more >>

using VB to drop connections to XP
Posted by cj at 4/19/2007 9:58:07 AM
Seems XP allows for a maximum of 10 users to connect to a PC's resources. This is presenting a problem for us as more than 10 people now want drives mapped to a particular PC. Is there a way using VB that I could identify an inactive connection and clear it? Would it just pop back on--I t...more >>

SQL Authentication in Crystal Report
Posted by PT at 4/19/2007 8:56:00 AM
I have a Crystal Report created by a coworker in Crystal Reports XI. The report uses an ODBC DSN to connect to the SQL Server database. I've figured out how to set the various parameters for the report, how to point the Report Viewer to the .RPT file, etc. The last step (?) for me is to pr...more >>

.NET Project Compatability
Posted by zacks NO[at]SPAM construction-imaging.com at 4/19/2007 7:59:33 AM
Using VS2005. Are .NET projects written with different languages compatable with each other? In other words, can I reference a VB.NET class library in a C#.NET application and vice-versa? ...more >>

Strange GC behaviour - or - my inexperience :-)
Posted by lothar.behrens NO[at]SPAM lollisoft.de at 4/19/2007 2:41:35 AM
Hi, I have figured out that .NET CLR implements object destruction on the knowledge of usage of these objects. My DBHelper class closes the connection when refcount goes to zero. That happens inside Finalize. The sample code at the end crashes when I not do a call to getReader with an empt...more >>

How to set the datagrid with datasoure from datareader
Posted by Cylix at 4/19/2007 1:57:45 AM
As the title, I have already set the datagrid.datasoure = datareader, but the datagrid show nothing ... How can I do so? thanks. ...more >>

Quick seelct query record count
Posted by John at 4/19/2007 1:06:58 AM
Hi I need to check if a record exists (or not) in a table for a particular id. Is there a quick way to do this (like ms access dlookup function or similar)? Thanks Regards ...more >>

Select Distinct on a DataTable
Posted by Doug Bell at 4/19/2007 12:57:22 AM
Hi, I have a DataSet with a DataTable that has a number of duplicate rows (except for one column that has a unique value). Each row has OrderNo, OrderLineNo, etc and there are multiple rows with the same OrderNo and OrderLineNo. I need to display data in a DataGrid but displaying only o...more >>

WAN IP Address
Posted by ShaneO at 4/19/2007 12:00:00 AM
Does anyone know how to obtain the WAN/Public IP Address (not LAN) using VB .NET 2005? I have an existing Service, which I wrote, that cheats by using System.Net.WebClient to access a Remote Server, but I would now like to do it "properly" (maybe by interrogating the Router??) but can't s...more >>


DevelopmentNow Blog