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# > october 2003 > threads for tuesday october 14

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

Can web methods be overloaded ?
Posted by john bailo at 10/14/2003 11:27:07 PM
Can a web method be overloaded? To support varying numbers of input parameters? ...more >>


Debug and Trace
Posted by Kevin at 10/14/2003 10:10:50 PM
Hi All, Can someone please tell me what the difference is between DEBUG and TRACE. From what I can see, they are two different classes, but with the same members? Whats the purpose of have two different classes that seem to do the same thing? Thanks alot for any help, much appreciated ...more >>

SMTP Mail
Posted by Peter at 10/14/2003 9:45:52 PM
I am trying to send SMTP mail: I have the following code which works fine on one domain, but not on = other. It does not work until I remove the Message-ID: line, than it = works just fine. =20 Here's how I removed the Message-ID line: I stopped the SMTP service (so I could edit the mail f...more >>

[STAThread]
Posted by warren at 10/14/2003 9:35:25 PM
Hello, Anyone can brief me what is this [STAThread] in front of the Main method for? and when must it be there, and when is it optional? thank you. ...more >>

Datagrid problems
Posted by Jens Strom at 10/14/2003 9:05:50 PM
why i have no datas in my datagrid but i have 16 rows but no columns. 16 rows that is the correct rows for all my datas but i dont see thes datas in my datagrid. someone a idea? Thanks Jens // Set up the DataAdapter and fill the DataSet da.SelectCommand = cmdSelect; da.UpdateCommand =...more >>

Hiding Proble Of the Form
Posted by Alireza Haghshenass at 10/14/2003 8:39:14 PM
Dear All, I have got a problem when trying to hide the form at start up of the program. I tried all the ways but at start up it fails. ...more >>

CreateProcessWithLogonW() Problem (advapi32.dll)
Posted by Alireza Haghshenass at 10/14/2003 8:36:56 PM
Dear All I am already using CreateProcessWithLogonW() to create a process under an specific user but when i try to load that program again from an xml file I get an error like this. File not found. I mean the executable file is not recognized. until I open the open dialog and go to the folder of...more >>

Regex to recognize math/string functions
Posted by Tim Conner at 10/14/2003 8:35:06 PM
Hi, Thanks to Peter, Chris and Steven who answered my previous answer about regex to split a string. Actually, it was as easy as create a regex with the pattern "/*-+()," and most of my string was splitted. I am fascinated to the powerfull use of this RegEx class, so I wonder if it could go...more >>



Whats wrong with this C# compiler :D Can you guess the OBVIOUS mistake on Eric Gunnarsson's part.
Posted by Mr.Tickle at 10/14/2003 5:58:59 PM
// Run this code and look for his obvious error by the compiler namespace FlagCheck { using System; [Flags] enum SomeFlags { None = 0, One, Two, Three, Four, Five, Six, All = One | Two | Three | Four | Five | Six } class Class1 { ...more >>

How to use mfc71.dll and msvcr71.dll
Posted by Fabian Heuberger at 10/14/2003 5:54:53 PM
Hi there I've seen some apps proged with this new styles (styles like VS.NET). I think, this apps are using the mfc71.dll and msvcr71.dll from M$. I don't know how i have to implement this dll's that i can get this new styles (menu, toolbars,...). Does somebody know how to use this? the ...more >>

More than one datafield in BoundColumn
Posted by Lars Pedersen at 10/14/2003 5:37:24 PM
Hi. I'm having a datagrid which i build dynamically in codebehind, adding each column to the grid. One of the Boundcolumns contains an Image, and that's ok. I just want the formatstring to act as a link, pointing to another page and should contain the ID from a datasource, like this: col...more >>

[ADO.Net, Access 97] how to determine the exact type of DateTime column
Posted by scj at 10/14/2003 5:23:55 PM
Hi all, I need to determine the exact type of DateTime column(*) in an Access 97 database. I'm able to do this with an Access 2 database. With ADO.Net and VB.Net (**), I do something like this : Dim oDT As New DataTable() Dim oCnx As OleDbConnection Dim oGUID As New OleDbSchemaGuid() ....more >>

