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 > october 2005 > threads for wednesday october 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 31

Validating textbox
Posted by Rajesh at 10/19/2005 11:38:37 PM
I had created one application in .net.Now want to check whether any user enters correct string or not.If any user entering an incorrect string display an error msg.How can i do this validation.In numeich it works fine.But in String it's not working . ...more >>

Validating text boxes
Posted by Rajesh at 10/19/2005 11:09:51 PM
I have bunch of textboxs in a form.Now i want ot validate these textboxes.These textboxes i am entering string as well as numeric values.How can i validate string and numeric values? Thanks for your any advice. ...more >>

Can I populate variables at compile time?
Posted by Terry Olsen at 10/19/2005 10:16:26 PM
I would like to put program info in my applications' about screen such as compile date & time, lines of code, etc. Is there a way to do this automatically when I compile? ...more >>

ftp file transfer
Posted by reidarT at 10/19/2005 9:53:32 PM
I need a short and simple code example to make an application that copies files in a folder from a local folder to a remote folder on the ftp-server. reidarT ...more >>

Deleted Data Rows Behavior
Posted by Zorpiedoman at 10/19/2005 9:31:02 PM
Is this true: An existing row in a data table that is deleted still exists in the rows collection, but it is marked as deleted (rowstate = deleted) But If a row that was added to the data table, but not committed by accepting changes, is then deleted, it is actually removed from the dat...more >>

String to control name
Posted by Paul Bromley at 10/19/2005 9:20:06 PM
I see that this question has been asked before in thye newsgroups, but I cannot find a suitable answer. I have created a user control that has quite a number of buttons and textboxes. These I have specifically given very similar names - e.g. button - cmdSodium, cmdPotassium, txtSodium, txtPotass...more >>

help needed passing array to COM caller by marshalling
Posted by jg at 10/19/2005 9:09:58 PM
I have searched marshaling articles from MSDN and Google but I am stuck with solving my problem to marshal arrays to COM caller from my managed COM class I built a .net COM class in VB and tested it from an application built with C tool.. It worked well except for those functions in the ...more >>

Web Method Description
Posted by Rocky at 10/19/2005 5:22:51 PM
Is it possible to use HTML tags in a WebMethod description (VB.NET), every time I try it remains text ...more >>



Hide datagrid row selector
Posted by Vayse at 10/19/2005 5:14:40 PM
How do I hide the rowselector on a datagrid? Also, it there a way of changing its width? By row selector, I mean the that grey column on the left hand side, where the arrow appears when you click into a row. Thanks Vayse ...more >>

How to determen the position of a column in the collection columns
Posted by JR at 10/19/2005 5:04:26 PM
hi, I tryd this one but it dosn't work lv.Columns.IndexOf(lvch) where lv is my listview and lvch is the columnheader of the listview thanks ...more >>

Bi-directional RTF<->HTML conversion in .Net?
Posted by Joergen Bech NO[at]SPAM at 10/19/2005 5:04:07 PM
Looking for a component or source code for converting between rtf and html. NOT a report generator with rtf/html output, but one I can use to, say, load a bunch of html files and save them as rtf or the other way around (i.e. without displaying an interface to the user). Would prefer not hav...more >>

Handling the RowDeleted event of a datatable
Posted by Cesar Ronchese at 10/19/2005 4:50:44 PM
Hi All. I'm printing the contents of a datatable in my control, and actually it is working well. My problem is when a row is deleted from the datatable, which fires the RowDeleted event and, inside this event, I try automatically redraw my control. What I have noticed is, after RowDeleted e...more >>

