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
March 2008
April 2008
all groups > dotnet general > march 2004

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

Event enqueing in PostMessage style
Posted by John Lafrowda at 3/31/2004 9:24:21 PM
Dear all, I'm currently having some trouble with the event mechanisms in the .net framework. What I am looking for is a way to schedule events like it is done with PostMessage in the WinAPI: When I raise an event, the raising code should be continued. The scheduled event should just be called ...more >>


How to reference a control which was added programmingly
Posted by william at 3/31/2004 9:21:08 PM
Hi, everyone After adding a control into a container like form using form.controls.add(myControl), how could I reference it For example dim aControl as new butto me.controls.add(aControl then I want set backcolor of this button, how Thanks william...more >>

App works on one web server, but not the other
Posted by Chris at 3/31/2004 8:20:04 PM
I've written a web application in VB.Net and developed it on my webserver, now I want to deploy it on the production server. Both servers are running the same version of the dotnet framework. I created the virtual web and set the security, copied over the files and the binaries, then tried ...more >>

Activator.CreateInstance question
Posted by sean at 3/31/2004 7:26:08 PM
Hello Is it possible to call Activator.CreateInstance if the type is not compiled into an assembly. For instance if I drop a DLL into the same folder where executable is running, will the executable be able to create a type that is defined in this DLL If not, what is the way to do this -thanks...more >>

stored procedures passing varchar parameters
Posted by tdlogger at 3/31/2004 6:01:07 PM
Help! I’m running ado.net using sql7 with service pack 4. I’m trying to use stored procedures. When I try passing varchar type parameters it comes back with 0 transactions. If I pass int parameters it works fine just not with char parameters. Any suggestions Thx tdlogge ...more >>

Access Is Denied
Posted by Ed at 3/31/2004 4:46:11 PM
I have searched the archives and found several entries that address the problem I'm having, however, the solutions fall short of explaining exactly what to do Like many others, when I attempt to access an Excel file via an ASP.NET page, I get an access is denied error on the line "dim XSL as new E...more >>

Can more than one app use the same config file.
Posted by Peter Rilling at 3/31/2004 2:56:29 PM
Suppose that I write a few small applications that are all included together. They all have similar configuration settings. Can each of these applications use a single config file? If this is not possible, what about defining an entity that each of the config files references? Are entities r...more >>

Auto-Dial modem
Posted by Jim P. at 3/31/2004 2:48:47 PM
I'm writing a server program that will collect up a directory structure and email to me at 2am in the morning. But I only have access to a modem from the Server. This needs to be a quick, dirty & simple program. Considering that .NET doesn't support modems yet, I don't want to use OCX. I'm ...more >>



DataGrid style
Posted by Sébastien at 3/31/2004 2:36:47 PM
How do I apply a style to a DataGrid ? I can add some styles to my DataGrids, but I don't know how to apply one of that styles to my DataGrid. Thank you. ...more >>

DataSets with Business Entities and Data Access Layers
Posted by Ryan Shaw at 3/31/2004 1:46:10 PM
For my application, I stick to a Business entity class and a Data Access Layer class design (DAL For more complex situations I create a custom business entity class which users a DAL class. I also have many other small descriptor tables where I don’t need that level of control Is it proper to ...more >>

Literal Strings
Posted by Gaz at 3/31/2004 1:31:49 PM
Why is there there an 'S' before literal strings in MC++ code. My programs compile with or without it so why include it? Thanks, Gaz. ...more >>

DotNetNuke 2.0 - Procedure or function GetPortalSettings has too many arguments specified
Posted by STS NO[at]SPAM hotmail.com at 3/31/2004 1:21:07 PM
After a clean install of the final release of DNN 2.0, I created a child portal, added a bunch of content, users, groups, tabs, etc. Also added two IFrames under a seperate tab respectively to point to a subfolder of seperate ASP 3.0 pages and another for a seperate ASP.NET project ASPX file. All ...more >>

Loaduserprofile does not load user profile
Posted by Balamurugan KR at 3/31/2004 12:49:36 PM
I am running to an issue where loaduserprofile does not load user profile but returns sucess. I am trying to start a process under different identity. (c:\test.bat is the process to be started which has one command echo %username%) I created token using logonuser duplicatedtoken createenvi...more >>

Help with error message
Posted by Varun at 3/31/2004 12:01:16 PM
Hello I have this error message when i try to open a form My coding falls over on this line.... Me.Button2.Image = CType(resources.GetObject("Button2.Image"), System.Drawing.Bitmap Infact even when i comment out this line it falls over on the next line that refernences an image Here is the...more >>

RegExp different behavior in .NET and VB script?
Posted by GD at 3/31/2004 12:01:11 PM
As an example, in VbScript ".*\Rad.DAT" is considered a valid regular expression, but in VB7 and C# I'm getting following error message parsing ".*\Rad.DAT" - Unrecognized escape sequence \R. Parameter name: .*\Rad.DAT This is happening for any character that do not have an correspondent escape s...more >>

Suspend Threads
Posted by elziko at 3/31/2004 11:42:40 AM
This is a repost from microsoft.public.dotnet.languages.vb but I had no luck there so maybe this is a better place to ask? I'd like to 'pause' a process that has nothing to do with my application. To do this I intend to suspend every thread in the process. So far I have managed to get the Sy...more >>

VSS history on ASP.NET web page
Posted by Dan Williams at 3/31/2004 11:08:22 AM
I'm trying to display the version history and number of a Visual Sourcesafe database on an ASP.NET page and am struggling to overcome the 'The SourceSafe database path <user> does not exist' error. VSS is installed on a different server to our web server, so i'm assuming its a permissions prob...more >>

Where is the dotnet.Crysal newsgroup.
Posted by Geir Holme at 3/31/2004 9:19:26 AM
Hi. I am expriencing lots of issues using Crystall in Visual Studio .NET. I have posted some issues in this community and it is a reproducable problem. Never the less I am guided to the www.businessobjects.com that is really bad support handling. They don't have a clue on how to serve their cust...more >>

How can a windows service stop itself?
Posted by Jeff at 3/31/2004 5:51:06 AM
Hi I am writing a windows service using VB.net. As part of my error handling I want to stop the service if a fatal error occurs. I can not find any information on how to get a windows service to stop itself Does anyone know how to do this Thanks Jef ...more >>

.NET technology equivalent to VB for Application
Posted by Vincent Yu at 3/31/2004 5:16:08 AM
Hi, can anybody point me to get more info for developers on a technology in .NET equivalent to VB for Application that allows an application to expose itself as an object hierarchy to the .NET programming environment Thanks Vincen ...more >>

asp.net, sql 2000, IIS6.0
Posted by Zal at 3/31/2004 12:16:08 AM
hi i hope someone can help me please, i have sql server 2000 installed on SBS2003, i have the client toools of sql server 2000 installed on my local machine. i am working on web developement, and am using IIS6.0 which im really struggling with problem 1. When try to connect to the database via...more >>

How to Select Case base on type
Posted by Gwyn Carwardine at 3/30/2004 7:13:50 PM
Hi, often I want to do different things depending on the type of an object... I end up having to use: Select Case myObj.Gettype.Name Case Gettype(AClass).Name .. process as AClass Case Gettype(AnotherClass).Name .. process as AnotherClass End Select Is there a better way to do...more >>

Sizing a listview's columns
Posted by Gwyn Carwardine at 3/30/2004 6:30:26 PM
I want to display a listview and I want to have it adjust the columns so that the column width is the larger of: * The width required to display the column heading * The width required to display the largest value entry in the column In other words the column is sized such that you can displ...more >>

About tracking mail-send failure
Posted by WEIWEIWEI at 3/30/2004 6:21:11 PM
Hi Al I am using SmtpMail.Send in a .NET(C#) program to send out a email message. How can I (or can I?) track if the mail is not delievered to the recipient successfully in the same program immediately after sending? If I send email to, say, xxxx@yyyy.com(assume a not-existing address), I would ...more >>

escaping double quotes in Regex
Posted by Martin Payne at 3/30/2004 5:56:06 PM
Hi All How do you escape a double quote in a Regex? I am having problems with, what should be, a simple regular expression statement. I have a string like (including leading spaces (but thats not my problem)) web_url("ForEx" and, using the regex Dim RE_WebURLName As Regex = New Regex(" ...more >>

Whidbey Download, Bandwidth cap?
Posted by David Sworder at 3/30/2004 2:51:05 PM
Hi, I'm trying to download the Whidbey preview from MSDN. It's around 2.6GB in size. The computer that I'm using to perform the download is in a data center with access to 10mbps of bandwidth, yet the download only seems to be taking place at around 300kBps... Is this due to a bandwidth ca...more >>

Files getting corrupted in IDE
Posted by normd at 3/30/2004 2:26:06 PM
This is very strange. We have had several instances of the VB files on a workstation getting changed by ...something. Just today a project's file - not checked out (we use Source Safe), not even open for browsing - got changed. A "build" was done and when the compiler got to this file it found th...more >>

HELP .. TabControl
Posted by João Santa Bárbara at 3/30/2004 2:12:31 PM
Hi all i have in my application a tab control, with several tabpages, i want to hide a tabpage how cai i do this ??? i already try to use Me.tabControl1.TabPages(2).Hide() but the tab continues visible is that a Bug ?? thsk JSB ...more >>

Getting type of inheriting class from static methods in base class
Posted by /kim/birkelund/aka/sekhmet at 3/30/2004 12:55:06 PM
Hi I have an abstract base class from which I would be able to reflect on the members declared by an inheriting type. Fx. if I have a class CBase which is a an abstract class with a static constructor and I have a class C that extends CBase. If I do something like: typeof(C).GetPrope...more >>

fsdfsdfsf
Posted by Kalpna at 3/30/2004 11:42:02 AM
dfsdfsdfsdf ...more >>

Time zones
Posted by lou at 3/30/2004 10:56:38 AM
I'm not sure where to post this question. It's kind of strange. We have software on client machines that takes info and sends it to our server (to an SQL Server 2000 database) through a web service. The client machines are all across the US, different time zones and such. Our server is in the...more >>

Regsvcs issue
Posted by mccutjm1 NO[at]SPAM hotmail.com at 3/30/2004 10:09:49 AM
Hi all. I'm trying to install a .NET component into COM+ using Regsvcs. I get the following error when attempting to do so: The following installation error occurred: 1: Could not install type library XXX.tlb' into application YYY'. XXX.tlb: The object is already registered XXX: The ...more >>

Reflection GetType() problem.
Posted by Livingston George at 3/30/2004 9:41:58 AM
Hi, I am using Reflection to load an assembly dynamically and calls methods on one of its objects. myassembly = Assembly.LoadFile("C:\MyAssembly.dll") Dim myType as Type = myassembly.GetType("MyAssemblyNamespace.MyObject") The above code was working fine until today. Now, GetType r...more >>

Web Server Setup
Posted by Murphy at 3/30/2004 9:07:55 AM
We have a simple server: NT Server 4.0 SP 6a Option Pack (Includes IIS) ..NET Framework 1.1 The problem is that aspx scripts do not run correctly, HTML is displayed however no code is executed. We have a simple tutorial from asp.net that includes code that simply posts to itself, the code i...more >>

Copying memory into byte array
Posted by Sam Johnson at 3/30/2004 7:11:07 AM
Hi I want to copy an 32-bit integer into an array of type byte, so that 4 indices in the array contain the integer value Dim test As Byte( Dim i As Int3 How can I copy the second one into the first one in VB.NET(actually a memcpy equivalent) Thanks a lo Sam...more >>

Unknown error
Posted by Varun at 3/30/2004 3:46:07 AM
Hello I have this error message when i try to open a form My coding falls over on this line.... Me.Button2.Image = CType(resources.GetObject("Button2.Image"), System.Drawing.Bitmap here is the error i am getting. does anyone know how to fix??.... An unhandled exception of type 'System.Reso...more >>

VS .NET Design features
Posted by A. Alqatan at 3/30/2004 2:49:26 AM
Hi, Does any one have hints or experience on how to use VS .NET as a page design tool. I have been using Dreamweaver MX 2003 for some and it has many excellent features for designing pages. I could find any in VS .NET 2003 Is there a way to overcome this or we should wait for the next versi...more >>

Code change for chars
Posted by Why/ at 3/30/2004 2:36:06 AM
Hi i have the following code to only allow integer values to be entered in a textbox Can anyone tell me how i can modify this to only allow characters? Private Sub txtBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtBox1.KeyPres 'e...more >>

Application process running but not showing, VB Studio.NET not answering
Posted by Lars at 3/29/2004 11:21:07 PM
H I'm new to .NET. When I try ti compile a simple program/form in VB Studio.NET I get no error messages My program/form will however not rum properly. The program runs (it's process is shown in taskmanager) but doesn't come up on screen. And the VB Studio.NET will stop working/answer and I will ...more >>

Background Compile Issues
Posted by William Ryan eMVP at 3/29/2004 10:47:04 PM
We currently have a fairly large project (roughly 80,000 lines of code) and on some of our slower development machines, the developers are noticing that hitting the enter key two or three times causes the IDE to hang for about 3 seconds. All in all it's slowing down. I have a really fast mach...more >>

Reading data from text files using oledb provider
Posted by Jomon Mathew at 3/29/2004 9:23:23 PM
hi, i 've been trying to read data from a text file using oledb provider.i was sucessful in reading from one file.But i want to read the data from two files ie. some data from one file and some from other file. The file is .txt files and is fixed length files. i 've written the schema to read f...more >>

View contents of GAC
Posted by Lloyd Sheen at 3/29/2004 6:10:03 PM
Is there a tool to do this? Lloyd Sheen ...more >>

Generate Static HTML pages from .NET
Posted by dukebaby NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/29/2004 5:40:43 PM
Does anyone know of a product that can generate static HTML pages developed in .NET? I am looking for a simlar product to: http://www.webgecko.com/products/apgen/default.htm Thanks. ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.co...more >>

Automatically copy files to build location
Posted by Greg Bacchus at 3/29/2004 5:10:50 PM
I'm just wondering if there is any way of automatically copying misc project files (such as, say, XML files) to the build output directory when the project is built? Cheers Greg ...more >>

date-time control......time validations
Posted by Anil at 3/29/2004 4:02:29 PM
i am using 2 datetime picker controls for showing fromtime and totime.Now i want to check the fromtime should not be greater than totime validations with AM and PM checking also.how can i perform this in C# windows forms ? Please help. ...more >>

Installer project question
Posted by Bryan Dickerson at 3/29/2004 3:31:46 PM
Why does the .Net installer want to put some of the Framework DLLs in my application directory? How can I stop it from doing so when the Framework is already installed on the machine? TIA! ...more >>

Events in Console aplication.
Posted by PaulT at 3/29/2004 2:57:34 PM
Hi, how can I create and use keypressed (keydown, keyup) events in VB.NET console aplication? I tried to write DLL in C++ using hooks but it does not work (hook procedures do not start) - it may be crazy at all - C++ is very strange for me. :-) Thanks PaulT ...more >>

WaitAll limited to 64?
Posted by sean at 3/29/2004 2:01:10 PM
Is there any way to increase the number of events the function System.Threading.ManualResetEvent.WaitAll can accept? It is currently 64. Thank you....more >>

ADO recordset inside of .Net
Posted by MFRASER at 3/29/2004 1:05:25 PM
Does anyone have an example of how to use an ADOdb recordset inside of .Net? I am trying to interface with a VB application that uses the ADOdb recordset. Here is my code: string DBConnection = ""; DBConnection = "Provider='HOleDB.1';DataSource='DEV5\\ENERPRISE';Henwood App ID =10;Init...more >>

Can't locate source of error: Object reference not set to an instance of an object
Posted by Jim P. at 3/29/2004 12:07:50 PM
I have a TCPClient & TCPListener class that I need to stress test. Using a GUI, I built a class that would connect and send consecutive messages for 10 seconds, and log the the results in a richTextBox. Problem is that it runs for a couple seconds, then I get the following error, ending the pro...more >>


DevelopmentNow Blog