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# > april 2007 > threads for thursday april 19

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

how to invoke event
Posted by somequestion at 4/19/2007 10:44:51 PM
there are 2 class A and ALib class A is general class class ALib is library class this class call each other... A call Alib and then method of Alib call method of A....is it possible? class is like below.. ------------------------------------------------------------------------- using ALib; ...more >>


C# Doubt.
Posted by vvsarun NO[at]SPAM gmail.com at 4/19/2007 9:37:50 PM
Hi, i wants to use GetBitmapBits and SetBitmapBits functions with my Bitmap object in C#. i have imported above said functions from GDI32.dll. GetBitmapBits is working fine and i was able to get all the bits of the bitmap. Then i have updated the bits and called SetBitmapBits to update th...more >>

Rubber Banding in Net2.0
Posted by John Olbert at 4/19/2007 6:30:03 PM
Rubber Banding in Net2.0 Is there any functionality built into Net2.0 for Rubber Banding (selection by click, drag and release) on the Control based classes such as the Pane class or other classes hosting work surfaces? Ideally after selection it would return a collection of the controls insi...more >>

MSBuild Visual Studio 2003
Posted by AdrianDev at 4/19/2007 6:15:03 PM
Hi, Is MSBuild.exe available for Visual Studio 2003 projects using .NET1.1 = and if so where is is available from? thanks,...more >>

System.Web.Services exception
Posted by koredump at 4/19/2007 5:58:41 PM
Hi all, I have a windows app that makes some asyc calls to my webservice (WSE 3.0 with MTOM). >From time to time when the user cancels the async call, the following exception gets thrown in the client win app. This exception is being thrown on another thread by a class in the System.Web.Serv...more >>

Why doesn't C# allow incremental compilation like Java?
Posted by mwelsh1118 NO[at]SPAM gmail.com at 4/19/2007 5:08:03 PM
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files. In C#, there appears to be no analog. I have to compile all my .cs files into a single .dll. T...more >>

How to fill a DataGridView without freezing the UI thread
Posted by michael sorens at 4/19/2007 5:02:01 PM
The auto-generated line of code to fill a DataGridView once it is placed on the designer surface in VS2005 is typically: this.xyzTableAdapter.Fill(this.myDataSet.MyMember); But if the query takes a long time to run, this freezes the UI (in a Windows Forms application). What is the best pra...more >>

Multiple images in a PictureBox Control
Posted by prynhart NO[at]SPAM gmail.com at 4/19/2007 4:49:35 PM
I have a PictureBox Control which is 96*96 pixels. I want to display nine 32*32 pixel bitmaps in this control arranged in a 3X3 square. How can I do this ? All the examples I've seen load only one image in the PictureBox. The code: board.ClientSize = new Size(96, 96); board.Image = (Image)...more >>



Must inherit form doesn't show up in list.. bug?
Posted by Ronald S. Cook at 4/19/2007 3:10:44 PM
I have many forms in my Windows project. When I go to create an inherited form, I see all my forms in the list of choices. HOWEVER, if any form is marked as must inherit, then it doesn't show up in the list! Is this a bug? Thanks, Ron ...more >>

Events between processes
Posted by Lubomir at 4/19/2007 3:06:01 PM
C#, .NET 2.0 Hi, I have two processes and I need that one process will notify the other. I could use the EventWaitHandle object and create an (named) event, but this doesn't allow me to pass any parameters. I think that: delegate DelegateName; event DelegateName MyEventObject; ...more >>

Smooth Scrolling Text using GDI+
Posted by Bishman at 4/19/2007 2:59:36 PM
Hi, I have been trying to get text to scroll smoothly accross a windows form using GDI+ and a timer. Changing the position of the text by a configurable amount and calling invalidate to force a redraw at various intervals ( based on the timer ). The text is not moving that smoothly, it seems v...more >>

delegate in custom attribute
Posted by Nathan Laff at 4/19/2007 2:23:46 PM
I have a custom attribute which i use for fields in an enum. I want to pass around a delegate in these things. so i want to do something like this [MyCustomAttrb(string name, string desc, int value, delegate clickEvent)] Is this possible? i'm having no luck....more >>

