Groups | Blog | Home


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 > august 2004 > threads for tuesday august 17

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

How to set version
Posted by Jeff at 8/17/2004 11:00:23 PM
I've been looking and looking for how to set the version numbers for my visual studio project...where the heck is it? Used to be able to do it from project properties in VB6. I found out how to read the version number, but where to set it? It's probably so obvious that I'm going to feel really...more >>


Automation of Office programs
Posted by William LaMartin at 8/17/2004 10:50:05 PM
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability, where I declare objects as follows: Dim oWordApp As New Microsoft.Office.Interop.Word.Application...more >>

Commandbuilder / updatecommand error
Posted by whaletyr at 8/17/2004 10:24:41 PM
When I try to update an access database using the commandbuilder and updatecommand. I get the An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll error message. The strange thing is that only half of the table's give this error and the other half...more >>

Need Credit Card Processing Solution
Posted by moondaddy at 8/17/2004 9:48:25 PM
I'm building a small POS system which I'm going to license out and need to include credit card processing. I've build eCommerce sites before and custom coded CC processing for verisign, but that was coded specific to the clients needs and account with verisign. For this app I need a generic sol...more >>

How can i loop through mdi child forms? Code please
Posted by edwinah NO[at]SPAM customercare.com.au at 8/17/2004 9:48:20 PM
Hi Everyone, in vb6 i was able to execute the following code and it would close the children is the reverse order they were opened eg the last child opened was the first child to close. in mdiparent i had this code i = Forms.Count - 1 Do Until i = 0 If Forms(i).Name <> "mdiMain" The...more >>

newB ?s on Creating libraries in .NET
Posted by Hari at 8/17/2004 8:20:58 PM
Is it possible to create a .dll Library in VB .NET? If so, can I do it with just vbc.exe, or would I need additional software? Secondly, if I have a compiled file "File1.vb" in a directory, and a file "File2.vb" in a different directory, is it possible to create an object of File1 by importing...more >>

Signing a vb.net class using a post build event macro
Posted by siener NO[at]SPAM gmail.com at 8/17/2004 7:46:43 PM
We use buildit to automatically build all of our solutions every night. In C# we are able to call a batch file for the post build event and sign the assembly for the GAC using our private/public key pair. Now, in VB.net there's no easy way to do this. I saw that you can create a macro that ...more >>

Destinquishing between controls
Posted by jcrouse at 8/17/2004 6:55:13 PM
I have a test app with one button and a context menu. When I click on the button, it adds a label with some properties, one being the assignment of the context menu. If I add 5 buttons then want to delete one I can right click and choose Delete from the context menu. The problems is that I don't ...more >>



simple: Keep ShowDialog Form from closing on AcceptButton
Posted by Wardeaux at 8/17/2004 6:02:51 PM
All, I have login form used with ShowDialog(). I have the AcceptButton property set so that the "Enter" key is mapped. I also need to keep the dialog open when the UserID and PWD are invalid so user can reenter them. How to I prevent the form from closing? MTIA wardeaux ...more >>

WEB REQUEST
Posted by Carl Howarth at 8/17/2004 5:48:02 PM
Hi, I am trying to write a class to interface with a payment gateway (via an XML string). I have managed to get this to work using the VB6 version of code, but would rather like to use the .net webrequest/response techniques. The VB6 style code I am using that works is as follows: Dim xb...more >>

Elipse style fill gradient in a rectangle?
Posted by Adam Maltby at 8/17/2004 5:41:09 PM
Hi does anyone know how to fill a rectangle with an ellipse style fill (ie = so it gives a spotlight effect on a rectange?)=20 I know how to create rectangles, ellipses etc and I can fill the rect with = an oversized ellipse, but given how far over the edge of the view it has = to go, it loses...more >>

doubt...?
Posted by Alejandra Parra at 8/17/2004 5:26:12 PM
Hey!!! I have a question... Is there a custom dialog to make Searchs?, something like a search in Word, Excel, Internet Explorer, etc... ...more >>

