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 > april 2004 > threads for monday april 5

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

Closing events ?
Posted by HANG LAM at 4/5/2004 11:48:35 PM
hi, How do I capture the closing events coming from the 'X' icon in the top-right corner of a form and the Form.Close() command? I want to be able to differentiate between the Closing Event coming from the 'X' icon in the top-right corner of a form and the closing event coming from the For...more >>


multiple formats on the clipboard
Posted by fred at 4/5/2004 11:45:43 PM
I am trying to put a FileDrop format and a Text format dataobject onto the clipboard so that they are both available. I seem to be able to do one or the other but when I try to put both on only the last entry is available on the clipboard. Dim FileDataObject As New DataObject Dim TextDataObje...more >>

Strict On
Posted by Peter Osawa at 4/5/2004 9:04:11 PM
Hi, I'm trying to retreive outlook contact info with the phone number... I code this with Option Strict On: Dim myApp As New Outlook.Application Dim contact As Outlook.ContactItem Dim espace As Outlook.NameSpace Dim contacts As Outlook.MAPIFolder myApp = New Outlook.Application espace =...more >>

reference to DLL
Posted by Julia Sats at 4/5/2004 7:14:14 PM
Hi, I create EXE file. My application reference to the some DLL files that not regestered in GAC. I can copy that DLL in my application folder and the application work fine. But the same DLL have to be used by other applications. How I can create configuration file for referencing the DLL and...more >>