Delete in DataGrid
Posted by Agnes at 10/19/2005 4:39:03 PM
Old problem but still not solve. I got a delete button, to delete the detail in datagrid, my datagrid is bind to stddtChg After dsInvInfo.updatE(strTdChg) , it did nothing, all the record still in Database. Please help Dim cm As CurrencyManager = Me.BindingContext(dsInvInfo,...more >>

VB.Net Self Study Books (2)
Posted by John at 10/19/2005 4:37:02 PM
I am looking for VB.Net books which provide a lot of exercises (preferrably with all the answers worked out on CD). In earlier reactions Ken Tucker and M.Posseth recommended a few books. Thanks for both of your reactions. Ken included the links, so it is clear which books he recommended (I w...more >>

add icon to resource and use different sizes
Posted by Pieter at 10/19/2005 4:09:45 PM
Hi, In my VB.NET 2005 application I want to reuse several icons in different sizes. My icons contains images of 16x16, 24x24, 32x32 and 48x48. The problem is: I doesn't always use the right size: sometimes it resizes the 48x48 image to 16x16 instead of taking the 16x16 image. Is there a way...more >>

Check if a file is being used by another process
Posted by Xero at 10/19/2005 4:05:04 PM
hello. how do you check if a file (say, a txt one) is being used by another process? thanks. -- Xero http://www.chezjeff.net My personal web portal...more >>

Drawing on printer
Posted by Jack Russell at 10/19/2005 3:32:44 PM
I want to draw a picture on the right hand side of the printer so in printdocument I have Dim newImage As Image = Image.FromFile(sLogoFile) ' Create Point for upper-left corner of image. Dim ulCorner As New Point(e.MarginBounds.Lef...more >>

Direcory Exists?
Posted by elziko at 10/19/2005 2:24:04 PM
I want to use the Directory.Exists method to see if a directory exists. But it doesn't seem to work for the root of a removable (USB) drive. I plug in my drive and it gets allocated a letter ("F:"). I then confirm that I can view the drive in Windows Explorer but: Directory.Exists("F:\") ...more >>

Converting into DateTime
Posted by Mika M at 10/19/2005 2:18:22 PM
Is there better way to convert integer type date into DateTime type date as doing like code below? Dim intDate As Integer = 20051019 Dim dte As DateTime = New DateTime( _ CType(intDate.ToString.Substring(0, 4), Integer), _ CType(intDate.ToString.Substring(4, 2), Integer), _ CType(intDate....more >>

F1 not working
Posted by George Hardy at 10/19/2005 2:08:32 PM
knowlegeable people: i uninstalled msdn completely, and also deleted every registry value i could find for msdn, and also deleted the directory in c:\program files\msdn. this should give me a clean install, right? no. F1 help still does not work. I found a knowlegebase article that says t...more >>

sql connection string
Posted by Art at 10/19/2005 1:38:02 PM
Hello again, Can anyone tell me the correct connection string to use? My database is on the E: drive of a remote server. I can either map a drive from my local machine to it, or use the \\servername\ stuff. I can't seem to get it right. thanks, Art...more >>

How to determine if control is container...
Posted by Tom at 10/19/2005 12:09:13 PM
This is probably pretty easy, but how does one determine if a control is a CONTAINER control? I thought something like If Typeof myControl is ContainerControl then .... would work but that seems to always return FALSE. Thanks. Tom -- ...more >>

E-mail autoresponse
Posted by Juan Romero at 10/19/2005 11:18:17 AM
Hi all, I have a little task here and I am looking for input from fellow programmers as to what the best approach is to accomplish it: I need to setup an e-mail box that will receive requests from people. The e-mail will contain certain key information that will allow me to pull informat...more >>

Loop performance
Posted by NormD at 10/19/2005 11:14:02 AM
I've been told that how one does a loop in VB .NET cna have significant speed differernces. For example: dim therows() as datarow ..... dim row as datarow for each row in therows ..... next row ------------------------ vs. ----------------------- dim therows() as datarow ..... dim ...more >>

creating a ToString method for a Generic List
Posted by Richard Bysouth at 10/19/2005 9:47:04 AM
I'm sure this is something pretty trivial but can't seem to figure out how to do it. I'm using Generic Lists in quite a few places in my app and for some of them want to be able to create a ToString method that would return a formatted string array. For example, I might have a simple cla...more >>

Creating events for controls
Posted by Dragon at 10/19/2005 9:13:53 AM
Hi, I am trying to create a form and add some controls to it programmatically. I am pasting the code I have so far, below. here are the issues I am having. #1. I am having to subtract additional 35 points from the closeAbuotButton.Top ot the control goes out of form's bounds. I have no c...more >>

Column rearrange in list view
Posted by Brian Henry at 10/19/2005 9:05:17 AM
does anyone have a good method or technique for saving the order of columns that someone rearranged them to and restoring that order on the applications next load? ...more >>

What Unit Tests?
Posted by Chris Burgess at 10/19/2005 8:51:10 AM
I'm starting a small application to get my feet wet with Test Driven Development. I understand the mechanics of setting up NUnit, but I'm not sure what types of tests I should be writing. The app is an 'issue tracker' that pulls it's data from a SQL Server database. The user will be able t...more >>

deadline and need help
Posted by the_kiddie98 NO[at]SPAM yahoo.com at 10/19/2005 8:42:03 AM
Hi Guys, I was brought in at the last moment to try to get a project completed. it's vb.net and crystal reports. Here's the problem I can populate a parameter list for a report so the user can choose one / all Suppliers. When a parameter option from the combo box is clicked that came f...more >>

modifying my db
Posted by rodchar at 10/19/2005 8:16:16 AM
hey all, i have an Access Database with about 43,000 records in it. I need to take 2 or 3 columns and modify them and update the database. currently what i'm doing is loading all into a dataset and making changes and pushing it back up to the database. it seems kind of a long process about...more >>

Controls at run time
Posted by Luis Mendes at 10/19/2005 6:40:08 AM
If I create several controls (images) at run time, how can I handle the click event of this controls. Thanks in advance, Luis Mendes...more >>

How to listen from the COMport (AxMsCommLib , Vb.net)
Posted by savvaschr NO[at]SPAM nodalsoft.com.cy at 10/19/2005 6:34:50 AM
Hello I am using the output method of AxMsCommLib of vb6 in vb.net to send things on the com port and it works just fine Is there a way to get - Listen the com port too by using this object (AxMsCommLib) ? Or any Other object in vb.net Thanks a lot Savvas ...more >>

Using SQL Statements in Modules
Posted by PM at 10/19/2005 6:30:02 AM
Hello, I am a beginner to VB.NET. Here is my question: I currently have my SQL INSERT and UPDATE functions in my form. I'm trying to clean up the code on my form, and use modules for database functions if possible. The problem is - When I cut and paste the SQL code into the module, the...more >>

Avoiding validation when closing a window...
Posted by Tom at 10/19/2005 6:22:20 AM
How is the best way to avoid validation when closing a window? For instance, I have a Windows Forms window which has a validation event for a text box. However, if one enters invalid data in then and then attempts to close the window (either via my custom 'Close' box or by clicking the close 'X...more >>

multithreading issue
Posted by Sam at 10/19/2005 2:15:54 AM
Hi, I've written the following, inspired by a MSDN article. First I want to know if what I do is correct. The reason I'm asking is because if the value passed to CalcPi is great(eg.10000) then I can't interact with the UI anymore (resize window, move window...) Second, I don't know how to close...more >>

GDI+ -- C# -- VB.NET
Posted by Rohan at 10/19/2005 1:15:03 AM
Hello Guys I just wanted to know for writing GDI+ based applications why are most of the examples are provided in C#? Is it that the features available in C# related to GDI+ are not supported by VB.NET. Regards Rohan...more >>

Reference VB6.dll in VB.Net
Posted by savvaschr NO[at]SPAM nodalsoft.com.cy at 10/19/2005 12:21:11 AM
Hello I have a dll that was built in vb6 or vc++/6 and i have a problem when i try to reference it in vb.net, I am getting an error "This is not a valid assebly or Com componet" although is valid in vb6. Can anyone help me please? ...more >>

need help with ArraySubType in MarshalAs
Posted by jg at 10/19/2005 12:21:08 AM
I having trouble with the keyword "ArraySubType" in Visual basic studio = beta 2. I got "Error 1 Name 'ArraySubType' is not declared. Test.vb 1061 4 ..." for ' array TO COM LPStr Public Function etst(ByVal iCnt As Integer, _ <MarshalAs(UnmanagedType.LPArray, _ ArraySubType =3D Unmanag...more >>

Referencing a datagrid from a string name
Posted by Mac via DotNetMonster.com at 10/19/2005 12:00:00 AM
Hi all, I have a string variable within a user control that contains the name of a datagrid control that I want to act on from within my user control. What I want to achieve is to have the same code within my user control to call the same methods on whatever datagrid is relevant. But the rel...more >>

VSMacros71
Posted by Boo K.M. at 10/19/2005 12:00:00 AM
Does anyone know if I can get rid of this folder? I don't use macros so you can say I don't need this folder. My project folder looks more messy with this folder inside. Hope you can understand when it comes to organizing folders and files. Boo K.M. ...more >>

Combo Box II
Posted by Kay at 10/19/2005 12:00:00 AM
Hi All, A week ago I posted a question regarding how to store 2 value (but display 1) in an combo box item, I can do it quite easily thru the itemdata property in VB6 but this is not avaliable in .net, James and Herfried provided a sample code as follow, I have few more questions after the ...more >>


DevelopmentNow Blog