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
March 2008
April 2008


all groups > c# > january 2007 > threads for thursday january 18

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

Data Grid bool Column is not painting correctly after Scrolling in .net 1.1
Posted by Noman Ali at 1/18/2007 11:44:22 PM
Hi, I am facing some problems in Data Grid bool Column. Data Grid bool Column is not painting correctly after Scrolling in .net 1.1. Any one knows how to correct this?? Thankx in advance. Regards, Noman Ali *** Sent via Developersdex http://www.developersdex.com ***...more >>

IDE Add ins
Posted by Bob at 1/18/2007 5:36:48 PM
Hi, I was looking for an add-in that would measure cyclometirc complexity. I think my undestanding of add-ins is minimal. The offerings I have found appear to be a bunch of dlls What is the general idea for ... dare I say it, adding in an add-in. eg Devmetrics offering on SourceForge. I managed...more >>

Simple Inheritance : Creating derived classes from instances of base class.
Posted by nyathancha NO[at]SPAM hotmail.com at 1/18/2007 5:36:35 PM
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is because I am not always able to control/create all the different constructors the base class has. My ...more >>

About Xml serialization scalability and persistence
Posted by " at 1/18/2007 5:35:47 PM
I am developing a Windows Service that is resident on the machine. The program needs to synchronize certain object list in memory (an object typed as List<Foo>) with disc, serializing and deserializing XML. The first simplest technique I have used ATM is the following: - At program start, ...more >>

IPV6 Multicast Sockets
Posted by jlamanna NO[at]SPAM gmail.com at 1/18/2007 5:06:22 PM
Hi. I'm adding IPV6 support to my app, and I have a UDP Broadcast socket that I need to redo using IPV6. I know that IPV6 doesn't have a notion of broadcast anymore, its all multicast (broadcast translates to a multicast address of ff02::1 essentially). However, the following code throws an ex...more >>

Split string gives empty elementes
Posted by md at 1/18/2007 4:36:16 PM
Hi I am trying to use the Split function to remove characters like ' ', '=' and ';' from a string, but the problem is that if two delimiters are next to each other, an empty element is inserted in the result array. I can not use StringSplitOptions as I use .net 1. Do you know, how can I get...more >>

MS's official variable/function naming standard
Posted by not_a_commie at 1/18/2007 3:49:56 PM
Does MS have an official C# variable/function/codingstyle standard that is available on the internet? What standard do they use for their internal coding? Mind posting a link? Thanks. ...more >>

polling
Posted by ba.hons at 1/18/2007 2:55:38 PM
Hi all I am new(ish) to c# and was wondering if anyone would help me? I want to create an application that polls a specific directory all the time and when it finds an XML file has been placed in the directory, it reads the XML file and deletes the file from that directory. Am wondering w...more >>



Sending packets over raw sockets
Posted by White Spirit at 1/18/2007 2:26:05 PM
I can send data over a raw socket in C#. The part that is currently a problem is constructing the packet to be sent. To construct the packet, is it necessary to construct the packet 'by hand' and store it as a byte[] array, computing the checksum etc before sending? I can't find any C# cl...more >>

A re-announce on GC's defects
Posted by Born at 1/18/2007 2:07:24 PM
GC is really garbage itself Reason 1: There is delay between the wanted destruction and the actual destruction. Negative effects by the destruction delay: 1) Efficiency issue It's bad for CPU/Resource intensive but memory cheap objects. CPU intensive objects...more >>

IDisposable with managed code
Posted by Mark at 1/18/2007 1:45:31 PM
If your class implements IDisposable, I was told that this increases the speed with which your class is garbage collected. Is this true? And if so, how much "time" does it save? Assume that we are dealing with 100% managed code and that the clean-up is of big inmemory data structures. Th...more >>