3 Tier Inheritance
Posted by zmigliozzi NO[at]SPAM gmail.com at 4/19/2007 1:49:11 PM
I have a Super class (class1), a sub-class (class2), and then a sub- class of the sub-class (class3). In Class3 would the syntax for using inheritance be class Class3 : Class2 : Class1 or class Class3 : Class2 *since Class2 will already inherit Class1. Is that right?* Thanks for the...more >>

Binding to datagridview
Posted by VMI at 4/19/2007 12:52:02 PM
I have a datatable with 3 fields, and I want to bind each one of these fields to one my Windows datagridview. In my case I have three datagridviews with one column each. Is this possible? Even if the grid has one column, when I bind the datatable with this grid, it'll display all three fields...more >>

Making static class ToString() not possible, why?
Posted by Zytan at 4/19/2007 12:22:11 PM
"A static member 'function' cannot be marked as override, virtual or abstract" Is it possible to make a static class member function (which is also static, obviously) that is an override to ToString()? Maybe it makes no sense to do such a thing... Zytan ...more >>

Bug in C# 2.0 compiler?
Posted by evgeniy81 NO[at]SPAM gmail.com at 4/19/2007 11:44:24 AM
>From rsdn.ru forum http://rsdn.ru/Forum/Message.aspx?mid=2454202. When i try to compile something like this with c# 2.0 compiler there is a compile time error. class Foo { public int F(bool a, int b) { return 2; } public void runTest() ...more >>

OdbcDataAdapter batch inserts
Posted by paul.d.mcswain NO[at]SPAM gmail.com at 4/19/2007 11:34:36 AM
This has probably already been answered, but it didn't show up when I did a search. I need to be able to perform a batch insert using the ODBC ADO.NET objects (OdbcCommand, OdbcDataAdapter, etc). I know that there are ODBC method to perform this via the DLL, but want to do this via ADO.NET....more >>

System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file "Location" failed. A database with the same name exists, or s
Posted by weird0 at 4/19/2007 11:12:14 AM
System.Data.SqlClient.SqlException: An attempt to attach an auto- named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. I am getting the above the exception while connecting to the db and i have wr...more >>

