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 > march 2004 > threads for wednesday march 3

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

non blocking console read
Posted by Richard Bell at 3/3/2004 11:38:45 PM
Is there a way to do a non-blocking console read in VB.net? Something a bit like the old INKEY$?...more >>


Evaluating Formulas in ASP.NET
Posted by microsoft.private.windows.netserver.setup at 3/3/2004 11:36:53 PM
Hello everyone, I was wondering if anyone knows of a way to evaluate a string function? For example I have a string like "(150/50) +2" and would like to evaluate the result in a ASP.NET webpage. Thanks for any help. ...more >>

Launching EXE from VB.Net application
Posted by John Smith at 3/3/2004 11:13:04 PM
what are all the available technique in VB.Net to launch an executable file ? Thanks, John ...more >>

Calling VBA from .Net
Posted by Jimmy at 3/3/2004 11:04:48 PM
I have a legacy application which can be driven by VBA programming. How to call VBA from VB.Net ? Jimmy ...more >>

SQL Connection timeout while trying to fill a dataset
Posted by rbrown NO[at]SPAM edium.com at 3/3/2004 10:32:26 PM
Hi All.. I am experiencing Timeouts after about 30-40 seconds when trying to fill a dataset from SQL. I have seen a lot of posts mentioning to set the commandtimeout property, but how do you do that on an SQLAdapter? I setting a connection timeout on the SQL Connector, but that didn't help....more >>

NT Service
Posted by 2 at 3/3/2004 9:18:23 PM
Hi, Do the Windows Service projects run under 98? Or are they still classic NT services...? Wondering if the framework may support them under Win98... Ta ...more >>

What meaning is Path & %1 in Registry(Null)
Posted by yxq at 3/3/2004 8:41:35 PM

Getting an out of memory error
Posted by RD at 3/3/2004 7:51:04 PM
I have a VBV.NET application that runs on a timer to do a job at one hour intervals. Basically the sequence is as follows the timer event fires 1- the timer get turned off 2- the code then checks to see if we're just changed hour from when the previous transfer session took place IF yes ...more >>



Master-> Detail-> Detail with datagrids
Posted by solex at 3/3/2004 5:46:33 PM
Hello, I am trying (unsuccessfully) to display a Master-Detail-Detail records. The problem comes in the second detail grid. The first detail grid is displaying correctly but it is not controlling the second grid. Here is some code that I am using to initialize the binding: txtName.DataBi...more >>

A dumb quesion... how to execute an msi file?
Posted by Arturo Toledo at 3/3/2004 5:35:44 PM
I just got it from the net... how can I install it or execute it? Thanks! ...more >>

How to xml serialize arraylist of objects?
Posted by Brad at 3/3/2004 4:58:40 PM
I would like to serialize an arraylist of objects to xml so I can store the xml in a database column. How would I code the serializing and deserializing? Below is a (overly) simple, incomplete example of what I'd want to accomplish. Thanks Brad Example ===============================...more >>

Updating custom control is not reflected in the project
Posted by slavisa NO[at]SPAM msn.com at 3/3/2004 4:11:10 PM
I have created a simple windows custom cotrol that inherits a button. I have it added to the toolbox and I am able to add it to my form successfully. The problem comes when I decide to change a property on my custom control (like the background color). The change is not reflected across my pr...more >>

Is it possible ?
Posted by C# newbie at 3/3/2004 4:05:36 PM
Hi Group, Does anybody know how to grab or choose an item of a web page on a server while you're sending reqeust using vbscript or jscript? thanks ...more >>

Access Crosstab query in VB.NET
Posted by Greg Busby at 3/3/2004 3:56:08 PM
I'm trying to get an Access Crosstab query to fill a VB.NET datagrid. I'm getting an error that states "not a valid file name".. the query runs fine when I run the same SQL in Access. Can a dataAdapter be filled with data from a crosstab query ...more >>

vb prototype
Posted by Eric Clapton at 3/3/2004 3:52:23 PM
Can anyone please help me to build the VB code connect to a SQL 2000 server? If you can give me a prototype, that will be very helpful? Thanks. ...more >>

VB and Crystal Report
Posted by Eric Clapton at 3/3/2004 3:47:53 PM
Hi, How do you put the Crystal Report inside Visual Basic coding? ...more >>

OCX Control in VB.Net Missing Methods
Posted by Elliot M. Rodriguez at 3/3/2004 3:47:13 PM
A 3rd party OCX that I am using in a VB.NET app is missing several properties and methods in Intellisense. I know they are missing because I have the complete API reference for the OCX, and if I use the same OCX in a VB6 standard EXE, the items I want show up. If I try to add them anyway, I get ...more >>

