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 > july 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 31

Problems with Windows Server 2003
Posted by Cocco82 at 7/31/2007 7:33:47 PM
Hi guys, i have a LAN with a Windows Server 2003 as main computer that shares an hard drive with letter F: from which all the other computers (Win XP Pro SP2) execute the programs i need for my work. Now i need to write a program myself, and i have compiled it with Visual Basic 2005. If i ...more >>

Resize a .NET form
Posted by Rob at 7/31/2007 7:28:47 PM
I want to resize the height of a form without resizing the width, therefore I tried: Private Sub Form1_Resize(ByVal sender As Object, ByVal e As = System.EventArgs) Handles MyBase.Resize Me.Width =3D 226 End Sub However this causes a lot of flickering on my form. How can I turn of...more >>

Setup Project - Dynamically Add/Remove Files
Posted by rm at 7/31/2007 6:53:52 PM
We are using a Setup Project in VB.NET 2003 to create an MSI. How can we dynamically add and/or remove files to the project? ...more >>

Logic
Posted by Paul Ilacqua at 7/31/2007 5:52:00 PM
This is more of a logic question than anything else. I really struggle with these types of seemingly simple problems. I have a form with several criteria and want to set a limit on how often the button on the form is "alive". If the criteria is changed I allow an update, but if the criteria ...more >>

Outlook and VB.net
Posted by Brian at 7/31/2007 5:38:37 PM
Hello All Is there a means of reading email information from Microsoft Outlook similar to what can be done with the Mapi controls in VB6? Brian Smart ...more >>

Help with inheritance problem
Posted by Mike at 7/31/2007 1:12:53 PM
I have several classes that will have a property of type List (of whatever). For example, I will have collections named: Protocols that will have a property named Items as List (of Protocol). Orders that will have a property named Items as List (of Order). Etc. All th...more >>

Deployment
Posted by Miro at 7/31/2007 12:19:35 PM
Reading the help file it says in step 2 to click on "other project types" and then click on "Setup and Deployment projects".( see below ) I am using vb2005 express. Im assuming this is not an express option? I do not have that option available. All I have is: -Windows Application -Class ...more >>

How do I determine if a element exists in an xml file?
Posted by cj at 7/31/2007 12:02:56 PM
This code might even be useful to some of you. I'm playing with USPS' interface to validate addresses. How do I deal with the fact that not all the elements are returned all the time? For instance this inquiry does not return a firm name. If it doesn't exist it should be blank in my proce...more >>



combobox, clearing text field problem
Posted by ray well at 7/31/2007 11:37:51 AM
i'm loading a combobox from a database in code, by setting the the DataSouce to a table, and the DisplayMember to a field. it loads the first row into the text area of the combobox automatically. i don't want that. i used to clear it up by setting ComboBox1.Text="", after loading it. bu...more >>

reading exe app.config from DLL in .NET 2.x
Posted by Kevin S Gallagher at 7/31/2007 10:54:46 AM
I have been attempting to read a value from the starting executable while in a DLL. So far have tried the following were "Test" is a defined value in the EXE. What is returned is a blank/empty string System.Configuration.ConfigurationManager.AppSettings.Item("Test") Did some research on G...more >>

listbox with multiple columns
Posted by ray well at 7/31/2007 9:24:10 AM
i need to display 2 columns of data in a list box. how would i set this up IN CODE. say my table is tblNames, and i have 2 fields, FirstName, LastName, and want the data to show up in 2 columns, LastName, followed by FirstName normally i would say ListBox1.DataSource = DataSet1.Table...more >>

help with .net2005, sqlserver 2000, listbox textbox and SELECT...FROM
Posted by SanMiguel12 NO[at]SPAM gmail.com at 7/31/2007 4:14:14 AM
Hi, I have a huge problem which drives crazy for a month... I am working on a database program and I am using .net2005 and Sql server 2003. In a form I have a listbox and two texboxes and there's also in my database a table with three sells: "name", "e-mail" and "address". The listbox shows the ...more >>

