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 2007 > threads for friday april 20

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

changing culture on datetimepicker
Posted by marcussilfver NO[at]SPAM gmail.com at 4/20/2007 11:59:00 PM
I want to change the culture on a DateTimePicker The code below works somewhat. I get the date in english format when dateTimePicker1 is not expanded. When I click dateTimePicker1 in my application GUI though (and thereby expands dateTimePicker1, showing the dates of the month) at the bottommo...more >>


Recording Audio
Posted by chandrika_503 NO[at]SPAM yahoo.com at 4/20/2007 11:45:31 PM
Hi , I am Working as a C# Developer and I am new to this Lang . I want to Record Audio using C# program . i did it by using Microsoft Directrix .Now the Problem is , I want to record Three members voice at a time in one system like wats the process used in Customer cars or BPOs .I am ...more >>

Problem with Method handling a BaseClass parameter
Posted by Andreas Schmitt at 4/20/2007 11:21:01 PM
I have a problem here. I've read a book about C# already and got the basics of how the language handles polymorphism I think but I ran into a problem here that I simply never even thought of as a problem coming from C++: I wrote some code similar to this: abtract public class Base { } ...more >>

OT: Can somebody who knows the Bible well help me learn something?
Posted by 9-11 Was An Inside Job at 4/20/2007 9:35:49 PM
OT: Can somebody who knows the Bible well help me learn something? I've always wondered. Who brings the anti-christ into power to rule the world from Jerusalem; the Jewnited States or the Muslims? <!-- 9-11 Was An Inside Job --> ...more >>

Any advantage to this syntax...
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 4/20/2007 5:28:26 PM
Is this: A =3D B =3D C; Any more efficient than: A =3D C; B =3D C; In the compiled application? Thanks. J...more >>

Typing without echo into a text box
Posted by Ray Mitchell at 4/20/2007 4:36:02 PM
Hello, I'm using a RichTextBox (but maybe something else would be more appropriate). When I type something into it I don't want what I type to show up automatically. Instead, I want to catch each keystroke and manually selectively write the characters into it under program control. I can...more >>

MethodBuilder.CreateMethodBody
Posted by shark at 4/20/2007 4:27:01 PM
Hi, MethodBuilder.CreateMethodBody creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions. Is there any way to create and compile method at runtime created from byte[] of c# code? i.e. public int sum(int a, int b) { return a+b; ...more >>

ConfigurationManager
Posted by Johnny Jörgensen at 4/20/2007 2:36:42 PM
I don't get the ConfigurationManager object. All I want to do is store my application settings and retrieve them on the next run. I instantiate the Configuration: static private Configuration m_Config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); I check if...more >>



SqlDataAdapter.Fill() Performance isues
Posted by Baudin at 4/20/2007 2:25:41 PM
Hallo all, I have the following problem. I'm trying to fill a DataTable in a DataSet with data from an SQL server 2000 database. I create a SqlConnection, SqlCommand and finally an SqlDataAdapter with which I fill a table in my DataSet with the following code: dt.BeginLoadData(); da.Fil...more >>

threading and delegates
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 4/20/2007 1:43:31 PM
Hi, this is a hard question to ask without posting some code, so sorry if its to much. Im using a control which Ive added labels. Basically I want update the data every second. Ive rad up on threadind and now know that I need to use a delegate with my control because it uses a sepperate thread. ...more >>

naive question
Posted by GS at 4/20/2007 12:44:01 PM
how to setup different events for a control? I double lick a control in designer I get either clicked event or text changed event depending on control. don't shoot me with the next comment - I am just leaning .net studio with csharp with Java netbeans ide IDE, I can right click and get to e...more >>

Manual hyperlinks in XML docs (see cref)
Posted by Ron Ruble at 4/20/2007 12:34:00 PM
Is there a way to manually enter a url in the XML summary comments in C# source code modules? I have some components I'm creating that apply fairly advanced XPath queries and XSL transforms, and I wanted to link to the W3C website tutorials and references. Primarily because few people on this ...more >>

