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 2007 > threads for friday may 18

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

Extending C# programs with snapins
Posted by Muffin at 5/18/2007 9:39:48 PM
I am trying to find examples of how to extend a program with a snapin. I want to learn from them. Can anybody point me in the right direction. I have found only one so far. I am sure there are more, I just can not figure out where they are. Thx ...more >>

Passing a delegate to a function
Posted by Dom at 5/18/2007 7:24:00 PM
Let's say I do this: MyObject o = new MyObject (this, DoWork); .... where DoThis is a function in the calling class. How do I pick this up in the constructor, MyObject? public MyObject (Form OriginatingForm, <???> ptrDoWork) OriginatingForm.Invoke (ptrDoWork) How do I replace <???>....more >>

Event Handlers
Posted by Paul at 5/18/2007 7:03:08 PM
Hi, I have a tabcontrol and a panel with some textboxes in on my main form. The tabcontrol is populated will a datagridview and data by a different class based on a selection made. How do I handle a row selection event to update the textboxes on the mainform i.e. passing events between classe...more >>

Moving Events for Organization
Posted by GT at 5/18/2007 4:17:00 PM
I have a Form which has a great number of events. I thought I would organize the project by moving some of the code into multiple '.cs' files (since the Form.cs was getting huge). When I move them, it seems that Visual Studio can no longer find them when I open a Button object (for example) an...more >>

How to call a javascript method from XAML
Posted by tarinip NO[at]SPAM gmail.com at 5/18/2007 3:31:32 PM
Hi, How to call a javascript method from XAML. I am using C# . In the following example, When I click button1, I wish to call a method by name "SetValue(somevalue)" of TestIndex.html file. Here SetValue is a javascript method present in TestIndex.htm file. Let me know if you need any fur...more >>

SOAP question
Posted by lallous at 5/18/2007 2:54:34 PM
Hello, I am new to webservices internals and I used the web service wizard to generate the webservice class and appropriate objects. After issueing a request, I noticed that the SOAP message goes like the following format (example): <?xml version="1.0" encoding="utf-8" ?> <soap:Envelo...more >>

Regex help
Posted by Frank Rizzo at 5/18/2007 2:36:25 PM
Hello, i am regex newbie. I want to extract text between 2 markers. I want all the text that happens to be between <h2> and </h2>. So far I got this: <h2>.*</h2> for this sample input: <h2>hello</h2> <h2>goodbye</h2> <h2>wait</h2> However, the regex also returns the markers, while I...more >>

Events at Midnight
Posted by Giulio Petrucci at 5/18/2007 2:29:49 PM
Hi there, I need my application to be notified when it's midnight. How can I do it? (Someone suggested me to use a timer rising an event every minute...please, telle me there is some other way!). Thanks in advance, Giulio -- OnAir:...more >>



Help with Generic Method
Posted by John A at 5/18/2007 1:35:00 PM
Hi all, below at the bottom are 2 nearly identical overloads for the same method. As you can see the algorithm is exactly the same. However try as I may I cannot seem too create a usefull Generic method, i.e. one that compiles. What I would like to be able to do is something like the follo...more >>

Including Delegates in Interfaces
Posted by RSH at 5/18/2007 12:54:30 PM
I am declaring an interface and I want to make sure any classes that implement it implement a delegate. But I am getting a compliler error: Error 1 'UpdateHandler': interfaces cannot declare types How do I correctly include a delegate in an interface? Thanks, Ron public interface ICommun...more >>

Fields and Properties
Posted by Claude Grecea at 5/18/2007 12:06:13 PM
Can someone please explain to me when you would use a Property instead of a field and wy? Thanks in advance. ...more >>

Is Ctrl key pressed?
Posted by Alex K. at 5/18/2007 11:49:00 AM
Hi all When processing datagrid's MouseDown event, I need to know if Ctrl key is currently pressed. Is there any way to check this? It would help if I had keyUp and KeyDown events for Ctrl key ... Thank you...more >>

Is there a way around the string length limitation for the BalloonTipText under a NotifyIcon component?
Posted by forest demon at 5/18/2007 10:39:53 AM
I have a BalloonTipText property under a NotifyIcon component that exceeds, what appears to be, a 256 byte limitation. It just truncates it. Is there any way around this? Any help is appreciated. Thanks.... ...more >>

