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 2006

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

Multithreading Problem
Posted by Michael at 4/30/2006 11:52:01 PM
Hi, I am trying to create a multithreaded VB 2005 application which attempts to create a new thread per Domain Controller (DC) in my environment. Each thread connects to its allocated DC and enumerates all computer objects and extracts the 'LastLogon' property. The results from each thread ...more >>

Traversing a Collection
Posted by James at 4/30/2006 11:15:52 PM
Hi. I have created several Collection objects which inherit from System.Collections.CollectionBase but up until now I've been able to process them according to the order I populate them from a database. Now I want to be able to traverse backwards and forward through items in my collect...more >>

Adding a Web Reference changes DataTypes ???
Posted by cc at 4/30/2006 8:41:26 PM
Hi, I having created a simple WebService (in VS 2005) with just one WebMethod as follows : [WebMethod] public DataTable GetProducts() { DataTable objDataTable = null; // code for filling up the datatable return objDataTable; } Then, Adding the WebService as a Web Reference to...more >>

Maximum Form Height?
Posted by sam at 4/30/2006 7:44:24 PM
Do vb.net forms have a maximum height limit of 1212 pixels? I can't seem to make a form larger than that size, despite the min & max property values being set to 1 and 2000 respectively....an empty form can't seem to be stretched taller than that value.......more >>

My.Computer.Network.IsAvailable question
Posted by J at 4/30/2006 6:45:32 PM
Hi can someone tell me if the My.Computer.Network.IsAvailable will show true if dial up is connected? thank you, Ed ...more >>

Accessing one dimension of a multidimensional array
Posted by Nathan Sokalski at 4/30/2006 5:47:54 PM
I have a multidimensional array declared as the following: Dim guesses(14, 5) As Integer I want to assign all values in a specific dimension to another array declared as follows: Dim currguess(5) As Integer I would have thought this would be done using something like the follow...more >>

Crystal Report Forums
Posted by Bernie Hunt at 4/30/2006 4:41:44 PM
Where to the Crystal Reports experts hang out? I tried posting on the forum at Business Objects but it's a complete waste of time. Any suggestions on where to look for Crystal coders? Thanks, Bernie...more >>

Desperately needing direction with EncoderParameters and saving images under different compression/quality schemes
Posted by NutsAboutVB at 4/30/2006 1:43:09 PM
Hello, I am a VB.NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File --> Save) in MS Photo Editor, the file is automatically shrunk in size to 81 KB's. When doing the...more >>



problem opening Excel file with Shell
Posted by PJ6 at 4/30/2006 12:39:55 PM
This little snippet works for .txt files, but for any .xls file I get a file not found error, even though the file is really there. Yes, I checked to see if the path is correct, and yes, I have Excel installed. Any ideas what's going on? If I can't use Shell to get Excel to open a file, ...more >>

How to catch a "word not installed" error?
Posted by Amedee Van Gasse at 4/30/2006 12:07:01 PM
I have written a small vb.net app that creates a Word and an Excel file. I referenced Word, Excel and Office as COM-components. The app does not work on a pc where Word or Excel are not installed. According to this article: http://www.devcity.net/Articles/89/1/spellcheck.aspx I added a try/ca...more >>

Regular Expression
Posted by Ben at 4/30/2006 10:43:01 AM
I am trying to validate a textbox in which the user enters the following - "smtp.servername.com or .net or .org or .com.uk etc... and I cannot. I have tried. The string is in the form xxxxx.xxxxxxx.xxx or xxxx.xxxxx.xxx.xx. Does anyone have any idea how to validate this string. VB2005 ...more >>

Drawing 2D Images
Posted by Anagnos at 4/30/2006 10:27:01 AM
I am a relatively inexperienced VB programmer and I need to draw images to the screen at a lighting fast rate as to avoid flicker. However, I have been unable to figure out how to use Direct X, especially since tutuorials in directX often come bundled with other things that I do not need that ...more >>

