Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > june 2007

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

Replace inherited member name
Posted by Dinis Correia at 6/30/2007 6:48:30 PM
Hi all, How can I replace an inherited member name? I've built a class that inherits from KeyedCollection(Of ..., ...). I would like to replace base class Items property with Fields property. Is this possible? TIA, DC ...more >>


How do I detect networks programatically?
Posted by jim at 6/30/2007 4:40:41 PM
I need to know if a laptop is connected to the Bellsouth network or the Sprint wireless network. How can this be done with VB.Net 2005? ...more >>

SMTP access in VB.Net 2005?
Posted by jim at 6/30/2007 3:52:18 PM
I can find code that shows how to connect and send messages to an SMTP server in VB.Net 2005, but none of them show how to use an SMTP server that requires a user login and password. Does anyone know how to use an SMTP server, with a username and password, from VB.Net 2005? Thanks for yo...more >>

pdf attachments with .NET 1.x
Posted by jimk at 6/30/2007 2:10:01 PM
Apoligies, as I most likely have the wrong group here, but.... We're implementing a new web-based app for donor relationship tracking, and the vendor is telling us that they do not see a way to allow PDF attachments under .NET 1.x, which we find a bit dubious. PDF attachments are a huge need ...more >>

How to hide an inherited property.
Posted by active at 6/30/2007 10:06:17 AM
If I create a UserControl that inherits from, say, Panel, and I do not want my UserControl to have a property that it inherits from Panel. How can I remove it. For example, I might not want by control to have a BackColor property even though it inherited that property from Panel. Tha...more >>

C++ & VB.NET
Posted by John at 6/30/2007 12:24:55 AM
I wrote a C++ function which has 2 integer parameters and returns an integer. Is it possible to implement this function in vb.net? ...more >>

Check webbrowser for 404 page not found
Posted by Manfred at 6/30/2007 12:00:00 AM
Hello I use the webbrowser control to navigate to some webpages. If the page is not found I like to display some other controls. I can't find the html source text in the webbrowser control (documenttext is empty even there is some text diplayed). Is it possible to retrieve this text and se...more >>

Adding New Record - SQL Expres DB
Posted by Miro at 6/29/2007 11:02:06 PM
vb.net 2005 express I havnt posted in a while but I have been busy doing the tutorials on the SQL Express and the first VB.net videos. ( Basically started from scratch and gave up the idea of mdb tables and moving to SQL Express ). One thing I cant seem to find / figure out is this. I ...more >>



Shared Variable used as SyncLock
Posted by Core at 6/29/2007 10:49:17 PM
Hello, I am having a class that is used to spawn new threads off. In each of them, I have a shared function that will generate an unique id off a shared class variable. My question is whether using a shared object as a synclock candidate will generate any race conditions. Thanks. Co...more >>

Change WAV bitrate
Posted by Carl Gilbert at 6/29/2007 5:07:03 PM
Hi I am trying to render a wave file in a dotnet application but the component I am using only supports 16 bit wave files with two channels. How can I convert the wave file within .net to a different bit rate? Carl ...more >>

printing page break
Posted by Dave Cullen at 6/29/2007 4:40:50 PM
VB Dotnet printing is such a chore. My print code is copied from MSDN and uses PrintDocument, with a PrintPage handler. I need to force a page break at specific points in my document and can't figure out how to do that. I've been fussing around with different fonts and margin settings and b...more >>

programmatically set the SelectedItems for a ListBox
Posted by tommcd24 at 6/29/2007 3:53:47 PM
Hello all, I need a way to read a previously saved list of customers and programatically "Select" these items in an existing listbox. Something to the effect of ListBox.SelectedItems = myCollection. Of course SelectedItems is readonly. I'm reading in from an XML file and I have that portion...more >>

Recreating in VB.NET the "properties window" used in SQL 2005 or VS2005
Posted by shawncraig NO[at]SPAM yahoo.com at 6/29/2007 3:40:43 PM
I like the "properties window" control in SQL 2005 and I want to know if this or something close to it exists for use in my VB.NET app I'm building? You know the 2 column grids that are colapsable. Can someone point e in the right direction? ...more >>