virtual override
Posted by Urs Wigger at 10/14/2003 5:22:39 PM
Hi, In a mangaed C++ wrapper class, I have some pure virtual function declarations: public __gc __abstract class CESCSAPICommand { ...... // Test only virtual bool Test(int i1, int i2) = 0; // SendPacket() takes address and size of a byte array buffer: virtual bool...more >>

EventHandler
Posted by Matias Szulman at 10/14/2003 4:23:33 PM
Hi! I need to know if an event (i.e. button1_click) has an eventhandler associated. Is this possible in c#? Thanks, Matias ...more >>

gacutil -u
Posted by alien2_51 at 10/14/2003 4:12:31 PM
This component had been installed as a windows service using the Installer class.. it was later uninstalled succesfully... Any ideas....? C:\mncprojects\vsprojects\VS2003\MNCBDOServiceLibrary\bin>gacutil -u MNCBDOServiceLibrary Microsoft (R) .NET Global Assembly Cache Utility. Version 1....more >>

C# events/threading
Posted by Bardo at 10/14/2003 4:07:37 PM
Hi, I have a situation where I am capturing both a WMI event utilising the "ManagementEventWatcher" in the "System.Management" namespace, and a corresponding event ("EntryWritten") raised from the "EventLog" object in the "System.Diagnostics" namespace. When a certain event occurrs, both a WM...more >>

New keyword - declare & instantiate at the same time
Posted by Jason Shohet at 10/14/2003 3:58:50 PM
2 questions for anyone who can answer: 1. in class declarations, I realize you have to use the NEW keyword if you want to declare & instantiate some class at the same time. Whats an advantage for just declaring at the top of say, an aspx page, and then instantiating when you need it in vario...more >>

Automating SQL Setup.
Posted by snazystyl NO[at]SPAM hotmail.com at 10/14/2003 3:53:49 PM
Is there a way that I can Automate SQL Setup via C#, PERL or VB?...more >>

How make Release build use references to Release components & visa versa?
Posted by Ed Sutton at 10/14/2003 3:46:27 PM
My solution contains multiple C# and C++ components as well as a deployment project. In my top-level C# WinForms application, I added references to some components by browsing to the \bin\debug\*.dll of the desired component. How can I make it use a debug build of a component for a debug build...more >>

Stopping a Long Running Query
Posted by Kory at 10/14/2003 3:28:12 PM
How do you stop a long running query with a SQLConnection or SQLCommand? Calling Close on either just waits until the query is done. Is there a way to stop it? The following on a long query SqlConnection mySqlConnection = new SqlConnection("server=(local)\\NetSDK;Trusted_Connection=yes;da...more >>

Connect to Pocket PC Device
Posted by cfyam at 10/14/2003 3:23:45 PM
How can I scan com ports and connect to Pocket PC Device via ActiveSync? ...more >>

Struct with array(s)
Posted by Olav Langeland at 10/14/2003 3:01:00 PM
I am reading data to/from a file which contains C++ structures like this struct StructCPP { long lDgType; FILETIME ftDgTime; char cName[128]; char cVersion[30]; char cSpare[98]; long lCount; } I am trying to access the data in the file using C# structures like this: str...more >>

static modifier and interfaces
Posted by Andy at 10/14/2003 2:59:57 PM
Why can't I create an interface and make its implementation static/shared? Is there some pattern that lets me work around this? Any explanation of why this is would be appreciated. This is the message I get for the following code: 'staticInterface.Class1' does not implement interface...more >>

Restricting access to a class' field to only one other class
Posted by Dennis C. Drumm at 10/14/2003 2:58:29 PM
Is there a way with C# to allow one class access to a method or field of another class, without making that method or field visible to all other classes, as would be the case when making the method or field public? Thanks, Dennis ...more >>

NDOC manual
Posted by Henrik Dahl at 10/14/2003 2:38:10 PM
Hello! I'm trying to use NDOC and definitely it seems like there are many comprehensible options to benefit from. Do some of you know if there is a manual for NDOC somewhere which makes it possible to actually understand and use the features of NDOC appropriately? Best regards, Henri...more >>

Custom ValueType to Accept 128-bits
Posted by Shawn B. at 10/14/2003 2:37:10 PM
Greetings, I know I can create class that "implicit"ly accepts an 8-bit to 64-bit value. Without using double, or single, I would like to create my own "unsigned" 128-bit valuetype (to be used with my Binary objects I recently created http://www.visualassembler.com/binary) but I don't know ho...more >>

strange date-time format
Posted by Pawel Janik at 10/14/2003 2:19:58 PM
Hello... I have the following problem. I have date in ddMMyyHHmmss format. Is there some Parse(String format) method, because i cannot find goot parameters for DateTime.Parse(....)? -- pozdwawiam, Pawe³ Janik ...more >>

XML and strongly typed datasets
Posted by MC D at 10/14/2003 1:53:26 PM
I have a situation in which I have a strongly typed dataset based on the schema of a xml document. This works great, and OMG I love strongly typed datasets... ;o) However, The situation I have has a nested complex type. For example: <PAGE> <PAGENUMBER>1</PAGENUMBER> <PAGETITLE>T...more >>

arrays and constructors
Posted by smittod NO[at]SPAM auburn.edu at 10/14/2003 1:51:09 PM
I have this code, but I get a runtime error that says arr[34] isn't set to an instance of a class. So how do I initialize an array of objects, calling all the constructors for each thing in the array? -thanks -todd using System; using System.Windows.Forms; class Shape { public int a...more >>

using a delegate in a user control to pass click events to a parent form
Posted by todd_schinell NO[at]SPAM hotmail.com at 10/14/2003 1:29:25 PM
Back in July, Jeffery Tan posted this: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OWOTdf0VDHA.2296%40cpmsftngxa06.phx.gbl In response as to how to get click events from a user control to invoke a method in the parent form. This code doesn't seem to work for me, I've t...more >>

Regular expression to replace contents between brackets
Posted by SamIAm at 10/14/2003 12:28:21 PM
Hi I want to replace the contents between brackets i.e. string text = "this is a sentence (replace me)"' Thanks, S ...more >>

how to initialize static table?
Posted by Pawel Janik at 10/14/2003 12:27:53 PM
Hello.. I have some static functions, that do somple conversion. But to do this conversion, I have to use some conversion tables. And now the question: how to fill this conversion tables (the cannot be initialized in declaration, this is too complex). Now, i do somethink like this: stati...more >>

XML Doc - any javadoc like utility?
Posted by babylon at 10/14/2003 12:20:46 PM
I know that the xml comment (///) can be extracted to a xml file using compiler switch /doc but what should I do with the resultant xml? is there any tools to compile it to .chm or html like javadoc? thx. ...more >>

WinControl Property option
Posted by Tomislav Markovski at 10/14/2003 11:51:16 AM
Hello, How can I add a link to a control which appears in the Propery tab during design-time for a certain control. For example, something like the SqlDataAdapter has link options for "Configure Data Adapter", "Generate DataSet" etc. The links that appear at the bottom where Property Descript...more >>

resize event handler
Posted by Laxmikant Rashinkar at 10/14/2003 11:37:50 AM
Hi, I have an event handler that gets called whenever my panel is being resized. Since a lot of painting is going on whenever my component is being resized, I would like to paint my component only when the last resize event has been received; in other words, when the user has released the left...more >>

Datagrid Questions
Posted by pcPirate at 10/14/2003 11:35:51 AM
Hi, In C# i) Is there anyway to input value on particular cell in datagrid in the coding? ii) How do I save the contents of the datagrid back to database? iii) I've made a custom datagrid myself, with button on column. However, what I really want is actually a textbox with button in...more >>

Crystal Report?
Posted by LL at 10/14/2003 10:57:16 AM
Hi, I have a web application using Crystal Report. How to deploy it to a production machine(only have .Net framework)? Thanks... ...more >>

How Do I...
Posted by Jim at 10/14/2003 10:49:35 AM
how do I convert a string representation of a system.Type into a System.Type object? Cheers Earth Worm Jim ...more >>

Thead Performance
Posted by Dan at 10/14/2003 10:34:09 AM
All, I have an application that transfers files from one machine to another machine (in a remote location) via FTP. My question is in regards to the performance of the FTP transfer. Am I better to run a single thread and transfer one file at a time to the remote machine or am I better to ...more >>

Data transfers
Posted by Sean McKaharay at 10/14/2003 10:20:59 AM
Hey All, I am trying to write an app that will transfer data from one SQL Server to another. Here is my situation: I have 2 computers neither one is connected. I have the same database on both computers. I need to update the data at the end of the night to reflect the changes on the particu...more >>

Exposing properties in COM
Posted by Prigozhin Roman at 10/14/2003 10:01:37 AM
But if I do this, then later in the code where I'm implementing set and get functions I'm getting error : Class already contains a definition for 'MyProperty'. Probably I'm not implementing set and get the right way. Here is my implementation: public string MyProperty { set{ MyP...more >>

P/Invoke to Fortran DLL - weird parameters...
Posted by Holger (David) Wagner at 10/14/2003 9:37:20 AM
Hi all, we're currently developing an application in the .NET environment that needs to access a DLL implemented in Fortran. There is one procedure with about 17 parameters, most of them arrays. After some trial and error experiments, we've found out that a) the parameters must be ordered b...more >>

Implementing IEnumerable on an Enumerator?
Posted by gordie_rundle NO[at]SPAM yahoo.com at 10/14/2003 9:28:18 AM
It drives me nuts that I can't use foreach with an enumerator instance. I would like the following to be functionally identical: foreach (Object o in MyCollection) ... foreach (Object o in MyCollection.GetEnumerator()) ... For enumerable types that are under my control, is there any...more >>

asynchronous socket operations - question
Posted by a.kostrzewa at 10/14/2003 9:23:01 AM
I have a question about C#. How can I stop asynchronous read/write operation ( BeginReceive() / BeginSend() ) if timeout occurs? The Socket class doesn't make any cancel method available. I used CancelIo(HANDLE hFile) method (declared in Winbase.h) in C++. Thanks for help. Olek ...more >>

how i can get the change event in the table .
Posted by muhamad kassem at 10/14/2003 9:05:06 AM
hi all i have a program that display the content of the table from sql server this table change . how i can get the change event in this table . ...more >>

crystal reports problem
Posted by Michael Schindler at 10/14/2003 8:24:33 AM
1. How i can set a variable into my form an print this variable into my crystalreport? I have a variable "title". This variable must be able to change before print. How i can set my variable into my report? 2. I have datas Nr.-----description-----Typ if the typ is "Title" i would like t...more >>

"~" at the beginning of URL references
Posted by Andrew Connell at 10/14/2003 7:45:08 AM
I can't find any documentation for the tilde (~) when it's found at the = beginning of a string in a URL. Is that something that points back to = the root of the site?...more >>

Where is the "real " ImageList
Posted by sandman at 10/14/2003 7:25:42 AM
I created an ImageList in the .NET Designer. Now I can't figure out where the images are located. Where is all this stuff stored and how do I read it? (me personally, I mean -the computer is doing it just fine.) sandman *** Sent via Developersdex http://www.developersdex.com *** Don't jus...more >>

Delegates and exceptions
Posted by woutervu NO[at]SPAM hotmail.com at 10/14/2003 4:14:19 AM
Hello all, I want to implement Timeout behaviour in a class of mine. When a method is called it should timeout after a few seconds. To do this I've built a System.Threading.Timer that calls a delegate method after x milli's, the called delegate throws an exception indicating timeout. The b...more >>

MDI Child Form problem
Posted by kalv NO[at]SPAM kalv.co.uk at 10/14/2003 3:54:53 AM
Hi, I have produced a MDI application in C#. And basically i produce a child form from the container and then i produce another child from that child. I do this by (code in child frmCustomers) frmCustomerSummary = new frmMatchSummary(....); frmCustomerSummary.MDIParent = this.MDIParent; f...more >>

Q: SendKeys and MdiChildren
Posted by Soul at 10/14/2003 1:19:14 AM
Hi, I have multiple Mdi child forms within a parent form. All Mdi child forms will have one DataGrid on it, the DataGrid is bind to a DataView and the DataView is again bind to a DataTable. In addition, there is a save button on the parent form. My problem is if a user finish input data int...more >>

wildcard searches
Posted by fred at 10/14/2003 12:44:30 AM
Hi, is there a way to compare a string to a string using wildcards. In other words is there an equivalent in C# to the VB statement: if myString like "[a-z]*[agj]#" then thanks, Fred ...more >>


DevelopmentNow Blog