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 > february 2004 > threads for tuesday february 17

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

Override Mouse Events in UserControl
Posted by Charles Law at 2/17/2004 11:31:37 PM
In a user control, is it possible to replace the default mouse events with my own? In particular, I want the consumer of my control to get MouseMove events when the mouse is over my control, so that they can change the cursor. However, my control has several standard controls on it, and the co...more >>


Seek via Position in FileStram
Posted by Percy NG at 2/17/2004 11:26:05 PM
H I would like to know what is the different between FileStream.Seek Method and FileStream.Position Property Thank Percy...more >>

Crash Debugging Problems
Posted by Jason Smith at 2/17/2004 10:19:11 PM
I'm rather new with vb.net and I'm having problems debugging a large vb.net application. The application is randomly crashing at two locations with "referenced memory at 0x0" violations. My try-catch blocks are not trapping these exceptions. Sysinternals' procexp places the two crash addres...more >>

conditional in datagrid column
Posted by DC Gringo at 2/17/2004 9:54:20 PM
I have a simple datagrid and need to output the value of "0" (zero) if the value is null. <asp:BoundColumn DataField="clnPopulationCensus" SortExpression="clnPopulationCensus" HeaderText="Population (Census)" DataFormatString=""></asp:BoundColumn> Would this go in the DataFormatStrin...more >>

psshutdown issue: shutdowns computers when using a logoff command!!
Posted by Julien at 2/17/2004 9:36:06 PM
Hello I created a VB.Net program that retrieves particular computers names from the Active Directory and that then logs off all those machines every night (via a Scheduled Task) using the well-known already-existing "psshutdown" program I am using the following syntax in order to perform the logo...more >>

RE: Passing a parameter when opening a new form
Posted by Paul Fairless at 2/17/2004 9:28:13 PM
I have a form called frmCustSearch to search for customers against an SQL Server database. The form contains a simple textbox into which the Customers surname is typed, and a datagrid then becomes visible on the form containing the CustID, Surname, Forename and address of all people with that ...more >>

Working With Forms in vb.net
Posted by mitesh_n_gandhi NO[at]SPAM yahoo.com at 2/17/2004 9:04:36 PM
Hi guies I am a biginner in vb.net but i have worked in vb 6.0. I am facing problem in displaying and closing form. In my project I have (1) one base Module basMain, also startup of my application. (2) frmBackground (3) frmLogin (4) frmMain I want to do the following : Applicatio...more >>

Stop Thread until specified action in another thread
Posted by scorpion53061 at 2/17/2004 8:53:45 PM
I have MS Word operating in a thread other than the main writing a report. Can I tell the main thread to wait until a particular point (a sub starts) in another thread before continuing on? ...more >>



Programatically controlling a web form image control...
Posted by Trint Smith at 2/17/2004 7:54:23 PM
I know that this may belong in the asp group, but I want to programatically control the web form image control. For example, I want to let the program choose the image url at load time and the 'keep perspective' attributes with visual basic .net commands. Any help is appreciated. Thanks, Trint...more >>

dynamic creation of datasets from stored sql server procs
Posted by Brian Henry at 2/17/2004 7:07:25 PM
How would I create a dataset dynamicly on the fly.. I looked at the example in the MSDN article on datasets but it wouldn't work (the northwind example) here's what i want to do... I want to execute the stored procedure "SP_GETNAMES" on SQL server and have it return the table, which could chan...more >>

Hopefully an easy soltion to this (listbox question)
Posted by Brian Henry at 2/17/2004 7:02:49 PM
I have a listbox, and i need to show a text string for selection, but each item is tied to a number (not visible) i need to select the visible text and have it return the number value, i know its possible with data sets and such useing the display column and value column settings, but what if you...more >>

Displaying Word Doc in Web Page
Posted by Richard Grene at 2/17/2004 6:16:01 PM
How can I display a Word Doc at the client side that resides on the Web Server? ...more >>

