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 > february 2008

Filter by week: 1 2 3 4

how to declare a button
Posted by Tony WONG at 2/6/2008 1:18:13 PM
i write the following program to detect workstation ON or OFF but i do not know how to paste the parameter from Timer1_Tick to pingwork it comes to error in these lines -- WorkName Private Sub pingwork(ByVal WorkIP, ByVal WorkName) Dim WorkName As New Button Could you teach me...more >>


DefaultValue attribute for a property with an enum type
Posted by Johnny Jörgensen at 2/6/2008 12:22:27 PM
Does anybody know how to correctly specify the defaultvalue attribute for a property whose type is an enum. Example: Public Enum TestValues Value1=1 Value2=2 End Enum <DefaultValue(TestValues.Value1)> _ Public Property TestValue() As TestValues 'Get and set here End Propert...more >>

Using Object Oriented Programming to revolutionize physics?
Posted by Michael Helland at 2/6/2008 12:55:16 AM
Hello everyone, I've got an abstract idea for ya. It sort of follows some of the ideas that Leibniz had: http://en.wikipedia.org/wiki/Leibniz#Information_technology Imagine using an object in a program to depict some fundamental substance. The fundamental substance isn't an atom, or ...more >>

Encoding E-Mail - System.Net vs System.Web
Posted by Ed Bitzer at 2/5/2008 8:56:51 PM
Do I have any control of the encoding used to send plain text messages. Using System.Net.Mail the source shows the Content-Transfer-Encoding as quoted-printable; Using System.Web.Mail the source shows the Content-Transfer-Encoding as 7bit. A pdf attachment is encoded with base64 for both. ...more >>

Locating record on form by key
Posted by John at 2/5/2008 6:35:22 PM
Hi I have a winform db app that I have created by dragging fields on the form i.e. code has been generated by vs2008. How can I locate a record on the form by the record id? Many Thanks Regards ...more >>

How to convert FILE:///<PATH> to just <PATH>, using built-in classes.
Posted by Andrew Backer at 2/5/2008 6:03:27 PM
I have a few file:///c:/windows/somewhere style uris that I need to convert to the actual physical path. I am hoping there is a built in way to handle this. I know I can do some text replacing and get the path, at least in this case, but I'd rather not do that if there is something that ...more >>

Object scope issue...
Posted by Brad Pears at 2/5/2008 5:11:19 PM
I just have a question about how objects should be used in situations where you want to preserve an object's state while performing some particular function. In my vb.net 2005 app, a user enters data and then clicks a "Save" command button to save the row. If the user simply changes existing...more >>

Outlook 2003 primary interop advise
Posted by John at 2/5/2008 3:19:52 PM
Hi I need to develop for Outlook 2003 and upwards in my app. 1. If I develop for OL2003 would it be compatible (as far as email sending) with later OL versions? 2. I am familiar with OL programming in VB6/VBA but unfamiliar with how to use OL2003 Interop Assemblies. Is there a link that...more >>



double-click file & open in existing instance of an application
Posted by Terry Olsen at 2/5/2008 3:17:59 PM
I'd like to know how, when the user double-clicks a document to open it, to make the already-running instance of my application open the file. I don't want a new instance of my application to open. I've read about the Singleton pattern, but am not sure if that would work in this case. Hopi...more >>

Wizard control advise
Posted by John at 2/5/2008 3:12:06 PM
Hi I am looking for a versatile wizard control to make some of the tasks easy for my app's users. I need advise on which is a good one. I am currently looking at Actipro Wizard - Windows Forms .NET Control http://www.actiprosoftware.com/Products/DotNet/WindowsForms/Wizard/Default.aspx. Ar...more >>

