Contents

Posts in microsoft.public.dotnet.languages.csharp

 

Intelligent Directory Tree control  Replies (1) 13 January 2006
Problem with mapping a directory tree to a tree control: It takes a while to recurse subdirs and map them to nodes. This is solved in some books I've seen (MacDonald, Albahari) by reading the subd...

 

printing problem  Replies (1) 13 January 2006
Hi, When the print button is clicked, I save a snapshot of the screen to a bitmap file. Graphics currentTab = this.CreateGraphics(); Size s = this.Size; Bitmap memoryImage = new Bitmap(s.Width -...

 

What does this exception message mean while doing ...  Replies (1) 13 January 2006
I'm trying to do some remoting and I'm getting the following error when I register a callback function: 'Type System.DelegateSerializationHolder and the types derived from it (such as System.De...

 

Most recent data point?  Replies (1) 13 January 2006
I have a table that stores data points for several different data sources. The general format is: DECLARE @Data TABLE ( DataID int, TimeCollected int, DataValue decimal(9,9)...

 

How to find users executing processes  Replies (1) 13 January 2006
Hi, I am looking for a way to determine het user that is running a certain process, I can retrieve the process ID by calling the GetProcessByName("test") method which will return all processes na...

 

Drag Drop data into Windows Explorer  Replies (1) 13 January 2006
I want to drag an object from my application into Windows Explorer and have it create a new file, but the object I want to drop is not a file to begin with. It seems the only thing I can do is crea...

 

Overriding a ComboBox  Replies (2) 13 January 2006
I tried an implementation of overriding a ComboBox control. I am simply trying to avoid it repainting, but I can't seem to get it to work. What am I doing wrong? Please help. Thanks, Ron ...

 

Weeired compile issue  Replies (2) 13 January 2006
I have a property in my class like.. Int32 iVal; public String Val { get{return iVal;} set{this.iVal = value;} } Strange that compiler does not pick it up as error because of type m...

 

EventArgs design question  Replies (1) 13 January 2006
I have a hierarchy of message classes. Many times when messages are created/received by a class, an event is generated to let the outside know. Also, the message is passed along when raising the e...

 

Is there a way to prevent a Button to get the focu ...  Replies (1) 13 January 2006
C# question: Is there a way to prevent a button from getting the focus and from being painted with a rectangle of small dots when clicking on it? Specifically, I have a form with 2 TextBox and...

 

update/insert with microsoft.xml.xquery(.net2.0bet ...  Replies (1) 13 January 2006
update/insert with microsoft.xml.xquery(.net2.0beta) can anyone provide an example of how to update/insert with microsoft.xml.xquery?...

 

Display TV within WinFom?  Replies (2) 13 January 2006
I have a TV tuner card and can display TV on my PC via the software that comes with it. But it would be really cool to show it in my C# win app in a form. Any idea if this can be done or how t...

 

Handle the Windows Lock Desktop event/message?  Replies (3) 13 January 2006
Anybody out there know how I could go about handling, in a systray'd app, the windows message that the desktop is going to be locked? This way the application can react whenever the Win+L or Ctrl+Al...

 

How to stop updating DLLs?  Replies (2) 13 January 2006
Say I have four projects - one is an EXE and three are DLLs. The EXE references all three DLLs. If I update one of the DLLs and compile, next time I run my EXE project, it will get the latest vers...

 

Construnctor in subclass Inheriting from List<>  Replies (1) 13 January 2006
I have class definition like so:...

 

Constructor in sublass of List<>  Replies (2) 13 January 2006
I have a class definition : public class PagingList : List { private int pageSize, pageNumber; public PagingList() { pageSize = (this.Count == 0) ? 1 : this.Coun...

 

Casting problem with small int  Replies (1) 13 January 2006
When using a DataReader to return records from a SQL server, I'm having a problem with the following code (abbreviated) int ID = 0; ID = (int)dr["user_id"]; will work if the user_id column is...

 

DataColum.DefaultValue  Replies (1) 13 January 2006
I am trying to get a vale of a column. Above gets me null, but it seems that I do have data. How to get data out of a column? tia, .V...

 

NUnit TestFixtureSetup not being called  Replies (1) 13 January 2006
I'm trying to convert an existing C# project from .NET 1.1 and Visual Studio 2003 to .NET 2.0 and Visual Studio 2005. I was using NUnit 2.2.0 to run my unit tests under .NET 1.1. I installed N...

 

How to read a doc file?  Replies (1) 24 January 2005
Hi! How to read a doc file in C# 1.1? =) Thanks...

 

How to read a doc file?  Replies (2) 24 January 2005
Hi! I need to know an easy way to read a .doc file in C# :) Thanks!...

 

Get Javascript in HTML file  Replies (1) 14 January 2005
Hi I want to get the Javascript file in .html file. It's possible with regular expression? Thanks :)...