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# > june 2006 > threads for tuesday june 13

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

Learning the Fundamentals *without* using Visual Studio
Posted by Frankie at 6/13/2006 11:20:45 PM
I am looking for tutorials, articles, etc that can help to enlighten me on what's "really going on" or what's required to create a .NET application (particularly Windows Forms) WITHOUT the use of Visual Studio. I understand that VS does a lot of things for us, but I want to know what those thi...more >>


Degrade Administrator to normal user
Posted by Kondapanaidu at 6/13/2006 11:01:27 PM
Hi, How to degrade Administrator to normal user and vice versa..(<->) Thanks in advance.. Thanks & regards Kondapanaidu *** Sent via Developersdex http://www.developersdex.com ***...more >>

Reusing connection strings in config files?
Posted by Jen at 6/13/2006 10:26:19 PM
..NET 2.0 introduced the <connectionStrings> section in .config files, but how do I reuse the connection strings defined under <connectionStrings> in other parts of the config files? <connectionStrings> <add name="connStr1" .../> </connectionStrings> Now I want to reuse the connection s...more >>

Try Catch Finally
Posted by RKNET at 6/13/2006 10:10:02 PM
Wht is the general prctise for having try catch block and Finally. I mean in one methods what are Cicrustances to have entire code in ONE try catch block or MULTIPLE and which lines of code is not required /suppose to be in TRY blocks. Thanking you in advance -- RKNET...more >>

Urgent : ASP code for sending email automatically
Posted by KS Tan at 6/13/2006 10:09:01 PM
Hello support, I need help to have asp code to send email to the users. My scenario is like this: An Access database is created to look detect whether the database records not update, then an email will be sent to users to inform them to update their records in the database. Should I need...more >>

launching events from a thread
Posted by MIke Brown at 6/13/2006 8:42:07 PM
Hello all, I've been searching for a solution on google for a problem related to creating events from a worker thread, with no luck.. Basically, the problem is when my events are caught by a UI using my class, they get the usual "Control 'blah' accessed from a thread other than the thread i...more >>

Threading on FW1.1
Posted by Giulio Petrucci at 6/13/2006 6:49:40 PM
Hello everybody, I'm quite new to .NET FW programming, and I started just few months ago, on FW2.0, knowing actually _nothing_ about FW1.1, so my question may sound silly... Anyway, what I need to know is: does Threading on FW1.1 behave exactly the same than on FW2.0? In particular my...more >>

Private vs Non-Public
Posted by Paul at 6/13/2006 6:48:45 PM
Hello All, I am new to C# and dot NET in general. The book I am reading uses the term "non-public." I suspect that they don't mean "private", otherwise they would have said so. What is the difference between "non-public" and "private"? Help is always appreciated. Thanks, Paul ...more >>



C# Dll to JAVA
Posted by Saurabh Sharma at 6/13/2006 5:22:55 PM
Hi I have a Project in C# which makes 4 dlls and takes 2 C# class of the dlls and a string array as as an input and returns a string array. I want to use these dlls in java. The dll also makes a Word Object. Please suggest a method to do it. I know that convert from C# to MC++ to C++ to j...more >>