Displaying copied file names in textbox
Posted by mmalinsky NO[at]SPAM gmail.com at 4/29/2006 5:30:46 PM
I have the following code that I borrowed from this NG to copy files from one location to another: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Const FOLDER_FROM As String = "D:\My Documents" ' Folder to copy from ...more >>

DATAGRID PROBLEM
Posted by Savas Ates at 4/29/2006 2:32:07 PM
First When I Bind my datagrid It returns --Unisex-- value for my GENDER_NAME field. When I click Edit , Write UNI to update UNÝSEX value and Click Update button i catch UPDATE TBL_GENDER SET GENDER_NAME='Unisex' WHERE GENDER_ID=1 with response.write .. Why it doesnt return me current val...more >>

Control Transparency Issue...
Posted by edoepke at 4/29/2006 1:53:51 PM
Visual Basic Questions NOT C# or C++ or VBScript: "Windows.Forms Not Web Applications" Does anyone have any code examples of making a TextBox and/or ListBox control transparent? I have tried using SetStyle(ControlStyles.SupportsTransparentBackColor, True) and it only seems to work on the ma...more >>

Ent Library. Substitute data from app.config?
Posted by malice at 4/29/2006 10:56:04 AM
I have been searching the internet for 12+ hours on how to do this. At this point I'm about to give up. I am using VB .Net 2.0 with the enterprise library jan 2006 release. This is my first time using it and I'm a novice to .Net. I am using the data access quickstart solution and I just started addi...more >>

VB 2005 express database problems
Posted by just_out_for_fun NO[at]SPAM hotmail.com at 4/29/2006 3:57:08 AM
Hi, hope you guys can help. I have set up a simple one table db to play with using VB express and the form sees data already entered but when I use the save button on the form it does not change or add any of the new records. BTW I used the wizard to drag the table from data sources window w...more >>

>> DataRelation and Nulls
Posted by Jonathan at 4/29/2006 1:43:01 AM
Hi, I have two table (Business and Contacts) for which I would like to create a DataRelation. The problem is that the Foreign key field cannot be null. So the code throws an exception when trying to create the DataRelation. My database does not have any records; business or contacts. How do ...more >>

MailMessage to send email with both Text and HTML versions...
Posted by Stu Lock at 4/29/2006 12:00:00 AM
Hi, I have an app that has beenusing the JMail COM component to generate emails. I would like to switch to the using the .Net 2.0 MailMessage object instead - as it is more portable. The jmail component allowed me to set both an HTML body and a text body - this meant that if a users' em...more >>

vb.Script to VB.NET 2005
Posted by eSolTec, Inc. 501(c)(3) at 4/28/2006 9:49:01 PM
Thank you in advance for any and all assistance. I'm attempting to make WMI calls in VB.NET 2005 Pro and I've found the VB.Script WMI calls. Is there a SDK or converter to convert scripts to VB.NET? I want to find out "all" installed software> "all" hardware > register in read only > startu...more >>

Is there an easy way to get my Subnet Mask?
Posted by Terry Olsen at 4/28/2006 9:43:11 PM
I am using VB 2005. I can't seem to find a way to get my local Subnet Mask. The only thing mentioned from googling is the GetIpAddrTable API, but so far, i've had no luck getting a call to it working. Another idea was to traverse the registry at HKLM/System/CurrentControlSet/Services/Tcpip/P...more >>

Loading controls with objects versus recordsets
Posted by mrmagoo at 4/28/2006 9:26:22 PM
I'm building a vb.net Forms project that is getting data from a SQL Server database. One of the main goals of the project is to be really responsive to events, such as textbox change events. I have a textbox for searching, a listbox to display the searched results, and a big textbox (memo) to ...more >>

TableCell: BackColor Property But No BackGround Property?
Posted by Nathan Sokalski at 4/28/2006 6:04:24 PM
I am using an ASP:Table Control to make a table. I know that the HTML TD tag has a background attribute and a bgcolor attribute. The TableCell has a BackColor property, which is the equivelant of the HTML bgcolor attribute, but what can I use as an equivelant for the HTML background attribute?...more >>

