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 2006 > threads for sunday april 9

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

Interface casting required question
Posted by Rene at 4/9/2006 11:42:27 PM
Supposed that a class "MyTestClass" implement interface "IMyInterface" (not explicitly). Now suppose that I make an instantiate of "MyTestClass" and then use this instance to pass it to a function with an argument that requires "IMyInterface" such as: private void SomeFunction(IMyInterfa...more >>


Exception error generated when accessing Access database
Posted by Steve Teeples at 4/9/2006 10:02:01 PM
I am writing my first database application. I am unable to even get to first base because I can't seem to access the data in the database. Each time the "Fill" command is executed I get an exception ["An error has occurred while establishing a connection to the server. When connecting to SQ...more >>

Why doesn't trace write timestamp?
Posted by Brett Romero at 4/9/2006 8:29:28 PM
I have this in an app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <trace autoflush="true" indentsize="2"> <listeners> <add name="myListener" traceOutputOptions="Timestamp" type="System.Diagnostics.TextWriterTraceList...more >>

Some basic session state questions
Posted by codegreen9 NO[at]SPAM yahoo.com at 4/9/2006 8:28:40 PM
Hi, My understanding is that session info must be stored using Session["var"], which means text data. What I'd like to be able to do, is keep an object alive throughout a user's session, without having to serialize my data into text, save it as Session["var"], and restore it using Session["v...more >>

Where is declare OracleConnect?
Posted by smit at 4/9/2006 8:01:40 PM
Where is declare OracleConnect? For access from forms. -- Smit from Russia :-) 320121750...more >>

Lifetime of Static Classes and Variables
Posted by Chuck Cobb at 4/9/2006 7:24:45 PM
I am creating some static classes with static methods and static variables, but I have a question: What is the lifetime of static classes and static variables? Is there any risk that these items might be garbage collected if they're not used for a period of time? For example: pub...more >>

Reflection API
Posted by Skandy at 4/9/2006 3:27:44 PM
Hello All: I'm stuck with this. I'm trying to obtain the SelectedValue property for a combobox control on UserControl using reflection. So I write: PropertyInfo pi = objControl.GetType().GetMember("cmbComplex").GetType().GetProperty("SelectedValue"); This always returns a value null, and...more >>

new to .net
Posted by genexk NO[at]SPAM gmail.com at 4/9/2006 3:25:07 PM
Hi everyone, I am new to .net development, and still have a few questions. Since I am doing a pocket pc project, does it mean whatever I wrote in c# will work on pocket pc because of the indepency of .net cf? In addition, if I already have some code written in C++, how can I use them without wr...more >>



threading issue
Posted by Rick at 4/9/2006 3:06:48 PM
I have a form A that is running on thread A. I have a timer that fires on thread B and tries to open form A. Using .Net 2.0 it will throw a cross thread operation not valid error. If I first test form A to see if A.InvokeRequired, it always returns false. If I suppress the cross thread errors, ...more >>

Semaphores
Posted by Steven Spencer at 4/9/2006 11:31:01 AM
Hi, I'm doing an IT degree at university, and my lecturer's do not teach m$ technologies. I was wondering if anyone could point me to the implementation of mutex's and semaphores in .net? Or the microsoft equivalent of them....more >>

How to suppress the "new protected member declared in sealed class"?
Posted by NetronProject NO[at]SPAM gmail.com at 4/9/2006 9:59:14 AM
My sealed class defines the necessary deserialization constructor: protected SomeMethod(SerializationInfo info, StreamingContext context){..} which generates the well-known warning "new protected member declared in sealed class". Since this constructor is used by the CLR and not supposed t...more >>

system.windows.form.datagrid control in vb6 form
Posted by Rajesh Kumar Choudhary at 4/9/2006 9:48:02 AM
Hi, I want to use the system.windows.form.datagrid control present in .net 2005 or 2003. Is it possible to use this? Please let me know if it is not supported. I have seen and used the classes from FCL using system.tlb or mscorelib.tlb from dot net framework. I could use ArrayList succe...more >>

Finding the caller name
Posted by Mike9900 at 4/9/2006 9:21:02 AM
Hello, We need to know the module that called the other module in that module. For example, StartMyTransaction module,is called by module 'A' and after that module 'B' calls EndMyTransaction, but we do not want this module to end the transaction by calling EndMyTransaction. If we know who ...more >>

How to remove/disable the form's close (X) button?
Posted by ohadasor NO[at]SPAM netvision.net.il at 4/9/2006 6:25:18 AM
Hello, I have an MDI child, which I need to be opened as long as the mainframe is opened. The problem is that the user can close it using the X button in the form's top-right edge. How can I make this button disappear, or at least disabled? I'm using C# with .NET Framework 2.0. Thanks ...more >>

How to pass unknown datatypes to methods?
Posted by DrPete at 4/9/2006 5:57:58 AM
Hi How do you go about passing values to methods if you don't know what the values datatype is? For example: myParm = sqlCommand.Parameters.Add("@Name", SqlDbType.VarChar, 30, "Name"); myParm.Value = dataRow["NAME"].ToString(); I wish to have a method to validate a value instead of th...more >>

programmatic database access
Posted by williamphenryjr at 4/9/2006 5:06:49 AM
This is a long post. If you have answers I'm ready. If you have we links, that'd be great too. I'm a Junior/Senior in Computer Science a Washington State University, so you can make some assumptions abou terminology I'll be familiar with based on that. I am trying to write a class that will ...more >>

Add/Remove programs list
Posted by sharon.azulay NO[at]SPAM gmail.com at 4/9/2006 3:25:12 AM
Hello, I want to write my own setup procedure using csharp. I'm not using the build in setup project because I need to install my software more than once on the same computer and cannot do it with msi. Is it ok if I just write into : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or ...more >>

Revisit Object.Equals
Posted by nick_nw at 4/9/2006 2:18:17 AM
Hi All, Just been re-reading Applied MS .Net Framework Programming (been about 2 years since I last read it) and came across the chapter on Equals, ==, and GetHashCode. It dawned on me that after 2 years of c# .net programming I have never overridden any of these methods. But why would I?...more >>


DevelopmentNow Blog