Getting Gridview to read an XML file
Posted by hal at 6/13/2006 5:18:00 PM
Hello All, I have a windows form with a gridview control and i'm trying to get the gridview to read the entire XML file. Anyone have any ideas on how to do this? Below is some code so you can see what I'm trying to do. private void btnBuildList_Click(object sender, EventArgs e) { ...more >>

Using anonymous method with diff signature?
Posted by Brett Romero at 6/13/2006 4:23:27 PM
I'd like to have a specific method execute on the click event of a control. The common syntax is: Control1.Click += new EventHandler( Control1_Click ); void Control1_Click( object sender, EventArgs e ) { //.... } Instead of Control1_Click executing, I'd like this method to execute...more >>

How Dictionary<TKey,TValue> is checking keys?
Posted by Shimon Sim at 6/13/2006 4:20:02 PM
I have Dictionary that has custom class as its key. For that class I implemented both Equals(object) and IComparable<T>. I keep getting KeyNotFoudException. What should I do? Thanks Shimon ...more >>

Localizable attribute
Posted by Michael Brown at 6/13/2006 3:57:11 PM
Hi there, After applying the "Localizable" attribute to my form using the (form) properties window in VS, I was expecting to see "[Localizable(true)]" preceding my form's class in code (added automatically by the IDE). I don't however. Can someone point out where this info is stored. Thanks...more >>

A little help with regular expressions
Posted by MatsL NO[at]SPAM newsgroups.nospam at 6/13/2006 3:50:57 PM
Hi, I saw that some other people posted questions about regular expressions here so I thought I would do the same. I'm trying to parse an url to different parts. I want the file name and path to be two different parts. To do this I make the assumption that all file names has a '.' in them. I...more >>

Combobox and Nullable Enum
Posted by Brian at 6/13/2006 3:32:26 PM
Is there a way to bind a nullable Enum property to a combo box? When choosing a value, and then leaving the combo box, the value reverts back to the original value. It seems the databinding doesn' accept the new value. To populate the combo box: cboPageMode.DataSource = Enum.GetValue...more >>

How to use Compressed Folder function of XP programmatically?
Posted by mravichandran NO[at]SPAM gmail.com at 6/13/2006 3:19:32 PM
dear Readers, i will be downloading a zip file from the intranet website programmatically and i would like to process some of the files inside them before the user can save it. we have a lot of copies of winzip. winzip does not let me call their functions as COM or as .NET assemblies. I w...more >>

Reading \r From File As Carriage Return
Posted by Dinsdale at 6/13/2006 3:18:22 PM
I have an xml file that is read into an object using serialization. One of the objects has a string field called delimeter that I want to contain a carriage return. Instead of trying to include the carriage return, I used "\r" thinking that when it was read back into the object it would be inter...more >>

csv
Posted by Peter Kirk at 6/13/2006 1:10:49 PM
Hi I am writing some code to generate csv from xml. This works fine in the main, but I have a question regarding the handling of commas in the data. What is the normal way to handle this? For example, say part of the data in the xml is the string "a string , with comma". The comma is con...more >>

Determine the free space of a mounted volume?
Posted by LowFuel at 6/13/2006 12:15:03 PM
Anyone know how I can determine the free space of a volume that is mounted within a folder, rather than on a drive letter? The DriveInfo class seems to want to work only off drive letters. What I'm trying to do is write a simple program to generate a disk space usage report. I have numerous ...more >>

Why am I still using win32API calls?
Posted by ian at 6/13/2006 12:09:29 PM
Hi, I keep resorting to com interop calls, for example I needed the location of the carot in a text box and I had to use a win32API call (GetCarotPos??) to do that. It's one example, I could give several more that have come up over the last few months, and it has raised a couple of questions th...more >>

Getting date of assembly compilation
Posted by Dylan Parry at 6/13/2006 11:38:42 AM
Hi, Is there a way of getting the date that an assembly was last compiled? I am trying to help myself to remember what version of a particular assembly my Web applications are using, so I've taken to having it output the version number at the bottom of the page using: Assembly a = Assembly....more >>

Socket.Send() succeeds, but remote end point closed the connection
Posted by yvan at 6/13/2006 11:34:02 AM
Hi, Here is my client/server scenario: Step1: Client connects to server and sends data sucessfully (using Socket.Send()). Step2: Server gracefully exists (calls Socket.Shutdown() and Socket.Close()). I see the server connection status go from ESTABLISHED to FIN_WAIT2, the client connectio...more >>

newbie question: How to change font size of the code?
Posted by Johann Schuler at 6/13/2006 11:04:36 AM
I would like the code I am writing to display in a larger font size. How do I do this? I am using C# Express. Thanks! ...more >>

Case-Insensitive String Replace
Posted by INeedADip at 6/13/2006 10:38:43 AM
I am parsing a lot of files and need to replace a couple of string variables, but the string.Replace(string,string) method won't work because it is case-sensitive. What would be the best way to do this? I did find this article: http://www.codeproject.com/csharp/FastestCSCaseInsStringRep.asp ...more >>

Create SQL2005 trigger from C# form
Posted by sandi NO[at]SPAM e-axioma.com at 6/13/2006 10:29:45 AM
Please Advice... I need to create SqlServer2005 trigger from C# form. so all my trigger can re-create if i push one button on my app.... i need to know how i create and delete trigger from c# form and how to check if the trigger already exist regards Sandi Antono ...more >>

Very strange exception handling problem
Posted by Robin Riley at 6/13/2006 9:58:02 AM
Hi, I have a .NET solution that contains a dll project and a tester application project which, of course, invokes the dll. The dll project has exception handling in it. What's happening is that when I run the executable from within the .NET studio environment, thrown exceptions are caught a...more >>

Configuring More Than Two HttpWebRequests To The Same Host?
Posted by Alexander J. Oss at 6/13/2006 9:40:55 AM
I'm writing a C# application for .NET 2.0 in which I intend a number of background worker threads to be conveying information from our SQL Server database to a legacy database via HTTP GET requests. Each worker thread runs the following code in a loop: ----- HttpWebRequest request = (Http...more >>

Force references to run against .NET 1.1
Posted by Dave Booker at 6/13/2006 9:17:02 AM
I am developing in VS2005, but I have some third-party DLL's that appear to only work correctly when compiled in VS2003. ("Incorrect" operation is defined as a busy-wait that kicks in on a message loop, hogging a full CPU thread even when nothing is happening.) I am assuming the difference...more >>

Alternative to Dataset??
Posted by Amar at 6/13/2006 9:03:15 AM
Hi, I am part of a team building a stock exchange software - Order Management system'. The current system that we have supports 200,000 orders per day. All of this data is needed in memory.Ofc ourse this system was built in VC++. what I want to know is : - Is there a alternative to storin...more >>

C++ typedef equivalent in C#
Posted by George at 6/13/2006 8:51:02 AM
Is there a C++ typedef equivalent in C#? Thanks, -- George...more >>

What is the difference between Managed and Unmanaged resources in regards to IDisposable
Posted by DaTurk at 6/13/2006 8:34:55 AM
Hi, I'm implementing the Idisposable pattern and am wondering what the difference it between managed, and unmanaged resources? http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx in the code snippet where it's overloading the Dispose method it disposes of managed and unmanaged resources ...more >>

Catching for a System.Data.ConstraintException
Posted by Andy at 6/13/2006 7:14:03 AM
I have a C# application that is using a DataGridView (DGV). The DGV uses a table adapter to connect to the datasource, which uses a DataSet as the data. The DataSet has some constraints placed on them (PK on two columns). When I add / update a column that violates the PK constraint, I get...more >>

Multiple forms
Posted by sanderpleijers NO[at]SPAM gmail.com at 6/13/2006 6:34:26 AM
Hi, Im using 2 forms. The first form is called FrmMain. The second form has windows media player in it with controls. Its named: Fullscreen. Now, how can i send a '' axWindowsMediaPlayer.Ctlcontrols.play(); '' (= play) command from the FrmMain form to the Fullscreen form? Something like...more >>

RegEx and parsing a URL
Posted by Dave at 6/13/2006 6:29:02 AM
I'm building a test platform that includes parsing a set of URL's. This is not part of a ASP.Net project. Otherwise I'd be posting it in that area. Given a URL of http://Somthing/Somthing.asp?parm1=val1&parm2=val2&parm3=val3 I'm trying to create an expression that gives me: parm1=val1 par...more >>

Regular Expression Question
Posted by Gunady at 6/13/2006 5:17:18 AM
Anybody know how is the Regular Expression pattern to find text that begin with [Html: and end with ], like string: ================================================================= Event Description: [Html:table style="border-width:1px" cellpadding="3" cellspacing="1"][Html:tr][Html:td] Some D...more >>

Free tutorials and Q&As for MCTS Needed! Please Help
Posted by Raj at 6/13/2006 4:22:52 AM
Hi All, I'm preparing for MCTS on windows as well as Web applications. Anyone know free On-line tutorials, Q&As links, etc. If so, please send it across. Thanks for your valuable effort Raj ...more >>

Calendar Control - Selectable dates
Posted by daz_oldham at 6/13/2006 4:01:40 AM
C# 2.0 Hi everyone I want to set a date range on my calendar control, but cannot figure out how to do it. this.clnSelectDate.MinDate Is not a valid option for me, and I would like to be able to select only days between today, and eighteen months into the future, with the rest being un...more >>

Best way to get ctl and alt keys in Panel
Posted by _DD at 6/13/2006 3:25:13 AM
I'm trying to gracefully intercept Control and Alt keys for mouse events within a Panel. I realize that keyboard is not normally relevant there, but in this case, I need to get Ctrl-LeftMouseButton, etc. This could be intercepted by the form that owns the panel, but that does not seem very e...more >>

http file upload from c# windows application
Posted by JohnSouth at 6/13/2006 1:17:16 AM
I've a C# windows application (not asp.net) that needs to upload simple XML files to a URL on a website. I've tried WebClient such as WebClient Client= new WebClient(); Client.UploadFile(url,filePath); but get error (405) Method not allowed. I've got write permissions set on the remot...more >>

Encrypting entire file
Posted by KC Eric at 6/13/2006 12:36:14 AM
Hi everyone, How can one encrypt an entire file? What I mean is not simply encrypting the content of the file, but also the file's property(e.g. file creation date, file's name, access right, etc), so the input is a file, say abc.txt, after encryption and then decryption, the user can get the ...more >>