Function pointers in .NET?
Posted by Scott Kilbourn at 3/3/2004 3:43:33 PM
Hi, Can anyone tell me if there's any easy way to set up a function pointer in VB.NET? Thanks ...more >>

accessing ADODB Recordset problem
Posted by spider/ at 3/3/2004 3:30:34 PM
Hello ppl, I have snippet that works fine udner ADODB with VB6, but something wrong with it in Vb.NET. Anyone can help? Recordset1 (ADODB.Recordset) Error: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Error Source: SELECT * FROM Accou...more >>

System.Diagnostics.EventLog on Win9x
Posted by Jeff Molby at 3/3/2004 3:09:40 PM
Does anyone know offhand how the EventLog acts on Win9x? Does it know to create text logs or does it just raise an exception? If anyone has any experience with this, I'd appreciate a brief answer. I don't expect anyone to do my research for me. Thanks! Jeff ...more >>

windows appearance
Posted by Szafranr at 3/3/2004 2:48:51 PM
Hello. How I can detect (in VB code) witch windows style is used (windows classic styles or windows xp styles) Regards Szafranr ...more >>

Releasing Excel From Memory
Posted by Atley at 3/3/2004 2:36:18 PM
I have made an application in VB.net 2003 and in it I create a Excel Workbook with several spreadsheets in it. When the code is finished creating the spreadsheets the workbook is saved to the hard drive and I call: xlbook.Application.Quit but if I go to my Task Manager and look at Active Proce...more >>

Remoting a Windows Service Application
Posted by Stephajn Craig at 3/3/2004 2:20:49 PM
Is it possible to apply remoting techniques to a Windows Service Application? I have an application that I'm building that is primarily ASP.NET based. However, there are some functions that I want to have run all the time in the background. So I am implementing a Windows service to accomplish...more >>

Forms question
Posted by Zac Maclean at 3/3/2004 2:19:05 PM
I have a .NETCF app that loads a SQLCE database with the main form and displays some info. Actual user input occurs on one of 4 other forms. I need to be able to switch between these forms without forcing the user to return to the main form. And, if I have to close the form I am coming from, I...more >>

