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# > december 2003 > threads for monday 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

Boxing & Unboxing F1 F1 F1...
Posted by Justine at 12/1/2003 10:55:09 PM
Hi All, I need a small clarification with regard to Boxing. struct Currency { ......... } Currency Bal = new Currency; Object Obj = Bal; i read that when implicit boxing is taking place, ther will be an hidden class (Reference Type) of type Currency created internal by .NET Framewo...more >>


images and equality
Posted by Eric Eggermann at 12/1/2003 9:35:16 PM
Hello all, I'm looking for a way to tell whether two image objects which do not have object equality are the same image or not, and I mean identical, say originally loaded from the same file. Any ideas on how to approach this? TIA, Eric ...more >>

adding a component
Posted by Jeroen Ceuppens at 12/1/2003 9:28:21 PM
Hi, I want to add a component of these class : public class OptiePanel : System.ComponentModel.Component I put on this class in a constructor with in it lost of things to add like: this.Container.Add(labelHoofd); So if I want to add an object of this class in the main form, how should I ...more >>

get sql server schema to xml?
Posted by suzy at 12/1/2003 8:15:47 PM
Hello, How can I get table/column schema of a sql server database? i want to convert the entire schema into an xml file. thanks in advance. ...more >>

Trace.Assert to console
Posted by S. Han at 12/1/2003 8:01:42 PM
I use Trace.Assert() in my app.config, and I added <system.diagnostics> <assert assertuienabled="false" />... so that I could redirect the assertion failure to the console output. The problem is that when the assertion is triggered my C# application continues executing past the assertion ...more >>

C# namespace
Posted by New Comer at 12/1/2003 7:43:34 PM
Hi I'm new in C#. I'd like to know where to find all kinds of namespace, e.g. System.Degug., System.ADO. etc, so I can use their properties and methods. I know in Visual C++, I can find MFC in MSDN library (CD), and in Java, I can find all classes on java.sun.com Java API document. ...more >>

multicast
Posted by Ron Vecchi at 12/1/2003 7:32:16 PM
I have been given a task to reasearch multicasting, specifically with the transmission of streaming media. I honestly have no clue about what multicating is and more so how or when to implement it. Could someone point me to a few good resources, or shed some insight? -- Ron Vecchi ...more >>

A question of programming style - revisited
Posted by Mark at 12/1/2003 7:11:38 PM
Apologies for the lengthy posting.... In a previous posting: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=3fb3728b%240%2422605%24cc9e4d1f%40news.dial.pipex.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3fb3728b%25240%252422605%2524cc9e4d1f%2540...more >>



Creating Patches
Posted by Eric at 12/1/2003 6:46:04 PM
I have an app that I have distributed and would like to patch it. Can some one give me some guidance on the patching process or some articles to get me started? I haven't had luck on google....more >>

Monitor, Lock
Posted by Zürcher See at 12/1/2003 6:09:32 PM
I have a main form, which pop other forms (children forms). The children forms have a delegate of a function, let call it EndFunction, of the main form, that they call when they ends their work. By closing the main form, it force the children forms to close too, and before to close himself wait ...more >>

Something like crone?
Posted by Krzysztof at 12/1/2003 5:52:38 PM
Is in C#/VS or other libraries something like crone vide Java? Or how can I made it? (Doing some jobs in app on special time, or from time to time) Regards Krzysztof ...more >>

instance vs. static question
Posted by allison at 12/1/2003 5:21:28 PM
Can someone point me to a guide on when to use static methods versus instance methods in a class? For instance, is it bad design to have a static method that creates an instance of another class? I am looking for a good explanation. Thanks in advance ...more >>

CD Burning with C#
Posted by Hendrik Christian at 12/1/2003 5:00:23 PM
Hi all, Is it possible to programmatically using C# burn a bunch of files in a predefined location to CD-R ? The application will be run in Windows 2000 environments. If it's possible, I would like it NOT to use third party like Nero SDK, but only the main Windows 2000 and VS.NET 2003. I've ...more >>

