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# > may 2005 > threads for monday may 2

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

Force GC to run on another application
Posted by BuddyWork at 5/2/2005 11:47:45 PM
Hello, I want to know how I can force a GC to run outside the application. For example. App1 which is where I want the GC to be collected. I don't want to run GC.Collect within this application. I want to create App2 which will call GC.Collect within App1 some how. The main reason to f...more >>

Error executing child request for...
Posted by Daniel Groh at 5/2/2005 7:39:03 PM
Hi, I've written a C# Server.Transfer from WebForm1.aspx to WebForm2.aspx In both i'm using the same user control but with different params, for example; In the user control: if(Request.ServerVariables["SCRIPT_NAME"]==Server.MapPath("WebForm1.aspx")){ lblTitle.Text = "Page 1"; }e...more >>

How to get the HtmlForm element of an ASP.NET Page?
Posted by Laser Lu at 5/2/2005 5:25:08 PM
Hello, All, I just want to know that generally how to get the HtmlForm element in an ASP.NET Page? Can anybody help? Please:) Best regards, Laser Lu ...more >>

Display hyperlink in EventLog
Posted by John Lee at 5/2/2005 5:24:19 PM
Hi, When we write an eventlog entry using EventLog.WriteEntry() there is = always a hyperlink like : For more information, see Help and Support Center at = http://go.microsoft.com/fwlink/events.asp. My Question is can we put a link there and make the url a clickable = hyperlink? I tri...more >>

how to send attachement with pop3
Posted by mimi at 5/2/2005 5:14:25 PM
Hi, I've been searching all the posts and articles but couldn't find any example on how to send attachments with pop3 using C#. Does anyone have one or know how? Thanks ...more >>

Unused constants warnings.
Posted by ESPNSTI at 5/2/2005 4:04:59 PM
Hi, Is there a way for the compiler to warn about constants that are not used? For example in the code below, could the compiler (with some sort of attribute setting or something like that) throw an error or warning stating that the DBParameters.Column2 isnt used? Thanks, Erik _____...more >>

How can I test if code is running in debug mode?
Posted by Wysiwyg at 5/2/2005 2:57:19 PM
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill ...more >>

How to stop a Windows Service from within itself?
Posted by Jacobus Terhorst at 5/2/2005 2:44:08 PM
Using C#: I tried: ServiceController me = new ServiceController(this.ServiceName); me.Stop(); it raises an exception: Cannot find Service I also tried: Process.Start("net.exe", "stop " + this.ServiceName); That did work either. from DOS: net stop ServiveNa...more >>



Class Definition Wizard
Posted by JSheble at 5/2/2005 1:52:20 PM
Does anyone know of an addon or wizard that helps with defining a new C# class/object?? ...more >>

#define on multiple files
Posted by David Young at 5/2/2005 1:45:26 PM
Hello all, I'm quite new to C# (< 6 months) but really love it and is my language of choice ..... but I have one question I've not been able to find out ..... In C++ a #define label in one file can be referanced in other *.cpp files, however in C# if I have say #define SPEED it only refers t...more >>

C# Newby Question from a VB.NET Programmer
Posted by Fred Nelson at 5/2/2005 1:14:33 PM
Hi: I've been working with VB.NET for over a year writing web applications. Now I'm going to be writing web applications in C#. So far everything that I need to do has been going pretty well with one exception: I need to make a class library that I can will use for all my operations with ...more >>

Typecasting
Posted by Christopher Weaver at 5/2/2005 12:40:20 PM
I would like to refer to the members of the 'sender' sent to the event handlers. Seems like I would need to typecast it as whatever after checking to see if in fact it is a whatever. How would I go about that? ...more >>

ClickOnce in new beta C# Express
Posted by Wilfried Mestdagh at 5/2/2005 12:30:07 PM
Hi, I just upgraded C# Express to latest beta. In this version it i possible to publish the project for the click once upgrade. it seems to work fine, however if iI try to install it via a web link, the installation link just opens an xml file. nothing is happening. Something I do wron...more >>

