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 2005 > threads for thursday february 3

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

Cannot refresh the textbox.text
Posted by Agnes at 2/3/2005 11:18:19 PM
Before I run a function, i will put the string in a textbox. However, I found that the messagebox show the correct value. BUT the textbox show nothing. Finally, after the function 's process is completed. the value will be shown in the textbox. How Can i correct it ? thanks a lot M...more >>


Reading xml data
Posted by pmclinn at 2/3/2005 9:18:09 PM
How should one import data that is stored in the following fashion? <Restaurants> - <Restaurant> <Category>American Restaurants</Category> <Name>APPLEBEES</Name> <Address>1273 HOOKSETT RD, HOOKSETT, NH 03106</Address> <StreetAddress>1273 HOOKSETT RD</StreetAddress> <City>HOOKSETT...more >>

Convert UInt16 to Byte Array
Posted by rawCoder at 2/3/2005 8:48:07 PM
Hi, Ok this shud b simple but i cant seem to find it. I want to convert a System.UInt16 data to 2 Byte array and System.UInt32 data to 4 Byte array ( BigEndian) something like Public Sub GetBytes(ByVal n as System.UInt16, ByRef b As Byte()) 'Converts the System.UInt16 to a 2 Byte array ...more >>

HTML DOM cloning nodes to copy document
Posted by J Williams at 2/3/2005 8:31:33 PM
I'm using axWebBrowser control and HTML DOM in a VB .NET Windows application to create a new HTML document by cloning nodes. The function below is called from the axWebBrowser1_DocumentComplete event using: Dim mNewDoc As mshtml.IHTMLDocument3 mNewDoc = NewDoc(axWebBrowser1.Document) P...more >>

timers and progress bar
Posted by bbdobuddy at 2/3/2005 7:57:04 PM
Hi, I am creating a project calls a function that has to run for a while. I would like to display a progress bar on the bottom of that form while that function is running but everything I've tried doesn't work. It seems like it just wants to wait for that function to finish before it does...more >>

byref strings c++ vb.net
Posted by marfi95 NO[at]SPAM yahoo.com at 2/3/2005 7:19:46 PM
I'm trying to call a C++ component from my vb.net app. This method has a prototype of int GetV (char *verData). I've setup a Declare statement like the following: Declare Auto Function GetV Lib "myread.dll" Alias "GetV" (ByRef vData As String) As Integer. BTW, I've also tried ANSI and UNICO...more >>

Crack a DAT
Posted by Richard Myers at 2/3/2005 7:11:52 PM
Hello. I have a binary DAT file from a clients unsupported legacy inventory management system. Given i dont know what the structure of the file is, Im wondering if there is either a best practise or even a utility that can be used to give hints as to its structure so i can extract its data. ...more >>

Resolution Resize
Posted by Ellis Yu at 2/3/2005 6:38:59 PM
Dear all, In vb6, I'll do it by getting the ratio between the resolution setting in screen and in design mode. Afterward, adjust each control's position and size with the ratio according to the control type. Is there any other way do it in .Net? Thanks Best Rdgs Ellis ...more >>



DirectX .Net?
Posted by gregory_may at 2/3/2005 6:06:54 PM
Does anyone know if anything is in the works to make DirectX work better with .Net? Thanks! ...more >>

How to protect a VB.net windows service?
Posted by gregory_may at 2/3/2005 6:00:59 PM
I would like to prevent a VB.Net windows service from stopping by any user who does not have Administrative privilges on the box. Is this possible in the "OnStop" or "OnShutdown" areas of System.ServiceProcess.ServiceBase? It looks like there is a "CanStop" property refered to in this arti...more >>

RichTextBox format prob
Posted by Lespaul36 at 2/3/2005 5:13:05 PM
I am writing lan chat program and want the messages to be color coded for sent/recieved...you know the standard idea. I cannot seem to get the richtextbox to keep the color. I do a recieve and it is fine, I do a send and it is fine, another recieve and all of the text becomes one color. ...more >>

How to restart "Stopped" thread?
Posted by Brett at 2/3/2005 4:59:04 PM
I have a second thread, t2, that errors out and will stop. It's status is then "Stopped". I try to start t2 from thread 1, t1, by checking If t2.threadstate = "Stopped" Then t2.start() However, this throws and error: System.Threading.ThreadStateException: Thread is running or termi...more >>

