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 friday february 23

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

App für Nokia N73
Posted by Thomas Bock at 2/23/2007 10:04:47 PM
Hi NG Wie muß ich vorgehen um mit VS Net 2005 Standard ein Programm zu erstellen und es auf dem N73 lauffähig zu übertragen? Vielen Dank Thomas Bock ...more >>


service
Posted by Dave P at 2/23/2007 9:36:18 PM
Where can i find a example for creating a service in c# just a basic example... thanks davep ...more >>

IIS info on remote computer in C#
Posted by kudalkar1982 NO[at]SPAM yahoo.co.in at 2/23/2007 9:13:13 PM
Pls anyone tell me how to get IIS info on remote computer in C# ...more >>

how to specify which row is to be displayed?
Posted by Edwin Smith at 2/23/2007 6:04:43 PM
Hello: I have a form which I would like to fill with data from one row of an ODBC database table. I have created the Table adapter and I have a query: SELECT PATIENT.Name, PATIENT.address FROM PATIENT WHERE PatientID = ? This gives me a GetDataBy(PatientID) method. How can I then ...more >>

macro for __FUNCTION__ style information
Posted by Zytan at 2/23/2007 5:26:30 PM
I realize there are no macros and no such thing as __FUNCTION__ in C#, and I know I can do this to get the current function name: System.Reflection.MethodBase.GetCurrentMethod().Name But, it's rather long. Is there a way to make something like a macro or shorthand to use this? If I make a ...more >>

DataGridView only displaying data if cell selected
Posted by RichT at 2/23/2007 3:40:12 PM
Hi all, I am experiencing some odd behaviour with a DataGridView. The DataGridView is bound to a DataTable, which is populated with data from a csv file. The column Headings appear fine, but the data only appears if I select a cell otherwise the DGV look empty apart from the selected cell...more >>

PictureBox & groupbox question
Posted by the_grove_man NO[at]SPAM yahoo.com at 2/23/2007 3:18:23 PM
Let's say i have a tab control. And on one of the tabs is a fully docked picture box with an image. I also have a few groupboxes on top of this picture box. How can I make the background image of the groupboxes fit into what is on the picturebox. ...more >>

Time Comparision in C#
Posted by Vinki at 2/23/2007 3:14:02 PM
Hello Everyone, How can I compare time in C#. I have to write that if the current time is less than 9:30 am then exit the program. How can i do this programmatically. Right now I am trying to do the code below, but it doen't work DateTime dtTime = DateTime.Now; DateTime timeLimit ...more >>



Creating on-the-fly DataGridViews from SQL queries
Posted by michael sorens at 2/23/2007 2:43:38 PM
I am enamored over the visual designer's capability in VS2005 to create all the controls and customized code to fill and display a DataGridView just by dragging a data source onto the designer surface and then specifying a SQL query in the wizard. What I would like to know is how to do this ...more >>

Send a message to a Single Instance Application
Posted by Mesan at 2/23/2007 1:42:33 PM
Hello everyone, Thanks to many useful posts in this newsgroup and others, I've been able to come very close to something I've been wanting to do for a very long time. I've figured out how to create a new custom protocol handler in Windows to handle locations like "myProtocol:", which lets m...more >>

Large file handling in C#
Posted by pargat.singh NO[at]SPAM gmail.com at 2/23/2007 1:36:12 PM
Hi Everyone: I have a C# program [VS2005] which loop through No. of files. In UAT i had medium size files and every thing goes ok but in Production files are big and i notice that my program is very slow and it's taking 100% CPU time. Is there anyway i can improve the performance. Someth...more >>

How to change text of ListViewItem
Posted by bthetford at 2/23/2007 1:29:33 PM
I have a ListView with 4 columns that shows in details mode. How do I change the text of one of the columns of a specific item if I know the index I want to change at? mylistview.Items[index].Tag returns a null reference exception if I attempt to use it. I am displaying data that changes ...more >>