VB6 Color From Long - Equivalent in C#
Posted by Harvey Triana at 4/20/2007 11:35:00 AM
Hi. Say, in VB6: Const CLR2 As Long = &HFFF0DC ' light blue AnyObj.BackColor = CLR2 - How is the equivalent one in C#? Thanks, <Harvey Triana /> ...more >>

How to find unused methods?
Posted by Frank Rizzo at 4/20/2007 10:56:09 AM
Is there a setting in VS2005 to quickly locate methods that are unused (maybe through compiler warnings)? If not, any utilities out there that do that? Thanks...more >>

User defined mesage in C#?
Posted by Eric at 4/20/2007 9:28:02 AM
When porting the Win32/MFC code to C#, I do not know how to deal with those user defined windows messages. I just cannot cannot find an equivalent thing in C#. Those messsages are so convenient in C/C++, especially when a thread needs to inform the main GUI thread something, then continue its ...more >>

Changing the value of a DateTime
Posted by billygotee at 4/20/2007 9:21:39 AM
Hi, Okay this is taking longer to figure out than I thought it would. The integer members of a DateTime (such as DateTime.Minutes, DateTime.Seconds, etc.) can only get the value, not set it. Is there a way to set one of these without parsing a string? What I want to do is clear out the M...more >>

How can I copy the graphics inside a picturebox to the clipboard?
Posted by cakirsoydan NO[at]SPAM yahoo.com at 4/20/2007 9:06:10 AM
Hi, I drew some graphics inside a picturebox by using "GRAPHICS" class. Can you please show me a way to copy these drawings to the clipboard? Then, I will paste them to Word. Thanks in advance for the help. ...more >>

How to tell who referenced me?
Posted by JSBarten at 4/20/2007 8:43:44 AM
I have a class library that I'm using from both a windows form application and a web services. Is there a way to tell if the refrencing/executing assembly is a windows form application, web service or other? Basically, I want to possibly display information to a user in the windows form applic...more >>

LINQ and OO
Posted by David Veeneman at 4/20/2007 7:30:16 AM
I've been hearing a lot about LINQ in connection with Orcas, the next release of VS.NET. Micorosoft touts LINQ as the Next Big Breakthrough, but it looks to me like further muddying of application layering. I use an object-oriented development approach, and I don't see how LINQ can be integr...more >>

Install custom action fails when assembly signed w/ strong name ke
Posted by Jack Smith at 4/20/2007 7:06:02 AM
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. The service application references the DLLs. The service app also has an installer class that i...more >>

How can I capture a signature?
Posted by jmDesktop at 4/20/2007 7:04:52 AM
I have a writing/sketch tablet attached to a PC and want to capture the signature with c#. I am not using a tablet pc or a pda, but a regular computer. I am using 2.0 framework. Was hoping someone could point me in the right direction. Thank you for any help. ...more >>

