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# > december 2005 > threads for thursday december 1

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

XML Documentation in .NET 2.0 and <see...> links to overloaded methods
Posted by Lasse_Vågsæther_Karlsen at 12/1/2005 11:42:16 PM
If I got the following three methods: /// <summary> /// Tests the string. /// </summary> /// <param name="s"> /// The string to test. /// </param> public void Test(String s) { } /// <summary> /// Tests the integer. /// </summary> /// <param name="i"> /// The integer to test. /// <...more >>


Running process from C#
Posted by Zeya at 12/1/2005 11:15:47 PM
Scenario: Currently, there is a .lnk file which when executed does the following: (from Property -> target) %windir%\system32\cmd.exe /k set a=something&set b=something2&c:\path\setsenvironment.cmd Note: the last parameter (C:\path\setsenvironment.cmd). Executes and waits at the comm...more >>

PocketPC Database Connection .NET 1.1
Posted by Steven Nagy at 12/1/2005 10:49:13 PM
Hi all, I have a situation at work where I need to connect a Palm to an SQL Server or Access database. I'm a bit stuck as to how to proceed. I have scoped an XML client/server architecture to deal with this, however I don't want the server side to actually have IIS so Web services are out. An...more >>

DataGridView Button
Posted by Peter at 12/1/2005 10:33:24 PM
I need to add a button to a DataGridView, but the button should only = show up in the cell when user clicks on a cell in the DataGridView and = disapear when user clicks off the cell. Does anyone know how to do that or has an example? Thank you=20 Peter...more >>

Weird Unique ID
Posted by Saso Zagoranski at 12/1/2005 10:28:44 PM
Hi, I'm making a simple application which will store different items (in a SQL server 2000 - MSDE database). Each item has a unique ID in this form: [max 2 characters][max 5 characters] / [max 4 characters] / [max 1 character] / [max 1 character] an example: AZ12345/1234/1/A or A ...more >>

