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 > march 2006 > threads for wednesday march 29

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

Showing a web page in VB.Net form?
Posted by rj at 3/29/2006 10:59:10 PM
Hi All, I am kind of new to .Net. I have a web page created in Access (data access page), and i wish to view it on a form created in VB.Net. I dont want it to open in a new window. Is this possible? How do I do it? Thanks in advance.. ...more >>

Capitalize Variable Names
Posted by Larry at 3/29/2006 7:02:34 PM
I am using VB.Net 2003, IDE. When I type a variable name that already has been Dim'd, The IDE doesn't make the variable name Capitalized, even though the variable name definition in the Dim is capitalized. VB 6 will do this. Where is the setting so that this will happen. Someone else here...more >>

Get UNC using vb.net
Posted by gator at 3/29/2006 6:32:32 PM
Can anyone help with this? I need to be able to get the UNC from a path such as: "q:\anyfolder\anotherfolder\" ... returns the full UNC path on a LAN There are several examples in this group but none of them work correctly. Does anyone have a function in VB.net that actually returns the ...more >>

Problem using the shell function in a service.
Posted by dave m at 3/29/2006 5:11:15 PM
I have a small application that launches an application via the shell function when a listening socket receives data from another PC. This works fine using a WinForms environment. However, I want this listing app to run in the background as a service. When debugging the service, the line...more >>

