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 2007 > threads for monday february 26

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

String.Format on Japanese Windows
Posted by schouwla NO[at]SPAM yahoo.com at 2/26/2007 11:04:44 PM
Hi, I want to create dates in the following format: dd-MMM-yyyy e.g. 13- Mar-2007 But are seeing some problems when running on a Japanese Windows XP. Regional settings are set to JP. Currently I am doing this DateTime dat = DateTime.Now; return String.Format("{0:dd}-{0:MMM}-{0:yyyy}", d...more >>


Get process exit reason
Posted by alexia.bee NO[at]SPAM gmail.com at 2/26/2007 10:30:54 PM
Hi, I my program runs other program(form) by process.start. In some cases the other program gets exception and dies. Can I get the reason of the termination of other program(Stopped by user, exception). Note that when the other program dies due to exception, it writes to messagebox. does...more >>

labels collections
Posted by Bhadan at 2/26/2007 10:07:11 PM
Hello, I wish to create a collection from labels on a form. I know the form has a control setting. But I wish to access specifically numbered lables only ( label20 to label50); any advice is appreciated. TIA, Bhads. ...more >>

Asp.net using c# code behind
Posted by riyazmca.mohammad NO[at]SPAM gmail.com at 2/26/2007 8:23:40 PM
tell me about Asp.net with C# code behind ...more >>

Console.WriteLine vs. Debug.WriteLine formatting
Posted by Zytan at 2/26/2007 6:15:19 PM
This works: Console.WriteLine("F: {0:F}", CurrTime); But this doesn't: Debug.WriteLine("F: {0:F}", CurrTime); Any reason why? Zytan P.S. How does Debug.WriteLine() (and I assume Console.WriteLine(), but maybe not) know to invoke ToString() for anything passed to it? Is it because it...more >>

FileVersion and Assembly Version
Posted by perspolis at 2/26/2007 4:52:54 PM
Hi all I want to know diffrence between File version and Assembly version.. thanks in advance ...more >>

Bitlocker api
Posted by rsm at 2/26/2007 4:30:44 PM
Hi, I am trying to use Bitlocker api: Win32_EncryptableVolume : http://msdn2.microsoft.com/en-us/library/aa376483.aspx Is there a C# wrapper available for the api? Thanks, rsm ----- ...more >>

Framework (1.1) installation issues
Posted by Tomas Vera at 2/26/2007 4:02:53 PM
(This was posted in the Framework.Setup group a couple of days ago with no response. Hoping someone here has an idea on this.....) Hello, I'm unable to install (re-isntall) the 1.1 Framework. Recently, one user started having trouble running ANY .net apps (0xC0000005 Error - App Failed to I...more >>



Trying to get a name from Active Directory with DirectoryServices
Posted by jmDesktop at 2/26/2007 2:50:50 PM
Can someone tell me why I get this error? System.DirectoryServices.DirectoryServicesCOMException was unhandled Message="An operations error occurred.\r\n" Source="System.DirectoryServices" ErrorCode=-2147016672 ExtendedError=8406 ExtendedErrorMessage="000020D6: SvcErr: DSID-0310068...more >>

OT: Book rekomendation
Posted by Martin Arvidsson, Visual Systems AB at 2/26/2007 2:47:11 PM
Hi! I need rekomendation on book's that will handle the subject on creating dataaware applications with MS-SQL server. Things to think of, and how to create applications that are fast, and how to build true client server apps. Regards Martin ...more >>

Cursors.WaitCursor
Posted by mgonzales3 at 2/26/2007 1:58:15 PM
I am unable to find the documentation on rotating the WaitCursor. ----- code --------- try { this.Cursor = Cursors.WaitCursor; // more code } catch { } finally { this.Cursor = Cursors.Default; } ----- end code ---- Can someone point me in the right direction? ...more >>

Inserting items into the SOAP Header from C# Client to call a webservice
Posted by John at 2/26/2007 1:37:37 PM
I'm trying to call a Webservice (Non-.NET) That requires the insertion of security credentials into the SOAP header. Up until know I've been creating Dynamic proxy classes to call web services and not been dealing with the inner workings of SOAP. Looks Like I need to learn a little about soap...more >>

set backcolor of ContextMenu
Posted by Steve Richter at 2/26/2007 12:44:06 PM
I would like my popup ContextMenu to have a different backcolor than the form. How is that done? thanks, -Steve ...more >>

Tab Control - Block CTRL+Tab
Posted by Kbalz at 2/26/2007 12:26:48 PM
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the tabControl begins to cycle through the tabPages, just as it does in Visual Studio, IE7 etc.. any tabbed ...more >>

Automatic application Upgrade.
Posted by iKiLL at 2/26/2007 12:17:05 PM
Hi all, I went to an event at Microsoft some time ago and they demonstrated this new feature in Dot net where and application can check on Startup for a newer version of itself in a specific location or Web URL. I am not sure what it was called and I am having trouble searching for i...more >>

User Control inserts text in wrong place
Posted by RvGrah at 2/26/2007 11:14:19 AM
I have a user control with eight text boxes, if I start typing in the first text box in the tab order all is well, but if I mouse click into another box and start typing the text goes into the frst box rather than the one I put the focus in. The caret is in the right box, though no in the right ...more >>

Multihome a NIC in C#
Posted by Billy Bob at 2/26/2007 11:13:54 AM
Hello Any one have examples of how I can multihome my NIC with and additional IP address and subnet mask in c#? Thanks B ...more >>

Newbie question - cannot get Console.WriteLine to work
Posted by barq at 2/26/2007 11:06:22 AM
HI All, I'm just starting on C# - I've .NET version v 2.0.507207 on my machine. I run a .cs having the following code from command line : __________________________________ using System; namespace FirstCSharpProgram { class FirstCSharpClass { static void Main() ...more >>

using WriteLine
Posted by Jerry at 2/26/2007 10:29:28 AM
I am writing text out to a text file and I want to LEFT justify the text. I wave found examples for the following: // Format a negative integer or floating-point number in various ways. Console.WriteLine("Standard Numeric Format Specifiers"); Console.WriteLine( "(C) Currency...more >>

IE7 hangs with "Click Once Deployment" any fixes?
Posted by Rich at 2/26/2007 9:58:05 AM
Greetings, I have been using the Click Once deployment feature of VS2005 - very nice. I had IE6 at the time when I started using Click Once Deployment, and everything worked fine. But then my workstation got upgraded to IE7, and now whenever I deploy an application and IE7 comes up for th...more >>

app written in .net 2003 beta version?
Posted by KidSensation at 2/26/2007 9:53:31 AM
Hello all, I ran into a couple applications written in c#, but we do not have the full version of visual studio.net 2003, so I thought they were most likely written in the beta version. After some research, I found out that sooner or later the applications written in beta would just stop work...more >>

an easy install wizard for my new c# app...
Posted by trint at 2/26/2007 9:46:18 AM
Anyone know the best way for me to offer an installation process for my c# app that I just completed? I need for it to install into the / program files directory and it would be nice for it to be zipped up into one executable. Thanks for any help. Trint ...more >>

"Sync to Contents" help button
Posted by Zytan at 2/26/2007 8:55:20 AM
Is there a 'sync to contents' button anywhere in VC# 2005, like VS 2003 had? I'd like to be able to see more what is to offer when I find myself in a help page. Zytan ...more >>

Generate Excel File (without Excel.exe)
Posted by John Bailo at 2/26/2007 8:46:03 AM
I want to write an Excel file (.xls format) from some database data. I don't want to use Excel.exe because of all the automation and security issues. Does Microsoft document the .xls file format anywhere? Is there any c# class that will let me do this? ...more >>

Excel.exe does not leave memory when called from Web Service
Posted by John Bailo at 2/26/2007 8:45:17 AM
I wrote a c# web service that creates an Excel spreadsheet. Even though I follow all the formal procedures for closing the app and finalizing, an instance of Excel still remains in memory. Is this a problem? With that instance of Excel.exe eventually go away because of GC? I follow...more >>

Connect to a SQL database using console application
Posted by Claudia Fong at 2/26/2007 8:41:41 AM
Hello I'm trying to connect to a sql database using C# console application but I'm having trouble to connect.. can someone help me? // Create an empty SqlConnection object. using (SqlConnection con = new SqlConnection()) { // Configure the SqlConnection object's connection string. ...more >>

extracting frames from popular movie formats
Posted by Koliber (js) at 2/26/2007 8:40:39 AM
sorry for my bad english, i hope this group is appriopriate for this question task i am tryin to do is to write code [c#, managed] to extract some frames from popular (popular on a windows platform) movie formats, for example Quick Time (.mov), Real, WindowsMediaPlayer (.wmv), mpg, avi, v...more >>

How to change value of element with known path using XML
Posted by Tone at 2/26/2007 8:20:40 AM
Hi, I need to change a value of an element in an XML file, I have been trying to select the node to edit but can only get as far as component and have to itterate through.. XmlDocument doc = new XmlDocument(); doc.Load("C:\\WINDOWS\\Panther\\Sysprep.xml"); // C...more >>

Fastest String Replacement Method?
Posted by Phil Sandler at 2/26/2007 7:47:45 AM
Hello, What is the fastest/most efficient way of doing string replacement in csharp/.net? An example would be: "Hello, my name is {FirstName}, and I live in the town of {City} with my wife {WifeName} and my {NumKids} children." I have this working with regular expressions, but I'm wond...more >>

ContextMenuStrip from a left click on a Notify Icon
Posted by progger at 2/26/2007 7:19:23 AM
I've written an application that can minimize to the tray and can reappear if you double click on the icon in the tray (ShowInTaskbar is set to false). I've also created a ContextMenuStrip (Visual C# 2005) so that you can write click on the icon in the tray for options. I then captured the eve...more >>

Using stringreader to set email body to html page
Posted by Mike P at 2/26/2007 7:18:42 AM
I am trying to send out an email that is based upon an HTML page. Is it possible to read the HTML page into something like a StringReader and then set the Mail.Body equal to the StringReader? If it is, does anybody have any code samples? *** Sent via Developersdex http://www.developersde...more >>

Free weather web service
Posted by Lonifasiko at 2/26/2007 7:11:31 AM
Hi, I would like to show users in my Windows Forms application weather conditions in a concrete point based on latitude/longitude pair values. At the moment I have different points identified by latitude and longitude pair values. In fact, I represent these points in a map using Virtual Ea...more >>

Catch process exception
Posted by Eran.Yasso NO[at]SPAM gmail.com at 2/26/2007 6:42:31 AM
Hi, My app starts process. Some times this process exits because of exception. Can my app know if the process exited due to exception or gracefully? In both ways, the exit code of this process is zero. I tried using the following, but it goes to catch. ProcessStartInfo myProcessStartIn...more >>

How to measure/monitor remoting performance
Posted by frank.preiss NO[at]SPAM siemens.com at 2/26/2007 6:18:06 AM
Hi, I'm looking for help monitoring the communication of a client/server application. We are using the .Net default serialization/ deserialization with the binary formatter using .Net 2.0. I don't see any chance spying on what is going on during communication. We experience poor performance a...more >>

Passing info back from a form to a form which is open
Posted by jed NO[at]SPAM auto-soft.co.za at 2/26/2007 4:56:32 AM
If on form2 i calculate a value how do i pass it back to form form1.I want to close form2 and at the same time pass the value back to form1.Thanks ...more >>

Just to know more in database
Posted by mask.sd NO[at]SPAM gmail.com at 2/26/2007 4:45:04 AM
Can anybody Suggest a book that can be used as Referance from Scratch to atleast Intermediate level & is available easily in India So it should Contains the things from Basics to Experts.. Thanks for ypur valueable time Regards. ...more >>

editing database (mysql) table with datagridview
Posted by kristian NO[at]SPAM bommelibom.com at 2/26/2007 4:17:56 AM
Hi all I have a simple form with not much more than a datagridview control, and want to show and edit the contents of a table in my mysql table. So far I have managed to set the db table as a datasource for the datagridview, and display the contents. Code bit: public partial class FormEd...more >>

Interoperabolity for com compone,t
Posted by archana at 2/26/2007 3:10:31 AM
Hi all, I have one COM dll which i want to use in .net application. I don't know what security constraints are added to this dll. But when i try to add reference of that dll into .net appliction i am getting following error :- A reference to test.dll'could not be added. This is not a va...more >>

DatagridView Disable some rows selection
Posted by Diogo Alves - Software Developer at 2/26/2007 3:10:13 AM
greetings, I have a datagrid view filled with some data, in that data some of the cells are null and I would like to not let the user select the rows with null values... the problem is that the selection goes there when I click and then jump back to last selected row... the correct behav...more >>

unlimited size for varbinary Sql Server 2005 parameter in C#
Posted by dvarma at 2/26/2007 3:03:18 AM
Hi I am executing a Sql Server SP from my C# app One of the parameters is of type varbinary. Since the content length of this parameter is variable I cannot set it to a pre-defined length. What do I set the parameter size to ? I can set it to -1 but does -1 means variable upto maximum size...more >>

CultureInfo problem
Posted by windsim at 2/26/2007 2:06:10 AM
Hi, I have a c# program where I need a numerical float input. Due to the culture difference, someone is used to type f.ex. 1,3; 2,32 (, comma) while others use 1.3; 2.32(. point) etc. so the program should accept both numerical expression. How can I do it? -- windsim...more >>

Linking objects between forms
Posted by jed NO[at]SPAM auto-soft.co.za at 2/26/2007 12:17:35 AM
How can i get access to textbox or an object in another form.I need to insert a value from a textbox on form1 into a textbox on form2 but cant get the textbox to appear in intellisense.I am a beginner still learning C# thanks. ...more >>

Active Directory: retrieving all users in a group
Posted by rh at 2/26/2007 12:13:33 AM
Hi, I need to retrieve all usernames within an active directory security group (including sub-groups) into my C# application. Is there a relatively simple way of doing this? (I'm hoping for a simple ldap query but I feel I'm out of luck) Thanks, -rh ...more >>

what does the @ do to strings and paths
Posted by Peted at 2/26/2007 12:00:00 AM
I see many c# code samples that relate to strings or using strings in file paths, that have an @ sign. eg string path1 = @"mydir"; string path2 = @"\mydir"; what does the @ do ? Peted...more >>

Working with app.config
Posted by Alberto at 2/26/2007 12:00:00 AM
I have a app.config file and I'd like to read and modify strings in it. I can read but I can't modify strings. The code I'm using is this: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); string key = "myKey"; config.Save...more >>

Winform cannot connect to webservice via CAS policy
Posted by Dan at 2/26/2007 12:00:00 AM
Hi I have a dotnet application that communicates with a web service running locally on my machine. It connects fine and works ok when I run the application from the c: drive. Am having problems running it from my ftp location, so ftp://localhost/setup.exe In the Runtime security poli...more >>


DevelopmentNow Blog