Reading through binary files
Posted by Jón_Sveinsson at 12/1/2003 4:39:45 PM
Hello everyone I have been able to read data from binary files to filestrean, the data in the files are structured, what I'm trying to do is to loop through the binary files and add data to my struct, in this file there are lot of records i need to loop trough, first time I read the fil...more >>

Extending Month Calendar
Posted by Ed Crowley at 12/1/2003 4:19:45 PM
How can I extend the MonthCalendar control to allow multiple date ranges to be selected? For example, I'd like to pass 01/01/2003 - 04/01/2003, 08/01/2003 - 14/01/2003 and have both ranges selected on the control. Any help would be appreciated! ...more >>

Windows Forms and Peek-a-boo!
Posted by Ayende Rahien at 12/1/2003 3:47:30 PM
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is communicated solely through static method and Invoke()'s However, when I close my second form, the f...more >>

Directory Service Query Show NT-style Name?
Posted by poi at 12/1/2003 2:51:15 PM
I query a Win2K domain controller to get the users inside a global group. But my query only shows "name" and "name@xxx.xxx.xxx" , it does not show it as "domain\name". Where can I get the pre-windows 2000 domain nomenclature to show? DirectoryEntry userEntry = new DirectoryEntry( user...more >>

XmlDocument problem
Posted by Ayende Rahien at 12/1/2003 2:38:10 PM
Serious problem I'm using Chris Lovett's SgmlReader class SgmlReader sr = new SgmlReader(); XmlDocument xdoc = new XmlDocument(); sr.DocType = "HTML"; sr.InputStream = new System.IO.StringReader(node.InnerText); xdoc.Load(sr); foreach(XmlN...more >>

Excel Header and Footer Font from c#
Posted by John hoffman at 12/1/2003 2:30:31 PM
Hello, I am trying to set the MS Excel header and footer font using automation from C#. I can set the text using: oPageSetup.LeftHeader = "Header Text"; but how do you set the Font size???? TIA, John Hoffman ...more >>

Getting Type of Array Members
Posted by Laszlo Szijarto at 12/1/2003 2:18:26 PM
I'm iterating through various members of a struct using Reflection. While I can use fieldInfo.FieldType.BaseType to determine that a member is an array, how do I determine what that array is an array of. e,g., I want it to tell me that a UInt32[] member is an Array of UInt32 (via code). Th...more >>

BUG: To hang or terminate the debugger
Posted by discussion NO[at]SPAM discussion.microsoft.com at 12/1/2003 2:15:23 PM
In the watch window enter the following expression.. Convert.ToDouble(someDoubleValHere) where someDoubleValHere is set to some arbitary double value Watch it either lock up or exit out. ...more >>

SqlServer Notifications to C# App ?
Posted by cybertof at 12/1/2003 2:11:58 PM
Hello, Is there a way to be notified that "something happened" inside a SqlServer Table ? Is there a way to communicate this notification/event to a C# application ? Regards, Cybertof....more >>

Delegate Question
Posted by Doug at 12/1/2003 2:11:31 PM
I have a delegate and it works fine, but I'm having difficulty using it w/ a switch statement. Basically, i have a component that has a listbox with a delegate for the SelectedIndexChanged event. On the main form where i'm capturing the event I want to use a switch statement to see what the u...more >>

Sharing an open file between processes
Posted by Doug Wyatt at 12/1/2003 1:59:38 PM
So I have a log file that I'm writing with one C# program and want to open and read it in another one. I open it via : StreamWriter log = File.AppendText(logPath); log.AutoFlush = true; but when I try to read it with another application, for instance, like : StreamReader log = new St...more >>

Help me with Sqlconnection string in C#,please
Posted by djozy at 12/1/2003 1:56:44 PM
I want to make asp.net application in C# that is connected with SQL Server database. When I put this connection string: SqlConnection conn = new SqlConnection( "user id=;" + "password=;server=localhost;" + "Trusted_Connection=yes;"+ "database=Knjiznica;" + "connection timeout=30");...more >>

How to format a number.
Posted by George Ter-Saakov at 12/1/2003 1:49:57 PM
I need to format a number so it will be at least 2 characters. Example: 10 --> 10 7 --> 07 How to do that? Thanks. George. ...more >>

COM+ C# newbie....
Posted by at 12/1/2003 1:39:49 PM
I have a class that has the COM+ attributes to make it an object pool and transactional, I have strong-named the DLL and all the DLL's that it uses. I have used regsvcs.exe to register it in the COM+ catalog, I can see it in the catalog but..... When I use it from a web service I get the fol...more >>

System.Diagnostics.Process for telnet.exe
Posted by unkwb NO[at]SPAM web.de at 12/1/2003 1:38:53 PM
What I try to accomplish is to run "telnet.exe" as a process in C#. The C#-code below works with terminating commands, e.g. a "HelloWorld.exe". Since I'd like to communicate with "telnet" the process is still running when I already have to read from the stream. This seems to be the problem,...more >>

System resource usage
Posted by Niall at 12/1/2003 1:26:49 PM
I'm not quite sure which groups to post this to, so short of a massive crosspost, I decided on these two. I am running into troubles with resource usage of our app on Win2k and above systems. In several places, I have seen it said that the WinNT model only limits resources to available memory....more >>

How to read data structure from file
Posted by George Ter-Saakov at 12/1/2003 1:21:32 PM
Hi. I need to read and analyze the header of the JPG file public struct _JFIFHeader { byte SOI1, SOI2; /* 00h Start of Image Marker */ byte APP01,APP02; /* 02h Application Use Marker */ short Length; /* 04h Length of APP0 Field */ byte Id1,Id2,Id3,Id4,Id5; short Version; /* 07h JFIF Format ...more >>

Remoting Events - only raise event in some clients
Posted by Sanjit Suchak at 12/1/2003 12:57:26 PM
Hi, I am just learning about .net remoting and have managed to get it working. However, I now want to write a basic chat program. The problem I've got is getting the server to only fire events to some of the clients. eg. Client 1 and Client 2 are connected to the Server Client 1 call...more >>

Design Issue
Posted by Mike at 12/1/2003 12:47:48 PM
I am designing an application with business objects and data access layers. I currently designed a data access layer that will encompass 3 business objects data access methods. Does it matter that I combined the DALC? The reason I did this is because the DALC only retrieves data no updates and ...more >>

Setting multiple Fonstyle enums individually ... is it possible?
Posted by Harag at 12/1/2003 12:45:56 PM
I need to set multiple Fontsyle enums individually but so far I have found that you can only set a Fontyle on creation of a new Font. My one other option is to build a function to to select between all the possible combinations of the Fonstyle enums and then create the Font but that is ugly to...more >>

How can I setup log4net so that it rolls based on date or time.
Posted by awegrzyn NO[at]SPAM comcast.net at 12/1/2003 12:23:45 PM
Currently I'm doing this: <param name="File" value="c:\\temp\\Applog.txt"/> <param name="AppendToFile" value="true"/> <param name="RollingStyle" value="Date"/> <param name="StaticLogFileName" value="true"/> does not work....more >>

Multiple constraints in generics
Posted by hungjunglu NO[at]SPAM yahoo.com at 12/1/2003 12:14:50 PM
Hi, I just downloaded rotor and gyro and am playing a bit with generics. I enclose a sample program. My question is, according to the language spec (http://msdn.microsoft.com/vcsharp/team/language/default.aspx, C# 2.0 Specification), a syntax like: public class MathEngine<T> where T: IHasX,...more >>

Regular Expressions
Posted by Picho at 12/1/2003 11:51:55 AM
Hi all, first of all, does anyone know of a newsgroup dedicated for regular expressions? second - my problem: I have a string that represents a formula of the format: "formula(...)" the formula itself can contain other formula expressions like "Calc(...)", "Assign(...)" etc these expres...more >>

Convert Widows Form Output to PDF
Posted by Fred at 12/1/2003 11:16:50 AM
What is the easiest and most cost effective method of converting a Widows Form output, within the programme, to PDF format for sending by Email. Code sample in C# would be appreciated. Regards, fred....more >>

How to open a webform in IDE?
Posted by Sarah Bram at 12/1/2003 11:16:41 AM
Hi, I have created an ASP.NET app / page with Microsoft Visual Studio .NET 2003 using C# But, when I closed VS and re-opened it later, I see all files in my project, except the webform I had designed!! How to open that webform!? What is the file extension for these webforms? Thanks i...more >>

Send Email with Attachment
Posted by Fred at 12/1/2003 11:12:34 AM
Is there a good code sample, in C#, showing how to send eamil with attachment, from a Windows Form like 'Send To' in Word, that will pickup Contacts in Outlook/Exchange 2000. I have searched all known sources. Can someone please help. Regards, Fred. ...more >>

C# Antipatterns?
Posted by John McClenny at 12/1/2003 11:06:48 AM
Java has been around long enough to collect a large set of antipatterns to collect knowledge about things that don't work/scale well. Does anyone have good sources for the equivalent .NET/C# antipatterns? What are the gotchas in building complex/large C# apps? TIA...more >>

largest array possible
Posted by tony collier at 12/1/2003 10:06:10 AM
i have created a 7-dimensional array [11,11,11,11,11,11,11] which has 19.5 million elements. when i try to create 8-dimensional array i get out of bounds system exception. does anyone know if this limitation is due to amount of memory in my pc or a limiation of c# language? thanks ...more >>

Dot Net Code in a Not Net World
Posted by db_from_mn at 12/1/2003 10:04:01 AM
Is it possible for me to create, using a .NET language, controls that are usable in a non-.Net application? Specifically, I have a customer that uses Delphi. Could I package code for interfacing with my USB-based device into a form that he can use? If so, could you suggest a general strateg...more >>

Updating XML through strongly typed dataset
Posted by Big D at 12/1/2003 9:58:30 AM
Hi all, I have an xml file that I load into a strongly typed dataset via the ReadXML method of the dataset. I then want to add a new row to the dataset and save it back to disk. Each row in the dataset is defined as an "entry", so I have a entryDataRow member of my Entries dataset. Howeve...more >>

enlist contents from CheckedItems collection of CheckedListBox
Posted by ghanchi NO[at]SPAM bigfoot.com at 12/1/2003 9:45:24 AM
What is the straightforward way to get the checked contents of a CheckedListBox. I have a method that is supposed to return the csv string value out of CheckedItemCollection. But I don't kow how to access the actual values when iterating through the collection (value can be either DisplayMember...more >>

SQL Update performance
Posted by hrhoe at 12/1/2003 9:28:15 AM
Hi, I created a C# program that update SQL Server table row by row. I referenced third party dll file to do the necessary modification for each row. And I used foreach loop to update data in the table. The problem is the poor performance. If I use the third party program, I can process 10,...more >>

Rendering HTML inside Windows Forms
Posted by Jay at 12/1/2003 9:19:25 AM
Hi all, May i know if there is any way by which we can render a given HTML inside .NET Windows Forms? We had the Web Browser controls in Visual Studio 6. Is there a follow-up of that in VS.NET? Most recently, HTML rendered dialog boxes seemms to be in vogue. Can anyone please help? ...more >>

Common function?
Posted by ll at 12/1/2003 9:18:50 AM
Hi, How to make a common function so other pages can call directly? Thanks. ...more >>

parameters in functions
Posted by sergey.blokhin NO[at]SPAM ca.com at 12/1/2003 9:10:19 AM
Hi everyone, I have a newbie question, Say I have : ----------------------------- class Class1 { private int field1; private string field2; } class Class2 { public bool func1( Class1 cls1){ return (cls1 == null); } } ------------------------------ as I understand when func1 g...more >>

The difference between GetTypes() and GetExportedTypes() methods of the Assembly class.
Posted by Abdessamad Belangour at 12/1/2003 8:28:27 AM
Hi all, An assembly is composed of a set of modules. An Assembly and a Module classes have a GetTypes() methods. Moreover, an Assembly class has a GetExportedTypes() method. 1. This means that if i use the GetTypes() of an Assembly class there's no need to browse its modules and call their GetT...more >>

Can create object using C++ CoCreateInstance, but not using C# Activator.CreateInstance
Posted by Brian Rogers at 12/1/2003 8:26:24 AM
Hello everyone, I apologize for the cross and re-post, but I am still searching for an answer. Why can C++ can create this object, but C# can't? I am trying to create an instance of the default FTP asynchronous pluggable protocol adaptor, so I can analyse the traffic between urlmon.dll (I...more >>

Getting a list of all domain users log in names
Posted by Jax at 12/1/2003 7:22:57 AM
Is there a way to do this on an NT network, i'm trying to populate some comboBoxes with the names of all the users on the network. I'm just wondering if there is something within the framework that can give me all of them without any difficulty, otherwise it's text file time. Many thanks...more >>

Error: No expansion Template were found?
Posted by Robert Phan at 12/1/2003 5:35:18 AM
I was modified the expansions.xml to learn about expansion snippet. Now I got error when trying to invoke the expansion. Error is "No expansion template were found...". Do I needed to reinstall the whidbey alpha bit to get this to work?...more >>

Executing an insert Command from the Connection object
Posted by lilush at 12/1/2003 4:18:04 AM
Hello, i have a project where every time i want to add or update something in the DB i use the datatable and dataadpter and i build an insert sql command or an update sql command to the dataadapter and then use the update. i want to know if i can execute the command i make directly through...more >>

Initializing a struct with spaces
Posted by Eric Johannsen at 12/1/2003 2:53:00 AM
Hi, My C# code is calling VB6 code, which expects all (fixed-length) strings to be padded with spaces. The strings are contained with a struct, something like this (attributes to simulate fixed-length in C# omitted for brevity): struct MyStruct { int someValue; string myString; ...more >>

Reading in XML file using C#
Posted by gerald.maher NO[at]SPAM waytohere.com at 12/1/2003 1:56:14 AM
Hi Reading in XML file using C#, changing elements and saving back to the file, how can i do that ? I want to be able to read an XML file and read out Elements. for example <name>Tom</tom> When I read from a file i want to save the XML document in memory of the computer and when i am fin...more >>

Repost: Dataset problems
Posted by Martin Hazell at 12/1/2003 1:16:10 AM
I have had a form within a project that has been tested and working for the past 4-5 months. The other day, I decided to change all of my database connection strings into a dynamic property for a few reasons. All was OK until testing a particular form, and I got a strange error when open...more >>

How to read the correct data by c#after user change excel file data?
Posted by Napo at 12/1/2003 12:46:05 AM
Hi I use a c# method to open an excel file and to read it's data.But i find a problem that if i changed the excel file data manually by using excelapplication,the readed data by c# method isn't the modified data,it's old data still! I think that maybe caused by c# use a data cache . How to...more >>

How to display a fixed column in a datagrid?
Posted by Napo at 12/1/2003 12:11:07 AM
Hi i have about twenty columns displayed in a datagrid,and the first column is "EmployeeID" column.Now,i want to display the "EmployeeID" column awalys when i drag the datagrid's scrollbar.What can i do Thanks ...more >>


DevelopmentNow Blog