DataTable Loop and String Building
Posted by ILCSP NO[at]SPAM NETZERO.NET at 4/28/2006 1:50:35 PM
Hi, I have a sql table containing the answers for some tests. The information in this table is presented vertically and I need to create strings with them. I know how to read the data in VB.Net and use a StreamWriter to build the strings. However, the problem lies with the reading of each...more >>

inheritance question
Posted by Craig Buchanan at 4/28/2006 1:24:46 PM
I have three classes: Core Assembly Application - creates instances of User using Activator.CreateInstance Item - marked MustInherit; has an Init method UserPlugin Assembly User - Inherits Item, has an Init method I would like to be able to call the Init method from the Application where...more >>

TAG Property
Posted by c_shah at 4/28/2006 1:12:19 PM
Can someone please explain to me the purpose of the tag property for WindowsForm controls such as a TEXTBOX? What is the benefit of using this property if any? ...more >>

BeginInvoke with a property?
Posted by AMDRIT at 4/28/2006 1:02:49 PM
Hello everyone, How do I access a property from another thread in VB'05? Thanks public class frmblah inherits system.windows.forms.form private mCount as integer private property Count as integer get return mCount end get set (value as integer) mCount...more >>

Stored Procedure runs in SQL Server Management Studio but not in VB
Posted by Crazy Cat at 4/28/2006 12:37:20 PM
I'm calling several SQL Server 2005 stored procedures from Visual Basic 2005. I've got one stored procedure that locks up at the same point everytime, but if I copy the stored procedure from the SQL Profiler trace and paste it into SQL Server Management Studio it runs fine -- I even tried settin...more >>

create an .exe
Posted by iwdu15 at 4/28/2006 11:13:01 AM
hi, im creating an installer program, like install shield, and am wondering how i can programmactically create an installer executable after the user chooses which files to add. thanks -- -iwdu15...more >>

VS.NET 2005
Posted by PJ6 at 4/28/2006 11:12:34 AM
Now that I've spent a significant amount of time using VS.NET 2005, I just have to say that it is the most fantastic developer tool I have ever had the pleasure of working with. Both the language and the IDE are beautifully conceived and executed, it makes me so glad I chose this career path. ...more >>

CLR
Posted by pooja at 4/28/2006 10:54:02 AM
what is clr in .net architecture? ...more >>

assembly and portable executable
Posted by pooja at 4/28/2006 10:52:02 AM
what is an assembly and how does it related with portable executable in ..net architecture? ...more >>

Export nText as Files
Posted by Jerry at 4/28/2006 8:59:03 AM
Hello! I have a SQL Server database with gif images stored in a nText field as binary. I've been asked to export these images to actual gif files (about 250 of them). I found a stored procedure that was using some ADO and it would write a small part of the image correctly and then the rest wa...more >>

Cast from string to System.DayOfWeek
Posted by Charlie Brown at 4/28/2006 8:51:05 AM
I am trying to cast a string to System.DayOfWeek. Don't even know if this is possible but it would sure save me a lot of headache if it is. Trying... Dim strDay As String = "Wednesday" Dim day As System.DayOfWeek = ctype(strDay, System.DayOfWeek) ...more >>

Need help in converting from C# to vb.net.
Posted by Learner at 4/28/2006 8:25:23 AM
Hello Friends, I need help converting the below C# code snippet to vb.net. case "CreationDate": comparison = new Comparison<MembershipUserWrapper>( delegate(MembershipUserWrapper lhs, MembershipUserWrapper rhs) { ...more >>

Please explain
Posted by John at 4/28/2006 7:31:02 AM
I am having trouble understanding how to use different properties. For example, I have a maskedtext box on a form. Lets call it msk1. I want to remove the mask from msk1. I figured out to do the following: msk1.textMaskFormat=maskFormat.ExcludePromptAndLiterals However, I don't understa...more >>

Calling PaintBox Paint event
Posted by Sam at 4/28/2006 7:07:09 AM
Hai, I use a paintbox paint event to draw some images in a paintbox. I call the paint event by refreshing the paintbox using paintboxname.refresh() or paintboxname.update(). Problem with this kind of paint event is that the event is not raised when the application is run in a minimized state....more >>

