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# > february 2006 > threads for saturday february 25

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

Using MSHTML in our application.
Posted by Sujoan at 2/25/2006 11:22:34 PM
Hi all.. I generated SHDocVw.dll and MSHTML.dll using aximp and tlbimp commands in the folder i created my application.But when i used it in my application like using SHDocVw;using MSHTML; and tried to use the IHTMLDocument2 interface, Igot a error like this: E:\Project X Semester\B...more >>


C# Drawing
Posted by Dragon at 2/25/2006 10:38:16 PM
in C++, use GetDC to get the DeviceContext. How to do this in C#? What object should use to Draw ? ...more >>

newbie: How to construct Singleton pattern?
Posted by deko at 2/25/2006 10:21:28 PM
I need retrieve a DataSet from XML and make it globally accessible. There are various forms and objects in my WinForms app that need to perform CRUD operations on this DataSet. I'd like to consolidate all deserialization/serialization code in the Singleton class, which creates the DataSet,...more >>

Displaying an Image from a website
Posted by Rudiga at 2/25/2006 10:10:03 PM
Hi, I am trying to write a program that will simply display an image specified by a url. My problem is that I do not know how to make this happen. Is it as simple as giving a picture box a path, or do i have to do something more. If so could someone please point me in the right direction. ...more >>

Child thread cannot access static field?
Posted by AdamM at 2/25/2006 9:55:22 PM
I have a "Lib" class with a public static string called Test. Another application sets Test=3D"testing123" and then spawns a new = thread. Strangely, the new thread can see Lib.Test, but the contents of = that static variable come back as null. The parent app can use Test = fine. The new thre...more >>

How to manipulate an image on the user control?
Posted by tom at 2/25/2006 7:45:51 PM
Hi, I am a newbie and have a simple question? I have a aspx file and on the form I have a user control which is my header and has some images. Now for various pages I need to load different images on the header. How to replace image "A" with image "B" on the control programatically? I U...more >>

Serialisation - whats coming over?
Posted by Daniel at 2/25/2006 2:36:11 PM
Using serialisation can anyone tell me how i can use it to work out what object was serialised? For example i have a class Ball and another class Bat. i serialise the first class Ball and send it over the wire via sockets. The receiving end receives the data and deserialises. But how do i...more >>

Mini interface on the task bar
Posted by Bridger at 2/25/2006 2:34:31 PM
Hi all, Would appreciate any advise/suggestion on this topic: What do I need to do to dock a mini form to the task bar? Similar to what the Windows Media Player will show when it is minimized. Thanks for all your help in advance. -Bridger ...more >>



Generics and Reflection
Posted by Chris McKenzie at 2/25/2006 1:58:30 PM
I have a situation in which I need to test to see if an object implements a Generic Interface. My collection contains objects which do not implement the interface, and objects that implement the Generic Interface with different Generic arguments. I don't care what the specific arguments are to...more >>

Program runs fine on my computer, won't run on end user computers
Posted by Doug Streifel at 2/25/2006 1:37:27 PM
I've got an application that I've written in C# that reads and writes to the filesystem. On the computer I developed the application on, everything works properly. If I try to run it on another computer that has the .NET 2.0 framework installed but not the SDK, it throws a system.io.fileno...more >>

Before Serialization
Posted by Joe at 2/25/2006 12:20:51 PM
I would like to call a method of an object before the object is serialized. I currently have a surrogate that I use for deserilization and was thinking I could use one for serialization but that means I have to handle GetObjectData for each object which I don't want to do unless there is a way...more >>

