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 2004 > threads for wednesday april 28

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

Help with gethostbyname winsock api call
Posted by Glen Conway at 4/28/2004 11:31:06 PM
Hi, I'm trying to use the gethostbyname function from wsock32.dll and failing dismally Has anyone got a successful implementation of this in VB.NET? My ulitimate goal is to resolve NetBIOS names to IP Addresses. I can use the framework DNS features if a DNS server is present on the network but th...more >>


Is it possible to retrieve an image from DataSet
Posted by Al Bahr at 4/28/2004 10:56:26 PM
H I need to be able to retrieve an image from MyDataRow(“Picture”) Since I am using web service to get the data set I can’t use SqlClient.SqlDataReader. Is there a way Any help will be appreciate Thank A ...more >>

Customization of datagrid in vb.net
Posted by Sadha at 4/28/2004 10:41:02 PM
hi I want to customize the datagrid.For eg,i want to have some of the following features lik 1.A combo box inside the Grid 2.To include an image inside the gri 3.To have a link field........ thanx with regard sadhasiva ...more >>

Accessing a Webmethod which returns an ArrayList in VBA
Posted by Ankita at 4/28/2004 9:51:02 PM
Hi I have a webservice which has 2 webmethods: 1.One that returns a String 2.One that returns an ArrayLis I need to use this WebService in VBA environment. I am using the Webservices References Tool 2.0 for accessing this Webservice. I've added the WebService and I'm able to get the string ret...more >>

Need to split a String into an ArrayList
Posted by jack at 4/28/2004 9:06:20 PM
Hello, I need to plit: "1,34,54,123,34" Into an array list. Thanks for any help, Jack ...more >>

Foundation Classes for VB.Net
Posted by jasenlaw NO[at]SPAM hotmail.com at 4/28/2004 8:59:38 PM
Hi, I am a PowerBuilder developer but I have been asking to build a system using VB.Net. I would like to know that is there any ready built foundation classes for VB.net which is similar to PowerBuilder Foundation Classes (PFC)? Thanks in advance....more >>

Upgrade from vb project to VB.NET
Posted by Linda at 4/28/2004 8:56:44 PM
I create program with VB programming and now i want that program run at VB.NET. So i open the vb project from VB.Net, while i upgrade the program ,i found Error : VB Upgrade wizard error Upgrade failed : Exception occured : the referenced components Status Bar Sstab Slid...more >>

