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 > may 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

Show/Hide buttons in the Toolbar
Posted by Samuel at 5/31/2007 9:04:01 PM
Hi I want to show certain toolbar buttons only when a one type of MDI Child form is active What method can be used to achieve that and what events need to be used? Samuel Shulman SBS Technologies Ltd 07917 447730 ...more >>

Streamreader cutting data?
Posted by Winger at 5/31/2007 8:55:34 PM
Hi, I'm using a HttpWebRequest/HttpWebResponse to get plain html code off a website. This is the code: (...) Dim Resp As HttpWebResponse Try Resp = CType(request.GetResponse(), HttpWebResponse) Catch ex As Exception MsgBox(ex.ToString) Return False End Try Dim resp1, resp2 As ...more >>

ListBox column header
Posted by Gentian Hila at 5/31/2007 8:51:01 PM
Is it possible to add a column header to the ListBox control that comes in VB.NET 2003 and how if possible at all? Thanks...more >>

yEnc in VB.Net
Posted by BiT at 5/31/2007 7:44:51 PM
Hello i'm looking for how to decode binaries files from newsgroups (yDec) in vb.net i've search around and found only vb6 code http://www.freevbcode.com/ShowCode.asp?ID=5782 i tried to convert it to vb.net but it dosen't work dose any1 know such code for vb.net? thanks ...more >>

For each statement
Posted by Lou at 5/31/2007 6:50:20 PM
I have a panel control with buttons and labels I want to loop through only the buttons so I do this Dim btn As Button For Each btn In FlowPanelBottom.Controls Next I get an error that the control is a label control. Why is that when I am only looping through button types? Unable to...more >>

how to determine the # of unique values in a simple arraylist...?
Posted by magellan at 5/31/2007 5:57:00 PM
Hi, I'd appreciae any advice on how to do this in VB 2005. I have a simple array;e..g, a list of States, e.g., CA, WA, ID, AL, and etc... I like to determine how many unqiue "States" are in this array...ie., duplicate entires, are igorned... If this list has this sample: CA WA ...more >>

DataGrid in VB.Net Express
Posted by Bails at 5/31/2007 5:30:47 PM
What am I doing wrong/Missing. I have set up a new database using the EXACT intructions on the Help page of VB Express. The Tutorial initially starts with a data grid, but deletes it and replaces this with some text and input boxes. But I want to keep the grid for my project. Sadly th...more >>

Simple question
Posted by Smokey Grindle at 5/31/2007 3:46:13 PM
Ok say I have a person class, a user class and a subuser class... the person class is the base class, which implements the IPerson inerface... which contains methods Update, create and remove.. now say the user class inherits the person class but also implements the IUser interface... whic...more >>



Which Source Code Control
Posted by Peter Proost at 5/31/2007 3:41:44 PM
Hi group, Which source code control program would you guys advice when working a lot with linked files in .net For example, I've got project A with its own frmA, frmB (linked from project B) and frmC (linked from project C) Now when I change frmC from inside project A I woul also like to see...more >>

How come this doesn't cause an endless loop?
Posted by Lucvdv at 5/31/2007 3:03:01 PM
VS2005: can someone explain why this code doesn't cause endless recursion? It just returns False. However, if you replace "Return TestProp" with "Return Me.TestProp", the compiler warns for recursion (a warning, not an error), and it fails with a stack overflow at runtime -- as expected. ...more >>

suppress Javascript error messages in vb .net
Posted by ZeeHseez NO[at]SPAM gmail.com at 5/31/2007 2:36:08 PM
Hi, I have written a webbrowser application in VB .net Framework 1.1. I would like to suppress javascript error messages. However, the silent property of the webbrowser control suppresses the Javascript messages, but it also blocks any other dialog box, such as Login dialog, i can't use the s...more >>

Insert Key State
Posted by John Austin at 5/31/2007 2:19:00 PM
I want to ensure that the Insert Key state is 'Insert' rather than 'Overwrite' in a particular textbox (or possibly for the whole form). How can I go about this? -- John Austin...more >>