XML COmment woes in VS2005
Posted by SteveCriscuoli at 6/13/2006 12:18:36 AM
I originally posted this in microsoft.public.xml ... my apologies to those to who read both groups ... Someone please tell me if I'm missing something here. The XML Comment generator in VS2005 seems to be woefully incomplete. I created a test solution with 2 classes in different namespaces ...more >>

Cannot convert type 'string' to 'ushort'
Posted by Marcelo Muzilli at 6/13/2006 12:09:49 AM
Howdy all, in my program, I have a ushort variable and a string variable and if I try to compile it, I'm receiving this error message: "Cannot convert type 'string' to 'ushort'". How can I compare both? Example: if ( uVariable != sVariable ) { ... } Tia, Marcelo Muzilli...more >>

Replace the keys on the keyboard
Posted by Melson at 6/13/2006 12:00:00 AM
Hi Can anyone help. I would like to replace the keys on the PC keyboard. For example, when I press Q button it displays A on the screen in any programs (MS Words, Note, Lotus....). And also when I press Ctrl + W button, it displays G on the screen. I would like to make the keyboards configu...more >>

How do I get back the properties of my object in a combo box?
Posted by james at 6/13/2006 12:00:00 AM
I declared a class with 4 string properties, one of which overrides the "toString()" method. I add objects based on this to a combobox, and I can see the properties if I pause execution and look at the "SelectedItem" I can see my properties/values in the debugger, but if I try it in the code...more >>

Edit C# ListView
Posted by Jason Huang at 6/13/2006 12:00:00 AM
Hi, Is there an eazy way to modify a ListView so that we can edit it on the run time? Thanks for help. Jason ...more >>


DevelopmentNow Blog