HttpWebRequest fails
Posted by Markus Eder at 2/25/2006 11:53:27 AM
Hi, I tried to send a HttpWebRequest, but it doesn't work, although it's so simple. Here is the Code: HttpWebRequest InetReq = (HttpWebRequest)WebRequest.Create("http://www.contoso.com/"); HttpWebResponse myResponse; try { ...more >>

newbie: How to call a method from a static method?
Posted by deko at 2/25/2006 11:22:44 AM
Is this a C# thing, or am I missing something? public static void addProject(Array myArray) { //flatten out myArray into myList and //pass it to another method in this class ArrayList myList = New ArrayList(); //loop, flatten, nurp, etc... someOtherMethod(myList); } Why a...more >>

Catch Exception problem....
Posted by alegon NO[at]SPAM gmail.com at 2/25/2006 11:07:26 AM
How to catch the windows exception that shows a window with the name of the executable program and a messege saying : "[Program] has encounterd a problem and needs to close. We are sorry for the inconvenience", and three buttons, "Debug", "Send Error Report" and "Don't Send", in a dotnet applica...more >>

Using mnemonic &p
Posted by Raith at 2/25/2006 6:07:41 AM
I have a form with various mnemonic (accellerator) keys set up, they all work fine except the password box ("&Password"). Is this perhaps because that's a default for Print? Is there a way to get this to work? ...more >>

Fun, Games and Disaster with Console.Writeline
Posted by Andrew Ducker at 2/25/2006 4:31:12 AM
We were using Console.Writeline from within our app, to do some routine debugging. And then we started having random problems when the code was run by a tester, on their own machine. We couldn't replicate these problems on the developer machines. And then we eventually worked out that on t...more >>

Problem: C# custom event is null
Posted by CodeBlue at 2/25/2006 3:54:09 AM
Hi, (these are sample classes to illustrate) I have 3 classes: public class A { .... //array of 4 B objects public B[4] B_Obj; public A() { B_Obj = new B[4]; for (int i=0; i<4; i++) B_Obj[i] = new B(); } public class B { public ...more >>

Why isn't this casting?
Posted by Joe at 2/25/2006 3:19:04 AM
entityType implements IPersistent and does get into the if statement but p is always null. Type t = entityType.GetInterface(typeof(IPersistent).Name); if (t != null) { IPersistent p = entityType as IPersistent; // p Is always null. } -Joe ...more >>

newbie: object out of scope?
Posted by deko at 2/25/2006 1:52:50 AM
I'm having a problem trying to run methods in the DataAccess layer of my WinForms app. I'm wondering if the problem is a result of the way I've designed the interaction between the different layers. I have my app organized in 3 projects and (for the sake keeping this simple) 4 classes: ...more >>

FormView - FindControl
Posted by Paul Aspinall at 2/25/2006 12:00:00 AM
Hi I'm having trouble trying to use FindControl with a FormView, but can't seem to find what I'm doing wrong.... I have a TextBox in my ItemTemplate, and I want to assign a value to it, in code... I'm trying: ((TextBox)FormView1.FindControl("TextBox1")).Text = "Sample value"; Th...more >>

Data conversion,a simple but strange problem,please help!
Posted by Webdiyer at 2/25/2006 12:00:00 AM
Hi, We all know that the return value of Math.Log(8,2) is 3,but how about (int)Math.Log(8,2)? On my machine,the return value of (int)Math.Log(8,2) is strange enough! it's not 3 but 2 ! I've tested other values such as (int)Math.Log(16,2),(int)Math.Log(4,2),(int)Math.Log(32,2)...et, they all...more >>

C# event processing and windows messages
Posted by Ubergeek at 2/25/2006 12:00:00 AM
I have some legacy (C) code that I wnat to use to raise events in a C# component. Basically, when a condition is true (in the C code), I want to send a WM_ message (using Win32 API from the C code) to a C# "listener" component which will then handle the event and any data sent. So basically...more >>

Implementing association class
Posted by Frederik Vanderhaegen at 2/25/2006 12:00:00 AM
Hi, I'm a newbie in c# and have a simple question. How does you have to implement an association class (uml) in c#? Thanks in advance Frederik ...more >>

assistance with moving through loops
Posted by gordon at 2/25/2006 12:00:00 AM
Hi I have some code that will prepare a text file that can be read by another application. The code is supposed to collect information on the starting point of a range, then end point of the range and the interval to create categories. For example if the start is 5 and the end is 25 and t...more >>


DevelopmentNow Blog