which approach outperforms the other ?
Posted by tinman at 4/28/2004 7:49:30 PM
Hi... I have the following two excerpts from a method. It basically reads data from a DataReader and loads it in a collection. Excerpt A: ******** With ProjectData While .Read Me.Add(DirectCast(.Item("project_id"), Guid), _ DirectCast(.Item("...more >>



which approach is out performing the other ?
Posted by tinman at 4/28/2004 7:34:02 PM
Hi... I have the following two code excerpts. It basically reads data froma dataReader and adds it to a collection.... Excerpt A: ******* With ProjectData While .Read Me.Add(DirectCast(.Item("project_id"), Guid), _ DirectCast(.Item("start_dat...more >>

Combox Confusion
Posted by Greg McKnight at 4/28/2004 7:14:25 PM
This may be the second time this post is showing, I accidentally shut down my browser. Sorry if it is a repeat. I am a newbie to VB.net, so please forgive me if these are simple questions. I'm using the Northwind DB to teach myself. I used the data form wizard to create a form with a data...more >>

read and write to xml
Posted by jaYPee at 4/28/2004 6:57:44 PM
i read some article that it's better to store some information to xml than using an ini file. suppose to be i want to read and write this data: file name="my.ini" [ConnectionString] Server="myServer" UID="myUID" Password="myPassword" Database="myDatabase" so anybody know how can i do ...more >>

Function
Posted by PEter at 4/28/2004 6:18:12 PM
Hello. I have declared function in form1 For example Public Function name() ....... end Function. And how can I call This function From FORM2. Thanks ...more >>

system.management - where is it?
Posted by Bernie Yaeger at 4/28/2004 6:16:13 PM
In a different thread, I was told to look at the system.management namespace. When I tried to import it, my system does not show that namespace. System is of course there, but not management. Do I have to add something to net framework 1.1? Thanks for any help. Bernie Yaeger ...more >>

VB or C#
Posted by Dougie at 4/28/2004 5:58:55 PM
I've been learning C# over the past year and don't know too much about VB. Can anyone describe the advantages VB has over C# or why I should learn VB? From what I can gather, C# is a better and considered to be a "proper" programming language. Is this the case? Doug. ...more >>

Data Error
Posted by MadCrazyNewbie at 4/28/2004 5:58:14 PM
Hey group, I keep getting the following error: "An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.data.dll Additional information: There is no row at position 1." on the following line of code: Private Sub cboCentrexLinesPrimaryUser_SelectedIndexChange...more >>

vb compiling problem
Posted by mjerryfuerst NO[at]SPAM yahoo.com at 4/28/2004 5:38:56 PM
I am recompiling one of the files from the ASP.NET examples, and am using the command line vbc /t:library /r:Microsoft.VisualBasic.dll /r:system.xml.dll /r:system.web.services.dll /r:system.data.dll /r:system.web.services.dll /r:system.dll /r:system.xml.dll /out:Bu...more >>

VB.Net Compiling problem
Posted by mjerryfuerst NO[at]SPAM yahoo.com at 4/28/2004 5:37:42 PM
I am recompiling one of the files from the ASP.BEY examples, and am using the command line vbc /t:library /r:Microsoft.VisualBasic.dll /r:system.xml.dll /r:system.web.services.dll /r:system.data.dll /r:system.web.services.dll /r:system.dll /r:system.xml.dll /out:Bu...more >>

Data Question
Posted by WStoreyII at 4/28/2004 4:26:03 PM
I am making a project that will use a custom object called account i will be inheriting a base account type for each account my problem is that each account will have custom data that needs to be saved some how i cant make a table as the fields will be different for example the information n...more >>

I wish I could store and retrieve Sound to and from database.
Posted by Lisa Jones at 4/28/2004 3:41:02 PM
Hi I don’t want to change my name or anything :) but I wish I was able to save Sound into SQL server and retrieve it So my question is How do you save a wav file into a SQL server and how do you retrieve it Thanks so much Lisa Jone ...more >>

Property Pages
Posted by Nice Chap at 4/28/2004 2:36:34 PM
Is it possible to have custom property pages for a Component and if so how I can write one please ? Also, is it possible to reuse the drop down box that we get for Data Source and Data Member inside VS.net's property grid, for my component ? If so any pointers would be immensely appreciated. ...more >>

sort datagrid
Posted by Tim at 4/28/2004 2:31:02 PM
In VB .NET I use datagrid to present information and when clicking on the column header, the entire datagrid is sorted. Besides CLICK, what're the other events associated with this type of action? Thanks....more >>

convert from c#
Posted by João Santa Bárbara at 4/28/2004 2:13:29 PM
hi all how can i change this from C# to VB.NET thsk JSB 17: public string this[int index] 18: { 19: get 20: { 21: string tmp; 22: 23: if( index >= 0 && index <= size-1 ) 24: tmp = words[index]; 25: els...more >>

Need to add aditional column to Datagrid
Posted by Javier Villegas at 4/28/2004 2:10:23 PM
Hi, I am new with VB.Net and I need some help I am building an ASP.Net application in where the user enter a letter and then press a button that make a SELECT in a SQL database. The results are displayed in a Datagrid This application is for look up phone numbers I made the SELECT from...more >>

Formatting a datetime value
Posted by Simon Osborn at 4/28/2004 1:56:10 PM
I'm trying to format a date and time value to a format that is not the same as in the regional settings. What I mean is: Regional setting is set to US "MM/dd/yyyy". I want to change the format to display as UK "dd/MM/yyyy". So that I can make some comparisons later on in my program usin...more >>

I wish
Posted by CJ Taylor at 4/28/2004 1:52:36 PM
my name was simon. ...more >>

Question
Posted by Randy at 4/28/2004 1:44:57 PM
Weird question about VB.Net. In VB/VBA I know how to get UserName, IP Address and PCName - but it isn't "easy" - there are so many function calls that need to be executed to get this information, especially IP Address. I was talking with one of the C# developers here at my office and he was t...more >>

need some help
Posted by Mike at 4/28/2004 1:31:11 PM
I currenlty have a VB6 dll that uses SOAP to connect to my web service on another server. With the SOAP toolkit support stopping july 1 my company has decided to use ..NET to call this same web service. The web service was created in VB6 and the SOAP SDK and that portion isn't changing as far as...more >>

Current Thread
Posted by y1799 NO[at]SPAM yahoo.com at 4/28/2004 1:05:11 PM
Hi, How I can get access to current thread. I want to pause it for some seconds. MyThread.Sleep(2000) Thanks...more >>

Problem with auto-indent, auto-complete, intellisense....
Posted by Robin Tucker at 4/28/2004 12:58:06 PM
Hi there, I have this really frustrating problem with Visual Studio (Microsoft Visual Basic .NET 2003 69586-335-0000007-18843). I have got used to using the autocomplete and auto indent features of this excellent source editor but recently it has only operated on some of my source files and...more >>

Trouble defining a bytearray!!
Posted by Harold S at 4/28/2004 12:56:33 PM
Hello, I am having trouble defining a byte array in .Net When i go this route it doesnt like the [] definition Dim xxxx[] As New Bytearray = {"0x45", "0x70", "0x22", "0x48", "0x9d", "0x17", "0x22", " 0x11", " 0x7f", " 0x96", "0x5f", "0x8f", "0x5c", " 0x96", "0x65", "0xc2", "0x2d", "0x0c", "...more >>

encryption/decryption asp.net
Posted by robert.bull NO[at]SPAM wbp.org at 4/28/2004 12:51:25 PM
I am looking for an example of encryption/decryption in asp.net. I want to encrypt a string before I send it to a Web Service, decrypt it on the Web Service then encrypt the results on the Web Service and decrypt the results on the web app. Any example using System.Security.Cryptography namespac...more >>

The activation context being deactivated is not the most recently activated one.
Posted by Simon Jefferies at 4/28/2004 12:31:12 PM
Hello, I am getting a First-chance exception "The activation context being deactivated is not the most recently activated one." followed by another exception straight afterwards "An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in system.windows.forms....more >>

FileFind - Multithread
Posted by N.Naeem at 4/28/2004 12:26:25 PM
I have a a program in vb6 which looks for a file in a folder structure including subfolders, the folders could be more than 100 folders. Once a particular file is found i start another instance of the program i.e. via Shell which continues searching. The original instance then starts to process...more >>

Basic knowledge regarding COM
Posted by Janus at 4/28/2004 12:06:06 PM
Hell This is a very basic question i know :O Formerly I developed in VisualBasic 6.0 and when a project is started you can select different project types. But what exactly is an ActiveX DLL? - Is it considered as a COM object I've heard something about its not a real dll because of the iUnkno...more >>

OnResize method
Posted by David Morris at 4/28/2004 11:06:04 AM
Hello Could somebody please explain the purpose of the following line of code OnResize(EventArgs.Empty Thanks and Best Regards David Morris...more >>

How do you figure out how much memory a class is using?
Posted by Joe Fallon at 4/28/2004 10:57:00 AM
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with 1000 items it might use 100KB. How do I measure the amount of memory used once the class is loaded? ...more >>

Combobox in Datagridcell?
Posted by Lars Netzel at 4/28/2004 10:55:56 AM
I want a datagrid cell to be a combobox (based on database records) and when you select a value in the combobox I want to add info to cells on the same row in the datagrid but with More info from the same record in the database as the one selecte din the combobox, how do I do this??? I also wo...more >>

Delete Element from array
Posted by y1799 NO[at]SPAM yahoo.com at 4/28/2004 10:43:35 AM
Hi, I created such procedure for deleting element from my dynamic array because I could not find such possibility from .Net . Private aintABC() As Int32 '' Initialization somewhere in another procedure Private Sub DeleteFromArray(ByVal intIndex As Integer) Dim i As Integer For ...more >>

Drag 'n' Drop on ListView
Posted by Simon Jefferies at 4/28/2004 10:27:21 AM
Hello, Is there any way to do a "drag-n-drop" operation on a listview control? I'm looking to drop files from say windows explorer onto a list view control. Thanks In Advance. Regards Simon Jefferies Tools Programmer, Headfirst Productions mailto:simonj@headfirst.co.uk www.callofcthul...more >>

Problem with default button
Posted by Morten at 4/28/2004 9:51:09 AM
Hi! I have a problem that's driving me nuts: I have a webform with a user control containing a number of buttons at the top. On my form I have a search button that I want to be the default button - so that if you type something into one of the fields on my form and hit <Return> this button ...more >>

listbox
Posted by Bobby J at 4/28/2004 9:51:02 AM
I have a listbox control and I added some colors from which the user can select a color to change the background color of a couple of labels at once The code I have looks like this Me.ListBox1.Items.Add("Blue" Me.ListBox1.Items.Add("White" Me.ListBox1.Items.Add("Red" ...more >>

Value cannot be null
Posted by Paul at 4/28/2004 9:33:21 AM
Hi, I'm new to .NET and I'm trying to run through the tutorial "Creating a Web Application Using VB" As I follow the directions, It seems to work just fine. I can preview the data from the SQLDataAdapter but when I try to view the data in the browser I get the error: Value cannot be...more >>

Converting an Access Application
Posted by Randy at 4/28/2004 8:41:20 AM
Hi all, Not sure if this is feasible or not, but I'm gonna ask anyway. My company has developed an application using MS Access 2k as a front end to SQL Server 2000. As we grow, and add customers (who are also growing) Access's limitations soon come to the fore front of most of our problems....more >>

crystal 8.5, group starts on uneven page # always
Posted by Helen at 4/28/2004 8:21:01 AM
Is it possible to start a new group on a new page, that must be an uneven page number in all cases I.e., if previous group ends on an uneven page # page, it would be followed by an empty page w/"This page left intentionally blank", if prev gp ends on evenly # page, then new group will start on nex...more >>

Numberformat (easy one I guess)
Posted by Lars Netzel at 4/28/2004 8:02:20 AM
I have a number as integer in a database. When I select it and present it in a label I want it to show as 4 characters. Example 1: From the database I get the value 22 I want to present it as 0022 Example 2: From the database I get the value 235 I want to present it as 0235 Thanx/ ...more >>

Crystal Report Parameters - Date
Posted by Matt MacDonald at 4/28/2004 7:46:05 AM
I'm trying to run a report using a form containing a crystal report viewer, but I keep getting an error saying tha "The specified value type is different to the current value type I'm trying to use date parameters. The parameter is set up as a date in the report Here's the code Dim paramfields...more >>

Setting properties in unknown classes
Posted by Michael Maes at 4/28/2004 7:24:37 AM
Hi, What would be the best way to Set a property of a class which you don't = know at design-time which that would be? The classes haven't got the same base-class, but they're all "extended" = with the same properties, methods, .... In fact it are classes inheriting from Typed DataSets. I ne...more >>

VB.NET CStr Function Yields Different Results With SQL Decimal Value
Posted by blogan NO[at]SPAM penson.com at 4/28/2004 7:11:16 AM
We recently noticed that the vb.net CStr function yields different results than the vb6 version when converting SQL decimal data. If, for example, the data is defined in SQL as decimal(19,10), the vb.net CStr function will return ten digits to the right of the decimal, regardless of the data val...more >>

Concensus on New parameters?
Posted by Larry Serflaten at 4/28/2004 6:35:28 AM
Can it be known what becomes of the Pen object in a call like: Me.CreateGraphics().DrawLine(New Pen(Color.Red), 0, 0, 30, 30) Typically, a Pen object should be disposed, and other objects may require more significant resources, so I wonder if the pen is left for the GC to finalize, o...more >>

Packing FoxPro tables with VB.NET
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/28/2004 3:56:01 AM
Hi! Bill, Actually I am using the following code to pack my FoxPro tables (Not Visual FoxPro tables). You know when you delete records from FoxPro they are just marked for deletion and don't get permanently deleted unless you issue pack command in FoxPro. So I am using the following snippet t...more >>

Classes and Access Specifier's in VB.Net
Posted by ElanKathir .S.N at 4/28/2004 3:44:02 AM
Hi all In Vb.Net, I tried a sample like this: Private Class ---------- --------- End Class But FrameWork is not accecting this class, It showing some Error like Private is not possible in the outside of the Public access specifier. But Java subports the Private things in...more >>

Email Question
Posted by GG at 4/28/2004 1:45:35 AM
As I understand it, the following works fine. My question - Where does authentification come in? Do this code assume that I am already logged to my email server? Dim mail As New MailMessage() mail.To = "me@mycompany.com" mail.From = "you@yourcompany.com" mail.Subject = "this is a test email....more >>

Disconnected socket still connected! - What then?
Posted by Techsol at 4/28/2004 12:51:05 AM
Hi, I have synchronous communications between a server and client. To save bandwith the connection must persist. So the socket must stay open and only be re-opened in case of communications failure. To simulate failure, the server disconnects the socket. However, the client socket parameter shows an...more >>

weird InvalidCastException
Posted by larrymacii NO[at]SPAM msn.com at 4/28/2004 12:25:22 AM
Here's my dilemma. I have a listbox that the user can select an item ("OrderItem" class) from, provided it hasn't already been selected (in which case it will appear on a second list box). The following procedure checks list2 (passed as lstSearch). It works fine the first time through, but if...more >>


DevelopmentNow Blog