Windows Form Topmost...
Posted by Mandragon03 NO[at]SPAM gmail.com at 1/18/2007 1:33:49 PM
I have an MDI form that has 4 child forms that are locked on top of any other child form in the MDI. I want to unlock these 4 forms so they are not always on top of all the other forms in the MDI. When I set ChildForm1.TopMost = false; It does nothing. Is there another another property I sho...more >>

C# data structures
Posted by KeithR at 1/18/2007 1:11:21 PM
I am something of a newbie in the world of C# data structures, but I am writing an application that needs to call a legacy DLL using .net 1.1. That is no big deal mostly, but I am having trouble with one function. It is defined in the original C as UINT32 __stdcall GetState( UINT32 timeout,...more >>

Non-locale-specific floating point numbers
Posted by Mike Schilling at 1/18/2007 12:18:23 PM
I want to write some C# that converts between floating-point numbers and strings in a non-locale-specific way. That is, I want decimal points always to be ".", etc. The simple overloads of Double.ToString() and Double.Parse() change their behavior depending on locale. I'm considering crea...more >>

System.Timer!
Posted by Vai2000 at 1/18/2007 12:15:03 PM
Hi All, I have a Win Svc (.net) running on my server. At midnight I need to do some manipulations....how can I invoke a timer at midnight? Right now I have plugged in the ElapsedEvent which is being called every 30 seconds inside it I check for datetime whether its midnight or not... Kindly th...more >>

Launch an app on logoff?
Posted by mikemiller.innova NO[at]SPAM gmail.com at 1/18/2007 12:02:09 PM
I have a C# Windows App for reporting server changes. I want my C# Windows App to be able to launch when someone tries to logoff so they are forced to log what they did before the system logs off. Preferrably, the logoff process would wait until the app is closed. However, it is ok for it t...more >>

Looking to make something like a delegate...
Posted by matsi.inc NO[at]SPAM gmail.com at 1/18/2007 11:31:09 AM
I am looking to make something like a delegate that i can use in my projects but am having a hard time getting started. The behavior I am most interested in is how a delegate changes it's Invoke method dynamically to match the arguments supplied to it when it is defined. For example... ...more >>

Check if resourse is locked
Posted by bg_ie NO[at]SPAM yahoo.com at 1/18/2007 11:03:51 AM
Hi, I have the following in my com object- static public uint Time { get { lock (Channel.staticLockObject) { return Channel.time; } } } Sometimes though I am getting back incorrect values when using Time. How can I check if Channel.staticLockObject is alr...more >>

How many ticks are in a second?
Posted by Mark at 1/18/2007 10:10:02 AM
How many ticks are in a second? I found a link indicating that there are a million ticks per second but that didn't sound right. I'm assuming it is dependent on the speed of the processor? http://dotnetjunkies.com/WebLog/jdixon/archive/2004/05/21/14228.aspx Thanks. Mark ...more >>

interface as parameter, and concrete class in method
Posted by peter at 1/18/2007 10:04:03 AM
Hi, a "style" question. There is a method which creates a user in a database. I have to instantiate a user object, pass it to the method, and I get a completed user object back. public IUser Create(IUser user) { .... } where IUser is an interface. Yet in the method itself I find things...more >>

Windows Server 2003 installation and requirements
Posted by jake at 1/18/2007 10:03:31 AM
I tried Microsoft website to find answers to my questions but to no avail. 1 - After installation, is Windows Server 2003 an operating system on its own? 2 - If so, is it much like XP Professional where one can also use it as a regular home PC? 3 - Does it need XP Professional installed on the...more >>

Add blank item in databound ComboBox
Posted by Benny at 1/18/2007 9:03:07 AM
Does anyone know how I would go about adding a blank value to the list of items in a ComboBox that has a set datasource? Thank in advance! ...more >>

importing csv to datagrid, adding column data
Posted by JMO at 1/18/2007 8:47:25 AM
I can import a csv file with no problem. I can also add columns to the datagrid upon import. I want to be able to start importing at the 3rd row. This will pick up the headers necessary for the datagrid. Once I can get to that point I need some way to be able to add new data only to the new ...more >>

