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 2004 > threads for wednesday january 28

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

Need help with converting classes to diagram
Posted by pei_world at 1/28/2004 11:58:50 PM
Hi there, I have a VS2003 project, it contains lots of classes I have used in my app. I want to export the structure of them as UML like diagram. can anyone tell me how to do it in VS2003 or VS.net ...more >>

Printing a text file from a web application?
Posted by Benny at 1/28/2004 11:20:00 PM
Hello Experts, Currently I working on a web application using vs.net with C#. I require to create an invoice to a text file and print the file. I have no problem with writing to the text, but how can I print a text file using C# in a web application? Any articles that shows you how can this ...more >>

Word.ApplicationClass
Posted by indexnode NO[at]SPAM yahoo.com at 1/28/2004 10:33:39 PM
Hai, Has any one used Microsoft Office Word in C# Application. How can i combine two word files into a single word file using the Word.Application and Word.Document classes. I know how to autogenerate a word doc but how to combine two existing documents into a single doc file. Any Ideas | ...more >>

C# program stops execution of BAT file...
Posted by TomTom at 1/28/2004 10:32:58 PM
I have the following code in a batch file. I want the timerstart.exe to start in the beginning of the batch file, but it must not stop the "lots of process" below. Currently, the lots of process begins after the timerstart.exe ends, which is not desirable. Can anyone give me a suggestion how to ...more >>

use of volatile keyword
Posted by Assaf at 1/28/2004 10:21:20 PM
hi all i know that i should not cross-post, but i am not sure to which group to post this question. 2 quesions about volatile: 1. i use volatile when 2 threads access the same variable is this the proper use of volatile? 2. when declaring a variable of type long, i get a compilat...more >>

Interfaces???
Posted by Adie at 1/28/2004 10:14:28 PM
Hi, can anyone have a go at explaining what an "Interface" is used for and what exactly it is? [attributes] [modifiers] interface identifier [:base-list] {interface-body}[;] MSDN is a little abstract for my level of knowledge. Thanks!...more >>

Icon in Datagrid Column..
Posted by Sebastien Arcand at 1/28/2004 10:04:47 PM
I am searching a way to add an icon instead of text in the header of a column style.. Does someone can give me come hint ???...more >>

out of scope
Posted by JT at 1/28/2004 9:16:56 PM
Hi, I like to output log to help with debugging. When there's a lot of recursive functions, I like to increase the indentation of each line so I know where I am "in the recursiveness". To do that indentation (when I program in c++), I use a class that increases the indentation in the consturct...more >>



OOD theory question
Posted by designconcepts at 1/28/2004 9:11:36 PM
bo'jour, bo'jour, So I have question to present to the forum about OOD. This is a Csharp forum, but C# is the lang of choice and the question is an exercise based on some comments by the chief designer of C#. Those of you who are junkies for design principle might be interested in contributing t...more >>

new programmer question
Posted by Ernest Griffin at 1/28/2004 8:59:38 PM
I am teaching myself C# and was trying to build a small calculator. I am trying to validate the process of ensuring that Integer keys are pressed. I thought that I was able to capture the appropriate place for intercepting the key press event and parse the result to determine which key was pre...more >>

Using Variables in XPath Expressions
Posted by ms236 NO[at]SPAM evansville-dot-edu.no-spam.invalid at 1/28/2004 8:58:32 PM
I have a textBox that contains a string values. I need to take this string and use it as criteria for an XPath Expression. Here's what I have. Why isn't it working??? string s = textBox1.Text; XPathExpression expr; expr = myXPathNavigator.Compile("/NewDataSet/note[@to=$s]");...more >>

Using Variables in XPath Expressions
Posted by ms236 NO[at]SPAM evansville-dot-edu.no-spam.invalid at 1/28/2004 8:58:31 PM
I have a textBox that contains a string values. I need to take this string and use it as criteria for an XPath Expression. Here's what I have. Why isn't it working??? string s = textBox1.Text; XPathExpression expr; expr = myXPathNavigator.Compile("/NewDataSet/note[@to=$s]");...more >>