Vb Class collections
Posted by Lou at 5/31/2007 1:57:34 PM
Is there a class wizard like in VB6 to create a collection class? I have class1 and want a class collection of class1's -Lou ...more >>

DataGridViewRow Cells Collection
Posted by daokfella at 5/31/2007 1:53:28 PM
How come the cells collection is out of order from my designed gridview? I have a gridview with four columns. The first three are textbox columns and the fourth is a checkbox column. While viewing the cells collection of the DataGridViewRow, the checkbox column is in the 0 index even though it'...more >>

Dynamically set the parent of a newly created control
Posted by Lou at 5/31/2007 1:07:01 PM
How, after dynamically creating a new button control, set it's parent to a panel control This doesn't seem to work: NewButton.Parent-MyPanelControl -Lou ...more >>

Button size and location
Posted by Lou at 5/31/2007 12:46:06 PM
How can I get the size and location into 1 struct Why is there a "size" variable but not a "loaction" variable I dynamically create a button and want to store the location into a rectangle variable Is there a button property that stores both the size and location? ...more >>

Use Try-Catch or If Statement?
Posted by Mike at 5/31/2007 12:39:00 PM
Hi. I have a class with an collection property. The collection property is sometimes equal to nothing. The class has a function named 'Exists' which returns TRUE if the specified string exists in the collection, and FALSE if it does not. This is illustrated below. My co-worker and I are...more >>

Dynamically create buttons
Posted by Lou at 5/31/2007 11:39:40 AM
I want to dynamically create an unknown amount of buttons into a panel. I want each button to respond to the same click event. In VB6 I would just create an array of buttons. I do know how to have multiple buttons respond to the same click event in ..NET but not if the number of buttons are ...more >>

accessing C++ functions
Posted by Stephanie Doherty at 5/31/2007 11:28:02 AM
I am trying to call some API functions written in C++ from my VB .NET 2003 application and am running into some difficulty in passing structures to a function. It is probably due to the types I'm declaring for the structure members not lining up properly, but I don't know how to declare them ...more >>

2 instances of app running--naming
Posted by cj at 5/31/2007 10:16:17 AM
I run two instances of an application on a pc at one time. I want them to assume app A and app B identities. If I check for a previous instance of the app running when the app starts I can determine if the app is the first to start or not. If it's the first it become app A if not app B. ...more >>

Webbrowser control in Vista with Office 2007
Posted by swaykid NO[at]SPAM gmail.com at 5/31/2007 9:30:08 AM
Hi, I have a webbrowser control embedded in a winform (vs2005) and use it for previewing documents. The form works perfectly in XP with office 2003 When using the same form in Vista with office 2007 the document opens Word/excel etc and doesn=B4t allow the preview within the webbrowser c...more >>

Startup properties
Posted by Rob at 5/31/2007 7:36:00 AM
Can you store "public" variables that may be accessed from anywhere and still have a Form (not SubMain) as the designated startup object ? For example.... let's say I want all the form's Text property equal to "Program Name and Version" In a public class I tried.... Public Class SomeVar...more >>

Help with Data Please
Posted by Emma Hope at 5/31/2007 6:12:00 AM
Hi All, I have VB & SQL 2005 Express but i'm afraid i am a newbie, my background is in MS Access so please if you can give me any advice, please take my inexperience into consideration. I have two tables, i won't detail all the fields but just those that are relevant. Table 1 ...more >>

timer and button flash
Posted by martin1 at 5/31/2007 6:02:06 AM
Hi, All, I create 3 buttons in for loop in code like below: For i= 0 to 2 Dim button as new button Next button will flash if button value is 1 using timer, my question is I need to create 3 timers or 3 button can share one timer? Thanks, Martin ...more >>

How to find and replace something that is nested inside something else?
Posted by alainfri NO[at]SPAM gmail.com at 5/31/2007 5:57:34 AM
I am not sure if this group is the right place for this question but what I need is as follows. There is a piece of html. Throughout the html there are a lot of <br> tags. The task is to replace all these <br> tags with \n\r. The replacement must be performed only within <pre> blocks. I can do t...more >>