Multiple References and Object Instantiation??
Posted by Charles A. Lackman at 8/17/2004 5:19:35 PM
I am working on a application that has many custom made dlls. Actually, for this app each dll is a different form. I am able, with no problem to reference and instantiate them to use their public properties and methods with no problem. But, if one dll is trying to access another dll's propert...more >>

Dataview Rowfilter
Posted by Georg Schmelzer at 8/17/2004 3:21:27 PM
Hi Ng, need some help here. What's wrong with that dataview.rowfilter expression: dtFliste.DefaultView.RowFilter = "Field1 Like '%" & strFV & "%'" & _ " AND Field2 Like '%" & strFS & "%'" & _ " AND Field3 Like '%" & strFT & "%'" & _ " AND Fi...more >>

Reflection question: type name in shared method
Posted by Jeremy at 8/17/2004 3:12:34 PM
Hi all, This is driving me crazy: I am trying to get the name of a child class from a parent class - the catch is that it's in a shared method. Here is what I have so far: Public Class Parent Public Shared Sub Foo() ' I need to get the child name here, but ' since I ca...more >>

report mapping
Posted by Guoqi Zheng at 8/17/2004 3:02:41 PM
Sir, I got a task from my boss to create a report based on a map. The map is the map of the country I live (The Netherlands). The map has many different regions/cities. We have a database table with the information of population of each city. We need to generate a Map with the data of pop...more >>

compiling code
Posted by Hari at 8/17/2004 3:00:07 PM
I was just recently informed by members of this newsgroup as to how to create a GUI application by referencing different .dll files. This works perfectly, since it creates an output .exe file. However, just for future reference, is there a way to compile the code without referencing all of the ....more >>

how to make a random password
Posted by DaveF at 8/17/2004 2:32:00 PM
Is there a way to create unique passwords that are random -- David Fetrow Helixpoint LLC. http://www.helixpoint.com davef@helixpoint.com ...more >>

