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 > c# > september 2004 > threads for monday september 6

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

Setup projects: do dlls get registered during installation???
Posted by Samir Azmat via .NET 247 at 9/6/2004 11:31:14 PM
Hi! I just wanted to ask about the dlls that we add to the= application folder using the setup projects, are they registered= on installation and if yes why=2E The reason that i ask this is= that my project required mfc70=2Edll for it to work, i added= mfc70=2Edll in the application folde...more >>


System.Configuration.ConfigurationException
Posted by Ben at 9/6/2004 11:07:20 PM
Hi, I have a DLL that supplies functionality to a web service and some console applications. It reads some of its information (sensitive stuff) from the registry and the rest from the config file of the caller. In the config file I have several custom sections all using the NameValueSectionHandl...more >>

Marshaling Nested Structs
Posted by MSDousti NO[at]SPAM myrealbox.com at 9/6/2004 10:35:43 PM
Hi all, I read some Q&As in the Net, discussing Marshalization of nested structs in C# (or VB.NET). Some guys stated that .NET framework does not support this feature yet. Are they right? BTW, by nested structs I mean structures such as this: [StructLayout(LayoutKind.Sequential)] str...more >>

How to use GDI+ in C#
Posted by Jeremy at 9/6/2004 10:25:03 PM
I'm newer to GDI+ and now want to indentify the image format painted on form. I searched msdn and find the GetRowFormat method in Image class, but I can't find this method in my .NET environment. How should I do? Thanks for anyone tell me. ...more >>

How to using GDI+ in C#
Posted by Jeremy at 9/6/2004 10:21:01 PM
I'm newer to GDI+ and now want to indentify the image format painted on form. I searched msdn and find the GetRowFormat method in Image class, but I can't find this method in my .NET environment. How should I do? Thanks for anyone tell me. ...more >>

Changing default icon
Posted by Diego F. at 9/6/2004 9:24:18 PM
Hi. Can you explain me how to change the default icon that Visual Studio sets to all applications? I mean Windows Forms apps. I want to change it for another icon, but I don't find any property in the form properties. Regards, Diego F. ...more >>

Convert Date
Posted by Tamar Solutions at 9/6/2004 8:47:07 PM
Hi - I am trying to convert the following info (WMI BIOS) to a DateTime object - Is there a way to do this - ReleaseDate Data type: datetime Access type: Read-only Release date of the Windows BIOS in the Coordinated Universal Time (UTC) format of YYYYMMDDHHMMSS.MMMMMM(+-)OOO. ...more >>

Application Domain
Posted by Just D. at 9/6/2004 8:25:12 PM
All, How many Application Domains can be created on machine? If there is any limit? Memory? Some system limitation or what? Just D> ...more >>



Allowing access to an internal ArrayList through IEnumerator?
Posted by Matthias S. at 9/6/2004 7:48:28 PM
Hi, I'm trying to provide the user of my class access to the objects in a collection without allowing him to modify (add/remove/clear items) the collection. I thought I can do it by providing a IEnumerator. But this thingy can't be used directly, as shown in the code below. How can this b...more >>

Populating a DataSet from a DataReader
Posted by Rob via .NET 247 at 9/6/2004 5:33:49 PM
Ok, I'm new to =2ENET so I'm afraid I'm doing something stupid= here, but I'm trying to populate a DataSet manually from a= DataReader, and its turning out to be ridiculously difficult=2E Yes, I could use a DataAdapter to more easily load the DataSet,= but that would entail loading a couple...more >>

TreeView Question
Posted by Michael C at 9/6/2004 5:18:33 PM
Hi all, Quick question about the TreeView control. I'm using code like this to determine the currently clicked TreeNode in the TreeView. private void MyTreeView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { currentNode = MyTreeView.GetNodeAt(e.X, e.Y); } The...more >>