SQL Server Connection Error
Posted by Trent at 4/5/2004 6:41:02 PM
Hello to all I am trying through VB.Net code to connect to a "System.Data.SqlClient.SqlConnecton" and receive the following error upon Sql1.Open( "Unable to connect to a trusted sql server connection Any thoughts? I am using BackOffice SQL Server Test Platform....more >>

Regular Expression questions
Posted by Derrick at 4/5/2004 6:10:42 PM
Hi I am new to using regular expressions in VB.NET, and need a bit of help. I am trying to parse a string that looks like this: ~datastart some variable numbers, characters and spaces of unknown length~ to get this ~datastart~ I tried this: strWorkingData = Regex.Replace(strWorkingData,...more >>

Catching Events
Posted by Mike at 4/5/2004 6:10:15 PM
Hi, Can I raise an event in a C++ DLL (v6) and catch it in a VB/C# = application? Thanks Mike...more >>

How to define iShellFolder in VB.NET?
Posted by Nicola Garone at 4/5/2004 5:51:42 PM
Hi all I'm using VB.net. I need to define an object of type iShellFolder (since I have to call ShGetDesktopfolder API in Shell32.dll). I've created interop.Shell32.dll adding a reference to Shell32.dll, but I can't find any definition of iShellFolder under new Shell32 namespace. Must I d...more >>



DTS Event Handlers
Posted by Troy at 4/5/2004 5:26:04 PM
I'm having fits trying to listen in on the DTS Events I'm calling the DTS package fine but can't get the OnProgress, OnStart,... for the package any code or links would be greatly appreciated thx in advance troy...more >>

Internet Capability for Application
Posted by Brad Markisohn at 4/5/2004 5:03:51 PM
I have a PC connected to a network that has an application to control complex hardware. The user wants a remote user to be able to do the following: - Have access to configuration parameters via Web Pages served up by the PC attached to the hardware and - be able to retrieve 8 to 10 mbyte data...more >>

App with lot of forms
Posted by Peter Osawa at 4/5/2004 5:01:50 PM
Hi, I'm going to start a customized invoicing app and I would like to do it with vb.net, so I'm trying to finde some 'big' app made with vb.net to test yield with several forms opened... But I can't find apps made with VB.net... I don't want source... Even a shareware app will do the job, I...more >>

Listview Scrolling
Posted by Juan Romero at 4/5/2004 4:33:13 PM
Hi guys, Does anyone know how to catch a listview scroll event? There are some things I need to refresh on the form, so I want to know when the user scrolls the listview control. Another even more useful thing would be to catch a paint event. Does anyone know how? Thanks! ...more >>

Read the values from the table
Posted by simon at 4/5/2004 4:03:41 PM
I have dataSet and first table in dataSet has data about advertisments. Now I am looking for each day and for each hour in defined week, if there is any advertisment and if true then write it on the client into the appropriate place. How can I do that? Create view for each hour and day a...more >>

System.Diagnostics.Process.Start.....
Posted by Robin Tucker at 4/5/2004 3:31:15 PM
I'm having problems with System.Diag here. When I double click the item (on my desktop), it launches in Windows Fax and Picture Viewer, but when I try to launch it from my VB program, I get the following exception: "A first chance exception of type 'System.ComponentModel.Win32Exception' occ...more >>

Difference between Page_Load and Page_Init?
Posted by RajW at 4/5/2004 3:24:41 PM
In ASP.NET VB, what is the difference between "Page_Load" and "Page_Init"? Thanks, /*Raj*/ ...more >>

Expert help needed
Posted by Jake at 4/5/2004 3:16:44 PM
Hello, We have some code (see below) that has been working intermittently and I was wondering if someone had a better approach or an idea on why we get these errors. This part of code basically gets a file and uploads it from a cable or DSL connection to our t1 line to a server. The fi...more >>

Using GetBytes with varbinary fields
Posted by Dan at 4/5/2004 2:41:35 PM
I'm storing a byte array in a varbinary field in a SQL Server 2000 database, eg: dim b() as byte = new byte() {1,2,3,4} but when I attempt to retrieve the byte array (using OdbcDataReader.GetBytes), my array contains different information than what is stored. When I query the ...more >>

Call a property using a string
Posted by Chad Miller at 4/5/2004 2:38:16 PM
I have a class with 50 properties sp01 .. sp50 is there a way to call a property using a string? ex. o.sp & "01" Chad ...more >>

runtime script execution
Posted by Jack at 4/5/2004 2:21:11 PM
I want to be able to embed/evaluate script blocks inside a string. For example: "This is a <#iif(PassedInValues("x")=1, "good", "bad")#> question. <#iif(PassInValues("x")=1, "Thanks for asking it.", "Why did you ask it?")#>" Each block (between <# #>) needs to be evaluated. The script wou...more >>

NEED HELP PLEEEAAAAASSSEEEE ASAP
Posted by Will at 4/5/2004 2:21:10 PM
hey guys, here is the problem ... i try to print from one printer and its ok (using the driver) .. i try to print from another printer also using the driver and i get the error ...'The data area passed to a system call is too small' which i guess means that no data was sent to the printer .. the qu...more >>

activeX tlb
Posted by Dave at 4/5/2004 2:16:46 PM
Due to limitations in Ms Access, I have created a form in vb.net with various buttons etc. Once all this is said and done, all i want to do is to have this form fired up in ms access some how. What i have tried, and got 'working' is compiling the vb.net program to a tlb file, by clicking on th...more >>

Listboxes
Posted by Bill English at 4/5/2004 2:16:03 PM
Okay, I have on the left of my form, a listbox. I specified the items to be test, test2, and test3. Now when I click one, I want the textbox, on the right, to show a stored string, such as "You clicked Test2. If that cannot be done, how about when you select an item, you click a button, called Sh...more >>

Creating Applications
Posted by Anna at 4/5/2004 1:51:04 PM
How do you create an application (.exe) from a VB project with VB.NET?...more >>

"Service" vs. "Program"?
Posted by RDI at 4/5/2004 1:23:11 PM
I'm in the process of wiritng a custom AutoResponder that will run on a spare PC. If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than doing it as a Service? Is it worth the extra effort to do it as...more >>

vb path registy key
Posted by Kasumo Morris at 4/5/2004 1:22:17 PM
Hello All, I would like to know which registry key holds visual basic install path. On my development workstation my visual basic is installed on the d drive; on our test machine, the e drive. I would very much like to read this value from the registry. Thanks in advance ...more >>

Microsoft Web Browser COM control in VB .Net
Posted by BobAchgill at 4/5/2004 1:06:18 PM
Has anyone had success with using this Com control? When I add it into my tool box and drop it into my form it says in the properties that the Document and LocationURL are read only. (they are grayed out) I am successful to get Media Play Com to work alright in the form but can not ge...more >>

help with Form1 program - drawing rectangle and background colouring on mousemove
Posted by colinandkaren NO[at]SPAM lycos.co.uk at 4/5/2004 1:02:25 PM
Hi, this is a really simple question I have been banging my head on a brick wall over. The program below changes the background colour of a form depending on whether the cursor is inside a rectangle drawn on the form or not. It works perfectly as shown below. But it won't work if I change the...more >>

Writing a service Q: how to get the parameter from...
Posted by Roger Twomey at 4/5/2004 12:11:30 PM
When I start my service I want to pick up a parameter from Start Parameters box (in the service control screen). I cannot find the proper method to get this string. It has to be easy but I cannot find the command(s). Thanks. ...more >>

deploying .net framework
Posted by MSN at 4/5/2004 12:10:04 PM
VB .net windows app. When I create an application for deployment does the user need the .net framework on thier computer? When I create an .exe is the .net framework included in it? Will my application run on win 95 win 98? thanks ...more >>

Web link in windows app
Posted by MSN at 4/5/2004 11:53:36 AM
VS, VB .net, window App How can I create a web link in a Windows base application? Will it launch the users default browser? How can I launch a new instance of the browser for each link, instead of using one instance which would lose the site that the user had in that browser? Thanks ...more >>

Multi Database application
Posted by Vittorio Pavesi at 4/5/2004 11:09:19 AM
Hello, I'm wondering what are the usual problems developing multi database application (e.g. Access, SQL, Oracle, MySQL..) I only need to log informations on 3/4 tables (I don't use stored proceure, view..). Should I use ODBC ? Regards Vittorio ...more >>

VB6 / VC++
Posted by Mike at 4/5/2004 10:58:10 AM
Hi, I would like to write a C++ component that is able to call methods of a = VB6 application/library. Also, the VB6 should also be able to call = methods in the same C++ component. I am good in VB6, but have very = little in C++. Does anyone have a link to some documentation/samples = that...more >>

Close window
Posted by ruca at 4/5/2004 10:54:11 AM
Hi, I have a popup (child) window that it is called by a button in my main (parent) window. How can I set the child window for not closing before the parent window? What do I have to do? -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to...more >>

Sending Email from a windows service
Posted by Roger Twomey at 4/5/2004 10:52:54 AM
I am trying to write a service that will send an email when certain events occur. It would seem that I should use the System.Web.Mail to send SMTP mail, however when I try to import System.Web.Mail into my Service it shows as an error in my Visual Studio. (Namespace or type 'Mail' for the Imp...more >>

COM Interop
Posted by Kenneth Dion at 4/5/2004 10:46:47 AM
Hello, I am very new to .NET Interop functionality. It is working great on my machine but not on others. What is involved in distributing Interop DLL's? Thanks, Kenny. ...more >>

Controls on Splitter Control
Posted by Carl Gilbert at 4/5/2004 10:35:36 AM
Hi Is it possible to position a button for instance on a splitter control so when the splitter is moved, the button stays positioned over the splitter? Regards, Carl. ...more >>

Sourcesafe automation in VB.Net
Posted by Chris Dunaway at 4/5/2004 10:25:42 AM
I am trying to call the Get method on the VSSItem object for a specific file, but I keep getting an COMException that includes: Additional information: This command only works on projects. According to the docs: "The Get method may be called against both file and project objects. When ca...more >>

Ctype fire default contructor?
Posted by Craig Buchanan at 4/5/2004 10:15:23 AM
If I am trying to cast an object to one of its decendants, will the decendants' default constructor (New sub) fire? Thanks, Craig ...more >>

Data Adapter Wizard
Posted by Parveen at 4/5/2004 10:01:08 AM
I want the data adapter wizard to automatically generate update, insert, and delete statements from a given select statement if the select statement is a multiple table query. I know this works with single table select statements. Does anyone know how to make this possible with multiple table s...more >>

Object Hierarchy: HowTo
Posted by tinman at 4/5/2004 9:25:56 AM
Hi... I would like to achive the following object model in VB.NET.....not too sure how to achieve this but in VB6 I can declare the Project as PublicNotCreatable so as to prevent external instancing of the Project class.... Example: Employee | | - - - Projects (this...more >>

Handling WM_SIZING message in WndProc
Posted by Lance at 4/5/2004 9:21:05 AM
I need to handle the WM_SIZING message in the Form.WndProc method in order to perform custom logic while the user is resizing a form. But, I have two questions: 1. The help for WM_SIZING states, "An application should return TRUE if it processes this message." How do you do this? Is it by sett...more >>

vb.net comments to developer documentation
Posted by Michael A. Angelo at 4/5/2004 8:36:04 AM
I see that a few people on this board are recommending VB Commenter. It works well as far as getting a comment structure in my code, but what about generating the proper code docs? I've tried NDoc. It seems to generate some, but not all of my documentation For example, it is not generating the com...more >>

class factory pattern question
Posted by Craig Buchanan at 4/5/2004 8:11:49 AM
I've seen design patterns for class factories that work well to create (fetch) objects, but I haven't seen anything about how to persist the class' data when it has changed. Is this done thru the factory? What about security? I'm assuming that the factory should enforce security. Has anyone...more >>

Scanning using WIA question
Posted by Art DeBuigny at 4/5/2004 7:51:06 AM
Here is my problem I have written a proof of concept using VB.NET and Windows Image Aquisition libraries to operate a scanner, scan an image, and save it to a database (and retrieve of course). I have this up and running However, I am using the CommonDialog object. This does not have any setti...more >>

Problems with authentication/impersonation
Posted by andrew_webby NO[at]SPAM hotmail.com at 4/5/2004 6:13:05 AM
Hi Am having a problem with an app I wrote to test patch delivery. I contact a remote PC, and get it to run a patch which is installed on a server. It works fine if I use psexec for example and I know it's not NTFS/share-level security at fault - it's readable to everyone which is usually eno...more >>

Which to use - Remoting / WebService / Sockets
Posted by Ken Hughes at 4/5/2004 5:31:02 AM
Hi I'm looking for some advice on architecure - apologies if this is the incorrect group.. I'm writing a VB app and it has to pass data to a another server machine (in a different office). There is no permanent connection between the two machines also the server machine does not have a 'public' ...more >>

message box
Posted by eteam at 4/5/2004 3:21:06 AM
we are developing an application in VB.NET in India for an italian client The client need to see the button texts of message boxes in italian language for eg: YES >>> S CANCEL >>> Anulla. etc... What is to be done in the application so that it will change the texts of the buttons in th...more >>

Reg Key Problems
Posted by James Proctor at 4/5/2004 1:45:39 AM
Hi there, Im just looking into distributing my app and playing on with the setup wizard in VS 2003. Im setting up the registry keys that i want the software to use. Up until now ive been using the key: HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AppName And using the GetSettings a...more >>

Pls Help...Error while upgrading to 2003
Posted by Ken at 4/5/2004 1:17:27 AM
I have a project which is running error free in VB.Net 2002 in a live environment. Now I need to upgrade it to 2003. While building the project it is showing the below error. This is happening only for some forms. The others are working fine. Quote : C:\Transactions\BL_SFE.resx Resou...more >>

Collection Question
Posted by WStoreyII at 4/5/2004 1:11:06 AM
I am Making a Collection for categories There will be three fields Category Major And Minor For the Category i need to know what Type it is Expense/income for the major i need to know the cat id and the major id and for the minor the cat and the major id at least i think that is the best...more >>

Use CType to Convert Array
Posted by Jarod_24 at 4/5/2004 1:01:46 AM
Structure myXMLtype Dim Filename As String Dim sql As String End Structure .... Dim obj as New ArrayList ...... return CType(obj.ToArray, myXMLtype) 'This wont work I know that CType() can't be used to convert a Array into a array of another type but is there any other method t...more >>

Copying file to Clipboard
Posted by fred at 4/5/2004 12:17:10 AM
I am trying to copy a file onto the clipboard but I am not having any success. Perhaps someone can help me out. I have the full file name from my application and to put it onto the clipboard I have tried: Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName), True) where...more >>

Creating MenuItems programaticialy
Posted by Ray Cassick (Home) at 4/5/2004 12:04:18 AM
I am in a bit of a bind. I can't believe I cannot figure this out but I have been at it all day and it is just not coming to me. I am building menus on a form based upon an XML file. I have created a class to do this and that part is all working just fine. My problem is the event handler where...more >>


DevelopmentNow Blog