How do I properly exit...
Posted by L0rd DarkF0rce at 3/29/2006 5:04:04 PM
I have an application that basically runs a timer and when it expires it logs the user out, if the X button is clicked (Form.Close) the user is logged out, but if I open TaskManager and go to the Processes tab and select the application and say End Process none of my clean-up code (including user...more >>

WinForm app memory continually grows
Posted by J. Clay at 3/29/2006 4:34:25 PM
Developing in VS 2005 I have WinForm app that utilizes several class objects and is databound to a couple of objects. One of the classes uses a timer to query an in memory database every second for changes (Calls from an external application). I am not sure if this has anything to do w...more >>

Selected a USB flash drive by default
Posted by Dustin Davis at 3/29/2006 4:00:15 PM
This might be a pipe dream, but here goes... I'm writing an application many users will be working on and saving files to USB flash drives. When they click the save button, I would like to have the default save path be the flash drive, if one exists. The best solution I can thing of is to a...more >>

Viewing enum values in a specific order?
Posted by mrmagoo at 3/29/2006 3:34:40 PM
Is it possible to view enum values in the order that I have defined them? Public Enum Size Small Medium Large Biggest End Enum I love Enums because they make my life easier, but, because they are alphabetized, it seems easier to make a mistake and pick the wrong one. When I ...more >>



How to return a specific combobo item?
Posted by mrmagoo at 3/29/2006 2:32:37 PM
How do I stick an list item from a combobox into the text property of it? Let's say I want the first item in the combobox list to display. With cbo If .Items.Count = 1 then ' Display that item in the combo .Text = <THAT ITEM> ? end if end with This works, but surely t...more >>

Date & Time format
Posted by Bill Nguyen at 3/29/2006 2:01:18 PM
I receive data in an XML file with the following date/time format. While I can parse the date & time using string function, I would like to know if this is some sort of datetime in SQLserver that I can use directly: <DateTime>2006-03-29T13:12:00.000</DateTime> Thanks Bill ...more >>

How to know the Calling Object ?
Posted by vsr at 3/29/2006 1:23:01 PM
I am calling one Method in Common class from different classes and i want to know from which object the call is coming from.. is there any way?...more >>

Update Access data
Posted by George at 3/29/2006 12:24:34 PM
Hi all, I am having trouble with updating my data in an Access database. here is my code: Imports System.Data.OleDb Dim AppPath As String = Mid(Application.ExecutablePath, 1, Len(Application.ExecutablePath) - 14) Dim strConn As String = "Provider=Microsoft.JET.OLEDB.4.0;Data...more >>

Phonetics matching like soundex
Posted by Brian Henry at 3/29/2006 11:53:11 AM
Does .NET have any existing classes for things like soundex? SQL Server already has this built in, does .NET also? or will I have to code it? I already have the algorithm. ...more >>

REPOST: preventing more than one user from working on the same record
Posted by helpful sql at 3/29/2006 10:57:59 AM
Hi, I am working on an app that will display the list of all scheduled call records in our database to the users. All users of the application will see the same list of call records and will select any record and try to call the contact person for that record and edit the record. Now, my ques...more >>

Locked Control
Posted by kafi at 3/29/2006 10:02:02 AM
Hi All; I am trying to find a way to make my locked control more visible on a web form. When I lock a control and display it on a web form (ASP.NET) the control is barely visible and it is hard for users to see it. Is there a way to make the control bit more visible? A locked control on...more >>

VB.NET error
Posted by jwray at 3/29/2006 9:50:02 AM
Hello All, I am migrating some scripts to .NET. This has been a learning experience to say the least. The whole script pull a list of computers through an LDAP call to AD. It then writes the computer names to a file. The file is then read, pings the computer and then if it is alive, chec...more >>

Displaying MHT content in WebBrowser
Posted by Jim Fox at 3/29/2006 9:45:22 AM
I have an .MHT file which I would like to display in a WebBrowser control. This should be pretty simple, since I can open the MHT file in IE without a problem. However, I cannot seem to find a way to do this with the control. THanks, Jim ...more >>

How to show a form in another project?
Posted by Smile at 3/29/2006 9:38:08 AM
Hi Friends, I have just started to write an application using VB 2003. The application has 5 modules and I created 5 projects for them. I created a frmLogin in Project A, after the user logined, how can I display another form in Project B? Thanks, Smile ...more >>

Re: Control.DrawToBitmap and Restrictions
Posted by Jameson King at 3/29/2006 9:07:38 AM
We know that MS has a reliable way of getting thumbnails of webpages because of IE7. If they are not going to include it in the dotnet framework they should at least tell us the API call(s). ...more >>

Calendar with custom tooltip over days with events
Posted by valeria.audivert NO[at]SPAM gmail.com at 3/29/2006 7:41:15 AM
I'm trying to implement a Calendar control using the OnDayRender to get event information from an XML file. For the days that have special events, I'd like to make the day bold red and show a tooltip with the event descriptio nwhen the mouse is over that day. I was able to do the color and font ...more >>

Using Find method on a List(of type) Breaks the Reference
Posted by muskito.net NO[at]SPAM gmail.com at 3/29/2006 7:40:00 AM
Hi, I Have the following code: Public Sub UpdateEvent(ByVal ID As Integer, _ ByVal StartTime As Integer, _ ByVal Duration As Integer) EventId = ID Dim EventToUpdate As SchedulerEvent = SchedulerEvents.Find(AddressOf...more >>

XML into datagrid
Posted by Darin at 3/29/2006 6:43:34 AM
I can get an XML loaded into a datagrid using: Dim ds As New DataSet ds.ReadXml("jp.xml") gData.DataSource = ds But, this a grid that allows clicking on the plus to see styles, alignment, etc. I want to load it in a datagrid so it appears in rows and columns just like if I were to load ...more >>

MS's Excruciating Update Cycles
Posted by CMM at 3/29/2006 3:16:02 AM
Just discovered yet another out and out *retarded* bug in VS2005... this time in the way Application_Startup /w the Application Framework enabled works (yes, it's a BUG... it's already doc'd in the MS community forums on MSDN... it concerns aborting Application_Startup when a SplashScreen is ...more >>

Problems with TCP Listener
Posted by Jerry Spence1 at 3/29/2006 1:15:54 AM
I have been looking at examples of code to create a simple TCP listener on a certain port. However they all start off with this line: Dim tcpListener As New TcpListener(portNumber) When I code this, I get an error which says that this is obsolete and I should use tcpListener(IPAddress l...more >>

Doing some extra task while saving databind Controls in VB.Net 2005 ?
Posted by Luqman at 3/29/2006 1:05:50 AM
I have created a form using Data Sources in VB.Net 2005, and Binding Navigator, even I did not write a single line of code and data is displaying, saving, deleting perfectly with the click of buttons on Binding Navigator. Now, what I want, that if the user clicks on the Save Button of Bindi...more >>

Use of the number of ErrObject in VB6 through a dll made in VB .NE
Posted by Slimane at 3/29/2006 12:40:02 AM
Hi, I try to use the ErrObject in one of my class Library. The class Library is written in VB .NET and the dll should be used in a VB6 application or a VB ..NET application. Here is a simple example of the code I wrote in .NET: Public Class Class1 Public Sub test() Err.Rai...more >>

Web Panel?
Posted by Shawnmb at 3/29/2006 12:08:10 AM
Would it be hard to write an application which could send a basic html page to, let's say a browser, that connects to the application on a specified port? I've never even pondered doing this before, any suggestions on how to best achieve this? Good tutorial suggestions maybe? ^_^ Thanks. ...more >>

VB BinaryReader, reading Characters from stream
Posted by James Minns at 3/29/2006 12:04:00 AM
Hi, I have the following problem with my VB code: accented characters are being transformed into a cr-lf pair! I am reading a sequence of bytes from a binary file, one part of which is a text string. Here is a code snippet: Dim fs As New FileStream("c:\test.bin", FileMode.Open) Dim br As...more >>

Translation of CreateFile dll in dot net
Posted by news.microsoft.com at 3/29/2006 12:00:00 AM
Hello, i'm having problems to call a api dll in vb dot net. I absolutely want to use this api call and none of the frame calls. This is my declaration: ***************** Public Structure SECURITY_ATTRIBUTES Public nLength As UInt32 Public lpSecurityDescriptor As IntPtr Public...more >>

Is it possible to use Field Names instead of Item(0) with Data Row using VB.Net 2005 ?
Posted by Luqman at 3/29/2006 12:00:00 AM
Hi, Is it possible to use Field Names with Data Row. for example: Dim dr As DataRow = CType(Me.ProductsBindingSource.Current, DataRow) dr.ProductID=123 dr.ProductName="ABC" Me.ProductsBindingSource.EndEdit() Me.ProductsTableAdapter.Update(Me.Inventory_Control1DataSet.Products) Best...more >>

Late Binding Question
Posted by ShaneO at 3/29/2006 12:00:00 AM
A VB.NET 2005 question - For simplicity, if I have say, 20 TextBoxes and 15 Labels on a Form that regularly require clearing (ie. "") or setting to the same value (eg. "---"), would it be frowned upon to use the following code - Dim sStr as String = "" '(or "---") Dim Txt As Object Dim T...more >>

How to compare time?
Posted by James at 3/29/2006 12:00:00 AM
Hi Guys, Just looking for the best way to compare two times. What I want to do is make sure a time is in between two other times. E.g. If the current time is 14.00 I want to check that it is between 13.30 and 14.30. Would it be best be using the TimeSpan class? Idealy I want to do: ...more >>

Using Class's and multiThreading
Posted by James at 3/29/2006 12:00:00 AM
Hi All, Just going into the world of Multithreading and have a few questions about using class's in them. If I create a calls in the main thread then start a new thread that calls another class can i use the class that i created in the main thread? It does work but not sure if this is th...more >>


DevelopmentNow Blog