Can generic types be overloaded?
Posted by muler at 4/20/2007 6:46:24 AM
Hi, [Section 20.1 The C# Programming Language;Anders Hejlsberg, Scott Wiltamuth, Peter Golde] " Generic types may not be "overloaded"; that is, the identifier of a generic type must be uniquely named within a scope in the same way as ordinary types. class C {} class C<V> {} // E...more >>

ToolTip over a DataGridView row?
Posted by gregarican at 4/20/2007 6:19:11 AM
I have a standard VC# 2005 DataGridView showing a group of records coming from a table. Currently I have a CellMouseDoubleClick event popping up a MessageBox which pulls a timestamp of the transaction from a related table based on the row in the DataGridView that the double click was registered ...more >>

C# Source to independent (from .net framework) binary compiler (alternative to remotesoft)
Posted by sam NO[at]SPAM discardmail.com at 4/20/2007 5:57:20 AM
It can compile .net code to native code which can run without an installed .net framework. This would remove one of the greatest disadvantages from C#. Sounds quite interesting. http://www.remotesoft.com/linker/intro.html But it`s a bit expensive. Someone already tested it? How big are t...more >>

Call javascript from ASP.net content page
Posted by weird0 at 4/20/2007 4:05:17 AM
How can i call a javascript from a asp.net content page on the clicking of a button. Where the Hell should I place the code which should be, I guess: <script> function Open() { window.open('AddAccounts.aspx') } </script> Where the Hell should I place the call ? ...more >>

treeview expand client-side attributes
Posted by csabadapp NO[at]SPAM gmail.com at 4/20/2007 3:37:34 AM
i have a treeview (id="trv") i would like to do something like this: trv.Attributes.Add("onexpand", "javascript:alert(this);"); i cannot make this work i would like to know if this is the way I should do it, or should i add some event somehow to each node basically i would like to do so...more >>

DllImport with CallingConvention.StdCall and _cdecl
Posted by Ezmeralda at 4/20/2007 2:38:17 AM
Hello, in some old projects I am using DllImport with its default CallingConvention.StdCall, but the according DLL uses standard _cdecl calling convention. To my understanding this should not work, since the calling convention does not agree - in fact it seems to work since we did not noti...more >>

Active Directory query doesn't work...
Posted by aziegler at 4/20/2007 2:16:03 AM
Hello, everybody. I'd like to do this: For a big program (a web service) I need information about the usergroups an active-directory-user is member of. To be more precise, I need to know if a particular user is in a particular group or not. This is my first Active-Directory-query in a C#-pr...more >>

Dataset and the empty rows
Posted by Shum at 4/20/2007 2:00:02 AM
Hi! i have a question.. I'm filling a dataset from a table in which some rows are empty, i dont want those empty records to be filled in the dataset.. Does any one know how to restrict it to only non empty records.. ?? ...more >>

yet another GUI/Console question
Posted by per9000 at 4/20/2007 1:48:15 AM
Hi, I've written a small app that I mostly want to run from the console. Sometimes I want the output in a GUI instead to facilitate a "Save As" feature etc. I created a nice form etc and the switch -g prints the output in my GUI instead of on the console. Now to my problem: when I start the...more >>

Query MS Access data 'like ....' from CSharp
Posted by Tea at 4/20/2007 1:39:11 AM
Please help me ! My data in Microsoft Access Query direct in MS Access : I wrote Select * from TableA where field1 like '*abc*' Query from Visual Basic : I wrote Select * from TableA where field1 like '%abc%' But query from C#: I don't known how to write! ????? Please help me !...more >>

convert byte[] to an type
Posted by sklett at 4/20/2007 1:00:52 AM
I wasn't sure how to phrase the subject. Currently I'm storing a file as a byte[] in a database, when I want to work with the file I download the byte[] and write the data to a file on disk then loading the file from disk and working with it in memory. Pretty standard. I'm now thinking ...more >>

Slot information
Posted by Tracid83 at 4/20/2007 12:18:28 AM
hi, I use wmi to get slot information from remote computer.I want to know the name of the device connected on the specific slot. Thanks for your help Tracid ...more >>

create .chm file using c#
Posted by Supriya at 4/20/2007 12:00:00 AM
Hi All, Is there any way to create .chm file programmatically? Please let me know. Thanks in advance. Supriya ...more >>

Grab data from string
Posted by Arjen at 4/20/2007 12:00:00 AM
Hi, I have a string with a lot of text. I want to filter out some data. I know some characters before and after the wanted data. I know that there is a substring method but this one use a fixed length, a length I don't know. How can I retriew the middle data, having a string before and ...more >>

Error message when service fails to start
Posted by Christof Nordiek at 4/20/2007 12:00:00 AM
Hi, the Service I wrote in C# may fail to start for some reason. I can report that failure to the SMC resp. to the net start command by setting ExitCode to a non zero value and then throw an Exception. The problem is that it either reports a predefined message or simply the number with n...more >>


DevelopmentNow Blog