Needing some help on how to ceate a simple aplication.
Posted by shapper at 2/3/2005 4:35:52 PM
Hello, I work mostly in web design and usually I create an administration area. To access administration my clients usually visit a link on their browsers. I would like to create a windows installer which does the following: 1. Opens a directory and copies several files from the CD to the ...more >>

Windows.Forms.Datagrid Want Delete, don't want New Row.
Posted by Bob at 2/3/2005 4:20:28 PM
Hi, Is there anyway to stop the datagrid from displaying the 'new record' position at the bottom but still retain the ability to delete records? Thanks Bob ...more >>

Messagebox text not visible
Posted by Jim King at 2/3/2005 3:15:52 PM
Hi all, I have just started using VB.NET and have already encountered a puzzling bit of behavior. When I put the following line of code into the click event of a command button: MessageBox.Show("Test Message", "Test Caption", MessageBoxButtons.OK, MessageBoxIcon.Exclamati...more >>

How to Create an Array of Objects
Posted by Prabhudhas Peter at 2/3/2005 3:13:01 PM
I have a Class. Now i want to create an Array of Object for that class.. -- Peter......more >>

How to Create a Property which Accepts Array of Values
Posted by Prabhudhas Peter at 2/3/2005 3:11:05 PM
I need a property which acts as an array... -- Peter......more >>

view thumbnails of image files
Posted by mike w. at 2/3/2005 3:09:02 PM
I want to create an application using VB.Net to have something like windows explorer to view thumbnails of image files in the directories. Is there a control or soemthing to do this? thanks mike w. ...more >>

Need some help with bit operations
Posted by Peter van der Veen at 2/3/2005 2:39:12 PM
Hi I have the following problem. In a file a have 2 byte value, but the first 10 Bits are a value and the last 3 also. I thought i read them as an UINT16 value and than do some shifting, but VB.NET only allows this for integers and shorts. If i read in the valu as a short and do the shifti...more >>

Finding local machine name?
Posted by Robin Tucker at 2/3/2005 2:24:35 PM
Hi, I would like to know the name of the local machine. At present I can use "(local)" for setting up database connections, but I would like a quick way of knowing that (local) = "RTUCKER" (for instance). I can't find a machine name on the application object, but I'm sure its probably eas...more >>

How to select all rows in a DataGrid?
Posted by Kevin Hodgson at 2/3/2005 2:20:50 PM
I have a standard .NET Datagrid (Databound to a SQL Dataset), and I need to select all rows of the datagrid when a button is clicked, to allow a user to copy the data, and then paste it into Excel or another application. They need to be able to do this because the application is running on a Ter...more >>

Getting and Setting the mic level
Posted by Webbee at 2/3/2005 2:19:08 PM
I'm building a small app that will record a wave file and save it, nothing really fancy. What I would like to add as a control to display the input level coming in. I would think that this is something I could pull from the windows api? I would also like to have a slider on the form to control...more >>

Remoting With Windows Service
Posted by John Fred at 2/3/2005 2:14:17 PM
Salve, I have write a service Windows for the remoting. I have a dll Server (OLD COM+) For Configure DLL Server I user Config File Es. <configuration> <system.runtime.remoting> <application> <channels> <channel ref="tcp" port="50000"/> </channels> <service> <wellknown type="DllServer...more >>

Where to document updates?
Posted by Brett at 2/3/2005 2:09:57 PM
Where is a good place to document version updates to a simple program? This isn't anything a user will see. Only developers. I was thinking of including an empty class file just for documenting revisions. They will only be comments. Also, I'd like to put these comments in XML format. Ho...more >>

Need a numerical updown that displays fractions
Posted by Just Me at 2/3/2005 1:41:54 PM
I need a numerical updown control that displays fractions. If the increment is 1/16 it would display 1/16, 1/32, 3/16, 1/4... I thought I might inherit from a NumericalUpDown control and place a label on top of the display and put the text in that. Sounds kind of kluged. Anyone have a ...more >>

Confusion on Override
Posted by Stephen Costanzo at 2/3/2005 1:19:18 PM
My goal is to have a property or function that returns different types of returns with no initial arguments. For example Public Class Something Private sData as string Private lData as long Public Property X () as String Get return sData End Get Set (byVal Value as string) ...more >>

How to open specified location in Registry
Posted by yxq at 2/3/2005 1:18:00 PM
Hello, I want to open the specified location in Registry using VB.NET similar Registry Favorite, how to do? The regedit.exe can not open specified location. Thank you ...more >>

TAB-key trouble
Posted by rainwood at 2/3/2005 12:48:27 PM
I've a winform with first a panel with some textboxes on it and (not on panel) below that a datagrid. The problem is with using the TAB-key to go to the next column Whenever I am in the datagrid and use the tab-key, the focus goes to the next column. If I am in the last column, the curso...more >>

Strange MultiExtended ListBox behaviour
Posted by Alien2_51 at 2/3/2005 12:31:03 PM
I have a ListBox control with the SelectionMode set to MultiExtended bound to an IList collection. The ListBox control is on a tab control, if I have multiple items selected in the list box when I tab off the current tab when I come back to the tab with the ListBox only the first item is selec...more >>

XSL transform
Posted by Doug Stiers at 2/3/2005 12:09:56 PM
I have this vb.net (framework 1.1) code: Dim x As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform Dim xr As XmlResolver MessageBox.Show("before load") x.Load(<xsl file name>) -- THIS IS WHERE IT ERRORS -- MessageBox.Show("after load") ...more >>

MDI Parent refresh issue when loading an MDI Child form
Posted by Itar at 2/3/2005 12:05:03 PM
I'm having a problem when opening an MDI Child form. I'm declaring the child form then setting the dock property to fill so that it takes up the entire space of the MDI Parent window without being maximized (user request). The problem is that when the child form is being displayed it is brie...more >>

Character count in a string
Posted by Kuups at 2/3/2005 11:45:00 AM
Hi! I have a question regarding the count if character within a string like for example I have a string of e.g. 123#123# I would like to determine what is the code? of getting the # sign which the answer is 2. Hope you can help me on this. Thanks and Regards.. ...more >>

another .net performance question
Posted by C Williams at 2/3/2005 11:33:06 AM
Hi. I have two classes, A and B. A has a public property that returns a DataTable (an instance variable within the class) In a class B has a reference to class A. Within a function in class B, I need to use the datatable from class A. Which of the following is a better way to do it: ...more >>

Excel in VB.NET
Posted by Asier at 2/3/2005 11:29:08 AM
Hello, I've got a program thar generate an Excel Sheet. I write my data to Excel but now , i need to load an image (gif) located in my computer (c:\images\MyImage.gif) and show in Excel, for example in A1 cell. Could you help me? Thanks Asier ...more >>

question on technique in .net
Posted by C Williams at 2/3/2005 11:22:56 AM
I find myself needing to loop through various collections in .NET a lot. I am wondering if there is a generally accepted method for doing so. I see three main ways (I'll use rows in a DataTable, which I am doing a lot of work with) 1) For each curRow in curTable.Rows 2) For i = 0 to cu...more >>

how should i do this?
Posted by rodchar at 2/3/2005 11:13:01 AM
hey all, i'm going to be receiving an email on a regular basis (once a week let's say). i've automated most of the process which is to extract an attachment from an email and ftp to target. but i don't know how i should check for the email. would i write something in outlook vba to check ea...more >>

Code Not Getting Executed In VB.NET
Posted by Phil Galey at 2/3/2005 10:30:22 AM
I have a routine that calls a function that returns a boolean. If I paste the function call into the immediate command window, it runs the function and returns the correct result. However, if I let the program run the function, either in debug mode or even as a compiled executable, it does not ...more >>

filtering a datagrid
Posted by Art at 2/3/2005 10:29:02 AM
Hi, Once again, I'm stuck. I want to view a table using a DataGrid. I'd like to fiter that view by criteria on various fields. So far, I've created a DataAdapter, generated a DataSet and used that DataSet as the DataSource for a DataGrid. I put a "fill" in my open form event. ...more >>

Can't place controls on inherited form?
Posted by J. Alan Rueckgauer at 2/3/2005 9:42:36 AM
I have a simple form with a user control docked to the top (a panel, a picturebox, and 2 labels), a panel docked to the bottom, and a panel in the middle that has its docking set to fill. If I inherit that form, controls that I add to the center panel in the IDE "disappear" as soon as I build...more >>

write xml to memory instead of file
Posted by M.Posseth at 2/3/2005 9:19:50 AM
Hello all , I have this VB.NET code , it generates a xml document that is then read into a string and send to a unix webservice Dim XMLHess As New XmlTextWriter("test.xml", System.Text.Encoding.GetEncoding("iso-8859-1")) With XMLHess .Formatting = Formatting...more >>

Getting the time to the millisecond....
Posted by Stu at 2/3/2005 9:07:03 AM
Hi, How can you get the time accurate to the millisecond? Thanks in advance, Stu ...more >>

=?ISO-8859-1?Q?Instance_d'une_form_au_d=E9marrage?=
Posted by captkzr NO[at]SPAM hotmail.com at 2/3/2005 8:06:14 AM
Bonjour, Mon projet charge une form de démarrage (frmPanneaucontrole) sans passer par un Sub main. Etant donné que ce programme est constamment réduit, iconisé , agrandit, lanceur d'autres forms, cela ne posait plus les problemes d'instanciations que j'avais auparavant (surtout pour les NOti...more >>

Can I call a .Net winforms user control in VB6 winForm?
Posted by ddt at 2/3/2005 7:57:06 AM
I have an application which written by VB6, I want to add a user control on it, but the issue is the new control is written by VB.net, how can I apply it to my old Form? Thanks in advance....more >>

Why are simple windows form take so much memory
Posted by Shrage H. Smilowitz at 2/3/2005 7:33:45 AM
I have created an empty windows forms project, added one form and loaded it, i checked in task manager and the application takes 18,748 MB of ram, why does it take som much to load just one form? Also i have build a larger application and with every step it uses more and more memory it does...more >>

Connect to SQL server
Posted by TS at 2/3/2005 7:19:03 AM
Hi all, I'm trying to connect to an SQL database from my vb.net form, but getting an error message. The code I used is the following: Private Sub ConnectSQL_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ConnectSQL.Click Dim myConnection As SqlClient.SqlConne...more >>

PingUtility
Posted by Terry Olsen at 2/3/2005 7:16:09 AM
I have the Visual Basic .NET Programmer's Cookbook from Microsoft Press. In one of the examples, it mentions a PingUtility. I don't have the CD that belongs to the book and I've searched Google for PingUtility to no avail. Anyone know where I may find this or a similar utility? ...more >>

Copy string array to string
Posted by DumberThanSnot at 2/3/2005 7:15:00 AM
is there a faster way to copy an ArrayList of strings to a string other than a tight loop. In it's most simple terms, I'm currently using something like this... ---------------------------- *** NOTE: rtbXML is a Rich Text Box on the form dim iCntr as integer dim sText as string dim...more >>

Tab Characters in PrintPreview
Posted by Mr Tired at 2/3/2005 6:21:03 AM
I am not able to preview the tabstops in the print preview option. I am not able to see the effect of the tabstop in the print out put either. help me before I crazy. Cheers, ...more >>

ActiveX control userdraw in vb.net
Posted by per_cramer NO[at]SPAM hotmail.com at 2/3/2005 4:38:12 AM
i am having a vb.net problem... I am using an activex component from plexityhide. It is the phgant control. I am upgrading my program from vb6 to vb.net. Now i am having a big problem. The control has got a userdraw event for the background. It returns a hdc and left,right,top,bottom value. ...more >>

How to override Debug.Writeline?
Posted by Billy at 2/3/2005 3:15:44 AM
Hi! How can I override "Debug.Writeline("Message")" so that will not show that msg in Debug window, but wrote it to a file. I already have a code to write to a file but I would like to use just "Debug" class (same name) for that. Inside of that code I will decide if I will wrote that message ...more >>

Simulate mouseclicks
Posted by james henderson at 2/3/2005 2:21:01 AM
Hi, I want to create an application that can record and reproduce all user interaction with a GUI. For this I need to be able to simulate mouseclick events. Can anyone tell me how I can do this....more >>

Question on locating Assemblies
Posted by Friskusen at 2/3/2005 2:04:34 AM
I have been working on a control for a while now. One of the properties belonging to this control is rather complicated , so i have written a custom property editor for it. Whenever i click this property in Visual Studio my custom editor pops up and everything is fine. However , one of the...more >>

Synclock blocking order
Posted by fred at 2/3/2005 1:58:35 AM
If I have numerous threads being blocked by a Synclock on the same object then I believe normally the threads will be released on a first in first out bases. Can this be changed by having different priorities on the threads. So if I made one thread with a high priority while the other threads ar...more >>

Create a dataset or table in VB (Excel 97)
Posted by cmwong76 NO[at]SPAM hotmail.com at 2/3/2005 12:29:52 AM
I have a data in an Excelsheet of 10 columns by 3000 rows. I want to put these in some kind of dataset so I can process it like this: Column one contains dates (unique) In sheet 2 I want to have a row of dates and now I want to look up the data corresponding to that date in the dataset and p...more >>


DevelopmentNow Blog