Are OwnerDraw button supported in CSharp
Posted by thisiscrazy001 NO[at]SPAM yahoo.com at 1/28/2004 8:42:08 PM
Hi All, Are ownerdraw buttons supported in C# ? I have an active X control which I would like to use in CSharp. Buttons have a style BS_OWNERDRAW, and to do custom drawing you have to handle WM_DRAWITEM message. It works greate in all languages except CSharp and VB.net. As soon as I c...more >>

C# Rocks
Posted by C# Learner at 1/28/2004 7:49:52 PM
I can create an app, with the following structure of namespaces and classes: MyApp.UI.MainForm, MyApp.UI.SecondayForm MyApp.Functionality.SomeClass, MyApp.Functionality.SomeOtherClass How cool is that?...more >>

simple asynch web request question
Posted by mtrinneer NO[at]SPAM hotmail.com at 1/28/2004 6:54:31 PM
Hi everyone, I have what I think is a simple question concerning making an asynchronous web request using the BeginGetResponse / EndGetResponse methods of httpWebRequest. My app needs to fire off a bunch (possibly thousands) of http requests at once. Each request calls a java servlet which p...more >>

[OT] What is AOP
Posted by Abhishek Srivastava at 1/28/2004 6:10:22 PM
Hello All, What is aspect oriented programming? How it is different from OO ? Can one use AOP in C# programs? Thanks for your help in advance. regards, Abhishek....more >>

href in a table cell
Posted by Rajni at 1/28/2004 6:03:39 PM
Hi ! I have a server side table (System.Web.UI.WebControls.Table) and I want to make the text of one of my cells as hyperlink. Does anybody know how to do it? Thanks, Rajni ...more >>

Windows Form ?
Posted by WJ at 1/28/2004 5:56:58 PM
My app. has a dozen forms. Some of them are "Disposed()" when the user clicks the top-right "X" button. Some are not purged (I use "purge" to mean that the form/object is completely removed from the RAM) despite the "X" button is touched. In c#, I need to know how: 1. To show a list of form...more >>

Can I generate a GUID inside C#?
Posted by babylon at 1/28/2004 5:41:27 PM
I know how know to generate it using guidgen.exe any builtin routine in .net framework to do that? thx ...more >>

Error : there are no registrable types in the built assembly
Posted by Prigozhin Roman at 1/28/2004 5:30:41 PM
I'm trying to create a com object, code looks fine for me ( like other com objects I've created ) but this time I'm getting error : "There are no registrable types in the built assembly" Anyone knows how to fix it ? About my object : + In project options I have option "Register for COM Inte...more >>

Rebooting
Posted by A at 1/28/2004 5:14:24 PM
Anyone have any code to reboot from a C# app? ...more >>