Help with Form class.
Posted by teejayem NO[at]SPAM gmail.com at 5/31/2007 5:53:17 AM
This is kind of hard for me to explain so I hope you understand. I have declared an object based on a class of a form I have designed. This is declared at Class level within the frmMain class of my project. Dim frmErrors as New frmErrors I have a method that shows the form Sub frmEr...more >>

mouse over button event?
Posted by martin1 at 5/31/2007 5:51:01 AM
Hi, Is there button mouse over event in .net? What I want to do is instead let user click button to pop up message, I let user put mouse over button and then auto-pop up message? Thanks, Martin ...more >>

Publishing VB.Net Web apps
Posted by Anil Gupte at 5/31/2007 12:00:00 AM
How does one publish easily? From what I gather, you have to save locally and then manually ftp the requisite files to the web server. Is there not an automated way to do this? Is there some sort of FTP application built into VS? Thanx, -- Anil Gupte www.wizo.tv www.keeninc.net www...more >>

Using DirectX with a network camera
Posted by Jerry Spence1 at 5/31/2007 12:00:00 AM
I'm struggling to get started on this subject as I can find out so little information about DirectX I have some IP Cameras and I am trying to display the video and also save the file, and I am hearing that DirectShow may have the answer. However, after downloading the latest DirectX SDK it ...more >>

string question
Posted by shane at 5/30/2007 11:03:19 PM
I have gone over allot of the samples and documentation on the internet on strings. I am not seeing a good example of a function or sub to remove all characters to right or left of a given character. The ones I see I don't know how to implement. I want to take the following c:\temp\other...more >>

Changing application level settings in code - How
Posted by Robert Dufour at 5/30/2007 9:35:43 PM
Its easyb to change user leve settings but how do you change application level settings in code. Apparently it seems it can't be done. Duhhh. Anybody manage a workaround? Thanks for any help. Bob ...more >>

I give up what is this and where can I find more info about them.
Posted by David S. Zuza at 5/30/2007 9:30:50 PM
< Category("Appearance"), DefaultValue(GetType(Double), "0.1"), Description("Gets or Sets the opacity level of the panel.") > I see these xml "Things" in other peoples code and they seem powerful. For example I know this one will allow you to add a property of a component the the properti...more >>

Duplicate names with resx files
Posted by pc3957 at 5/30/2007 2:44:19 PM
Hi everyone, I've got a bit of a strange problem and I can't figure out how to fix it. I've got an ASP.net 2.0 site with a homepage in /Default.aspx and a members homepage in /members/Default.aspx. I created a local resource file in /App_LocalResources/Default.aspx.resx and it works great ...more >>

Synlock Q - Subprocedure with same object lock
Posted by Spam Catcher at 5/30/2007 1:52:29 PM
Hi All, If I have a procedure that obtains a sync lock: Public Sub A SyncLock Myobject B() End SyncLock And another procedure which obtains the same synclock: Public Sub B SyncLock Myobject ... Do Stuff End SyncLock Will this cause a deadlock? Since A calls B - will th...more >>

Showing Msgbox after Form_Load
Posted by John Dann at 5/30/2007 1:52:01 PM
Something very simple that I can't spot how to do: I wand to display a msgbox showing some current configuration parameters when my VB2005 program starts up. However, I want the main form to paint before the msgbox appears so that the main form appears as the background to the msgbox. At prese...more >>

will any AOP features ever be added to VS.Net?
Posted by PJ6 at 5/30/2007 1:17:30 PM
I've done a lot of reading on AOP lately and have come to the conclusion that for any elegant and simple AOP design pattern to be possible, the Framework and compiler themselves need to be enhanced. Everything currently available is either too clumsy (proxies) or downright dangerous (unmanaged...more >>

connection string variable...
Posted by Brad Pears at 5/30/2007 12:52:30 PM
We have several applications that use the ".exe.config" .xml file to get the connection string to our SQL server db. Each user of the application has their own .xml file because we have some user specific settings in there... My question is this... We are looking at setting up a backup SQL ...more >>

count number of pages in a tiff file
Posted by G E W hittle at 5/30/2007 11:19:09 AM
I have a directory of tiff files. I need to loop thru the files and count the number of pages in each file. Can someone point me to where this info is stored? GW...more >>

