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# > january 2008 > threads for friday january 4

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

How to tel if IDE debugger is atatched.
Posted by colin at 1/4/2008 7:18:34 PM
Hi, Im still trying to sort out whats cuasing the difference when the debugger is attatched... Ive finsihed re writting a lot of the code and although its a heck of a lot faster it still gives the same visual diferences, at least now it finishes a run in just second or two as oposed to nea...more >>


DateTime - Misusing Greater Than?
Posted by Luc The Perverse at 1/4/2008 5:41:02 PM
I was trying to make a quick 5 minute app to remind me to do something before leaving work - just have the dialog appear which showed in the quicklaunch bar. The application hung (which was unfortunate as I had set it as a startup and had some difficulty deleting the link with the CPU at 10...more >>

mySqlBytes.buffer is getting converted to BigEndian even though both SQL server 2005 and the CLR function are on the same machine which shows BitConve
Posted by DR at 1/4/2008 3:24:37 PM
mySqlBytes.buffer is getting converted to BigEndian even though both SQL server 2005 and the CLR function are on the same machine which shows BitConverter.IsLittleEndian == true in tsql: select * from dbo.MY_CLR_FUNCTION(cast(1024 as binary(4))) public static int MY_CLR_FUNCTION(SqlBytes m...more >>

async delegate and exception
Posted by Jeff at 1/4/2008 2:22:25 PM
Hey ..NET 2.0 In my app I'm about to program some code which retrieve a XML file from somwhere on the Internet. and then parses the XML - just looping through the records in the XML document and collecting a value at each record.... This task will run each day to collect this data... ...more >>

directory picker
Posted by Larry at 1/4/2008 2:02:12 PM
thanks in advance does anyone have a code sample of picking a directory from a windows form using a treeview? thanks *** Sent via Developersdex http://www.developersdex.com ***...more >>

OpenMappedExeConfiguration and configuration, configSections, sectionGroup values
Posted by Dave at 1/4/2008 1:59:41 PM
I'm access a non default application config file with OpenMappedExeConfiguration() and it works great for "appSettings" values, but I cannot get it to work for configSection values / with NameValueCollection. Here is some sample code: ExeConfigurationFileMap fileMap = new ExeConfigurationFi...more >>

Up Casting a Control Collection
Posted by Trevor at 1/4/2008 1:09:01 PM
Hi, I'm trying to write a general function to simply clear a collection of fields from both a group box and a tab control. Here is what I want my code to look like: private void ClearFields(GroupBox groupbox) { ClearFields((ControlCollection)groupbox.Controls); ...more >>

Reflection and Find all references
Posted by JeffinPittsburgh at 1/4/2008 1:04:00 PM
I want to develop a small utility similar to the "Find all References" in Visual Studio so that I can determines if methods in a library are actually being used inside an exe assembly. It is easy enough to find all the public methods in the library, but how do I find if a particular method is ...more >>



What interface allows DataGridView databinding to utilize the new row?
Posted by t.mall10@yahoo.com at 1/4/2008 11:37:29 AM
I've tried 2 different methods of binding a DataGridView: 1) a class derived from ArrayList that implements IBindingList, with the property AllowNew set to True; 2) a BindingList<T> collection Both show data in the grid, because both implement IList, but in: 1) no matter what I try to imp...more >>

static methods
Posted by kownacek@gmail.com at 1/4/2008 11:18:23 AM
Hello. I have some classes which resemble tables in a database. I'd like to create CRUD-like methods for each class, for example Create(), GetAll(), GetById(Guid id), DeleteById(Guid id), etc... I can implement an interface to force Create() for example, but GetAll() should return a list/ar...more >>

Minimum permission request
Posted by DBC User at 1/4/2008 10:08:09 AM
Hi All, I have a program which need to run from a network share so all users can access it. I have signed the application and it has one dependent dll. When I run the application in Vista, on loading the dependent dll, it throws 'failed to grant minimum permission request'. I need to run th...more >>

WindowsPrincipal.IsInRole fails when there is Whitespace in role n
Posted by F5F5F5 at 1/4/2008 9:41:01 AM
I use the following function to ascertain if the current user is in ann AD security group. It appears to work, except if the group contains any space characters, it always returns false. For example I am a member of groups "NWDeveloper" and "IT Development" if I call the function CurrentUse...more >>

Application Object in different AppDomain
Posted by Olie at 1/4/2008 8:51:45 AM
I am trying to run an application by creating a new AppDomain and then running the executable in the new domain. This works perfectly but when the application runs it is looking in the wrong directory for some of the files. I have found out this is because the Application.ExecutablePath has the ...more >>

Master pages - A page can have only one server-side Form tag.
Posted by Karthik at 1/4/2008 8:23:13 AM
I am converting all my asp.net pages to asp.net 2.0 for supporting master pages. I get the following error in runtime. A page can have only one server-side Form tag. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack tra...more >>

Version Proofing Excel COM/.NET Wrapper
Posted by news.microsoft.com at 1/4/2008 7:17:19 AM
Not sure the best group to post to, so sorry for the cross post :(. There are several posts out there of how to automate excel from .net, i.e in the sample below, they are using Excel 9.0... However, on my machine, I have 12.0... no big deal.. I see both in the post below, and on my machine, ...more >>

Control transparent to mouse
Posted by Nitoc3@gmail.com at 1/4/2008 7:07:55 AM
I have a panel with a picturebox on top of it and I would like to make the picturebox invisible to mouse events so when the mouse is hover the picturebox is actually the panel mouse events that are triggered. I want the picture box to behave like it isn't there. How can I do that?...more >>

String to WCHAR* conversion
Posted by IdleBrain at 1/4/2008 6:56:40 AM
Hello I am trying to call a C++ DLL from C#: C# code: [DllImport("Log")] static extern void LogMsg(String wsString1); static void Main(string[] args) { LogMsg("Works!"); } C++ DLL: __declspec(dllexport) ULONG LogMsg(WCHAR* wsString1) { } The problem is that the wsString1 fr...more >>

Web Page listener for POST message problem
Posted by muntyanu@hotmail.com at 1/4/2008 5:49:39 AM
Hi All, I created listener for POST message from client as a simple web page and process that message in Page_Load method. If I use url for posting message to my listener with explicit web page name http://myserver/formhandler/listener.aspx it works without error. But my clients will need t...more >>

Visual Studio Express 2008 - Target Platform
Posted by Jono at 1/4/2008 3:56:00 AM
I've developing on xp64, and from a couple other topics I'm supposed to change my target platform to X86 if i wanna do some specific 32bit stuff. However, the option is supposed to be in Project properties - build tab... but it's not there, where did it go? Do I have to do something specific...more >>

System.Diagnostics.Process.Start c# query
Posted by JimJob at 1/4/2008 3:44:01 AM
Hi All, I am using c# to build an application. I want a button that will be able to open a new mail message with an attachment. The new mail message works but I can't get the attachment to work - there is no error message just no attachment. Any ideas? Code i am using is; System.Diagn...more >>

Scanner device is use in C# using Asp.net page 2.0
Posted by jsr.ajay@gmail.com at 1/4/2008 3:11:12 AM
Hello, sir I my self ajay choudhary .I am a C# .Net programmer . I am developing an asp.net application that is using in Scanner device . but how can write the code i don't know. Explanation of the code: an asp.net page we need a button, if i click the button then it call the scanner after...more >>


DevelopmentNow Blog