Reading from dataBase
Posted by PawelR at 9/6/2004 4:56:12 PM
Hi group, Sorry my English is very little I've question about reading data from database. In sql2k I've table (50k+ records). Commerce application writing to this table same data (up to 5 records per minute). My application must show new records for example in dataGrid (refresh approx once per...more >>

PrintPreviewDialog
Posted by gabriel at 9/6/2004 3:23:12 PM
Hi all, I've got a problem with a PrintPreviewDialog. It shows my document correctly but when I try to print I only get the last page. Now when I use the print function of my document directly it print's correctly. I've overriden the OnPrintPage function of PrintDocument and for as far as I ca...more >>

joystick programming
Posted by PawelR at 9/6/2004 3:17:20 PM
Hello group, My English is very little. I want same samples about programming joysticks connected to USB port. If you can help me please send same adresses or samples. Thx PawelR ...more >>

context menu for undo/redo buttons
Posted by Dennis C. Drumm at 9/6/2004 2:58:49 PM
How do I program the context menu of an undo/redo toolbar button drop down menu to behave like the vs.net undo where all previous menu items are selected as the user moves the mouse pointer down the list? Thanks, Dennis ...more >>

UserControl - Exceptions
Posted by Jeff at 9/6/2004 2:18:35 PM
I'm just starting to work with UserControls and have a question on the behavoir of exceptions within UserControls and VS.Net 2003. I have noticed that when a UserControl throws an exception from an event (i.e. Click event), VS.Net will enter debug mode on the exact line that threw the excep...more >>

close application after CreateProcess
Posted by carmen at 9/6/2004 1:19:48 PM
I need to launch application-2 from application-1 and close application-1. My code is CreateProcess ("app2",0,0,0,0,0,0,0,0,0); Application.Exit(); but application-1 is not terminate since I see its name in the "Start" line. Any ideas? Thank you. ...more >>

Reading xml nodes
Posted by Christian H at 9/6/2004 12:36:13 PM
Hello! I am currently playing around with XmlTextReader and XmlTextWriter. I've got the TextWriter to write out nodes in this form: <node> <childnode>moredata</childnode> <childnode>moredata</childnode> <childnode>moredata</childnode> </node> What I'having trouble with, is to...more >>

Matrix computation in .NET
Posted by rickz at 9/6/2004 12:04:48 PM
Hi, Does anybody know where I can find the matrix computation components in .NET framework? Do I need to use a third-party one or there's one that comes with the framework libraries? Thanks! Rick ...more >>

Exception handling
Posted by Igor at 9/6/2004 11:17:32 AM
How can I know, when I catch an exception, in which line exactly it occured? Is it possible at all? ...more >>

db connection
Posted by Aaron at 9/6/2004 11:05:41 AM
I wrote a program in c# and oledb for my access database. After each run i see there's a locked db file in my database folder, it means that my connection is not closed properly. I did check my code everything seemed fine. Is there a script or a program that can help me check this? I think I ...more >>

Help, building an Active X Control using web services
Posted by Robert Hanson at 9/6/2004 10:53:09 AM
Hi All, I have a CAD application that uses Active X controls but I also need to utilize web services so I am asking for help if I can build the Active X in C++.NET and the web service classes in C#? Thanks in advance, Bob Hanson Centare Group Ltd. *** Sent via Developersdex http://www...more >>

Regional settings made at the operating system level
Posted by Karunakararao at 9/6/2004 10:24:40 AM
Hi All regional settings made at the operating system level. For example, Canada uses a dd/mm/yyyy format while the US uses mm/dd/yyyy. and yyyy/mm/dd how can i get this type date format : iam using this code in C#: System.DateTime.UtcNow.Date.ToString(); Regards Venu. ...more >>

2003 ... 2005
Posted by Jacek Jurkowski at 9/6/2004 10:15:24 AM
I started to develop an application using C#2005Express ... Although Vs.net 2003 is on the market some time now it looks to me more "beta" than 2005. The worst part of it are the Windows Forms and its controls which i found very improved in 2005. It's crucial for me because my software from its...more >>

calculating number of elements in an enumerated type
Posted by Claire at 9/6/2004 9:52:15 AM
Is there an easy way to return the number of elements in an enumerated type please thanks Claire ...more >>

¿Se puede ejecutar scripts con C# al igual que podía con VBScript?
Posted by Liber at 9/6/2004 9:17:59 AM
¿Se puede ejecutar scripts con C# al igual que podía con VBScript? Con VBScript escribo codigo en un archivo .vbs o .vbe y lo ejecuto, ¿como puedo hacer esto con C#, pues hago un .cs pero no se como ejecutarlo? Otra consulta: con Sqlserver 2000, puedo ejecutar trabajos con ActiveX, con VBScrip...more >>

Printing question
Posted by Frank at 9/6/2004 9:17:12 AM
I have an asp.net application that needs to do a batch print without showing the print preview or the printer settings dialog. I know that this possible using a windows app but how can I do this from a web app. Is it possible to do a print on networked printers connected to a clien...more >>

How to set DrawFocusRectangle() correctly using custom DrawItemEventArgs?
Posted by pyda001 NO[at]SPAM ec.auckland.ac.nz at 9/6/2004 8:28:33 AM
How can I set e.DrawFocusRectangle() correct in an owerdrawn multiselect listbox? I do all my drawing (e.g. OnMouseMove) calling OnDrawItem and constructing the DrawItemEventArgs. The problem is that I never know exactly when to draw the focus rectangle. The DrawFocusRectangle() method is alw...more >>

Class to authenticate users not showing up
Posted by Maziar Aflatoun at 9/6/2004 8:08:13 AM
Hi everyone, My web application runs in / however, my administration resides in /admin folder. Inside my /admin I have a Login.aspx which is used to authenticate users who use the administration section. I right clicked the /admin in Visual Studio and Added a new Class (AuthenticateUser). H...more >>

Retrieve data from excel
Posted by Ubi at 9/6/2004 5:37:15 AM
i'm trying to get data out of excel... my code is: private void exlSelectionChanged(Range rng) { lstFields.Items.Clear(); for (int i=1; i<=rng.Columns.Count ; i++) { lstFields.Items.Add( rng.Cells[1,i]).ToString() ); } (i'm trying to put the first row of the selection into a l...more >>

Re: Syntax for a static indexer (or it is not possible) ?
Posted by Baavgai at 9/6/2004 5:05:25 AM
Nice link, thanks. I was aware of the multi threaded problems with Singleton patterns ( or, many patterns for that matter ), but it didn't seem apropos to the discussion. I'll admit, I've used variations of the second version most often. I'm not 100% convinced of the fifth version, but it's ...more >>

A problem with application icon taskbar.
Posted by eladgutman NO[at]SPAM hotmail.com at 9/6/2004 4:12:13 AM
Hi Everyone, I'm facing an annoying problem and any help will be most appreciated . .. . I have a main application form and its icon is functioning excellent: it appears both in the taskbar and whenever you switch using the Alt + Tab keys. At a certain point of the code I'm creating a new ...more >>

Equivalent of VB6 Winsock control in C#
Posted by Mike P at 9/6/2004 3:34:39 AM
What is the equivalent of the VB6 Winsock control in C#? I'm looking at converting some code from VB6 to C# (see below). Does anybody know how I would do this? tcpSendData.RemoteHost = "10.0.4.2" 'test tcpSendData.RemotePort = 1024 'Set port 'Invoke the Connect method to initiate co...more >>

C# class library for COM interop
Posted by Josef at 9/6/2004 2:41:01 AM
Hello, I want to create a C# class library which I can use in an Excel VBA macro. I created a C# class library and set the "Register for COM Interop" option in Visual Studio to TRUE. Now in Excel I can use this library but the intellisense does not show any properties or functions of the cl...more >>

Creating web service connector automation
Posted by H?kan Bengtsson via .NET 247 at 9/6/2004 2:26:35 AM
I have written an automation class that connects to an URL, and downloads the content into an ordinary string variable. But when I run my method I get an error saying: Request for the permission of type System.Web.Permission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c5619...more >>

ImageMap
Posted by Josema at 9/6/2004 2:03:03 AM
Hi to all, I have a Spain Map as webcontrol. This webcontrol its a ImageButton. How could i identify in wich region (area) the user clicks? I only know how obtain the x and y coordinates where the user click. But i dont know how identify the area. Any help would be appreciated. Thx....more >>

Create object by class name
Posted by MuZZY at 9/6/2004 1:39:33 AM
Hi, I am comparably new to C# programming, so my apology if the question is naive :) In my C# Win Application i have a bunch of classes inherited from a TBaseObj class, say TRectObj, TCircleObj, etc. I want to be able to create an instance of such a class by its name: Something like: ...more >>

LinkDemand does not work
Posted by fred at 9/6/2004 1:21:15 AM
hi, does anybody know why this code does not raise a SecurityException? using System; using System.Security.Permissions; using System.Security; namespace MyNameSpace { class MainClass { static void Main(string[] args) { ClassA ca = new ClassA(); Console.WriteLine...more >>

Using Stream objects with encoding
Posted by Gaia C via .NET 247 at 9/6/2004 12:58:17 AM
(Type your message here) Hi, I want to open a file to read from and then edit and write the text to another file. I am using StreamReader and StreamWriter for this purpose. The problem is that i don't know the encoding of the file, because it can be saved at any encoding. When using the stream ...more >>

user defined implicit conversion inconsistent with C# spec 1.2, compiler bug?
Posted by Xiaotian Guo at 9/6/2004 12:52:13 AM
Hi, I got compilation error while compiling following code, but according to C# language spec 1.2 (section 6.4.3) , the code should compile. what makes it more interesting is that, if I swap the order these 2 operators appear in class SB, the code will compile without a problem. Is this ...more >>


DevelopmentNow Blog