Multiple clients
Posted by sandrofurlan at 7/31/2007 3:04:08 AM
Hallo everybody, one question: Is it possible to connect with multiple clients to a singleton WCF service? The problem is that when I connect to the service, only the last connected client receive callbacks. Can anybody help me? Thanks ...more >>

Program with HTTPListener is idling at 100% cpu...
Posted by Tom at 7/31/2007 2:11:05 AM
Hey, I have made a program, that simply runs as a tray icon in the systemtray, providing a HTTP Server using HTTPListener. I have one problem however, it idles at 70-100% cpu. It could be 1 of 2 things: 1) In my Sub Main i have: Sub Main() While CloseProgram = False ...more >>

Text limit in text box?
Posted by at 7/31/2007 1:11:05 AM
Hello everyone, I am using a textbox for dumping information generated by the file system watch object. I am having this problem that always at some stage new new information stops being entered into the textbox even though there should be. If I clear the textbox, new information will start tp ...more >>

From VB to c#
Posted by Peter at 7/31/2007 12:00:00 AM
I am wondering if I should turn to C# from VB. How long will this turning cost for an ordinary man? Thanks for any response, Peter ...more >>

Freeze first column in datagrid in vb.net
Posted by Localbar at 7/31/2007 12:00:00 AM
Anyone have idea how to do that? Thanks a lot Localbar ...more >>

Terminology - Reflection
Posted by DesCF at 7/31/2007 12:00:00 AM
What exactly is Reflection ? I've looked at the definition in Help but I don't find it very helpful! I just stare at it blankly and can't quite seem to grasp its meaning conceptually. Reflection implies something reflected. Does anyone have a good cogent description of its meaning ? ...more >>

Array in a property
Posted by Q at 7/31/2007 12:00:00 AM
Hello to the pro's, I want to use an array in a class. This array should be visible as a property. Just can't seem to find out how to do it. Maybe there are other (and more easy) solutions? Can anyone help me?? Regards, Q...more >>

How do I specify command line arguments while debugging
Posted by Barry Flynn at 7/31/2007 12:00:00 AM
I have a VB 2005 Windows Forms program. I am giving it the ability to take some command line arguments. When debugging from within VS2005, how can I specify the command line arguments? Thanks Barry ...more >>

How does one create a color table
Posted by active at 7/30/2007 9:28:54 PM
Converting a 24bpp to 8bpp the default color table leaves something to be desired. How does one create a color table. Is there any Windows API or managed class that does that? I started reading about octtree but haven't got very far that way. Is that what I should continue to pursue? ...more >>

string work
Posted by jdrott1 at 7/30/2007 8:43:47 PM
i'm trying to change a number inside a string. (i.e. 5.39) if the number in position 2 is < = 4 then change it to 4 if its > = 5 change it to a 9. how would i do this in vb 2005? thanks. ...more >>

Version Numbering
Posted by Miro at 7/30/2007 7:21:27 PM
Sorry for all the posts today. Just not been a good day. I cant seem to figure out version numbering. I click on the MyProject and set up the Major, Minor, MajorRevision, MinorRevision as 1,2,3,4 respectivly. But Debug.WriteLine(My.Application.Info.Version.Major.ToString) ...more >>

System.IO.FileNotFoundException error when accessing My.Resources
Posted by sh at 7/30/2007 6:25:03 PM
I have a resource called "Location". When I try to access it with the statement If My.Resources.Location = "Office" ... I get the following error message: A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Why? Isn't the resource part of the a...more >>

Design Guidelines
Posted by Tom++; at 7/30/2007 6:20:00 PM
I have been reading "Design Guidelines for Developing Class Libraries" at http://msdn2.microsoft.com/en-us/library/ms229042.aspx. Is it correct that they are recommending camelCase for private member variables? Doesn't this create problems for case-insensitive languages when we create a privat...more >>

How to write a new IE7 Toolbar?
Posted by Stefan_Dörr at 7/30/2007 5:53:30 PM
Hi, does anybode know a good example for VB 2005? I haven't found a realy working example for IE7 and VB.NET 2005. Regards, Stefan ...more >>