why doesn't this work?
Posted by Brian Henry at 8/17/2004 2:09:45 PM
I have code like the following set of code... Public Structure ParamaterInformation Public ParameterName As String Public PromptText As String Public DataType As String Public DefaultValue As String End Structure Dim ht As New Hashtable Private Sub Form1_Load(ByVal se...more >>

Master-Detail datagrid[allownew = false]
Posted by Agnes at 8/17/2004 1:52:16 PM
In my one datagrid, there is master - detail relationship. I can set dv.allownew = false, However, as the user click into detail, it can't set to allownew = false. Does anyone know how to solve it ? ...more >>

Julian day does not seem correct.
Posted by Paul at 8/17/2004 1:19:02 PM
Hi, I am getting 217 for the julian day for today, but I think it should be 230. Julian day simply increments each day from the beginning of the year. The system day is tuesday aug 17th, which is correct. Dim myCal As New JulianCalendar Day = myCal.GetDayOfYear(System.DateTime.Today) -- ...more >>

How to get the Exception number
Posted by RSB at 8/17/2004 12:42:28 PM
Hi Every one, i am using the try Catch block.. and the Exception object has a Message Property but i want to Catch the Error Number so that based on the Error number i can display Different error message.... try{ } Catch (Exception ex) { errNum = ex.????? if (errNum == x) { ...more >>

Function/Property 'handy hints'!
Posted by Carl Howarth at 8/17/2004 12:22:58 PM
Hi there, I am currently writing a class and just wondered if it is possible to included hints and tips pertaining to properties and functions for when the final DLL is used by other developers, as Microsoft do with, say, the message box function. I.e when you begin to type msgbox(, a program...more >>

Data grid inserting value using code
Posted by Jim at 8/17/2004 12:07:02 PM
I have a datagrid on a windows form that is filled using a data adapter and dataset created in code. I have mapped columns to the various fields. The user enters new infromation into the grid and then clicks a save button on the toolbar to save the updated or new data. Two questions: 1. How...more >>

Excel File Format of ".CVS"
Posted by a NO[at]SPAM b.c at 8/17/2004 11:58:39 AM
Dear Programmers, Could anyone send me to the right location to find code/example on how to take information from Excel File Format of ".CVS" into VB.Net for data manipulation? TIA ...more >>

Question about Crystal Report
Posted by Ray at 8/17/2004 11:47:50 AM
Hi all, I would like to ask if a workstation does not install .net and crystal report, can it generate the Acrobat after running the exe file from the server? Thanks, Ray ...more >>

Form controls security
Posted by Nikolay Petrov at 8/17/2004 11:45:46 AM
Hi everyone! I am developing app, which should be used by users, which are members of different groups. These users and groups are stored in my SQL database and are custom for my application, they are not Windows users. Every user can be member of many groups. What I need is a some kind of bas...more >>

Using reflection to determine the class & method I'm in?
Posted by Jim Bancroft at 8/17/2004 11:33:20 AM
Hi all, I'm writing an exception handler for one of my VB.Net methods and wondered how best to dynamically put the class and method name in my message string. My code looks like this currently: Catch ex as Exception Dim ex1 As N...more >>

DateTime difference using TimeSpan
Posted by Larry Bird at 8/17/2004 11:23:01 AM
I want to use TimeSpan to determine the differences between two date to include time. My input data is in the following format: 12/25/2004 12:23:00 AM or 01/05/2005 11:59:00 PM How do I get TimeSpan to accept my input? How do I get the difference between two dates using TimeSpan? I w...more >>

BUG?? App Config and form corruption
Posted by Chris Dunaway at 8/17/2004 10:11:04 AM
I was working on a Windows Forms app. The main form had a tab control, a number of tabs with labels and buttons, etc. It is a new project so not much work has been completed yet. I added an app.config file to the project and then added appSettings section to the file as shown below: <?x...more >>

checkbox in datagrid
Posted by Agnes at 8/17/2004 10:10:28 AM
How can I know when will the user [double click of the checkbox in datagrid ??] Thanks a lot ...more >>

Snap to grid functionality???
Posted by SStory at 8/17/2004 10:02:43 AM
I have a picture that I allow the user to move around and would like to offer grid support like VB and other apps so that it will snap to the nearest point. How can I offer grid support so that the image will snap in place on grid points like a commerical app? I am not sure how to implement t...more >>

Capture a snap shot of Webpage
Posted by Shrage H. Smilowitz at 8/17/2004 10:01:53 AM
Can someone guide me to what is involved to take a snap shot of a web page using .Net, i kow there is third party components that allows to do that, but i want to create my own. Shrage ...more >>

Best Practices Class Exceptions
Posted by SStory at 8/17/2004 9:46:57 AM
When I right a class, I am wondering what are the best practices for error handling? Do I try..catch and trap the error and if so what do I do with it? Because most likely the class user will want to know the information in the exception.... That being the case do I just not catch it and let...more >>

Setting default property value for user control
Posted by Brian Henry at 8/17/2004 9:42:38 AM
Hi, I have a user control who's class starts like this Imports System.Drawing Imports System.Drawing.Drawing2D Imports System.ComponentModel <ToolboxBitmap(GetType(Windows.Forms.Panel)), Category("test")> _ Public Class dialogTopBar Inherits System.Windows.Forms.UserControl ...more >>

Dll written in C++ 6.0, will it work in vb.net?
Posted by Aristotelis E. Charalampakis at 8/17/2004 9:34:37 AM
Hello all, I suppose that this question is not uncommon, but I am unable to google the answer. I have written a dll in C++ 6.0 (Math only!) which works perfectly with VB 6.0. Now that I am ready to pass to the .NET era, the question is simple: Will it work? Do I have to make some modificati...more >>

Help file search request
Posted by Brian Henry at 8/17/2004 9:30:19 AM
If i have a text box and want to input a text string into it then use my help files search to look for the inputted text from the application how would i do that? thanks ...more >>

implements interface
Posted by topdawg147 NO[at]SPAM hotmail.com at 8/17/2004 9:28:49 AM
Is there any way to retrieve a list of objects that implement an interface. For example, suppose we have the following: Public Interface ISomething Function SomeFunction() As String End Interface Public Class Foo1 Implements ISomething ... End Class Public Class Foo2 Implemen...more >>

Please, Please help with Grand Totals
Posted by Coleen at 8/17/2004 9:24:37 AM
Hi All :-) Thanks for all of your help Cor :-) I can not get the code you sent me to work in my application. I'm using = an aspx datagrid in a web form. I'm getting the following error message = when I try this code: "Syntax error in aggregate argument: Expecting a single column argumen...more >>

For Each v in Collection
Posted by Michael D. Ober at 8/17/2004 9:18:46 AM
In VB 6, the loop iterator v in the following code must be a variant. dim v as variant dim c as new collection for each v in collection ... next v What is the general translation in VB 7.1 and VB 8 Beta 1? Also, is there an easy way to force "v" to be an early bound variable. In VB 6 t...more >>

Desperately trying to close Excel!!!! Gurus help needed
Posted by Atchoum at 8/17/2004 9:13:22 AM
Hi, (Sorry if this is a repost but I don't see my original post in the newsgroup). I am trying to open Excel, perform certain operations then leave it open so that the user can close it whenever he wants. The problem is that Excel will remain open when I close it manually. After hours of te...more >>

Unable To Open Project
Posted by shane_stewart NO[at]SPAM yahoo.com at 8/17/2004 9:10:20 AM
This may not be the right forum, but I need to start somewhere. I am getting a message box "Unable to Open Project 'My Project'." when I open my project. My project opens and compiles correctly, but this is an annoyance. The problem started when I restored my frmPhrases.resx and frmPhrases....more >>

Updating Database from combobox in datagrid
Posted by wantprivacy NO[at]SPAM hotmail-dot-com.no-spam.invalid at 8/17/2004 8:03:30 AM
Hi, I've been searching this one for two days so thought I give this a shot again. I have two datasets Dataset1 and Dataset2 Dataset1 populates a datagrid and dataset2 populates a combobox within the datagrid. When I try using SqlCommandBuilder it doesn't work since I am using two datase...more >>

Sharing a form over many projects
Posted by dotnetnewbie at 8/17/2004 8:01:03 AM
I have a vb.net form (built specifically for one project) that now needs to be shared over many projects. What should I do with this form so that I can have other projects displaying it when needed (And maintain it easily) ? Thanks ...more >>

Could not find a part of the path "C:\temp\".
Posted by Guoqi Zheng at 8/17/2004 1:49:55 AM
Dear sir, I am trying to save a binary data by below script, however,it always give me an error of "Could not find a part of the path "C:\temp\". " Any idea what I did wrong here? Public Sub SaveAs(ByVal strPath As String) If strPath.EndsWith("\") = False Then strPath += "\" E...more >>

ErrorProvider With DataSet and Textboxes
Posted by Lenster at 8/17/2004 1:27:02 AM
I'm having problems using the errorprovider in VB.NET to automatically display an error icon next to textboxes bound to the same dataset as the errorprovider. The sequence of events is : Build a dataset containing a single table. Bind the textboxes on a windows form to the datatable. Bin...more >>

Is it possible to start/shutdown COM+ programmatically?
Posted by Li Pang at 8/17/2004 1:27:02 AM
Hi, I'd like to know if COM+ can be managed programmatically, i.e., start/shutdown an application. Thanks in advance...more >>

Next not being executed in a For Each statment
Posted by Belee at 8/17/2004 12:57:02 AM
I have the following code and it is not passing through the Next statement: Private Function IsItemAlreadyAdded() As Boolean Dim drMyRow As DataRow With Me For Each drMyRow In .dsTOB.Tables("TempOB").Rows If .acctNumber = drMyRow("AccountNo")...more >>

August MSDN in UK
Posted by John at 8/17/2004 12:42:36 AM
Hi Has anyone received the august MSDN disks in UK? I am waiting to get my vs 2005 beta 1. Thanks Regards ...more >>

Invoke Event
Posted by yxq at 8/17/2004 12:28:45 AM
Hello, The sample code is below ************************************** Private sub invokeEvent() 'Here i want to invoke all the codes(A,B,C) in Timer1_Tick(), how to do? End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ...more >>


DevelopmentNow Blog