Subtracting seconds from Datetime
Posted by Paulers at 6/29/2007 12:52:54 PM
hello all, how does one go about subtracting seconds from a DateTime object? for example I have a date time of "06/04/2007 10:31" and I need to subtract 12 seconds from that. all help is greatly appreciated. ...more >>

Web Form DataGrid not displaying - please help me!!!
Posted by at 6/29/2007 10:43:23 AM
Hi everyone, This is weird, please help. Its probably very simple but I'm stuck! I have populated a dataset with some data from a session variable: Dim dsTables As DataSet = Session("soLookupTables") And now I am trying to display it to a DataGrid widget using the following code: D...more >>

Problem when showing MdiChild form
Posted by ljlevend2 at 6/29/2007 10:42:01 AM
I've noticed that child forms always seem to show their title bar when they are first shown in an MdiClient. This is a problem for me because I am implementing a custom look which requires me to hide the system's title bar in order to draw my own. I've created a sample that demonstrates the ...more >>

No such interface supported?
Posted by Jennifer at 6/29/2007 8:52:10 AM
I've been getting this error message recently with every project I try to run in the IDE: Error While trying to run project: unable to start debugging. No such interface supported. I've tried reinstalling and it doesn't help. Please, what can I do to fix this? I've had to make a change t...more >>

Redistributing Segoe UI Font
Posted by Smokey Grindle at 6/29/2007 8:48:43 AM
So back in the vista beta we were told start using Segoe UI as our GUI font... well what happens when we backport the app to XP? I don't want to change the font just for a different windows version, if we get it looking right in one place, why spend the time trying to get it to look right in a...more >>

hi vb6 dev enviorment question
Posted by MikeJ at 6/29/2007 8:29:47 AM
hi i can't seem to place a commondialog on a form its not in the toolbox ive creted a new proj and i can place it on the toolbox but a existing project i get Name Confilcts with Existing Module , project or object libray any help tia MJ ...more >>

Compile error when using reference to own dll
Posted by Carles Vela i Aulesa at 6/29/2007 8:24:05 AM
Hi, I have a problem when I am trying to compile the .vb assembly to dll in VB studio 2005 Express Edition. I have my onw dll, which looks like: Public Class CL1 Public Shared Function FN1(...) As String ... End Function End Class (in .vb format) and I have another assembly,...more >>

Text box size
Posted by John at 6/29/2007 4:32:56 AM
Hi I am using Tahoma 8 size for my text boxes which is changed to Tahoma, 8.25pt by the system. The height of my text boxes is 21 with this font size. Is there a way to reduce the height to 20 without much effecting the font size? Thanks Regards ...more >>

Can Vb.Net do this?
Posted by jim at 6/29/2007 2:52:14 AM
I have a user that uses a built-in wireless ethernet card to connect to our wireless router and surf the internet from behind our router and uses a wireless Sprint card to connect to the internet when not in the office. I need to be able to detect when he is connected from the office and when...more >>

Protected network folder
Posted by daniel.navarro.murillo NO[at]SPAM gmail.com at 6/29/2007 1:51:44 AM
Hi all, I need to open a video player from vb.net and play on it a movie that is stored in a network folder. I'm trying with Process class but the movie file is on a protected folder and I need to specify user and password for accessing it. The problem is that Process class provides User ...more >>

read name of property during runtime
Posted by Peter Gast at 6/29/2007 12:00:00 AM
Hi, I need as a parameter for a control the names of my properties as a string. How can I get the name of the property as a string during runtime Example: Private _MyVar As Double Public ReadOnly Property MyVar As Double Get Return _MyVar End Get End Property ..... Ms...more >>

Highlight Handle, anyone?
Posted by Number 11950 - GPEMC! Replace number with 11950 at 6/29/2007 12:00:00 AM
When you highlight a selection of text represented in an object on a form, somewhere in the Framework or alternatively in the Windows API there exists an array of variables that either contain as a string the portion of text before the highlight, in the highlight and after the highlight, or as an...more >>