Comparing Files with only Date Time Stamp Difference
Posted by rm at 7/30/2007 5:08:14 PM
We have this strange situation: We use a development tool that is maybe not so reliable when executing incremental compilations. The fact that we use the tool is not going away anytime soon. So the following is a replica of our real live situation. We have an app with a release package comp...more >>

VS Add-In question
Posted by Johnny Jörgensen at 7/30/2007 4:46:45 PM
In the VS 2005 add-in I'm currently developing, I want to be able to find out when the entire Visual Studio IDE receives and loses focus (e.g. when the user switches to another program and back to the IDE). I would have expected such an event to be present in DTE.DTEEvents, but it isn't, so...more >>

Addnew in VB.NET ?
Posted by fniles at 7/30/2007 3:56:44 PM
In VB6 to add a new record in a recorset, you can use the Addnew method, then set each column's value, then call the Update method. How can I do this in VB.NET ? Thank you. VB6: Private m_rs As new ADODB.Recordset m_rs.Open "SELECT * FROM myTable", adoCon, adOpenKeyset, adLockOptimistic ...more >>

Application Focus
Posted by Miro at 7/30/2007 1:46:34 PM
How do I check the windowstate or the BringToFront or something property on the form to see if the form is the actual form that has focus right now in windows? I created an app that runs minimized and gets data, and if for example ( notepad is open ) and the cursor is in notepad, I want the...more >>

Web Services Help
Posted by louciv at 7/30/2007 1:04:49 PM
I am trying to create a program that uses this web service: http://webservices.carrier411.com/wsLogin.cfc?wsdl I am supposed to pass it two parameters and it is supposed to return an array. Could some one show me how to do this in VB? I am having a lot of troubles. The parameters being pas...more >>

HttpWebRequest vs. web reference
Posted by cj at 7/30/2007 11:52:27 AM
I'm trying to understand the difference between sites like Google that offer web references (a .wsdl file) that I can add into my program and those sites like USPS I have to create a HttpWebRequest to access. Is the .wsdl file just a way to make it easier for us to user the services of thei...more >>

Text and EnterKey
Posted by Miro at 7/30/2007 11:20:32 AM
VB.net 2005 Express Say I have Dim MyString as String = "ABCDEF" and currently I have a timer that sends every 5 seconds: SendKeys.Send( MyString ) Questions: 1. How do i add an "enterkey" to the end of the string. 2. If I am receiving the MyString through another variable, how ...more >>

Can I write something like: If MyString In ("Apple", "Orange", "Pear") Then...
Posted by Ronald S. Cook at 7/30/2007 10:40:17 AM
Can I write If MyString = "Apple" Or MyString = "Orange" Or MyString = "Pear" Then to something more compact like If MyString In ("Apple", "Orange", "Pear") Then My last line obviously doesn't work but maybe I'm close? Thanks, Ron ...more >>

COM Exception
Posted by StinkyDuck at 7/30/2007 10:17:27 AM
I have the following code. I'm trying to gain access to QuickBooks via their SDK. The .BeginSession method always throws up a "COMException was not handled" "Could not start QuickBooks". The funny part is that it always fails during debugging. When I run the compiled exe, it works corre...more >>

Associate Icon with Executable Produced by VS 2003
Posted by pooba53 at 7/30/2007 9:15:57 AM
The executable produced by my VB .NET/VS 2003 application has the default blue icon associated with it. I have a custom .ico image I use for shortcuts in my build and it works fine. What I cannot figure out how to do is to also associate my icon image with the primary output .exe file. Thou...more >>

Need your help: read text file
Posted by portCo at 7/30/2007 9:12:11 AM
Hello there, I am creating a vb application which is some like like a questionare. Application read a text file which contains many questions and display one question and the input is needed from user to calculate the score. Here is a problem. I can read a text file. However, it's read ...more >>

how to turn on grid in developer
Posted by mr peanut at 7/30/2007 9:06:01 AM
How do I turn on the visual grid in the web (asp) design environment. I know this is stupid but it's counterintuitive to me....more >>