System.InvalidCastException Error when running code
Posted by cmdolcet69 at 5/30/2007 10:59:00 AM
In the below code exact line If _graphicScreenShots(intloop) = "Summary" Then....... I get an error message Overload resolution failed because no Public '=' can be called with these arguments: 'Public Shared Operator =(a As String, b As String) As Boolean': Argument matching param...more >>

help file closing when app closes in Vista
Posted by ray well at 5/30/2007 10:15:58 AM
hi, i have a app which has a help file, *.hlp, which the user can launch within the program. i want the help file if it is open to close when the program exists. the way i did it till now is by running the following code when the program closes Dim proc, procs() As Process procs = Pr...more >>

Referencing an Interop class
Posted by Earl at 5/30/2007 9:43:36 AM
I have some crappy Intuit sample code that I'm trying to clean up and turn into something useful. They reference a non-CLS compliant Interop class. Do I have any options besides marking the entire VB.Net assembly non-compliant? ...more >>

Start a program when user logs in
Posted by jvb at 5/30/2007 8:51:06 AM
Hey all, I have a quick question, I want to have my application startup when the user logs into their machine and I am not sure how to do it. Is it a registry setting? ...more >>

VB.Net 2005 and Access 2003 mdb
Posted by Chris at 5/30/2007 8:00:41 AM
Ok, I have a vb.net application that connects to a network file share. The vb.net application bases certain functions (whether or not the user can or can't update for example) by polling the system.username variable and checking that against a table in the database. When I or any other domai...more >>

How to enforce constraint in VB.Net 2005 using Oracle Database ?
Posted by Luqman at 5/30/2007 1:21:53 AM
I have created a form using single Table which has customerId and companyName field, using Typed Dataset. Now, if I click on Delete Button of Binding Navigator, the Customer Record is deleted from Dataset, however when I click on Save Button of Binding Navigator, Oracle raises Constraint viola...more >>

Multi-Object SyncLock?
Posted by Frank Osterberg at 5/30/2007 12:00:00 AM
Hi, I want to simultaneously SyncLock multiple objects, something like: SyncLock objA, objB ' do stuff with objA and objB End SyncLock but so that a lock is only obtained if BOTH objects can be locked obtained simultaneously. I want to prevent possible deadlocks when ...more >>

RemoveChild
Posted by Meelis Lilbok at 5/30/2007 12:00:00 AM
Hi What can next problem: 'Code For Each oNode in oParent.ChildNodes oParent.RemoveChild(oNode) Next Problem: Only first child node is removed! Best regadrs; Mex ...more >>

Form to XML
Posted by ats NO[at]SPAM jbex at 5/30/2007 12:00:00 AM
I have a form on a .aspx web page which contains payment information. I need to send this as an xml file to our online payment service and then parse a reply back from them as to wether the payment was acceped or not. Being fairly new to .net and xml I have no idea how to go about this. Any help...more >>

BackColor - Not ?
Posted by Rob at 5/29/2007 11:25:01 PM
This should be simple..... The default BackColor of a button (if you look at its property) is "Control" its a gray color, but apparently not a color. During a process I set the BackColor of a button to another color by using.... Me.Button.BackColor = Color.Yellow At a later point I w...more >>

Events raised when table data changed SQL 2005, VB.NET 2005
Posted by Doan Nguyen at 5/29/2007 11:15:00 PM
My application is written in VB.NET 2005 to display a table of a SQL 2005 in a datagrid. I want to be notified or capture events when table data changed (inserted, deleted, updated by another user) to update the datagrid. Is there any way to do this Thanks Doan Nguyen...more >>

Format() method
Posted by Kannan at 5/29/2007 10:42:00 PM
hi, I would like to add $ symbol in numeric amount. For that I have used Microsoft.VisualBasic.Strings.Format(strAmount, "$0.00"). But it seems to me that I am using VisualBasic name space and my manager wants to use .Net name space function instead of VisualBasic. Is there is any functi...more >>


DevelopmentNow Blog