Alternatives to MI in managed code???
Posted by Bret Pehrson at 1/28/2004 5:03:59 PM
Since managed code (C++/C#/etc.) doesn't support multiple inheritance, does anyone have a suitable work-around? To me, this is a *serious* limitation of the .NET subsystem. I'm aware of *interfaces*, but they are for the *USER* of the class, not the *IMPLEMENTOR*. I'm also aware of adding mu...more >>

Converting from int to a Roman Numeral string
Posted by Jeffrey A. Voigt at 1/28/2004 4:58:39 PM
Can someone tell me why this was not provided in .net? Or can someone at least point me in a direction to download a class file to handle this for me? Thanks, - jv ...more >>

DataAdapters
Posted by JJ at 1/28/2004 4:56:12 PM
Hi All I have a DataAdapter that I create in a middle data tier. Now if I called that middle data tier class and it creates that DataAdapter that is global in that class does it persist through the life of the App Thanks J ...more >>

document store database
Posted by selen at 1/28/2004 4:52:27 PM
if any one have any sample or document which can help me to parse word document to store in sql server database c# aspnet Thanks ...more >>

stop the GC
Posted by Vadym Stetsyak at 1/28/2004 4:47:29 PM
Hi there! Is there any way how can I stop garbage collection for a period of time. Lets say, I have a form. Before form load I pause the GC and when the form is shown resume GC ...more >>

send big5 xml request to servlet
Posted by Mullin Yu at 1/28/2004 4:46:31 PM
i try to send a big5-encoded xml request to a java servlet by two ways 1. vb6 => success 2. c# => all chinese character becomes ?????? my c# coding is as following: i wonder will it convert my big5 chinese to utf-8 or utf-16 already before sending. any clue and suggestion: mlDocument x...more >>

doubt in C#
Posted by Baskar RajaSekharan at 1/28/2004 4:46:09 PM
Hi, I have a C# usercontrol which has an OCX in addition to combo, textboxes etc. i need to print the usercontrol. How could this be acheived? In VB there is one method called PrintForm . Is there any method like in C#? Regards, R.Baskar ...more >>

String.Format
Posted by Hai Nguyen at 1/28/2004 4:32:03 PM
Hi everyone I have a textbox which acts like a counter. I want to format the number in 4 digits; for instance, 1 -> 0001 10 -> 0010 Is there anyway I can do that? Thanks ...more >>

Best way to Read/write user/machine setting configuration files
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 1/28/2004 4:24:32 PM
In the beginning we had Ini files. Later we had registery files. Now have xml files and our read-only myapp.config file. My question now, is what is the best way to store and load user and machine specific settings for a .NET program? And what classes, or code do we have to do this in C#? ...more >>

How to convert a structure to byte array.
Posted by Prabhu at 1/28/2004 3:48:36 PM
Hi, I have to send a structure through TCPClient socket. we can send only byte array through the socket, So please any one can help me by telling How to convert a struct object into an byte array.. Thanks & Regards Prakash Prabhu ...more >>

XML Schema Validation in c#
Posted by Dave at 1/28/2004 3:46:32 PM
Hi, I'm really confused as to how to validate XML fragments against a schema in C#. I am creating XML through an automated process and have an .xsd which was given to me to validate against. Can someone give me some clue as to how to validate my XML string against this schema document? ...more >>

How to delpoy a .Net application
Posted by Thorpe at 1/28/2004 3:41:21 PM
I have build a .Net (C#) winform application. The application opens and reads and writes to an xml file that is stored with the assembly. When I run the program on my local PC everything works. I have the need for a number of different people to run the application. I copied the assembly and r...more >>

File transfert application
Posted by Alexandre Jaquet at 1/28/2004 3:22:58 PM
Hi, I currently design an application for sending files between two users and having questions about the transfert of files. What's the best I can do to ensure files are send, I will need a pause and continue states. (If a user crash or quit he quit before the file are complety send). T...more >>

Inheritance base... AGAIN!!!
Posted by news NO[at]SPAM mikendy.com at 1/28/2004 3:20:59 PM
I need ... maybe this construction possible???? class OrderHeader { .... // method, that passing initialized base class (OrderHeader) into new Order public Order ConvertToOrder() { return (Order) this; } } class Order : OrderHeader { .... } ...more >>

Inheritance and base ???
Posted by news NO[at]SPAM mikendy.com at 1/28/2004 3:09:47 PM
Is this construction possible???? class MyClass1 { .... } class MyClass2 : MyClass1 { .... } ..... somewhere in the code: MyClass1 myClass1 = new MyClass1() MyClass2 myClass2 = (MyClass2) myClass1; Can I simply convert base class into inherited class??? Or how to pass initiali...more >>

How to: Create component class which doesn't show in a component bar?
Posted by Marcin_Grzêbski at 1/28/2004 3:04:50 PM
Hi All, How to create *component* class which do now show its instance in a component bar? I want to create other class, this *component* instance collection and i know how to show that component collection in a designer. But my problem is to avoid showing any new added instance of *compo...more >>

New programmer and network.
Posted by sp000n at 1/28/2004 2:31:10 PM
While teaching myself to program, I've undetaken a little game project akin to Battleship only it's not turn-based. The stand-alone version is working fine but I'd like to expand it to include a head-to-head feature. With the program running on two computers, I wish to manually input the IP of t...more >>

Compiler Error Request.
Posted by Sean Wolfe at 1/28/2004 2:22:55 PM
I have a request for the c# compiler one that is an obvious oversight in my opinion. I'm not sure if this is already being implemented in Whidebey, bu i would hope to find it in there, or in the next version. Working with properties, and the neaming convention that Microsoft has recommended...more >>

MAKE MONEY from HOME!!!
Posted by SUSPORT at 1/28/2004 2:10:47 PM
MAKE MONEY!!! MAKE THOUSANDS!!! I found this on a bulletin board and decided to try it: I don't care about the useless pre-fabricated crap this message usually says. All I say is, it works. Continue pre-fab crap. WELL GUESS WHAT!!! Within seven days, I started getting ...more >>

Process Question
Posted by A at 1/28/2004 1:19:13 PM
Hi all, This is sort of a newbie question. I have a method that creates a process which in turn installs MSDE. Basically, after I start the process I need to wait until it is complete and then reboot the machine. Problem is that I am unsure of knowing exactly when the process has completed s...more >>

String Init best practice
Posted by Alvin Bruney [MVP] at 1/28/2004 12:25:20 PM
Sorry if this appears twice. Our mailserver died with that virus. I see advice on this newsgroup about initializing strings to null. I believe it is more prudent code to initialize a string variable to string.empty instead of null. this leads to more robust code because a programmer may try ...more >>

Books
Posted by Keith at 1/28/2004 12:06:04 PM
I have done some development in VC++ 6. No component based apps, only self contained exe's. I would like to get into .Net and C++ or C#, and start developing distributed applications. Can anyone suggest a couple of good books? Thanks, Keith...more >>

CodeDom creating an enum
Posted by Jax at 1/28/2004 11:41:08 AM
All I can manage is public enum myEnumName The only place where implementation seems to fit in a type declaration is in the Members property Only problem is that the IsEnum switch seems to make the type declaration ignore any constructor or method members, so where on earth do I put the code?...more >>

Enum as array index?
Posted by Richard at 1/28/2004 11:04:51 AM
Okay gang, This should be simple but apparently it's not... I want to use the System.DayOfWeek enum to create and access an array of objects with one object for each day of the week. I'd like the array declaration to be strongly typed to the enum and I'd like to use the enum to access e...more >>

Form.ShowDialog() / ShowDialog(IWin32Window)
Posted by peshrad at 1/28/2004 10:38:22 AM
Hi ! Is there anybody who knows (if possible, by theory and practice) what sense it makes to hand over an owner to Form.ShowDialog ? I cannot close/minimize the owning window while the dialog is in the popped up state. Hence, I don't understand what practical difference it makes handing ov...more >>

Collection Quick Access
Posted by MFRASER at 1/28/2004 9:53:38 AM
Ok I have a collection that inherits from the CollectionBase. Problem is that I want a quick way to access the objects either by ID or Name. I was thinking of creating two hashtables that are held privately by the collection and when a user calls the following functions it would go to the app...more >>

Effective Displays
Posted by Martin Hazell at 1/28/2004 8:31:10 AM
I have an application that reads columns of information from a database, based upon a specific key. What I am trying to do is to create an input form for this, which is where I have a problem. I have written handlers for the different types of information to be stored in the database, so that an...more >>

Serial Communication
Posted by carmen at 1/28/2004 8:21:45 AM
I'm working in an aplication for a Smart Device that need to "talk" with a printer continuosly through the serial port. I'm trying to use the John Hint's sample code "Use P/Invoke to develop a .NET Base Class Library for Serial Device Communication" but I'm new with VC# and need some basic rules ...more >>

I need a BrowseForFolder in C#!
Posted by Ryan Trevisol at 1/28/2004 7:56:07 AM
I'm attempting to find the class that I can use to get a "Browse For Folder" dialog similar to SHBrowseForFolder, in C#. I can't seem to find anything that comes close. I'm developing a small, small application to create M3U Playlists from my hierarchical organization of digital audio. I have the ...more >>

Converting integer to hex string
Posted by Dan at 1/28/2004 7:51:51 AM
Does C# provide a function for converting an integer to a hex string? ...more >>

Parameter Access Queries
Posted by Jim Heavey at 1/28/2004 7:23:27 AM
If I trying to write code which is not dependant on which database I am using. I have developed the code for SQL Server and it is working just fine, and now I have created the same data in MS Access. I am currently running all stored procedures. I know that I have run "procedures" in acce...more >>

Wierd problem
Posted by zedyounis NO[at]SPAM yahoo.co.uk at 1/28/2004 6:05:02 AM
I have a peculiar problem, I have a tabpage with a label control on it. When i set a background image to the tabpage and drag the label around it has paint issues in that it is slow, granted the image i am using is 5mb!!! HOWEVER... I have inherited the tabpage created an Image reference in ...more >>

Initialize int[] (or any other array of objects)
Posted by IwanBel NO[at]SPAM hotmail.com at 1/28/2004 5:17:51 AM
Hi, What is the best way to initialize an new integer array? (performance, readability, etc..) int[] integers = {1, 2, 3}; or int[] integers = new int[] {1, 2, 3}; note: first syntax will fail when assigning a value to the array int[] integers; integers = new int[] {1, 2, 3}; /...more >>

How do I use embedded icon ?
Posted by marchel NO[at]SPAM comcast.net at 1/28/2004 5:15:40 AM
I was learning Windows programming in C# using Charles Petzold book, but this book was written for the older version of .NET. The example of using icon from embedded resource fails to work when executed step by step following the book directions and I can't find what is wrong. The executable thr...more >>

Convert class throws exception
Posted by vipin at 1/28/2004 3:21:05 AM
My C# console application takes 5 parameters two of which are supposed to be inherently integers So I do COnvert.ToInt32(args[3]) There is no problem with the console application when I run it at the command prompt But the above statement raises an exception when I use CreateProcess(NULL,C...more >>

Event handling in Child MDI forms
Posted by Nitin at 1/28/2004 1:56:06 AM
Hello, I am developing an application wherein I have a MDI form. In this form I am generating Child MDI forms dynamically using a database. I have general functions for adding button, label, textbox, etc. on the child form. I need to know if I can get a Event handler for the button click on a par...more >>

modal dialog and Application.run
Posted by Cosh at 1/28/2004 1:31:07 AM
Hi I want to ask for a user before running the application, and be able to restart the application if the user wants to change the "user" In my main methode I have something like this (pseudocode) static void main() //My user dialoo MyUserDialog mud = new MyUserDialog( do if(m...more >>

Grids ?
Posted by Dmitri Shvetsov at 1/28/2004 1:00:22 AM
Hi, Did somebody see any good grids for C#? Could you post the links? Thanks, Dmitri ...more >>

Which C# libraries are ISO standard?
Posted by Brandon J. Van Every at 1/28/2004 12:37:18 AM
I would like to know which libraries commonly employed in conjunction with C# are ISO standards. I have been looking at the standards docs on the ECMA website, and they are not easily understood on this point. In fact, some sections like Partition IV seem to be missing information. If I have m...more >>

Clear Screen
Posted by Sabin Finateanu at 1/28/2004 12:07:51 AM
Hi! Can anyone tell me how can I clear the screen (terminal) in a C# console application? ...more >>


DevelopmentNow Blog