I and the listview again
Posted by Daniel Sélen Secches at 3/3/2004 2:18:32 PM
Hi all.... I've a listview whit 6 items and 3 columns just for a exemple, and I've tryed to do this... ;;;;; Private Sub listview1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles listview1.SelectedIndexChanged MsgBox(listview1.SelectedItems.Ite...more >>

how to override IsInputKey(..) function?
Posted by Steve at 3/3/2004 2:15:16 PM
I would like to override the IsInputKey function in order to trap the arrow up/down keys in the Key Events. I understand that arrow keys don't have a char representation and thus, hard to trap. Someone wrote this override for IsInputKey in C# which apparently worked, and I tried to conve...more >>

SendKeys - PostMessage problem
Posted by Paul at 3/3/2004 2:05:08 PM
Hi all. Probably a quick one, I'm using PostMessage to send keys to an applicatoin but how do I convert the key string to a long values so that I can pass this to the wParam. The definition is below Private Declare Auto Function PostMessage Lib "user32" ( _ ByVal hWnd As IntPtr, _ ByVal Ms...more >>

Formatting Data within a dataset
Posted by Mike Fellows at 3/3/2004 2:03:34 PM
I have a dataset wich contains 3 columns i wish to format the 3rd column which contains a date field but it shows the date as dd/mm/yyyy 00:00:00 i need to remove the time part of the data (i presuming using some sort of format) any help would be greatly appreciated Mike Fellows ...more >>

Can I add buttons to toolbar at runtime?
Posted by nsteele84 NO[at]SPAM hotmail.com at 3/3/2004 1:58:41 PM
Hi I need to be able to add buttons to a toolbar at runtime. Is this possible? If so if anyone has examples I would appreciate it. Thanks Nick Steele...more >>

Changing Spreadsheet Cell Attributes In VB.Net
Posted by Atley at 3/3/2004 1:31:10 PM
I have been creating spreadsheets in VB.net 2003 and i can get most everythign perfect, except changing the color of the fonts and the cells, i keep getting exception errors when i try to use: xlRange.font.background = color.lightgray I can't seem to find any documentation on this, does anyon...more >>

about SQL statement in vb
Posted by ugurceng at 3/3/2004 1:14:54 PM
Hello, There is problem with my sql query which is the following : dim comm as new oledbcommand(" select * from table_name where mem_id="' & gelen & '" ") gelen and mem_id variable is integer. is the defination wrong ? When I change the query like that ( " select * from table_name where m...more >>

When to use multiple projects in a solution?
Posted by Dean Slindee at 3/3/2004 12:30:13 PM
I''m looking for some advice or experience from others before proceeding with a very large VB.NET project. The project will be a suite of modules (like accounts receiveable, payable, client master, appointment scheduling, etc). Each module will need to launch certain forms in the other module...more >>

timout error on server running vb .net routine
Posted by Bernie Yaeger at 3/3/2004 12:28:57 PM
I'm getting the following error - not always, only randomly - when I run a certain routine (the routine is a simple executenonquery and it appears to complete despite the message) against sql server 2000: "timout expired. The timeout period elapsed prior to completion of the operation or the ...more >>

http://dotnet.leadit.be/extendeddatagrid/
Posted by Adam Nowotny at 3/3/2004 12:24:45 PM
http://dotnet.leadit.be/extendeddatagrid/ -- Adam Nowotny JID: daft@chrome.pl...more >>

Is there a Menu item maximum count?
Posted by Dean Slindee at 3/3/2004 12:21:38 PM
Is there a maximum number of menu items that can be added to a single form? If there is no maximum, that would help eliminate one possible source of the problem. I had six main menu items in the menu bar. After adding about 500 submenu items to the first four main menu items, the last two men...more >>

pusing debug info to a log file
Posted by Brian Henry at 3/3/2004 12:09:59 PM
Is there an easy way to make a copy of all the debug.writeline stuff go to a log file also? thanks! ...more >>

BUG: Periods removed from img and a tags in msg body
Posted by John Buell at 3/3/2004 11:56:05 AM
When I generate an html email to send via SmtpMail, it will (apparently) randomly remove a period in the filename for some image and anchor tags, but not all For example, in the email body, i may have an image <img border="0" src="http://servername/filename.gif" But it will be received in Outloo...more >>

does anyone have an example of the onpaint method of a datagrid ?
Posted by neil rowe at 3/3/2004 11:43:28 AM
Hi all Does anyone have an example or know of an example for the onpaint method on a datagrid. I what to change the row line colour depending on a value in one of the cells, and I believe the onpaint method is the way to do it. Regards Neil ...more >>

dropdownlist initial value
Posted by DC Gringo at 3/3/2004 11:37:18 AM
I have a dropdownlist that is bound to a recordset. The default selected item has turned out to be the first record in my table. I need a row that has value = 0 and text showing "--ALL". How can I do this? <asp:dropdownlist id="Provinces" runat="server" Font-Size="8pt" Width="100px"></asp...more >>

Converting file path.
Posted by Tim Marsden at 3/3/2004 10:51:33 AM
Hi, Given a file Path, for example "C:\Data\Samples". How do I convert this to "\\Server\Share\Data\Samples" The original "C:" , "F:" etc may be local or a mapped network drive. I am trying to ensure the path (stored as sting in database) is valid from any machine, regardless of the drive ma...more >>

Ignoring Validation Events
Posted by CJ Taylor at 3/3/2004 9:43:40 AM
Another quesiton, I have a form, with a control on it that has a handler for control.validated event. Now, if that control has focus, and I click the close button the validation event fires.. So I think to myself, how to tell this, so I add a private property on the form called IsClosing...more >>

Cannot create ASP.NET Web Application
Posted by Kevin L at 3/3/2004 9:35:28 AM
I have XP Pro and IIS is installed. I am trying to create a new (and first) ASP.NET Web Application. After choosing New project in IDE and naming it, I click OK and receive the following message: The Web server reported the following error when attempting to create or open the Web project l...more >>

Control.Location
Posted by CJ Taylor at 3/3/2004 9:04:22 AM
Alright found a bug in the framework I think... Someone try this... Build 2 forms. In form one, add a button that will open form 2. so Public Class Form1 inherits System.Windows.Forms.Form ... private sub onButtonClick (sender as object, e as system.eventargs) handles but...more >>

determine which key is pressed in control?
Posted by Steve at 3/3/2004 9:00:17 AM
Hi, I want to determine which key was pressed in a control, like a datagrid. I see that in the currentcellchanged event of a datagrid I can capture keystroke events. I have tried someting like the following: Dim ky As New KeyPressEventArgs(Convert.ToChar(27)) but this sets ky to the...more >>

Open Excel doc from vb.net
Posted by Gary at 3/3/2004 6:16:09 AM
How can I open an Excel Document from vb.net Thank Gary...more >>

Deleting multiple rows from an SQL Table
Posted by rbrown NO[at]SPAM edium.com at 3/3/2004 3:06:04 AM
Hi All. I have a routine that checks a SQL Table for all records 3 months prior to a predetermined date, then I insert them into an Archive DB then delete those records from the original table. When I do a "select" for the records, I load them into a dataset, use an "insert" statement to in...more >>


DevelopmentNow Blog