Any C developers able to convert this code to vb.net?
Posted by Luke R at 6/29/2007 12:00:00 AM
It would be much appreciated... Im not familiar enough with C in order to convert it myself... thanks using System; using System.Windows.Forms; public class HourGlass : IDisposable { public HourGlass() { Enabled = true; } public void Dispose() { Enabled = false; } ...more >>

Specified argument was out of the range of valid values
Posted by rhepsi at 6/29/2007 12:00:00 AM
Hi All... I Came across this error while populating a combobox from a datatable (I'm working in VB.NET): Specified argument was out of the range of valid values. Parameter name: '-1' is not a valid value for 'index' code[VB] Private Sub PopulatePrManagerCombo() ' This procedure pop...more >>

LPCGUID and System.Guid
Posted by penguin at 6/29/2007 12:00:00 AM
I have a DLL "myLib.dll" that has the following function. The DLL is = compiled in VC++. LPCGUID AAAPI aaApi_GetItemGuid ( LONG lIndex /* i Index of selected item */ ); Note: The output type is LPCGUID, not LPGUID I declare the function like this in myModule Public Declar...more >>

Read name of variable during runtime
Posted by Peter Gast at 6/29/2007 12:00:00 AM
Hi, I need as parameter for a control the names of my properties as a string. How can I get the name of the property as a string during runtime Example: Private _MyVar As Double Public ReadOnly Property MyVar As Double Get Return _MyVar End Get End Property MsgBox ( ...more >>

USB Flash AutoRun
Posted by tmWin at 6/28/2007 6:58:32 PM
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a specific Flash Disk device. It would be very thankful If anyone could tell me about it. Thanks in adv...more >>

Class declaration
Posted by Doug Stiers at 6/28/2007 5:41:58 PM
I have an ASP.Net 1.1 (VB) application where I have several usercontrols, one is called DetailLine. Dim ucLine As DetailLine ' this code works fine In converting this application to ASP.Net 2.0 I run into this problem. Now this line of code wont compile: Dim ucLine As DetailLine And...more >>

Dot Net Books?
Posted by Michael at 6/28/2007 3:07:32 PM
Hi, I've decided that it's time I picked up VB.net having programmed in VB6 for the past 5 years and was wondering if there was a book that was designed for the VB6 user as opposed to going through all the basics all over again "This is a variable" etc? Failing is there a particular book...more >>

Current Cast vs. Object Type
Posted by Dinsdale at 6/28/2007 3:04:44 PM
I am trying to determine what the current cast of an object is. Essentially, if I use GetType, it always returns the original type of the object created but I want to know what the current cast of the object is (i.e.: is it still cast as a Derived class, or is it cast as a Base class?) Here is s...more >>

dot not app not quitting
Posted by John at 6/28/2007 2:42:58 PM
Hi I have noticed when I close my vb.net app, it is still visible under processes in task manager? Why is that and how can I ensure complete closure of app? Thanks Regards ...more >>

How to resize a maximized form
Posted by ljlevend2 at 6/28/2007 2:20:05 PM
I have a situation where I need to display a form in a panel. Everything works great except if the form is maximized and the panel's size changes. In this case the maximized form's bounds do not change. I tried updating the form's Bounds property in the panel's SizeChanged event but this do...more >>

Using VB.NET - Nightmare with Diff Tools
Posted by Phillip Taylor at 6/28/2007 2:15:39 PM
I'm having an absolute nightmare with regular diff tools which is making it really hard to manage changes etc in CVS. Tools such as WinMerge and ViewCVS really have really poor matching results which is making it difficult to rollback, compare changes and don't even get me starting on merging ...more >>

generate 6 digit unique id
Posted by Marc at 6/28/2007 2:09:09 PM
Hi all, I have to generate and send to a printer many 6 digit alphanumeric strings. they have to be unique but I cannot check in a database or something like that if it have already been printed. the string has also to seem a random one and it cannot have an apparence of a sequence. ...more >>

Codings not changed when a control is renamed in VS2005.
Posted by Peter at 6/28/2007 1:16:02 PM
I'm new to Visual Studio 2005. I'm creating a windows application using Visual Basic. After I added a control to a form and added some codings to the control, I want to rename the control. However, I notice that after I rename the control, the codings inside it are still using the old name...more >>

Lazy compiling
Posted by Shahil Shah at 6/28/2007 12:46:29 PM
Hi Do you know if the vb 2003 compiler implements lazy compilation? For e.g: IF test1 OR test2 THEN do something END If test1 is evaluated to be TRUE then the compiler should not bother evaluating test2 and go into the IF block. How can this be activated? Thanks Shahil ...more >>

RSACryptoServiceProvider Question
Posted by John Wright at 6/28/2007 12:24:03 PM
I have a x509Certificate that I exported and I am using for testing called wsTest.cer.pfx. I want to use this cert to send a public key to anyone who requests it, and then use the private key to decrypt any incoming messages. In the code below you can see I can grab the publickey string from ...more >>

Is Visual Basic 2005 just another term for VB.NET?
Posted by Peter at 6/28/2007 11:54:03 AM
I have seen the terms Visual Basic 2005 and VB.NET. It seems that sometimes they seem to be referring to the same thing but sometimes they are not. I also run into terms like VB9 and VB10. ...more >>

propper casing of a constant
Posted by Smokey Grindle at 6/28/2007 9:33:28 AM
I always learned when you have a constant name it in all upper case like this PASSWORD_MAXIMUM_LENGTH but FxCop is saying this isn't correct, but doesnt tell me the correct "accepted" way in .net to name a constant... what is it? ...more >>

Anyone use Win32Shutdown on a ME pc?
Posted by cj at 6/28/2007 8:44:01 AM
If TimeValue(Now) > TimeValue(ShutdownTime) Then Dim WMIService, Computer As Object WMIService = GetObject("Winmgmts:{impersonationLevel=impersonate,(Debug,Shutdown)}") For Each Computer In WMIService.InstancesOf("Win32_OperatingSystem") Computer.Win32Shutdown(8 + 4, 0) 'shutdown...more >>

How do I put a exe-project and a dll-project in the same solution?
Posted by HONOREDANCESTOR NO[at]SPAM YAHOO.COM at 6/28/2007 7:07:16 AM
I would like to put a dll and a project in the same solution. So I created a project (of type exe) and then I chose 'new project' (of type class library) and picked the option 'same solution'. So it looks like I created 2 projects in the same solution, which is what I wanted to do. However, I...more >>

Authentication with HttpWebRequest
Posted by Tosco at 6/28/2007 5:25:23 AM
I used to use WebBrowser in VB6, and now I want to learn how to use WebRequest in vb.net, but I'm having 2 problems. 1) Is it normal that the automatic redirection doesn't work when the page contains this? <body onLoad="location='http://www.SiteName.com/index.jsp'"></body> If I use WebB...more >>

Drag and drop a control
Posted by anujithsankar NO[at]SPAM gmail.com at 6/28/2007 12:37:52 AM
Hi All, Is it possible to drag a control and move to a desired location on the form. I have developed an user control and would like to give the user to arrange the user controls according to his wish during run time. I can find code where data is dragged and dropped to a target. But in this ...more >>

outlook address book
Posted by hotelinfoline NO[at]SPAM gmail.com at 6/27/2007 11:31:39 PM
I want to get outlook express (not microsoft outlook express) address book address's in visual basic application. Please tell how I can get. ...more >>

Problems with arrays
Posted by magriii at 6/27/2007 9:48:02 PM
Hello I run into problems on how to create array instances. I'm playing around for hours now and can't find a solution for this. How can I assign an instance of the Mysegment class to the rendition segments property? Any help is greatly appreciated. Thanks magriii Public Class Form1 ...more >>

Updating machine.config. on multiple pcs
Posted by John at 6/27/2007 9:00:08 PM
Hi We need to update machine.config for .net 2.0 on multiple pcs on a network. Most machines would potentially have other versions of .net installed too. Is there an easy/quick way to do this specially one that a non-technical person can do too such as running a bat file or some such like? ...more >>

PDF File Manipulation
Posted by Garth Wells at 6/27/2007 7:09:40 PM
I have a client that wants to process PDF files that have embedded barcode separator pages. I want to programmattically open the PDF, search for a separator page, get a value off the page (document type) and extract the pages between separator pages and write them to a new PDF. Keep in mind I wa...more >>


DevelopmentNow Blog