Conceptual - Communication between Objects
Posted by RSH at 5/18/2007 10:22:06 AM
I am working through some design patterns, and one recurring theme for me is the need to be able to communicate between objects while promoting encapsulation and loose coupling between them. Based on a couple design patterns I have built a sample app that seems to be a pretty decent model (...more >>

Catching System Event through .NET.
Posted by deba2learn NO[at]SPAM gmail.com at 5/18/2007 9:45:30 AM
Hi, Can anyone tell me how I can able to catch system event like delete, rename etc through .NET. This means suppose someone want to delete a file from file system and press Shift + Delete. I want this command (Delete) should be caught by application designed by me. So what I do want to know ...more >>

" //Clean Up managed resources " f&*ck
Posted by Koliber (js) at 5/18/2007 9:43:58 AM
sorry for my not perfect english i am really f&*ckin angry in this common pattern about dispose: ////////////////////////////////////////////////////////// Public class MyClass:IDisposable { private bool IsDisposed=false; public void Dispose() { Dispose(true); GC.SupressFi...more >>

creating a custom listview item
Posted by brainfuelmedia at 5/18/2007 9:18:01 AM
Can anyone point me in the direction of creating a custom listview item? I guess the other question then - is this possible? I want to create a list of listview items comprised each comprised of text and a set of textboxes....more >>

Report Geneartion
Posted by Brad at 5/18/2007 9:13:01 AM
I'm developing a CRUD based desktop application and I want to structure the design so that I don't need to modify the source code to add additional reports. I'm planning to use the version of Crystal Reports that comes with VS.Net 2005, but I'm a novice with this tool. Can somebody can give ...more >>

SharpZipLib
Posted by Mike P at 5/18/2007 8:21:45 AM
I am using SharpZipLib to zip some files, and now I want to give the user the option of where to save the zip file. My problem is that I am not sure how to refer to the zip file in my code, when I refer to the zipfile name and allow the user to save the file, all I get is an empty zip file. ...more >>

Image objects
Posted by gwoodhouse NO[at]SPAM gmail.com at 5/18/2007 7:47:19 AM
Hello everyone, IM nearing the end of a peice of work right now - i have everything working bar one tiny line. What i have is 2 Bitmap images that are the same size. What i need is 1 Bitmap image which is the 2 images layered ontop of one another (One of them is mostly transparent). I ...more >>

Regular Expression Hangs
Posted by shawnmkramer NO[at]SPAM comcast.net at 5/18/2007 7:44:57 AM
Anyone every heard of the Regex.IsMatch and Regex.Match methods just hanging and eventually getting a message "Requested Service not found"? I have the following pattern: ^(?<OrgCity>([A-Z][\w ]+)+), City of, (?<OrgState>(([A-Z][A-Z])|([A-Z] [a-z]+\.)))( \((?<OrgCountry>[\w ]{2,})\))?$ (...more >>

SQL Server/C# Number of Rows...
Posted by trint at 5/18/2007 7:25:48 AM
I have a select statement that all I want to do is get the number of rows returned in my query: string strSQLAccountInfo1 = "select * " + "FROM orders " + "where user_id = '" + Class1.loginUserid.Trim() + "' "; SqlCommand cmdAL = new ...more >>

Delegates and the Invoke method
Posted by Dom at 5/18/2007 7:23:41 AM
I'm teaching myself about delegates and the Invoke method, and I have a few newbie questions for the gurus out there: Here are some CSharp statements: 1. public delegate void MyDelegate (int k, string s) 2. MyDelegate MyDelegateVar = MyMethod 3. MyForm.Invoke (MyDelegateVar) Some questi...more >>

Would you like to have access video tutorials totally free?
Posted by Jeff at 5/18/2007 6:48:24 AM
Would you like to have access video tutorials totally free? Enter right now in www.mrbool.com and get to know our content on net totally for FREE! Here you find articles, tips and many video tutorials. Already there are more than 60 videos for you! Come check its last update: - SmartCl...more >>

Converting Ruby "each" iterator to C#
Posted by dkmd_nielsen at 5/18/2007 6:37:33 AM
I have two rather simple class methods coded in Ruby...my own each iterator: The iterator is used internally within the class/namespace, and be available externally. That way I can keep everything hidden about the "instructions table." # Loop through each instruction in the block, yielding t...more >>

Find Path To Client Application
Posted by moongirl at 5/18/2007 4:21:37 AM
Part of an application I am building includes a button which the user can click on to view a PDF file in Acrobat Reader, using the following code: System.Diagnostics.Process.Start(@"C:\Program Files \Adobe\Reader 8.0\Reader\AcroRd32.exe", @PDFfilePath); However the path to...more >>

Database not refreshing?
Posted by Cralis at 5/18/2007 2:38:57 AM
I have run a query to populate a listview from a table. Works fine. I then add a new row to the table, and want to refresh the list view, so I rerun my 'PopulateView' procedure I have created. But no new rows appear! I check the database, and the new row is there. I close my app, reopen, and h...more >>

How to include old fashioned DLL in a C# project/solution?
Posted by bob_jeffcoat NO[at]SPAM hotmail.com at 5/18/2007 2:12:33 AM
Hello, In my C# solution the MathsUtility Project uses a few fortran DLLs. What is the correct way to specify the dependancy of these DLLs? Initially I just stuck the DLLs in a directory on the System Path, this is a disaster as far as running different versions of the Solution (sometimes a...more >>

How to get the full signature of a delegate?
Posted by news.microsoft.com at 5/18/2007 12:00:00 AM
I need to get the full signature of a delagate in a string. Is this possible? In a control I have: public delegate void Button_Click(object sender, EventArgs e); public event Button_Click click; then I have: private void GetControlEvents(Control cControl) { ...more >>

using a timer, do i need to threadsafe lock methods called ?
Posted by Peted at 5/18/2007 12:00:00 AM
i have an mdi application with two child forms Childform A and childform B in a nutshell Childform B has a timer with a routine that polls a ip socket for information every 30sec. It does this by calling a method lin the Childform A class. This same method in childform A can a...more >>

how to check the existence of an item in a list
Posted by Doug at 5/18/2007 12:00:00 AM
Hi I have a text box that can be used for input and I would like to check if the value in the text box that someone types is already in a list of items. I know how to do this in other languages but not in C#. I think i should create an array for the values already in the list - then comp...more >>

font not found
Posted by bob at 5/18/2007 12:00:00 AM
Hi, Attempting to use ElfRing Code128ABhrf font to print barcode. private FontFamily family = new FontFamily("Code128ABhrf"); //Fails with ' Font not found' private FontFamily family = new FontFamily("Arial"); //Works OK The font is correctly installed as I can find it in the control pa...more >>


DevelopmentNow Blog