Using values in non-databound listboxes
Posted by Scott McNair at 2/5/2008 1:50:49 PM
Hi, I have two listboxes (we'll call them LB1 and LB2). LB1 and LB2 are both populated from data, with the valuemember bound to the ID, and the displaymember bound to the data's text. I would like to be able to move the items back and forth between LB1 and LB2 by using "<-" and "->" b...more >>

Adding to a collection in Net vs VB6 ...
Posted by Mike at 2/5/2008 1:19:21 PM
Checking whether an item exists in a collection before adding it ... (Key is always a string and in this case is the value as well) As Net has a Contains method ... is the following a safe alternative to the VB6 On Error Resume Next? If Not colDs.Contains(sKey) Then colIDs.Add(sK...more >>

Is Microsoft only allowed to play in the sandbox too ?
Posted by Vic Ceccato at 2/5/2008 1:00:11 PM
VB6 let me do a simple thing... .... create an ActiveX Document and host it in a WebBrowser Control with 2-way communication enabled to the parent form. (ie. put a webbrowser control on a form and browse an activex doc (*.vbd) and call public functions in the doc to pass data) After migra...more >>

.net framework 1.1 application takes very long time running on VISTA
Posted by snow at 2/5/2008 10:55:47 AM
Hi All, I have a VB.NET program which is developed with VS .NET 2003. This program works very good on XP computer, but it runs very slow on VISTA. How to make this .net framwork 1.1 application run faster on VISTA? what cause it run so slow on VISTA? Thanks!!!...more >>

rounding error
Posted by Steve Lloyd at 2/5/2008 9:59:47 AM
Hi, Can anyone please explain this rounding error on a windows forms project. I take an input and need to convert from a percentage to a decimal so i do: dim result as double = cdbl(textbox.text) / 100 when 9.85 is entered into the text box "result" is calcualted as 0.09849999999999999. ...more >>

Adding a right-click context menu entry to Window Titlebar
Posted by SupportAV at 2/5/2008 9:37:53 AM
I want to add an entry to the context menu of every window's titlebar. I don't think the menu is technically a context menu, but more like a shell menu. The closest I've come is some vague C++ code, but it was supposedly unreliable in all cases. I need to be able to create a hook in such a ...more >>

Pressing an "external" button
Posted by Thijs at 2/5/2008 5:47:17 AM
Hello, I=B4ve got a question regarding controlling an external app. I=B4m writing a vb.NET app that, at some point, needs to push a button in an external app. This external app has no API whatsoever. Is there a way to do this? I guess I have to raise a ButtonX_click event in the other app, bu...more >>

Sharing Global stuctures between VB.net and C++.net or C#.Net
Posted by Islay Rodriguez Jr. at 2/5/2008 5:17:00 AM
How do you share glogal data stuctures between VB.net and C++ or C# ? Thanks, Islay -- Islay...more >>

Prevent change or edit data using bindingsource
Posted by sennopati at 2/5/2008 4:48:52 AM
Hello there... I generate text box by dragging datasources definition into my form. Till now i don't have idea how to protect user editing data after call Fill function to fill dataset object?? Here are the statement: Dim iRow As Integer iRow = DaEntity.Fill(DsEntity1) I...more >>

XmlSerializer not serializing Booleans or Integers?
Posted by SiJP at 2/5/2008 4:43:05 AM
Hi, My vb.net project sends an Input object to a webservice and retrieves a Results object. The webservice is maintained by a third party, and is pretty huge. I am using the following procedure to serialize both the input and result objects to Xml: Public Function Serialize(Of T)(B...more >>

detecting other a window
Posted by shawrie at 2/5/2008 1:43:56 AM
Hi i am currently having problems automating our fax software. Basically when faxing a html document the print dialog window comes up. Microsoft has told me this cant be supressed as it is a secruity function. Is there anyway from with in VB i can check what windows/ apps are running ( so i ...more >>

Accessing data adapter in a dataset
Posted by John at 2/5/2008 1:05:45 AM
Hi I am trying to access the data adapter for a table in a dataset as below; MyDataSet.MyTable.Clear() MyDataSet.MyTableTableAdapter.Fill(MyDataSet.MyTable) But I am getting a 'MyDataSet.MyTableTableAdapter' is not a member of 'MyDataSet'. What is the problem and how can I access the und...more >>

.NET embeddable web server ???
Posted by USCode at 2/4/2008 9:28:25 PM
Anyone care to recommend a .NET web server that I can embed in my VB.NET application? Requirements: - Must be start/stoppable from the application - Must support HTTPS - Doesn't require "installation", maybe even just a DLL or exe that I can distribute with my application Thanks!...more >>

Interop Assemblies for Outlook 2000
Posted by John at 2/4/2008 6:51:38 PM
Hi I am aware that there are no Primary Interop Assemblies for Outlook 2000 but I would like to aim for the lowest common denominator for maximum compatibility. I can not use late binding as I am using With Events. I am also slightly tied from creating outlook 2000 assemblies myself as I am...more >>

Vb.net and ASP.
Posted by tclancey at 2/4/2008 6:47:00 PM
Hi All. I've just started on the frist web project, using vb.net 2005 to create the ASP required for the database connection to a web server. While the test application works fine in the Dev Env, I can't seem to find any files that I can actually copy over to the IIS server, can anyone tel...more >>

How to implement polymorphism in inherited function's argument
Posted by kenneth.choe@gmail.com at 2/4/2008 5:23:58 PM
(Any help would be very much appreciated.) I have a base class QueryBase, to implement generalization. MustInherit Class QueryBase Public MustOverride Function GetData(ByVal dataSetType As DataSetTypeBase) As DataSet End Class Enum DataSetTypeBase As Integer IdentifierOnly = 1...more >>

Instance object directly to disk not to memory
Posted by thomas.w@live.com.au at 2/4/2008 2:49:01 PM
Hi, Is it possible to create an instance of an obect and directly assign it to disk and not to memory. e.g 'The code below creates a string array and loads it with 100 string elements. Dim o(100) As String For i As Integer = 0 To 99 o(i) = "String No:" & i Next '...more >>

get Quarter value for specific date
Posted by martin1 at 2/4/2008 2:24:03 PM
All, I try to get specific date's quarter value, for eaxmple quarter value is 1 for 02/04/2008, anyone can help this out? Thanks Martin...more >>

showing code in vb2005
Posted by Web Search Store at 2/4/2008 2:01:45 PM
Hello, Just started with vb2005. In the old vb6, you could click on a button, and it would bring you right to the code for that button. In this new one, it takes you to some code, but doesn't seem to give you a blank template for the button on which to work. Or for existing buttons, it...more >>

ThreadPriority
Posted by Mobileboy36 at 2/4/2008 11:40:50 AM
Hello group, How can I specify the threadpriority in a string (comming from a configfile) without using a structure like the following (To convert a string to a type, you can use the activator, is that also the solution for my question) ? Select Case strThreadPriority Ca...more >>

if database table changes
Posted by Joe C. at 2/4/2008 11:28:20 AM
hello all, thanks for reading. i am trying to find a better way to keep track of changes in a ms sql database table. we have a ticketing system in the office, and a small app was written to display a count of all outstanding tickets. this is achieved by sending a "select count(rowName) fr...more >>

Amount To Words
Posted by jorge at 2/4/2008 11:14:23 AM
I know this is old and I am sorry to ask but since the company block the access to the port 80 we have only newsgroup access (witch still is very good!) simple question I need a procedure or function that return me a amount in words and accept an amount value; like the one that we use for wri...more >>

When that code is executed
Posted by Marc R. at 2/4/2008 10:58:01 AM
Hello, I have a function "DoSomething" that it is called from the constructor and also from the code like in a click event. Is there a way to know, from my DoSomething function, who has call this function? ex.: Sub DoSomething If Call = "New" then 'I am from Sub New Else 'I...more >>

Regex to remove a letter after a decimal number
Posted by Smokey Grindel at 2/4/2008 9:05:48 AM
I have an app that builds where clauses (its 3rd party) and for some reason it adds an m after decimal numbers... so I get results like this [NumberItem] = 45.1234m And [OtherCriteria] Like '123%' And [LastCriteria] = '45.1234m' well that 45.1234 should not have an m there... sure this wor...more >>

mdi form always starts maximised
Posted by androoo at 2/4/2008 7:28:22 AM
How can i avoid this ? i tried setting the size properties but the damn thing completely ignores it.. anyone know how ? cheers andy...more >>

Flexgrid and CellPicture
Posted by sweevil at 2/4/2008 6:25:47 AM
I'm converting a VB6 project to .Net2005. One of the items encountered was setting the cellpicture onto a flexgrid from an imagelist. The image background doesn't appear to render correctly. I put the same image (icon) into the flexgrid and onto a command button. The icon in the flexgrid has a...more >>

"Invalid attempt to read when no data is present" -- VB2005 / SQL 2005
Posted by Andrew at 2/4/2008 5:37:29 AM
Hi I am trying to connect to an instance of SQL Server 2005 (Express) from a project in VB2005. Forgive my ignorance - I know very little of SQL 2005 security (and not that much more of VB2005!) but I wonder if anyone can help. I am getting the message "Invalid attempt to read when no...more >>

Prevent Form close
Posted by sennopati at 2/4/2008 5:21:19 AM
Dear, I have looping statement like this: For Each frmChild As Form In Me.MdiChildren 'Ada validasi untuk periksa status data(sudah disimpan atau belum) frmChild.Close() frmChild = Nothing Next in each form child (frmch...more >>

"The underlying connection was closed: The request was canceled." on GetResponseStream
Posted by philip.halfpenny@gmail.com at 2/4/2008 2:44:33 AM
Hi All, I have an application (windows service) that sends out multiple HTTPWebRequests asynchronously. I am getting a problem intermittently where I receive the error "The underlying connection was closed: The request was canceled." on GetResponseStream(). Although the problem is intermitten...more >>

Refilling dataset without changing context
Posted by John at 2/4/2008 1:53:48 AM
Hi I have a winform db app that is "bound" to a dataset...via data adpater, binding source and all that. As this is a multi-user app I need to refill dataset from time to time so the newest data is available for user to view. My problem is that I a) do not wish the app to become unrespon...more >>

Access to vb.net converter
Posted by John at 2/3/2008 2:37:09 AM
Hi Has any one checked this access to vb.net converter? http://www.microtools.us/anetvb7.aspx Any good? Thanks Regards ...more >>

Getting connection information from vs 2008 generated code
Posted by John at 2/3/2008 1:56:02 AM
Hi I have developed a winform db app by dragging fields onto a form in vs 2008 i.e. I have not written code to open db connection myself and instead have let vs 2008 generate that code under the hood automatically. My question is, is there a way to get a handle to the db connection created ...more >>

Exposing sub outside form
Posted by John at 2/3/2008 12:46:54 AM
Hi How can I expose a sub outside a form so it is available globally? Thanks Regards ...more >>

Opening Access db via DAO in vb.net
Posted by John at 2/2/2008 11:52:00 PM
Hi In my vb.net app I am trying to open a db via DAO as below; Imports dao Dim dbSynch As dao.Database dbSynch = DBEngine(0).OpenDatabase("C:\MYDB.MDB") The problem is that on the last line I am getting the error 'DBEngine' is a type and cannot be used as an expression. What am I ...more >>

mdi child
Posted by win at 2/2/2008 4:49:30 PM
How can I set a mdi child form always at the top of the screen and others on the back even the mouse click? Thanks ...more >>

Generated Code Confusion - Structure? Collection Class?
Posted by wildman@noclient.net at 2/2/2008 4:25:55 PM
Looking at an old web application.A popular .net code generation tool was apparently used to generated a Data and/or Business Layer of classes for the ap. For whatever reason, it seems to have generated two VB class per table, one with the table name and the other with the prefix Col (as in c...more >>

Accessing a toolstrip progressbar
Posted by barcrofter at 2/2/2008 2:29:20 PM
Is there any way to get at a toolstrip progress bar by accessing toolstrip.items() that contain the progressbar. Ive tried this and it seems that there are only references to text or graphics. e.g. this works: StatusStrip.Items("publication").Text = "title stuff" StatusStrip....more >>

Loading an autocomplete combobox with 20,000 names takes time. Need a better solution.
Posted by Peri at 2/2/2008 1:25:44 PM
Dear All, I need to fill a combo box or a test box with arround 20,000 names. It is taking around 3 to 4 seconds to fill a combo box with a help of a dataset and by setting the auto complete properties. This is too long a time. The criteria is to allow the user the select one of the 20,000...more >>

How do I view the Immediate Window?
Posted by Nozza at 2/2/2008 12:58:57 PM
I have looked at help that states "The Immediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging. To display the Immediate wind...more >>

Viewing one routine at a time vs. all routines with dividing lines
Posted by Just_a_fan@home.net at 2/2/2008 12:45:31 PM
After a decade with VB6, viewing each routine by itself, I got used to seeing only one routine at a time. The advantage is that you cannot accidentally scroll out of the routine. VB6 allowed both views, either all at once or routine-by-routine. I cannot find a way to view routine-by-routine ...more >>


DevelopmentNow Blog