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# > march 2008 > threads for wednesday march 5

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

Changing form scale to mm
Posted by vicky87.eie@gmail.com at 3/5/2008 10:35:12 PM
Hey i need to change a form's scale mode from pixels to millimeters. Can anyone tell me how to do that?...more >>


Evaluate LINQ immediately
Posted by Peter Morris at 3/5/2008 9:48:21 PM
from line in order.Lines select new { Number = line.Number, Qty = line.Quantity } at this point I deactivate my object cache, which is where line.Number and line.Quantity are read from, so any subsequent attempts to read those properties will result in an InvalidOperationException. So to ...more >>

Enumeration has fields that aren't userfriendly, possible to attached meta data to them?
Posted by DotNetNewbie at 3/5/2008 8:59:00 PM
Hi, I am creating the administration side of a web application, and I want to basically enumerate through a Enumerations items and display the enum items name and value. Problem is the name of each item is not user friendly, is it possibel for me to attach some kind of meta deta that I coul...more >>

app.config files..
Posted by Chizl at 3/5/2008 8:24:43 PM
I can read .config files all day, but for some reason I cant write to them.. After searching for a few days, there are some that have code showing to write, but none of them seem to work. Someone explain to me what could be the problem? I'm admin of the machine, I'm writting local, and t...more >>

Wanted: minimal Northwind LINQ example
Posted by Siegfried Heintze at 3/5/2008 5:34:00 PM
I'm trying to follow Luca Bolognese's example from http://www.microsoft.com/emea/msdn/spotlight/sessionh.aspx?videoid=716 but the following code works for him but not me. VS2008 says there is no System.Data.Linq! I tried live searching for a simple example that worked but could not find o...more >>

threading question
Posted by Analizer1 at 3/5/2008 5:28:41 PM
is there a alternative to doevents() for threads In my Case there is no UI does thread.sleep() yield to windows or just stop the current thread for the time tks ...more >>

FileStream questions
Posted by John at 3/5/2008 4:27:07 PM
I am trying to familiarize myself with filestreams, but I have run into the following issues. I am hoping that someone can shed some light on these issues for me please. I am using the following sample code to write (keeping it simple) private void button1_Click(object sender, Event...more >>

Keeping the header on a gridview visible
Posted by Robert Smith at 3/5/2008 3:17:01 PM
Hello, I have a gridview bound to a datasource, however there are many rows in the grid and the user has to scroll down and thus the header row is obscurred. Is there anyway of keeping these headers visible whilst the remaining rows move up and down. Thanks Robert ...more >>



Sorting my custom class in a List<T>
Posted by DotNetNewbie at 3/5/2008 3:12:05 PM
Hi, I have a class that represents a Menu Tab: public class MenuTab { public string Name; public string Filename; public int SortOrder; } I then load them in a Generic like: List<MenuTab> menus = new List<MenuTab>(); menus.Add(tab); // etc. **Now I want ...more >>

question on inheritance of interfaces..
Posted by parez at 3/5/2008 2:52:37 PM
I have interface IAbc,IDef and interface IXyz inherits/implements(what is the right word) IAbc and IDef if i reflect the type IXyz it only shows me the members of IXyz and not IAbc and IDef. Why? TIA...more >>

How select just numeric values in LINQ?
Posted by Ronald S. Cook at 3/5/2008 2:20:02 PM
We have a table "Animal" that contains the column "AnimalNumber" with values like these: 100001 100002 100003 1XAB 10E43ABC 11RU5V Having letters in the value was done in the past. These days, it's just a the numeric value. How can I write a LINQ statement to select only the numer...more >>

adding files at compile time
Posted by DBC User at 3/5/2008 2:06:12 PM
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have 2 questions 1. Is it possible to identify all the files in the resource file during runtime by name...more >>

VS 2005 and 2008 coexist?
Posted by Michael A. Covington at 3/5/2008 1:07:16 PM
Can VS 2005 and 2008 coexist on the same computer, with some projects continuing to be worked on in each? ...more >>

vs.net find help, how to search for all lines that contain 2 strings using regex?
Posted by DotNetNewbie at 3/5/2008 11:42:36 AM
Hello, In VS.NET, I assume the 'Find' tool lets you search using regular expressions right? How would I search for all lines in my project that contain 2 strings (anywhere in the line, in any order)? Example, the 2 strings could be: 1) script 2) text ...more >>