Invalid Cast Errors
Posted by Alan at 4/28/2006 6:01:06 AM
I keep getting an invalid cast error on this line of code: Dim gridCol As MyGridColumn = CType(dgt.GridColumnStyles(hi.Column), MyGridColumn) I am trying to develop a sub that will change the colors on a cell that is clicked on in a DataGrid control. Here is the full code: Private Sub ...more >>

How to Obsolete two related classes?
Posted by Phill W. at 4/28/2006 12:00:00 AM
If I have a reusbale (GAC-'registered') assembly that contains two, [cross-]related classes (imagine a DataSet and DataTable; the former contains instances of the latter, the latter has a reference to its parent .. er .. former). I want to make /both/ of these classes Obsolete, so I added O...more >>

Generate Excel spreadsheet from Windows form app
Posted by Niclas at 4/28/2006 12:00:00 AM
Hi, I am looking to develop a Windows Forms application that collects some user information and then as a final step generates a simple Excel spreadsheet based on the input. I am using Visual Studio 2005 (VB) and have the Office Development Tools installed. Is the programmatic way to gen...more >>

Datagrid, binded columns and unbinded columns
Posted by Ohad Weiss at 4/27/2006 11:08:57 PM
Hi all I need to know weather it is possible to add a column to a datagrig that based on a dataset, which is not in the dataset (like a description of a code that appear in the datagrid). here is the code I use to present data in the datagrid: Code: Private Sub FillDataGrid(ByRef dsD...more >>

Invoking apps within VB
Posted by Al_C at 4/27/2006 10:54:57 PM
Hi, We have a few apps that we would like to invoke from withing our program. Suggestions? Should I create a seperate thrread to run the app in. The idea is to call excel for example from within our vb.exe Thanks in advance, Al ...more >>

At a loss figuring out if an IP is on LAN or INET
Posted by Terry Olsen at 4/27/2006 10:03:07 PM
I'm writing an app that communicates with computers both inside and outside my router. So I need to determine by the remote host's IP address if I need to send them my LAN IP or my Internet IP. Someone suggested AND'ing the IP and my Subnet Mask but I come up with this: My IP: 192.168.0.14...more >>

scope and object assignment
Posted by James at 4/27/2006 9:54:50 PM
Hi. I just had success doing something that I thought should fail. Well maybe I did. I'm not sure. In short, I assigned a locally declared object to a module level object and the module level object retained the values of the local even after the local went out of scope. I was expectin...more >>

Function call problem
Posted by ataanis NO[at]SPAM gmail.com at 4/27/2006 9:23:47 PM
Hey everyone I'm writing this simple function call from a sub , but for some reason when I click the file to open, it freezes, can anybody tell me what's the deal? Thanks Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click ...more >>

Enumerating Network connections
Posted by Vijayakumar at 4/27/2006 9:11:19 PM
Hi all, How can I enumerate network and dial-up connections using vb.net? I need to display the network and dial-up connections in a combo box and to display its details while selecting the same. Vijayakumar ...more >>

DWORDS ? LONG? - I need to create constants for the following
Posted by Jeremie Legault at 4/27/2006 8:38:01 PM
Hi Everyone, I am creating an application to interface with Terminal Services but as you will learn I am a beginner. I have learned how to connect to the API to use the functions available. One of the functions I would like to use is the following: BOOL WTSWaitSystemEvent( HANDLE hSer...more >>

Need help to read text file?
Posted by at 4/27/2006 7:43:14 PM
I need to read a text file line by line (one line at a time), what are my options? Thanks ...more >>

I am trying to convert a C# file to VB.NET - need help
Posted by Learner at 4/27/2006 6:33:03 PM
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? [DataObjectMethod(DataObjectMethodType.Select, true)] static public List<RoleData> GetRoles() { ...more >>

Textbox, how to detect enter "key" event.
Posted by Boki at 4/27/2006 6:22:13 PM
Hi All, Could you please advice that how to detect the enter "key" event.... due to I don't want another button to do "Go" function..... Best regards, Boki. ...more >>


DevelopmentNow Blog