adding a row
Posted by jtnpham NO[at]SPAM gmail.com at 7/30/2007 8:45:57 AM
Here is my current coding: Dim Capacity As Integer Dim connStr As String = "Provider=Microsoft.jet.oledb.4.0; Data Source=f:\datawhse database\datawhse.mdb" Dim sqlStr As String = "Select capacity FROM work_center WHERE workcenter=" & txtWcSearch.Text Dim dataAdapte...more >>

Updating and Deleting
Posted by jtnpham NO[at]SPAM gmail.com at 7/30/2007 7:42:08 AM
I have two tables with the following components: 1. authTable - shop order no, auth no, work center id 2. dbo_shopOrder - shop order no, work center id I would like to do a few things but I am not sure where to start. First thing is, I would like to have all of the shop order no's in the ...more >>

SecureString() in framework 1.1
Posted by Pietro Pesce at 7/30/2007 6:37:19 AM
hi all, i have this code: Module Module1 Sub Main() Dim theProcessStartInfo As New System.Diagnostics.ProcessStartInfo("Cambio_ip.exe") Dim theSecurePassword As New System.Security.SecureString() theSecurePassword.AppendChar("*") ...more >>

Array Problem
Posted by StinkyDuck at 7/30/2007 12:57:36 AM
The code below errors with the following message: Object reference not set to an instance of an object. I realize the the object is not instantiated but I can't seem to figure out how to instantiate the object. If I change the code to: Dim MyParams() As mapItem = New mapItem Then I get ...more >>

Need advice for a baffling error
Posted by Terry Olsen at 7/29/2007 11:12:54 PM
I have a Class level variable defined as: Private _MessageID As String = "Idle" I have a timer set up with a 5-second interval. Here's the code for the Timer_Fired event: Private Sub Timer_Fired(ByVal state As Object) If _Enabled = False Then Exit Sub Writelog("MsgID=" & _Messag...more >>

Does Setting RichTextBox.SeletcionStart Change RichTextBox.Text ?!?!?
Posted by eBob.com at 7/29/2007 7:09:17 PM
After a lot of debugging effort I have to conclude that it does. Or at least can. I take a substring (RichTextBox.Text.Substring) before setting SelectionStart and after and get a different result. The second result begins two characters to the right of the first. In an earlier version o...more >>

Is there an easy way to put a DIB on the clipboard?
Posted by active at 7/29/2007 4:25:20 PM
Is there an easy way to add a Dib to the clipboard. I've tried these commands. myData.SetData(DataFormats.Bitmap, True, MyBitmap) SetClipboardData(CLIPFORMAT.CF_BITMAP, MyBitmap.GetHbitmap) SetClipboardData(CLIPFORMAT.CF_DIB, MyBitmap.GetHbitmap) Clipbrd may menu the DIB but e...more >>

Access DB Path
Posted by Tony K at 7/29/2007 12:22:40 PM
How can I customize, at runtime, the path for the OLEDB connection uses. I used the Add Data Source Wizard and found the path set by the wizard is ReadOnly. ...more >>

Time out errors
Posted by Rob at 7/29/2007 11:02:32 AM
VB.net 2005 Windows app... makes calls to 2005 SQL server... sometimes I get a Timeout error, other times I do not... What is the best way to handle timeout errors ? 1. How to increase the timeout - from the app it appears that the property is "read -only" ? So must it be set at the ser...more >>

publish problem (Newbee to VB/WEB apps)
Posted by mr peanut at 7/29/2007 9:02:01 AM
I need a walkthrough for publishing my simple web application. I have a webform (server control). Debug works OK. But when I publish to my localhost and open the page I get: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then c...more >>

Easy "as object" question
Posted by at 7/29/2007 3:02:12 AM
I'm sure I'm just missing something here but is there a way to nest objects inside an object or a collection that functions like an object with properties BESIDES creating whole classes or making public variables? Private Sub Click() Dim x as SomeSortOfCollection msg box(x.Name & " " & x...more >>

Raise an event from another event
Posted by Mike at 7/29/2007 1:22:11 AM
Hi group; Let say I have an object called Account, that raises an event called AccountLow with its owns EventArgs, and when this event gets raised, I will like to raise another custom event called AccountGotLowAmount and passes AccountLow’s EventArgs along with the new event. ...more >>


DevelopmentNow Blog