Error on serializing System.Windows.Media.Color
Posted by Christopher Ireland at 3/5/2008 11:29:03 AM
Hello! The following WPF code gives me an error: namespace WpfApplication1 { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 : Window { public Window1() { InitializeComponent(); }...more >>

Asynchronous Reads from MSMQ
Posted by Konstantin at 3/5/2008 11:09:09 AM
Hello, I am implementing an asynchronous message processing using MSMQ. Since I want to process more than one message at a time BeginReceive is getting called within the event handler. The application seems to start hanging at the method that does the processing. The snippet below shows in ...more >>

Fast way to determine if a string contains a member of a list of strings
Posted by Karch at 3/5/2008 11:05:22 AM
I need to find the fastest way in terms of storage and searching to determine if a given string contains one of a member of a list of strings. So, think of it in terms of this: I have a string such as the following: "Smith said the dog belongs (or did belong) to the secretary, an employee of ...more >>

WPF Binding To Object Not Working
Posted by Phil Johnson at 3/5/2008 11:02:04 AM
Hello, My first attempt to bind a 'detail' form to the properties on an object and the binding is not working. I have the following grid: <Grid x:Name="MainGrid"> <StackPanel FlowDirection="LeftToRight"> <TextBlock Foreground="#FFFFFFFF">First name:</TextBlock> ...more >>

Reading a file from a resx resource
Posted by Claire at 3/5/2008 9:40:36 AM
Ive added a html file to a resx resource so that I can localize it. How do I read this back in please? The designer code that vis studio 2005 autogenerates when I add the file is as follows internal static string MSummary { get {return ResourceManager.GetString("MSummary", resourceCulture);...more >>

emulate PHP "crypt" function in c#?
Posted by JamesB at 3/5/2008 9:26:08 AM
Not sure if this is possible, but has anyone seen (or know how to do) emulation of the PHP "crypt" function from within c#? Thanks ...more >>

Auto-implemented properties
Posted by Jesper, Denmark at 3/5/2008 9:19:04 AM
Hi, I think that auto-implemented properties are a wonderful new c# 3.0 feature. However, anyone who knows how I can set a default value (initial value) for the property like in the bad old days: int foo = 5; public int Foo {get ... yada yada} ...more >>

C# FTP client using TcpClient class -- please help
Posted by almurph@altavista.com at 3/5/2008 8:43:53 AM
Folks, I'm trying to use C# to connect to an FTP server to upload some files. I'm calling: System.Net.Sockets.TcpClient mtTCPClient = new System.Net.Sockets.TcpClient(url, 21); The problem is though I know this server accepts a username and password but I dont know where to put them....more >>

Interfaces to represent winforms
Posted by parez at 3/5/2008 7:59:56 AM
I am planning to make my winforms implement an interface representing the data on the forms. And the interface will be passed to a class which will contain the data to be populated on the winforms.I am planning to use reflection to the populate the winforms. The reason why i am doing it is to ...more >>

Problems with security requirements in Windows WorkGroups.
Posted by womin at 3/5/2008 7:21:03 AM
Hello everybody, I have a .NET C# client-server application that is being used in two machines with Windows XP installed. Both the client and the server are executed into users of a Work Group. I am using .NET Remoting to connect the client and the server with a TCP channel. The registra...more >>

Discrete Cosine Transform in C#?
Posted by illusion.admins@gmail.com at 3/5/2008 6:50:53 AM
Has anyone had experience with or implemented a Discrete Cosine Transform in C#? Found code for FFT which I have taken advantage of and modified for my use but can not find a thing for DCT. Any help would be great! Thanks...more >>

c# basics
Posted by Tem at 3/5/2008 6:04:16 AM
Im learning c#. want to make sure my understanding of certain concepts is correct - is struct basically a sealed static class? - what exactly does the keyword virtual do? - what is the best practice for assigning accessors(public/private)? limit scope as much as possible? - if you add the ...more >>

Code generation tool for DAL objects
Posted by hardieca@hotmail.com at 3/5/2008 5:07:02 AM
Hi, I'm looking for a tool that will generate DAL objects, hopefully even stored procs, by examining a SQL Server Express DB. Can anyone recommend something? Regards, Chris...more >>

are getters/setters a must?
Posted by Ben at 3/5/2008 4:57:28 AM
I have a small argument with a co-worker about proper design, i wanted to get some more feedback: we are designing an object model for a client/server system using c- sharp -- one of the classes is "Client", it holds properties such as 'computerName', 'OSType', 'LastScanDate', etc. it has a...more >>

Instantiating an struct defined as DNVSRISKMDECORE!STRUCT1
Posted by Marek at 3/5/2008 4:12:01 AM
Hi I am trying to call a method in a FORTRAN.NET assembly that requires a structure parameter. Intellisense tells me that the structure name is DNVSRISKMDECORE!STRUCT1 and this is confirmed by reflector. However in the C#, declaring an object of type DNVSRISKMDECORE!STRUCT1 is rejected beca...more >>

AsyncCallback method accessing WebBrowser control causes exception
Posted by Artie at 3/5/2008 1:53:40 AM
Hi, We have an app which uses an AsyncCallback method to handle the return from a COM call. In this callback, if we try to do anything with a WebBrowser control, we get the following exception: "InvalidCastException was unhandled Specified cast is not valid" If we remove all code whic...more >>

How is this done?
Posted by jim at 3/5/2008 1:30:37 AM
There are a few apps out that allow a user to mouseover a webpage and the app highlights the portion (be it a DIV, cell, table, whatever) of the webpage that the mouse is over by placing a colored box around it and allows the user to select this portion. One such app is an addon for Firefox...more >>


DevelopmentNow Blog