clarification on Shared class constructor
Posted by Paul Wu at 5/2/2005 11:51:50 AM
From what I understand, in ASP.NET, each HTTP requests is serviced by a = separate thread. So if my code uses a static Class with shared members = and properties, I can manage concurrent access by using something like = the Monitor or ReaderWriterLock class. It is rather difficult to = simulate ...more >>

Context.Handler ?
Posted by Daniel Groh at 5/2/2005 11:47:19 AM
I'm studying for C# Cert and i found a question about Context.Handler and i didn't understand. Could someone please explain me when and how do i use ? I'd like to make webapplication here for understanding better! wich kind of webapplication could i do ? Thanks in advance, -- Daniel Gr...more >>

Change Object Type at Runtime
Posted by yohaas at 5/2/2005 11:46:22 AM
I'm trying to do something, not sure if it's possible or even if it makes sense, but I figured I'd throw it out there. I have a class OrderSummary that contains information about an order. I then have two classes that inherit OrderSummary; K_OrderSummary and M_OrderSummary which are specific t...more >>

splitting a string by a delimiter and traversing it
Posted by Mad Scientist Jr at 5/2/2005 11:11:07 AM
I have been doing this kind of thing in VB and VB.net for a long time, but am having problems in C#: First I want to split up a string by the backslash character, but this line: arrSplit = strTemp.Split( (@"\") ); results in the error: The best overloaded method match for 'string.Spl...more >>