Choosing an exception
Posted by Ant at 12/1/2005 10:16:02 PM
Hi, I'd like to catch a specific exception that is raised when an int is assigned a string. I can't force the exception to see what is thrown because it creates a compile time error when fed a dummy value. What exception would I choose to do this. (to catch a wrong assignment exception, spe...more >>

Problems with NCHITTEST
Posted by Benny Raymond at 12/1/2005 10:09:01 PM
I'm currently trying to implement a Form that uses the BorderStyle "None" property but still allows the user to resize, move the window around, etc. This is all working correctly - now I run into a problem where I really want the window to have a border, but I want it to have just a small ...more >>

Multi string array
Posted by Arjen at 12/1/2005 10:07:16 PM
Hi, I want to have a multi string array, but I don't know the syntax. private string[???] myArray = new string[???] { {"1", "a", " ", " "}, {"2", "b", " ", " "}, {"3", "c", " ", " "} } Can someone help? Thanks! ...more >>



Shared files
Posted by avinashraj NO[at]SPAM gmail.com at 12/1/2005 8:55:31 PM
Hello, In the past when working with VB.net, if several projects needed to use the same set of constants, I would declare them in a Class file and share the class file (in VSS) b/w several projects.This way, if one of the projects updated the file, it impacted the other projects aswell. Typic...more >>

VS.2005 Web Express
Posted by Rocky Q at 12/1/2005 8:44:16 PM
I downloaded MS VS.NET Web Express. Does install. Says "no way, man". I have VS.Net 2003 installed. Can that be a problem a what? ...more >>

VS 2005, compiling against .NET 1.1
Posted by Paul Aspinall at 12/1/2005 8:38:26 PM
Hi I have VS 2005, but some of the components I'm using (Infragistics NetAdvantage 2005), have issues with .NET 2.0 For this reason, I'm being forced to compile against .NET 1.1 How do I do this?? Is it possible?? Is it supported to use VS 2005 with .NET 1.1?? Thanks ...more >>

Control Array
Posted by Jim McGivney at 12/1/2005 7:49:30 PM
I am working on an ASP.net project with code behind in C#. I must manipulate the contents of many label controls. In visual basic (VB6) I could place all the controls into a control array and then refer to an individual control it's index number. I would like to do the same in C#. Can someone...more >>

Windows Service and ConfigurationManager
Posted by Myo Zaw at 12/1/2005 7:21:44 PM
hi, i don't know why i can't access to app.config file in my windows service application. it worked fine in win32 application. i already tested with the same situation and sceniro but, in my service, the call through configurationmanager ( configurationmanager.appsettings["myName"].tos...more >>

Detecting which application currently has focus...
Posted by Paul Aspinall at 12/1/2005 7:00:52 PM
Hi I am trying to write a piece of code, which will tell me which application currently has focus / which the user is currently working on. ie. if the user is currently in IE, or Word etc.... How can I find this in .NET? Thanks ...more >>

Convert DOS execution to C# code
Posted by Zeya at 12/1/2005 6:32:02 PM
Scenario: Currently, there is a .lnk file which when executed does the following: (from Property -> target) %windir%\system32\cmd.exe /k set a=something&set b=something2&c:\path\setsenvironment.cmd Note: the last parameter (C:\path\setsenvironment.cmd). Executes and waits at the command pr...more >>

Difference between SQLDataReader and IDATAREADER...?
Posted by Mahesh Kumar.R at 12/1/2005 6:31:27 PM
What is the difference between SqlDataReader and IDataReader ...? kindly = with small example... Mahesh~...more >>

TabControl.ClientSize doesn't resize Size
Posted by vooose at 12/1/2005 6:18:49 PM
Consider adding a TabPage with size=(300,300) to a TabControl, then calling tabControl.ClientSize=tabPage.Size; You would think tabControl.Size must now be BIGGER than tabControl.ClientSize to accomadate room for the tabs and borders. In fact they are the same size! Compare this to addin...more >>

XSD against XML
Posted by Alexander Bolotnov at 12/1/2005 6:07:08 PM
Hello, I have an XSD schema that I used to create an XML document with Microsoft Word. Now, when I have the xml document created with my schema (by Word), how can I, with C# .net 2.0 pick out the nodes' data for elements defined in my xds file and read/update them? Thanks, Alexander. ...more >>

How do I associate an icon with 'favorites' list?
Posted by Brian Kitt at 12/1/2005 5:34:02 PM
Over the years, from time to time, I've added a website as a 'favorite', and noticed that an icon (other than the standard ie icon) would be associated with it. Unfortunatley I don't have any of these saved anymore. I have a current project I am doing where my customer wants me to associate ...more >>

Web services - InvalidOperationException
Posted by Daan at 12/1/2005 5:24:50 PM
Hello all, I have a project in Visual Studio, developing a .NET application for a Windows Mobile 2003 device. This application needs to call a Web service that is written in PHP, using the PEAR SOAP extensions (in my project, this is a Web Reference pointing to the WSDL file of the PHP Web ...more >>

Date Formats
Posted by Ian Frawley at 12/1/2005 5:12:01 PM
anyone know how to get this working? string ergggg = "20051201 162533"; DateTimeFormatInfo myDTFI = new CultureInfo( "en-Gb", false ).DateTimeFormat; myDTFI.FullDateTimePattern = "yyyyMMdd hhmmss"; DateTime switchdate = DateTime.ParseExact(datething,"yyyyMMdd hhmmss", myDTFI); string ace...more >>

C# windows form datagrid question
Posted by Jason Huang at 12/1/2005 5:10:41 PM
Hi, I have a datagrid DataGrid1 in my c# windows form. But I want the DataGrid1 to be data editable, so the DataGrid can update multi rows data. Thanks for help. Jason ...more >>

Displaying Shut Down dialog
Posted by nikola.bucic NO[at]SPAM gmail.com at 12/1/2005 4:07:16 PM
Is there any code so that I can call shut down dialog box from my program? Under shut down dialog box I mean the one that is shown when you click on Start -> Shut Down. Thanks in advance. ...more >>

minidump analysis
Posted by Droopy at 12/1/2005 3:56:24 PM
Hi, I wrote a C# application that seems to run quite well in our room. Now, it is also running in another room and it crashes from time to time. There is the following error in the LogEvent : "Faulting application IPRRouting.exe, version 1.10.50.19217, faulting module kernel32.dll, version...more >>

Quastion about Process in C#
Posted by Saleh Matani at 12/1/2005 3:20:23 PM
i am starting an exe and want to find out in runtime when that exe end! Is there a way to wait after start process until it end ? // MY CODE: string currentPfxPass ="MyPass" string pfxDir =@"C:\MypfxFile.pfx"; ProcessStartInfo startInfo = new ProcessStartInfo("ImportPFX.exe"); startInf...more >>

how to clear console screen?
Posted by mg at 12/1/2005 3:19:11 PM
Thanks a lot! martin ...more >>

Setup Project
Posted by Mel Weaver at 12/1/2005 3:11:27 PM
Hello, Without using ClickOnce deployment, is it possible to create a windows application setup project to update from a shared drive or web site? Mel ...more >>

Catching events when users logon/logoff
Posted by Raimund Taschler at 12/1/2005 2:54:12 PM
Hi all, I'm implementing a windows service (running with local system account) which has to do some tasks when users logon/logoff. How can the service register to those logon/logoff-events? I'm using .NET 1.1 and C# and the service will be installed on machines with os >= W2K. If you hav...more >>

ListBox query
Posted by Chubbly Geezer at 12/1/2005 2:35:05 PM
Its a really simple and common thing, but I just dont know how to make it work! I'm creating a web form in VS 2003 using C#, and I need to create a dropdownlist (ddl) that is bound to records in a database. I've created the ddl and have also used the drag and drop wizards to create an ...more >>

ClickOnce for plugin enabled apps
Posted by David Smith at 12/1/2005 1:55:34 PM
I have an application composed of one .exe, several supporting .dlls, and several plugin .dlls the app discovers and loads at runtime. The .exe does not make any compile time references to this last group. How can I customize the ClickOnce process to include files in this last group? ...more >>

Another C# marshaling question #2
Posted by Laurent at 12/1/2005 1:28:34 PM
Hi again, I need your help again for my C# programm calling a C++ DLL. This is driving me crazy... I have a function defined like this: long FF_AO_GetOrderInfo ( void* inInstance, char* inOrderID, FF_AO_OrderInfo* outOrderInfo, FF_AO...more >>

Sharing programs with friends
Posted by James at 12/1/2005 1:27:07 PM
Hello, I want to show my friends my c# work, but sending them the bin/release/progname.exe program doesnt work. Research has indicated this is because they have the .net framework v1.1 - whereas I have v2.0 I have worked out that if I hit the menu 'Build, Publish progname' it works on most...more >>

HttpWebRequest method POST
Posted by PawelR at 12/1/2005 1:14:56 PM
Hello Group, How send few value using HttpWebReguest with POST method in one request? Thx. PawelR ...more >>

Prevent Running Code in IDE Design
Posted by pagates at 12/1/2005 12:50:01 PM
Hello All, Is there a way to prevent control initialization code from running in design mode in the IDE (in other words, when I bring up the form to edit it)? It seems like it should be simple, but darned if I can't figure out where I've overlooked it... Thanks, pagates...more >>

Deserialization and changed namespace name
Posted by Joe at 12/1/2005 12:32:14 PM
We're trying to move our class the does the serialization and deserialization to a separate class library. When deserializing the class the binaryformatter complains about unable to resolve type. I also tried leaving the namespace the same as before just moving the class to a different libra...more >>

a simple http server
Posted by lucifer at 12/1/2005 12:26:42 PM
hi, i am creating an simple http server ie it serves only static pages . u can compile the code then use ur browser if it is IE then the it shows the page but the http header is also shown HTTP/1.0 200 OK Content-Type: text/html nweb Web Server Sorry: but if the browser is mozilla/Firefox it s...more >>

passing indexers and properties by reference
Posted by tg.foobar NO[at]SPAM gmail.com at 12/1/2005 12:21:07 PM
i'd like to do the following, but i don't think it's possible. can you help me find a way to do this, or maybe a better way to write the code? I have a list of items that need to be modified based on their data and some other data as well. i planned on passing it by reference into a function...more >>

question on wrapping IOleContainer
Posted by sheldon woloshyn at 12/1/2005 11:58:05 AM
I am trying to wrap IOleContainer and having trouble getting the ENumObjects declaration correct. This is what I have so far: [ComImport, Guid("0000011B-0000-0000-C000-000000000046"), InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] public interface IOleContainer { voi...more >>

SystemOutOfRange Exception
Posted by Will Chamberlain at 12/1/2005 11:50:41 AM
The code below is giving me an error saying that row 0 does not exist. I have written the code in VB.NET and it works flawlessly. I am in the process of converting to C# code. This is supposed to work by assigning "&nbsp;" where the ADCN field is returned NULL. This SQL server tables allows for ...more >>

Dynamic Generation of Meta Tags
Posted by Fred Nelson at 12/1/2005 11:40:38 AM
Hi: I'm developing a new C# Web App and I'm hoping to find a way that I can dynamically generate meta tags for the search engines at the page level. (I want to do this so that I can have someone update a database with the appropriate tags - since we cache our pages this won't be a performance ...more >>

VS2005 is a PIECE of Garbage and is bug Ridden
Posted by Rob Dob at 12/1/2005 11:32:24 AM
VS2005 is a PIECE of Garbage and is bug Ridden, I wonder how many others feel the same, I am so sorry that I have moved away from VS2003, VS2005 is unstable, and half the stuff doesn't work, Microsft has spent so much time trying to make it simply that when you try to do something useful ...more >>

Datalist DataSource Error
Posted by Will Chamberlain at 12/1/2005 11:04:54 AM
I am currently converting some VB.NET web apps to C#. It has been pretty seamless so far but have currently run into some problems that I can't resolve. The line that generates the error is: The specific error is: CS1502: The best overloaded method match for '_Default.PopulateDrawingList(st...more >>

Reading in hex values
Posted by Susan at 12/1/2005 10:56:03 AM
I'm trying to read in a file that, towards the end, has a bunch of hex values that translate to . And example of a line is: sh.fX...wu..... What I really want are each of the associated hex values: 73 68 8C 66 58 E8 1E F6 77 75 82 FD F0 DF D7 DB Does anyone know how I can read these in? I've ...more >>

Reflection Question
Posted by Doug Handler at 12/1/2005 10:44:48 AM
I'm trying to invoke a method that returns a value (actually a Panel), but i keep getting an error: System.Reflection.TargetException was unhandled Message="Object does not match target type." Here's the code: MethodInfo methodInfo = typeChannelPanel.GetMethod("CreateNavPanel"); Pan...more >>

How do I stop invalid characters being typed into a TextBox?
Posted by Tim Osborne at 12/1/2005 10:32:16 AM
Hi At first blush this seemed like it should be so simple. Guess again. I want to only allow numeric characters and hexadecimal values in a TextBox, anything else should be ignored, and maybe a beep be issued. So I figure I need a KeyDown event and I just have to mark it as Handled, righ...more >>

How can I check for sound card?
Posted by Mats-Lennart Hansson at 12/1/2005 10:21:19 AM
Hi, Is there a way to check for sound cards in c#? I don't want to force the user to have DirectX9 or so, can I perhaps use winmm.dll? Any help, and code snippets, is highly appreciated! Thanks, Mats-Lennart ...more >>

Allow only one instance of console application to run
Posted by Hardy Wang at 12/1/2005 10:18:30 AM
How to allow only one instance of console application to run on one single machine? Thanks! -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy ...more >>

networking help 2
Posted by lucifer at 12/1/2005 10:04:29 AM
CODE public static void web(Socket suck ) { byte [] rbuffer =new byte[BUFSIZE+1]; byte [] sbuffer =new byte[BUFSIZE+1]; string str="<HTML><BODY><H1>nweb Web Server Sorry:</H1></BODY></HTML>\r\n"; sbuffer=str//error can convet suck.Rece...more >>

Interface / Reflection Question
Posted by Doug Handler at 12/1/2005 9:58:30 AM
I have an interface called IChannel that has a series of items including a delcaration for a Panel. I have a class called Channel that implements IChannel. I'm wanting to dynamically load each channel at runtime. So, i have a CustomerChannel that inherits Channel and it is bound at runtime ...more >>

networking help
Posted by lucifer at 12/1/2005 9:41:53 AM
Code: IPAddress iadd =IPAddress.Parse("192.168.1.2"); IPEndPoint ipe = new IPEndPoint(iadd, port); Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream ,ProtocolType.Tcp); sock.Bind(ipe); sock.Listen(32); sock.Accept(); sock.Connect()// problem i dont know remote ip...more >>

.NET 2005 Pre-processing directives
Posted by Avin Patel at 12/1/2005 9:05:04 AM
Hi, Does 2005 has inbuild pre-precessing directive, So I don't have to define mine. Basically I can use it to find out code is getting compiled with 2005 or 2003 compiler. Basically I my code, there is some line like: #if NET2005 allAddrs =Sy...more >>

ActiveX Cab File - How to use in C#
Posted by Frank at 12/1/2005 8:44:18 AM
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function? LongerVersion: I am attempting to convert an asp file to a asp.net file using C#. The original file has an ActiveX control which is con...more >>

Generics n-tier design question
Posted by russ at 12/1/2005 8:26:33 AM
Hi, We have stumbled across an issue using the type safe collection System.Collections.ObjectModel.Collection <T> to retrieve data from our data layer. Say we have a customer object and want to get a type safe collection of all customers who have spend = X Within our datalayer we would cur...more >>

Threads - ask for advice
Posted by Piotrekk at 12/1/2005 7:46:22 AM
Hi. I have written client and server app. that sends files. Client application doesn't use threads, but server does. I would like to show you part of my code ( thread) and ask why, when i close program, it's still visible in processes. I have also created bool variable "closing", by which threa...more >>

Parsing Key Value Pairs
Posted by Greg at 12/1/2005 7:40:29 AM
What is the best way to parse keys and their values from a http repsonse (byte array?) I'd like to keep it as generic as possible as I have many repsonses to parse. Any thoughts would be appreciated. Greg. ...more >>

Web Connections
Posted by Dennis C. Drumm at 12/1/2005 7:20:27 AM
Does .net Framework 2.0 have anything new to help us detect if a user has an active internet connection and to send a notice when a connection is established or dropped? Thanks, Dennis ...more >>

Starting a new process, which has the same security permissions and the parent.
Posted by Phil Mc at 12/1/2005 5:11:56 AM
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications), but these child applications must have the same security privileges as the parent starting them. ...more >>

populating dropdown in datagrid
Posted by Mike P at 12/1/2005 4:35:38 AM
I am populating a drop down column in a datagrid on page load. Here is my code : <asp:TemplateColumn> <ItemTemplate> <asp:DropDownList ID="ddlUserName" Font-Name="Verdana" Font-Size="8pt" Runat=server DataValueField="UserName" ...more >>

rollback code
Posted by dmalhotr2001 NO[at]SPAM yahoo.com at 12/1/2005 3:20:15 AM
Hi, I have a piece of code that uploads a file and writes to a database. Is there a way that if the upload of the file fails or the database write fails, that the entire process can be rolled back, so that neither was done. Basically what I'm trying to do is kind of like a transaction in .n...more >>

Reflection GetProperty Problem
Posted by satankidneypie at 12/1/2005 3:11:02 AM
Hi, I'm going to start this off with some code as it'll make it easier to explain afterwards... using System; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { [STAThread] static void Main(string[] args) {...more >>

Datagrid example ...
Posted by Ann Huxtable at 12/1/2005 2:19:21 AM
Hi, Anyone knows of a simple "proof of concept" example of populating a datagrid control (without references to ASP.Net or database connections)? All I want to do is to populate a data grid control from data in an instance of my class. tks ...more >>

Only one instance of an application
Posted by Code Monkey at 12/1/2005 12:53:08 AM
I know one varient of this question has been posted a lot, but this seems to be slighlty different. I've got the following code in my application <code> [STAThread] private static void Main() { bool createdNew; string process_name = Process.GetCurrentProcess().ProcessName.ToString(); ...more >>

Source code sites?
Posted by Jim Hubbard at 12/1/2005 12:21:33 AM
I am looking for .Net 2.0 VB, C or C# source code (even advanced 1.1 code is OK). I find that I learn more, faster by tweaking other people's code than by simply reading book after book on the subject. Any links that you could provide (the more advanced the better) would be sincerely appre...more >>

.net windows service
Posted by NG at 12/1/2005 12:00:00 AM
Hi All I made a windows service in C#. Now I have a situation where I need to invoke an exe with some UI. Assuming that the computer running this service will always be logged in, can anyone please provide me a sample code to invoke an exe from windows service in .net. I tried a few methods t...more >>

What's the difference between VS2005 Beta3 and VS2005 realse version
Posted by mike at 12/1/2005 12:00:00 AM
What's the difference between VS2005 Beta3 and VS2005 realse version frankly i've downloaded vs2005 realse version but it's the same as beta3 version how can i distinguish between them?? ...more >>

What happens after Application.Run() ?
Posted by Ann Huxtable at 12/1/2005 12:00:00 AM
Code placed after the statement Application.Run() is executed - is there any reason why this is allowed (I can't see the point of permitting statements after the "entry point" call) - akin maybe, to allowing statements after "main" in C/C++ ...more >>

add parameter into dynamic user control
Posted by Stanley Cheung at 12/1/2005 12:00:00 AM
Dear all, how can I pass a parameter to dynamic user control? As I know we can pass parameter into traditional user control. e.g: add pageid into user control and write a property from user control <uc1:uccc id="uccc1" runat="server" pageid="1"></uc1:uccc> I can create dynamic user control ...more >>


DevelopmentNow Blog