How do you stop a Window Service
Posted by srcleveland NO[at]SPAM micron.com at 2/23/2007 1:25:13 PM
I am trying to have a windows service stop itself. I am currently using the following code but I would like to find a way to stop the service without having to shell out to a command prompt Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.WindowStyle = ProcessWindowSt...more >>

usertoken wse 3
Posted by Larry at 2/23/2007 1:01:21 PM
how do you use wse and a user token and wse security to call a webservice? who has a code sample? thanks *** Sent via Developersdex http://www.developersdex.com ***...more >>

Why Mulitple user.config Files?
Posted by Gary Brown at 2/23/2007 10:37:30 AM
Hi, My "Local Settings/Application Data" directory contains several copies "user.config" differentiated by random gibberish added to program file name. What is the purpose of more than one file? Not a problem, just curious. Thanks, Gary ...more >>

Defining a type that works like the types that support XmlArrayAttribute
Posted by Martin Z at 2/23/2007 9:24:11 AM
Hi, I'm trying to support a 3rd-party XML format for which there is no schema. As such, I've been making my objects that map to their format using the XMLSerializer... but there's one object that stops me. We have a class called Abstract-A, and a collection of Abstract-As we'll call A-List...more >>

Application Load Error ( 0xC0000005)
Posted by Tomas Vera at 2/23/2007 9:09:03 AM
Hello All, I have an app that is running throughout my company with one exception. Recently, one employee started throwing exception 0xC0000005 on startup. Specifically, it's crashing out during the load process. In testing I compiled a simple "Hello World" app in C#. Even that app fails t...more >>

Type.GetType issues
Posted by Jamey McElveen at 2/23/2007 8:48:43 AM
I have the typename of a form I wish to to load dynamically (example:MyCompany.Client.Win.Security.Detail.SysUserDetailForm). However, when I call Type.GetType(typeName) it return null I am assuming since I did not use the full name which is not available. I wrote the below method to return ...more >>

Database Gets Corrupted
Posted by Rajesh Pershad at 2/23/2007 7:42:21 AM
Hi I'm fairly new to C#. I am using VS2005 and SQL 2005 both express versions. I create a table in SQL Server and populate it with data. I then go to VS and create a new C# windows application. I then add a new datasourse for the database and tables just created. When I try to test the connec...more >>

untyped datatable searching
Posted by rodchar at 2/23/2007 7:18:20 AM
hey all, if i have an untyped datatable of, say, employee id's. Emp ID, Name 14, John 14, John 2, Tom 3, Sally How can I search the datatable to find if EmpID 14 even exists in the table? thanks, rodchar...more >>

DataGridView - BindingSource (Object) and ComboBox cell
Posted by Przemek M. Zawada at 2/23/2007 6:24:23 AM
Dear Group, I'm developing sample window form, using DataGridView control, which is filled with data through BindingSource, which is based on type of object, as follow: public sampleClass { public int itemNumber; public string itemName; public string itemCategory; pu...more >>

Busy Indicator
Posted by jez123456 at 2/23/2007 5:36:40 AM
Hi Experts I have a C# Windows application where sometimes it can take upto 20 seconds to switch between different forms. At the moment I show a 'Processing, please wait' dialog while the next form is loading. Using the background worker, I've tried including progressbars and other custo...more >>

Earliest instance of a character using Regex
Posted by trashman.horlicks NO[at]SPAM btinternet.com at 2/23/2007 3:45:20 AM
Hi all, More regex questions, sadly ;) If I had a string that could contain any combination, or some/none of [].+-*/ how could I strip off extraneous characters after any of these characters to get just the left most sub string? eg Do.Bears+Defecate*Rurally would give Do Mostly*Harmles...more >>

Null reference exception - Query string
Posted by Zeba at 2/23/2007 3:12:05 AM
Hi .... I'm always getting stuck with null reference exceptions ! Can you tell me what's wrong with my code given below ? I'm getting the error that reference is not set to an instance of an object. protected void Page_Load(object sender, EventArgs e) { String myItem; ...more >>