Important please read this Thank you `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º°`°º·...·º°`°º·.†..·º°`°º·...·º°`°º·..·º°` `°º·...·º
Posted by Ronald700054 NO[at]SPAM yahoo.com at 5/2/2005 10:37:24 AM
This is the most important question of your life. The question is: Are you saved? It is not a question of how good you are, nor if you are a church member, but are you saved? Are you sure you will go to Heaven when you die? The reason some people don't know for sure if they are going...more >>

How to do "WithEvents" in C#?
Posted by Brett at 5/2/2005 10:27:52 AM
What is the C# equivalent for this VB.NET code: Private WithEvents IE_Inst As New SHDocVw.InternetExplorer I get as far as: private SHDocVw.InternetExplorer IE_Inst = new SHDocVw.InternetExplorer(); but am not sure how to translate the WithEvents part. Any suggestions? Thanks, Brett ...more >>

Testing for interface support
Posted by Glenn Thimmes at 5/2/2005 10:08:59 AM
Hello, I am trying to understand the proper way to test an object to find out if it supports a specific interface. Right now, the only way I know to accomplish this is to attempt casting it to that interface and then catch the exception if one is thrown. This doesn't seem like the correct w...more >>

Using port 23 and issuing telnet commands...
Posted by Rex Winn at 5/2/2005 10:00:08 AM
I've Googled until my eyes hurt looking for a way to issue Telnet commands from C# and cannot find anything but $300 libraries that encapsulate it for you. I don't want to be able to create a Telnet client. I just need to send a telnet request to a local IP address on a LAN issue a "c" then a "b...more >>

String comparison doesn't work as expected
Posted by Zeng at 5/2/2005 8:49:33 AM
I looked at the watch window in the debugger CurrentThread.Name shows "" as its value. Documentation shows that == operator of a string would test for value. So does anyone know why this test evaluated to false? Thanks! ( "" == System.Threading.Thread.CurrentThread.Name ) ...more >>

data sources using C#
Posted by abcd at 5/2/2005 8:46:05 AM
I want to get the list of data sources on the server machine using C# and ASP.NET any clues how to get that...I have done this using VB using SQLDataSources function from ODBC32.dll thanks ...more >>

Help with Landscape printing solution?
Posted by Bill Burke at 5/2/2005 8:43:33 AM
I have created a "Certificate of Completion" in C# .net and have a typical problem of not being able to print this in landscape mode without user intervention. The certificate is a web user control as it gets information to complete the certificate (userName, date, course) from the SQl databas...more >>

DataView Row Filter isn't working
Posted by Kim at 5/2/2005 8:24:28 AM
I need to filter this datatable but when I do it gives me all the data not filter not sure what Im doing wrong. DataView dv = new DataView(); dv.RowFilter = "ClientID = " + clientid; gridControl1.DataSource = dv; I also tried adding this but it didn't work either: dv.RowStateFilter = Dat...more >>

How to run clean-up-code when Application shuts down.
Posted by andersboth NO[at]SPAM gmail.com at 5/2/2005 7:57:52 AM
I want to run some code when my Windows Form Application is being shut down. I want to run this code when the Application is being shut down in the following situation: 1. The App is being shut down by the user. 2. The App is being shut down because of Windows System Shut Down. 3. The Ap...more >>

Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.
Posted by d.vd.sar NO[at]SPAM hccnet.nl at 5/2/2005 7:12:52 AM
I access a dll via dllimport (see below). It workes fine at framework version 1.1 but now I try to run it in the Beta 1 of VS 2005 and I get this error message. I have only this problem if a use this function in a web project. If I make a standard windows program: no problem. [DllImport("spec...more >>

Required Field Validator fails to work on production
Posted by Rand at 5/2/2005 7:01:04 AM
I have Required Field Validators in 10 pages, and they all work fine on development, but for 9 out of the same 10 pages, on production, they act as if they aren't even present (it is unlikely they somehow failed to be copied to production). Also, I'm pretty sure these used to work fine on prod...more >>

Excel.Automation - No way setting it to be visible !
Posted by Franck at 5/2/2005 6:06:44 AM
Hi, I'm using an xls file through my web service to print out a pdf file from which I returned path. In this way, got a macro in my XLS file which do the print out. Testing it from the xls file works great. Testing it through my web service failed ! Looking in the pdf printer, I can see no...more >>

consume keypress events
Posted by rege NO[at]SPAM bluebottle.com at 5/2/2005 5:04:09 AM
Hi, I have two applications developed in C# say A and B. When user presses key "L" with applicaition A active , it causes a keypress event which causes application B to run. Application A then waits for application B to exit. On exit from Application B the focus shifts back to application A. ...more >>

Help! i need your kindly help !
Posted by roopeman at 5/2/2005 2:47:02 AM
i wrote the below code , just want got local machine application Eventlog 's message , and write to MDB.but it 's can not write the message to Mdb, somebody can check it for me? thanks! //----------------------------------------------------------------------- //Wrote by Michael April 30 20...more >>

Why use the new modifier?
Posted by Peter Aitken at 5/2/2005 12:00:00 AM
Supposedly you are supposed to use new when you want a member in a derived class to hide a member of the same name in the base class: class A { public int total; } class B:A { public new float total; } But omitting it causes only a warning, no error, and the class seems to wor...more >>

Parsing Base64 encoding
Posted by LP at 5/2/2005 12:00:00 AM
A web service returns base64 encoded data. The goal is to parse it and store it into binary file with .dat extension. This file is then will be used by a custom program to produce diagrams. As far as I know base64 data is not any known graphic format, from what I understand it's just encoded stre...more >>

Array Design
Posted by Adam Suszeck at 5/2/2005 12:00:00 AM
I have an application that has a state class, which basically stores application information for other forms to access during the execution of the application. In state, I store an array which contains a number of positions. Depending on what the user is doing in the application, this may ...more >>

stdole.dll not in DOTNET 1.1 redist ?
Posted by Sagaert Johan at 5/2/2005 12:00:00 AM
Why is this dll not in te redistribution ? I had problems with a project using an activex (see my earlier posts) Johan ...more >>

How to create a datatable object from a datarow [].
Posted by jensen bredal at 5/2/2005 12:00:00 AM
I have an array of datarow . Is there a performance efficient way of deriving a datatable oject containing only the rows in my array. ? I want to avoid uding foreach . Many thanks JB ...more >>

activeX events fire again AFTER installing VS .NET 2003
Posted by Sagaert Johan at 5/2/2005 12:00:00 AM
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover that the activeX events do not fire. I installed VS NET 2003 on that machine.(in an attempt to start...more >>

SqlParameter ???
Posted by Daniel Groh at 5/2/2005 12:00:00 AM
What is the best way to access a procedure ? MyCommand.Parameters.Add("@param1",typeof(string)); or SqlParameter myParam = new SqlParameter(); myParam.Add("@param1",typeof(string)); What do you think ? -- Atenciosamente, Daniel Groh CTF Technologies do Brasil Ltda. Analista ...more >>

Fast String Processing in .NET
Posted by rawCoder at 5/2/2005 12:00:00 AM
Hi, Consider a server which receives delimiter based string data from client. It needs to process this data very fast. Now if its built in C++, one obvious idea would be to put the string on heap as char* and then pass the pointer around, delimiter separated fields will be accessed via po...more >>

checked listbox check all
Posted by Hrvoje Voda at 5/2/2005 12:00:00 AM
After I fill checked listbox with data, I would like to checked all items in list ? Hrcko ...more >>

SQl question
Posted by Ivan Sammut at 5/2/2005 12:00:00 AM
Hi, Is there any sql command which can find defined text in specific fields. For example I have a table with names like "Ivan Sammut" etc. Now I want to create a statment which select all those records which contain the text "Ivan" or those that contain the text "Sammut". Is there a way I c...more >>

Creating my events.
Posted by Daniel Groh at 5/2/2005 12:00:00 AM
How and when should I create my own event ? When i do this: public delegate void myEvent(object sender, System.EventArgs e); What am I doing ? I tryed to find some sample on net but nothing was enough to understand when using! =/ Can someone help me ? -- Atenciosamente, Dani...more >>

Reflection and PropertyInfo
Posted by Picho at 5/2/2005 12:00:00 AM
Hi guys is it possible, once getting hold of a propertyInfo instance to know when the value of the property changed? that is without requiring the property to raise an event on change obviously... maybe something with the PropertyInfo.GetSetMethod()? monitoring when that method is cal...more >>

Config files for dll's
Posted by Sinex at 5/2/2005 12:00:00 AM
Hi, I have a main windows application (exe). This has its own app config file. I also have a few DLL' s that this app will use. I want to store information specific to the DLL's in their own config files. Is this possible? If so, how? ...Sinex ...more >>

Transitioning from 1.x to 2.0: New book
Posted by Jesse Liberty at 5/2/2005 12:00:00 AM
[This is a one time message that, I hope, will be of interest to this news group] I am pleased and proud to announce the release of my newest book: Visual C# 2005: A Developer's Notebook by O'Reilly (2005). This book is targeted directly at the experienced C# programmer who wants to make...more >>

throwing new Exception
Posted by Daniel Groh at 5/2/2005 12:00:00 AM
I have A.aspx and B.aspx in A.aspx has a Server.Transfer to B.aspx B.aspx has a throw new exception(Exception ex); So when this Exception happens i have the message in A.aspx: Error executing child request for B.aspx. What could it be ? ...more >>

Create a file in memory and than email
Posted by Amy L. at 5/2/2005 12:00:00 AM
I am working on creating a web service that will create a signed xml file. I would like to create this file in memory and than somehow email it to the user that requested it to be generated. I would prefer a solution that does not require the file to be first wrote to disk or requires the user t...more >>

sourcesafe
Posted by Frank at 5/2/2005 12:00:00 AM
Hi, maybe someone in this group an help me? I log into visial sourcesafe as 'admin' and I'am missing some menus, like adding users.What do I do wrong? Thanks Frank ...more >>

Bug in conversion to ingegers???
Posted by Vladimir at 5/2/2005 12:00:00 AM
Can anybody say me why... /* int i; float f; // Result is one. f = 100 * 0.01f; i = (int)f; MessageBox.Show(i.ToString()); // Result is zero!!! i = (int)(100 * 0.01f); MessageBox.Show(i.ToString()); */ ...more >>


DevelopmentNow Blog