Check if resourse is locked
Posted by bg_ie NO[at]SPAM yahoo.com at 1/18/2007 8:31:59 AM
Hi, I have the following in my com object- static public uint Time { get { lock (Channel.staticLockObject) { return Channel.time; } } } Sometimes though I am getting back incorrect values when using Time. How can I check if Channel.staticLockObject is alrea...more >>

how to use delegate to enable / disable mainmenu from another class
Posted by AboutJAV NO[at]SPAM gmail.com at 1/18/2007 8:28:11 AM
I created a mainmenu in the form class. I added the following code public delegate void ChangeMainMenuDelegate(bool bState); public void ChangeMainMenuState(bool bState) { for (int n = 0; n < mainmenu.menuitems.count; n++) { mainmenu.menuitems[n].Enabled = bState; } } I wa...more >>

Generic Client/Server app sample source code.
Posted by Sin Jeong-hun at 1/18/2007 8:14:55 AM
I need to write little applications with c/s model. I need basic features like, 1)The server should be able to handle multiple clients at the same time. (multithreaded) 2)The clients and the server can send and receive data. I think these could be very generic requirements. I searched the in...more >>

How to find the codepage for a particular LCID ( language Identifier)
Posted by venkat9200 NO[at]SPAM gmail.com at 1/18/2007 6:10:25 AM
I need to find out how many bytes a particulat language text takes. In my application i have a display limit for the unicode string. So i need to find the no of bytes a particular language text takes and truncate it to the my limit. i found the CultureInfo class gives the information for a par...more >>

Find the window that currently has focus
Posted by pigeonrandle at 1/18/2007 5:05:06 AM
Hi, Is there an API function that can do this? Cheers, James. ...more >>

Run time error!
Posted by rcoco at 1/18/2007 5:04:45 AM
hi, I have deployed a .msi on the server and it has been installed very well. But now the problem is that when I try to run it I get this error: The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please re...more >>

Problems with Generic Collection class.
Posted by BombDrop at 1/18/2007 2:46:28 AM
I'm working on a system that has 4 different types of client they have mostly the same attributes so I decided to create an interface IClient for them to implement and then just add the differing attributes as needed to each client class. Now I get the Client information from a DB and Loa...more >>

The assignment operator
Posted by mehdi_mousavi at 1/18/2007 1:52:36 AM
Hi, Consider two classes from different namespaces each of which is derived from a given class in the third namespace: 1. MyNamespace1.FirstClass : ThirdNamespace.MyBaseClass 2. MyNamespace2.SecondClass : ThirdNamespace.MyBaseClass and consider the following code snippet: MyNamespace1.Fi...more >>

object, reference, instance
Posted by kalaivanan at 1/18/2007 1:44:20 AM
hi, i am a beginner in c#. i have theoretical knowledge about object, reference and instance. but i want to know clearly about what is an object, reference and instance. can any one help me? or is there any article which can explain it. kalaivanan ...more >>

Need SQL Query for this situation.
Posted by Karthik D V at 1/18/2007 12:59:21 AM
Hello All, I have a table like this ID CHARACTER ----------- --------- 1 A 2 A 3 B 4 B 5 C 6 D 7 D I need result like this. I need SQL query which will fetch the following result. ID ...more >>

ADSI and C#
Posted by nadeem lion at 1/18/2007 12:09:25 AM
hello to all, i am working on software for netcafe, the problem is that i wana logoff particular user computer when time reaches to end. is there any one that can help me *** Sent via Developersdex http://www.developersdex.com ***...more >>

Complex Casting problem in Generics
Posted by Ajeet at 1/18/2007 12:00:12 AM
hi I am having some difficulty in casting using generics. These are the classes. public interface IProvider<PROF> where PROF : IProviderProfile { //Some properties/methods } public interface IAuthenticationProvider<PROF, TOK, CRED> : IProvider<PROF> where PROF : IAuthenticati...more >>


DevelopmentNow Blog