Preventing null propagation
Posted by Weeble at 4/19/2007 10:28:14 AM
Back in C++, I had a type that looked something like this (entering from memory so this might not quite compile): template <class T> class NotNull { private: T* value; public: NotNull(T* ptr) :value(ptr) { if (ptr==0) { // Throw an excep...more >>

How do i get SCOPE_IDENTITY from INSERT query using tableadapter.
Posted by Devan at 4/19/2007 10:14:01 AM
Hi, I have a table adapter for a database with an insert query. I want to be able to get the PRIMARY key of the inserted record for that insert statement. I know that SCOPE_IDENTITY is the database equivalent. How do i get that value from an InsertQuery call from TableAdapter generated by V...more >>

Best Miter Gauge?
Posted by see nude my photo at 4/19/2007 9:29:43 AM
WANNA KNOW THEN CLICK http://psyco.site.googlepages.com/aboutus http://livemonster.job.googlepages.com/freeonlinejob ...more >>

Some c# interview questions
Posted by weird0 at 4/19/2007 9:19:25 AM
I heard of two c# interview questions that i still clearly don't know and havent understood the concept. One reason is also that I havent worked upon them 1. What is the difference between a reference and a pointer? Allah.... I don't even know what a reference is... 2. What are f...more >>

Service OnShutdown is not called
Posted by lb.weissman NO[at]SPAM gmail.com at 4/19/2007 8:38:17 AM
Hi, I have a simple service, which I want to stop normally. I added the method OnShutdown, and set the CanShutdown property to true. Still, when I restart the computer my OnShutdown method is not called. The OnStop and OnStart methods are being called. Any idea why? Code: publ...more >>

Tab Pages ... yet again !!!
Posted by amir at 4/19/2007 8:22:07 AM
Hello all, I have a little problem. I have created a form and on it a tabControl. to the tab control i am adding pages dynamically with a class of my own which is called myTabPage which contains a TabPage with my own setups (textboxs and so on...) now i want when a tab is selected and then a s...more >>

design question, using xml-serializable objects with databound controls
Posted by KJ at 4/19/2007 8:06:02 AM
Hello Folks, I am working with a third party web service whose inputs and outputs are always passed as XmlNode objects. To work with this system, I am using two MS tools: 1) xsd.exe: to generate strongly-typed datasets from the Xml messages for easy databinding (using DataSet.ReadXml(), f...more >>

multi-cores & multi-processors how does that effect threaded programming?
Posted by Coaster at 4/19/2007 7:30:20 AM
I am designing a process which will spawn a good number of threads and some of them will execute a c++ process which is quite memory intensive (although not multithreaded). This will run on a 2 cpu (both dual core) server. What do I need to do if anything in order to spread the workload across...more >>

RichTextBox - Show Unicode Control Characters
Posted by Bruce at 4/19/2007 7:19:39 AM
The ComboBox has a context menu with an option to "Show Unicode Control Characters". How can I use that context menu in a RichTextBox or call that functionality from a RichTextBox? Is there a way to do that. I'd be surprised if that was missing from RichTextBox and only available from a ComboBox...more >>

Visio style flowchart line connectors
Posted by Rob at 4/19/2007 6:58:04 AM
I need to create graphical objects and connect them with relationship connectors that bind to the objects similar to Visio's connectors. (The connector stay connected when the object is moved by the user.) I have the objects, but I need to create the connectors. I was wondering if anyone ...more >>

An IEquatable<T> object cast to IEquatable<explicittype> results in wrong Equals override called.
Posted by taumuon at 4/19/2007 6:43:00 AM
I've got an object, Person, that supports IEquatable<Person>. It implements bool Equals(Person obj) as well as overriding bool Equals(object obj) I've got a container type that holds a member object of generic type T, that supports IEquatable<T>, and a method, DoComparisons(T obj) to compar...more >>

Hyperlinks in datagrid!
Posted by rcoco at 4/19/2007 6:37:47 AM
Hi all, I have two datagrid, one has a list of allowed user of the second datagrid. The second datagrid is an inserting datagrid and it Function properly. Now where my problem is I need to be able to select a particular name and will be able to see whatever the Particular selected user has been...more >>

Registration problem with COM interop sample.
Posted by SD at 4/19/2007 5:44:04 AM
Hi, I'm using the the MSDN sample "COM Interop Part 2 Sample" (CSharpServerWithCOMClient.sln). The C# COM component gets registered when the solution is built. Somehow the component doesn't get registered properly. When opened with OLE/COM Viewer the component throws up an error saying: ...more >>

File Duplication check
Posted by giftson.john NO[at]SPAM gmail.com at 4/19/2007 4:43:22 AM
Hi, I am creating an application which migrates all documents from one repository to another repository. Before migration i have to verify all the documents are unique. No duplicates has to be uploaded. Event the document created date, modified date, filename can be different. How to find the...more >>

reference form
Posted by MikeJ at 4/19/2007 2:30:23 AM
how can i reference a form from a class processing recordset to update the form.... im still new MJ ...more >>

why doesn't this DrawLine code do anything?
Posted by RichGK at 4/19/2007 12:40:11 AM
This is from http://msdn2.microsoft.com/en-us/library/aa287522(VS.71).aspx public MainForm() { InitializeComponent(); System.Drawing.Pen myPen; myPen = new System.Drawing.Pen(System.Drawing.Color.Red); System.Drawing.Graphics formGraphics = this.Cr...more >>

GC.Collect can be trusted?
Posted by Ward Bekker at 4/19/2007 12:00:00 AM
Hi, I'm wondering if the GC.Collect method really collects all objects possible objects? Or is this still a "smart" process sometimes keeping objects alive even if they can be garbage collected? I need to know because I'm looking for memory leaks in an application. It would be really he...more >>

C# GetType - Why does it need an instance?
Posted by Richard Coltrane at 4/19/2007 12:00:00 AM
Hi there, In VB.net i can just GetType(string) to get the string type? In C# it seems i need to have or create a non null variable and myvar.GetType(). Is there a shorthand version of this like VB.net in C#. On a couple of occasion ive found myself creating a throw away var just so i can ge...more >>


DevelopmentNow Blog