How to Implement a Serializable Sorted List
Posted by Charles Law at 2/17/2004 5:44:03 PM
I have been using the Microsoft.VisualBasic.Collection as the basis of a generic list class because it is the only list class that allows items to be added with and without a key and hence to be retrieved by both key and index (correct me if I'm wrong). When I wanted to serialize the list to X...more >>

How to step through the controls in a webform controls collection
Posted by Dave Adler at 2/17/2004 5:32:58 PM
Can anyone give me an example in vb.net of how to step through all of the controls in the current webform controls collection to test the Name value of each control to look for controls that start with a specific name value using a "for each/next" construct? Thanks in advance David ...more >>

Call a procedure
Posted by Laurence Nuttall at 2/17/2004 5:14:58 PM
How can I call a control procedure call Timer1_Elapsed() I get : Argument not specified for paramter 'e' of Private sub_Timer1_Elapsed(sender as Object, e as System.timers.ElapsedEventArgs) Thanks in Advance, Laurence Nuttall Programmer Analyst III UCLA - Division of Continuing Ed...more >>

SMTP password
Posted by copyco at 2/17/2004 5:14:46 PM
I'm trying to write code that will send an e-mail using WinSock. Problem is that my server requires my password for outgoing e-mail. What is the SMTP format for supplying the password to the server?? I've checked out http://www.faqs.org/rfcs/rfc821.html but there is absoulutely nothing conc...more >>

How to code loginID & password for Crystal report
Posted by Bill Nguyen at 2/17/2004 5:13:31 PM
I'm using ODBC DSN to create CR reports. The VP app keeps popping up login dialog to ask for userID & password. I would like to be able to supply the DSN id & password in VB.NET app instead. Any suggestion is greatly appreciated. Thanks Bill ...more >>

I need some 'how to' on time/date strings please...
Posted by Trint Smith at 2/17/2004 5:13:24 PM
If I know that I have and ending date and time 2/18/04 and 06:00 am, how can I take the current time and date 2/17/04 and 07:53 pm and do a calculation that will show me how many days.hours.seconds are left? Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Developersdex h...more >>

Number of days since 01/01/0000
Posted by Scott Kilbourn at 2/17/2004 5:07:03 PM
Hi, Does anyone know how to accurately calculate the number of days that have elapsed since 01/01/0000? I'd appreciate any help anyone could give me. Thanks ...more >>

Trace.Assert method
Posted by AJ at 2/17/2004 5:07:03 PM
How can I use Trace.Assert method? It says that 'Assert' is not a member of 'System.Web.TraceContext'. Please help. Thanks....more >>

To print a web form
Posted by Stefano at 2/17/2004 4:21:47 PM
Hello, Is possible to send a Windows Form's contents to the printer? I use VB.NET. Tank you ...more >>

TcpClient and detecting disconnections
Posted by Pi at 2/17/2004 4:21:06 PM
I have an instance of a TcpClient using a NetworkStream and I want to be able to detect when the connection is lost (or cable unplugged). What is the best way of doing this? I don't want to use getByte because it reads from the stream. I tried inheriting TcpClient to access the protected func...more >>

Pattern Property
Posted by Laurence Nuttall at 2/17/2004 4:17:35 PM
Does anyone know what happended to the pattern property of thi list box control in .Net, Thanks Laurence Nuttall Programmer Analyst III UCLA - Division of Continuing Education...more >>

BinaryReader class usage
Posted by David Compton at 2/17/2004 4:11:42 PM
Hi all, Can anyone tell me if this is possible ? :- I have several flat files created in VB6 using UDTs and the PUT command. They include integers, etc. and are all of fixed record length. I want to export them to SQL, but the only way I can read these files is from VB using GET fileno, r...more >>

Week number of year
Posted by Totto at 2/17/2004 3:53:43 PM
Hi, Is it possible to get number of the week from a DateTime type ? Tnx Totto ...more >>

About pdf viewver
Posted by Ather Ali Shaikh at 2/17/2004 3:49:21 PM
Hello All I am supposed to develop a viewer just like Adobe PDF reader. Which is used to view the pdf files. means is there any OCX or other controls to used in vb to develop such an application. Regards Ather Ali Shaikh ...more >>

Xml in vb.net
Posted by jimron_wrm NO[at]SPAM hotmail.com at 2/17/2004 3:39:12 PM
I have a windows application, which loads a text file containing xml into a modified RichTextBox(modified so i can print it). I want the user to be able to type the xml and then parse it. Is my understanding that i can create an xmlobject with a StreamWriter which uses the contents of the RichT...more >>

How to Get the logged in User name in a Windows Service App
Posted by Jim Covington at 2/17/2004 3:38:27 PM
I am writing a program that needs certain information from a pc on a network. I have it written and it is a vb.net service. I need the logged in user name. The app now returns a user "SYSTEM" because it is a service. How does one get the logged in user? Also, I need the IPAddress, THe Serv...more >>

Time component of date time variable
Posted by Bob Day at 2/17/2004 3:33:56 PM
Using VS 2003... How do you get the time component of a datetime variable? See below. dim Date_And_Time as datetime = #2/5/04 4:00PM# Dim Date_Component as datetime = Date_And_Time.Date **** this does not work Dim Time_Component as datetime = Date_And_Time.Time I have resorted to co...more >>

COM Interop issue.
Posted by Frank Rizzo at 2/17/2004 3:26:06 PM
I have my .NET library which I want to call from VB6. Everything works great, except that everytime I recompile my .NET lib and regasm it, the binary compatibility is broken and I have to rereference from VB6 and so forth. How do I make my .NET lib keep binary compatibility (i.e. guid, e...more >>

Fill a ComboBox
Posted by Pepehammer at 2/17/2004 3:25:20 PM
Hi everybody! I got a combobox to fill. I want to display some information (Text), but when I select a item, I want to return a number. The info I want to fill in is something like this: TEXT VALUE Category1 10 Category2 15 Category3 35 ...more >>

Treeview Control
Posted by Larry Pits at 2/17/2004 3:15:22 PM
Hi All, I tried to add a treeview control onto my windows Form and I set the name of the treeview to otree1 and id to oletreeview1. In the test.aspx.vb, I want to add nodes to the tree and I am struck and confused. It's not the same a the old Visual Basic. Could someone help me out? TIA ...more >>

Is there away
Posted by Kenneth at 2/17/2004 3:15:04 PM
Is there away to take a webservice connection with me to another project like the code , I want to use the same web service connection . If I do like the code I get error Project 1 Public oWebb As New AdminNetWebService.Service Dim oViewOrder As New Project2 With oViewOrder ...more >>

EMERGENCY QUESTION - Can I Recover VB.NET SOURCE code from an EXE?
Posted by James Radke at 2/17/2004 3:06:21 PM
Hello, I have an emergency question - it was just determined that our backups were incomplete, and we do not have the source code for an application we developed (due to some system delete, and the bad backups)! We do, however still have the EXE modules.. is there a way I can somehow recover ...more >>

My understanding of the dataset
Posted by Venkat Venkataramanan at 2/17/2004 2:36:11 PM
Hello Let's say I have the following three table 1. Customer (100,000 rows 2. Invoice (1,000,000 rows 3. Detail (10,000,000 rows) 4. Product (100 rows an Customer has a 1-M relationship with Invoice and Invoice has 1-M relationship with Detail. There is a M-1 relations...more >>

Nicer grid than listview
Posted by Ivan Weiss at 2/17/2004 2:12:38 PM
Hi all, I am writing an app that displays data such as a list of customers, vendors, products etc... in a listview. The listview however is pretty ugly and boring and I am pretty bad at making things look "pretty" on my own so does anyone know of any nice components out there? I found a nice co...more >>

Deployment Over IE
Posted by IntraRELY at 2/17/2004 2:10:37 PM
I have developed a little application and have put a link from a page http:://www.test.com/app.exe When running from the development machine everything runs great. But when I install the .NET Framework and access the .exe from IE there is a CLR Exception. The associated DLLs are in the same di...more >>

sending XML file
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/17/2004 1:46:57 PM
I have to send an XML file from a server to a client. I've already made the client and server but what do I have to do to send the file? Any tips? Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION **...more >>

Flashing Text
Posted by theukjock NO[at]SPAM aol-dot-com.no-spam.invalid at 2/17/2004 1:46:56 PM
Can somebody please help me on how to make text flash using a timer. Is using a timer the ideal way or is there an easier way!? I wanted to use: If Label2.ForeColor.Red Then Label2.ForeColor.Empty() Else Label2.ForeColor.Red() but i get system.color can not converted to Boolean. Ca...more >>

ANN: DotNetMagic 1.0.7 Released
Posted by Phil Wright at 2/17/2004 1:32:17 PM
DotNetMagic is the commercial successor to the free Magic Library. Major features include.... Docking Windows Tabbed MDI control TabControl WizardControl ...plus much more... Download the demo using the following link... http://www.dotnetmagic.com/downloads/DotNetMa...more >>

Some Kind of error
Posted by Will at 2/17/2004 1:21:05 PM
Hey guys, i wrote a little piece of code and i gave my friend the exe. My friend intalled the .NET framework and everytime he runs the exe he gets this error Application has generated an exception that could not be handled Process id=0x1ac(428), Thread id oxbc(108 what is that .. its driving me...more >>

passing multiple file names
Posted by Robertmooney at 2/17/2004 1:20:44 PM
I have an ASP.NET Web application where I want users to specify browse/select multiple files in multiple folders on their local workstations. Upon submitting the form, I want to have server-side code to manipulate the files. This is something like writing an email with attachments via a ...more >>

Command line/EnvironmentPermissions
Posted by Al Kaufman at 2/17/2004 1:13:58 PM
I have a simple console app that uses Environment.GetCommandLineArgs to grab arguments in the command line. It works great on my machine. When I try to access the application from another machine, it fails due to security issues. Specifically I get an error message regarding System.Security.P...more >>

Attach process
Posted by Devron Blatchford at 2/17/2004 1:06:14 PM
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server that repond to the scanner requests. I would like to know if there is a way that I can spawn a process...more >>

How to serialize an image
Posted by Juan Romero at 2/17/2004 1:00:58 PM
Hey guys, Does anyone know how to serialize an image or a class inherited from image? Thank you. ...more >>

Tab Delimited File
Posted by Ot at 2/17/2004 12:58:44 PM
I have a Tab delimited file: Field1<tab>Field2<tab>...<Field20><crlf> There must be an easy way to break this apart, but I haven't found it yet. Can anyone help? Regards, Ot ...more >>

VB App hanging in memory
Posted by SStory at 2/17/2004 12:50:05 PM
Have noticed that my app sometimes hangs in memory. It is a multithreaded app with a main thread and a worker thread but I call something to spin it down on quiting. Any ideas as to why this would be happening? Anyone else had this? Thanks, Shane ...more >>

Refresh a DataGrid
Posted by Geogie at 2/17/2004 12:46:13 PM
H I need to create an application that sit on a computer to display data as its added into a table in a SQL Server database. The data is going to be populated by an IVR system. As data is added by the IVR system, my application has to show these records For this I want to use a datagrid, but I ...more >>

Retrieve the text property of all labels, buttons, forms,etc
Posted by jlpraz NO[at]SPAM corobori.com at 2/17/2004 12:26:08 PM
I need to have translated my application. How can I retrieve all text properties of my control in one file ? Jean-Luc www.corobori.com...more >>

UDP Broadcast in Visual Basic?
Posted by gregory_may at 2/17/2004 11:51:15 AM
First two links about UDP: Microsoft Overview of UDP http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingudpservices.asp C# TCP/UDP Client/Server Example http://www.dotnet247.com/247reference/a.aspx?u=http://www.csharphelp.com/archives/archive134.html V...more >>

Reflection - dynamically invoke enum property
Posted by Jenny Fletcher at 2/17/2004 11:50:14 AM
I am trying to dynamically invoke a property of enumeration type but I can't find a way to get it to work. This is my code which works fine until I call InvokeMember and I get an ArgumentException. I've tried various combinations of parameters in my call to InvokeMember but can't find anything th...more >>

Read-only ComboBox?
Posted by Amjad at 2/17/2004 11:36:05 AM
How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox?...more >>

Strongly typed datasets and XML
Posted by Big D at 2/17/2004 11:23:01 AM
I am having trouble understanding strongly typed datasets and XML files. I have the following schema: <xs:schema id="Pages" targetNamespace="http://asdf.org/EOBEPages.xsd" elementFormDefault="qualified" xmlns="http://asdf.org" xmlns:mstns="http://asdf.org/EOBEPages.xsd" xmlns:xs="http://ww...more >>

Reading outlook .msg files
Posted by Graham F French at 2/17/2004 10:57:04 AM
Hello, I can read text files into my application, but I cannot read in msg files as they seem to be in a proprietry format. Is there anyway of converting it on the fly or is there an interpretation method? Thanks Graham Graham F French mcse ...more >>

listbox, data binding, text boxes
Posted by amber at 2/17/2004 10:51:07 AM
Hello I'm trying to run the code below, but I'm running into a problem It is populating a listbox, based on whether or not the user enters data into a text box. If they enter something, it returns only that record, if they leave it blank, it returns all records. This works fine. Now I have text b...more >>

Disabling Datagrid rowheight adjustment
Posted by John D Suru at 2/17/2004 10:46:10 AM
How do I disable the ability to adjust the row height in a datagrid? I don't see any property that can be set to do this John Suru...more >>

Need a grid
Posted by CJ Taylor at 2/17/2004 10:34:12 AM
Hey everyone, Can someone recommend a grid that I can embed controls in the rows (other than drop down, like checkboxes? Thanks, CJ ...more >>

Sending Images through a TCP connection
Posted by Juan Romero at 2/17/2004 10:26:13 AM
Hey guys, I am trying to send an image through a TCP connection. What is the best way to accomplish this? Thank you. ...more >>

method inheritance question
Posted by Craig Buchanan at 2/17/2004 10:17:35 AM
I have a class named "Generic" and a second class named "Specific" which inherits from Generic. I would like to have a method in both classes named "Deserialize". I would like to have code specific to each class in each object's Deserialize method. The Deserialize method in the Generic class ...more >>

AD question
Posted by Scott Meddows at 2/17/2004 9:51:38 AM
Does anyone have code that will pull all the groups in AD that a user belongs to? Thanks. ...more >>

Easy method for extracting numeric portion of string?
Posted by mailbin NO[at]SPAM yahoo.com at 2/17/2004 8:57:38 AM
Does anyone know of a quick method to extract just the numeric portion of a string without looping through each character? For instance: 674h23i -> 67423 23-112 -> 23112 87 (21) -> 8721 Thanks, David...more >>

Export Data to Word
Posted by Peter Walburn at 2/17/2004 7:46:05 AM
Hi I am developing a web application in VB .NET and need to be able to export some displayed data into Microsoft Word. Is there a simple way to do this? I have managed to get data exported to a CSV file and so can load it into Excel, but now I need it to be in Word in a specific format. Preferab...more >>

What is the most compact way to save Image in SQL server
Posted by Al at 2/17/2004 7:16:07 AM
Hi I need to save lots of images on potentially very large database. Therefore the storage space is very crucial. I need what is most compact way to save an image. Currently I am using something like thi Thanks in advanc A dim IoImageValue() As Byt ….get the bytes from InkPictureBox control ...more >>

SQL Statement
Posted by Joe at 2/17/2004 6:36:07 AM
How can I run a SQL statement from VB.NET I want to set a text box equal to something retrived from a select statemen ex textbox.text=SELECT CAR from AUTOS where AUTO_ID= '" & editAuto_ID.Text & "' Thanks!...more >>

How to get a picture into a byte array
Posted by Rasmus Teglgaard at 2/17/2004 6:06:05 AM
Hi I'm trying to get a picture uploaded to the picture attribute in Active Directory. I've got most of it working, the only thing I need now, is to convert this picture to a byte array, so that I can save it in the AD Does anyone know how to do this Thank you VERY much in advance Rasmus...more >>

Programing for Palm OS or Win CE
Posted by Nick at 2/17/2004 5:55:45 AM
Does anyone know any good books or sites that have info on how to program for Windows CE or Plam OS Thanks Nick ...more >>

Combo Box Help
Posted by Matt at 2/17/2004 5:21:10 AM
Here is my problem. I am trying to get a combo box working that lists all the models of servers that we have. This combo box is just one of many text boxes that I have on my form. I am running a "find" that searches through my database to find the queried server. When it finds it, it lists the infor...more >>

Windows Messages
Posted by Dracolytch at 2/17/2004 2:36:40 AM
Hey all, I'm looking for a way to view all of the windows messages, like Spy ++ does. It's fairly trivial to do it for the current application, but how can I take that knowledge to the bigger (system-wide) picture? Thanks, ~D ...more >>

deleting from a bound datagrid system.indexoutofrangeexception
Posted by Robert Batt at 2/17/2004 2:01:06 AM
Hello, I have a problem deleting from a datagrid bound to a dataset. then datagrid is bound as follows MyDatagrid.DataSource = Mydataset.Tables(strtable this works fine for adding and updating, but when I try and delete something I often get a system.indexoutofrangeexception What is t...more >>

propertygrid utilization
Posted by Bernie Yaeger at 2/17/2004 1:59:31 AM
How can I set the browsableattributes of the control that has been selected (selectedobject) by the propertygrid? Here's what I'm after - I want to open a form with a propertygrid in it. The selectedobject will be the form itself. I want the user to change certain properties, thus changing th...more >>

Access like datagrid for Visual Studio .Net (VB)
Posted by Marco de Vries at 2/17/2004 12:46:06 AM
I used to work a lot with Access and created many access databases One thing I'm missing right now is the Access Datagrid displayed when you open a table I looked at a lot of datagrids and read lots of code. But either the solution is to complex or it lacks some functionality What I realy would l...more >>

Intellisense and COM
Posted by Vera at 2/17/2004 12:41:06 AM
I have the following coded elements: 1. An interface 2. A baseclass implementing the interface 3. A subclass that inherits the baseclass and contains some extra properties and methods I use my subclass through COM, in this case in Access2003. Now, if I declare a variable x As mySubClass, th...more >>

DataGrid Row selection in a VB Form
Posted by Genojoe at 2/17/2004 12:26:04 AM
I am using code from Help with two exceptions. (1) I increased the number of sample rows from 3 to 20, and (2) I anchored the datagrid to bottom of form so that I can change the size of the grid by changing the size of the form The code is at the following location in the January, 2004 help ms-...more >>


DevelopmentNow Blog