how to write the values in textbox to xml format..
Posted by jeccinta jeccinta at 2/23/2007 2:27:08 AM
Hi, Am working in Asp.net using C#.I have 4 textboxes and 1 button in my application.After the user enters values in 4 textboxes he will click the button.On button click the values in textbox should be written in XML format....Usually to insert values in database we will use INSERT query.....more >>

Port programming in c#
Posted by lucifer at 2/23/2007 12:51:59 AM
hi can some body point me to some good resources on port programming (serial n parallel) in general and in C# language i have searched the google but have not found anything to follow .please help its urgent. ...more >>

how do i use System.ServiceModel?
Posted by Atiz at 2/23/2007 12:42:47 AM
hi, i'm trying to create a program for pocket pc 2003. When i wanted to use System.ServiceModel.Security, the compiler complained that servicemodel is not present in System namespace. (I'm already referencing to the System.dll) Then when I tried checking whether servicemodel is present in 2...more >>

assembly / class library question
Posted by Rainer Queck at 2/23/2007 12:00:00 AM
Hello NG, I started to build me a little class library. This library I added to a Project which also surves me to test the library. This library holds a namespace: namespace <myLib>.<some function> Now I added a extended Namespace to my library like: namespace <myLib>.<some other function>...more >>

Etched or black line on a form
Posted by muriwai at 2/23/2007 12:00:00 AM
Hi, Which standard control on the Toolbox of Visual Studio 2005 can I use to add a black or etched line (separator) to my form? Thanks ...more >>

Hello World
Posted by Sourcerer at 2/23/2007 12:00:00 AM
I'm making a "hello world" program in C#, though a bit more complex one. When I click on a button in my program, it is supposed to open a program (say, Notepad) - that I did, by opening Notepad as another process. using Process class. Clicking another button, my program should make "Hello ...more >>

problem RichTextBox
Posted by halex2000 at 2/23/2007 12:00:00 AM
Hi, I'm new with Csharp and have an annoying problem with RichTextBox: I cannot change the text by modifying the Rtf property from a derived class. String sRTF = Rtf; sRTF = sRTF.Insert(insertloc, "{\\colortbl ;\\red128\\green0\\blue0;\\red0\\green128\\blue0;\\red0\\green0\\blue255;}");...more >>

About Remoting
Posted by TonyJ at 2/23/2007 12:00:00 AM
Hello! I read on a page in the NET this text "What makes Remoting slow is not so much the communication protocol but the serialization." Can somebody explain if I use remoting for sending message will it be slow if I use remoting then? //Tony ...more >>

how do you make a button stay depressed
Posted by Peted at 2/23/2007 12:00:00 AM
take away its prozac ? no seriously I want to drop a button onto a form, then during runtime, when user clicks the button it stays in the "depressed" image state (with a new color) then when it is pressed again it pops up to its normal state and color and of course i want to execut...more >>

Does MARS use multiple connections behind the scenes?
Posted by Simon Harvey at 2/23/2007 12:00:00 AM
Hi all, Quick question. I would like to use MARS to avoid lots of additional connections being opened in a certain area of code that I have (a deep load style scenario) As I understand it, it allows you to have several open data readers on the one connection. Seems pretty straight forwar...more >>

how to make c# ide compile unsafe code
Posted by Peted at 2/23/2007 12:00:00 AM
I want to do some unsafe code using pointers Im using c# express 2005 (free) edition i cant find any option to enable it to compile a form class with the unsafe flag. Can anyone tell me how to enable that compiler switch ? thanks Peted...more >>

How to insert icon in treeview tag
Posted by Taptu¶ at 2/23/2007 12:00:00 AM
How can I insert custom icon in my treeview tag ? I use custom drawing with my control but I can't use images in this field. I need to insert icon and next I must detect onClick event (on tag element) Best Regards Taptu¶ ...more >>


DevelopmentNow Blog