Groups | Blog | Home


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# > november 2007 > threads for friday november 2

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

Transaction.Commit() and Transaction.Rollback()
Posted by weird0 at 11/2/2007 11:34:04 PM
Transaction.Commit() , Transaction.Rollback() , cmd.BeginTransaction(), cmd.EndTransaction() Can any one explain what are the kind of scenarios that these set of commands are being used. MSDN does have the code but does not explain how are they different from simple ExecuteReader() or execu...more >>


getting a ref froma struct field via fieldIinfo
Posted by colin at 11/2/2007 10:38:23 PM
How can I access a field contained in fieldInfo by reference so I can pass it to a function ? ive tried __refvalue but this needs a type known at compile time, I can access it with SetValue and GetValue but in one case where the field is a structure I need to pass it as a ref to a function. ...more >>

about developing c# application
Posted by KelvinWongYW NO[at]SPAM gmail.com at 11/2/2007 8:53:37 PM
Hi All, my company have plan to re-develop the orginal system and my team have 3 people so we will develop each function seperately with its own winform but i would like to know how to integrate the function at the last step with main program that contain a menu here i have few suggest...more >>

MakeTypedReference :error=TypedReferences cannot be redefined as primitives.
Posted by colin at 11/2/2007 6:57:16 PM
Hi, I have this code wich fills in data fields from a file, recursivley down through any structures/classes the difficulty is when I come acros a field wich is a structure, wich can not be read as a binary blit. I need to be able to pass this as a reference to a function to carry on the recu...more >>

Need utility for deleting rows
Posted by Chris Dunaway at 11/2/2007 6:18:46 PM
In the course of developing my application, it inserts many test rows into the test database. These are standard Orders with details and other data. Now, I wish to delete these "dummy" orders, but because of the relationships between the order, details, and other tables, it's a tedious manual ...more >>

What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro?
Posted by DR at 11/2/2007 4:53:29 PM
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up in msvsmon.exe on the remote machine, however, the client box with visual studio displays error: ...more >>

Parent Assembly from Component
Posted by ryanh at 11/2/2007 4:42:00 PM
I've created a class library of controls/components. For the component i implemented a custom designer that tracks the custom controls added to a form. If i wanted to serialize the component out to a resource in the forms assy, how do I get the reference to the Forms assy? Since it's a compon...more >>

Windows Setup Project - Installing an .exe with a service
Posted by at 11/2/2007 4:26:44 PM
Hello: I wrote an .exe that I would like to be called by a service I am deploying to a server. However, I am not sure how to tell the setup project to include the .exe. Also, I do not know how to tell the service where the .exe actually resides on the server. I would like to prevent hard-co...more >>



Petzold Assumed I Could Figure It Out -- I Am Stumped
Posted by Tom at 11/2/2007 3:57:40 PM
First, my thanks in advance to those who can help explain away this mystery line of code. Petzold is a great teacher and I appreciate his work; however, his explanation about an extra line of code needed when a class is contained in a library vs the class being defined in a separate file with...more >>

Using WPF to Generate an Image
Posted by Tem at 11/2/2007 3:18:14 PM
I'm still trying to figure out how to do this simple task with WPF. I need to draw a black circle using WPF and generate an image file. (gif or png) Any help is greatly appreciated. Tem I used the following but it resulted in a blank file. I cannot figure out what is wrong with ...more >>

OT: TechEd
Posted by Marc Gravell at 11/2/2007 2:29:41 PM
This is mainly aimed at the regulars... but out of interest, are many of you off to TechEd next week? Presenting perhaps? It will obviously be a busy week, but it could be interesting to put some faces to names... ;-p Marc ...more >>

How do i set the decimal points in for a datacolumn?
Posted by Kunal Patel at 11/2/2007 2:15:33 PM
I have following code in C#.NET m_strTableName = "AFE"; m_dataTable = new DataTable(m_strTableName); DataColumn dc; dc = m_dataTable.Columns.Add(COL_DEPTH, typeof(Double)); dc.DefaultValue = 0.00; dc.Caption = COL_DEPTH + " (ft)"; I want to display datavalue for this colum up to two de...more >>

DataSets Continued
Posted by Soulless at 11/2/2007 2:08:22 PM
Hi, I'm still having some troubles. I decided maybe i can copy or assign a datatable to another datatable or grid and remove the uncessary columns, but I get an error... example: I created a dataset and set my datasource of the grid to it. I am getting the following error now: Error ...more >>

How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine.
Posted by DR at 11/2/2007 2:05:08 PM
How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine. I get this error when i try to connect to remote machien with visual studio: unable to connect to microsoft vistual studio remote debugging monitor named msdb3. the microsfot v...more >>

List<string> TrimStart elements
Posted by sjoshi at 11/2/2007 1:18:22 PM
Is List.ConvertAll the only way to apply TrimStart to elements of a List<string> or is there a better way ? Currently I'm doing this... List<string> lst = new List<string>(); lst.AddRange(new string[] {"A test", " that you", " need to see!" }); lst = lst.ConvertAll<string>(delegate(string li...more >>

Not your daddy's floating point error
Posted by Torben Frandsen at 11/2/2007 1:15:42 PM
Hi I'm porting an old Access/VB application to .Net, and I've encountered a small problem. The VB application takes a value from a query and stores it in a Double. This value is the result of a calculation involving three values all stored in Access as Single. This is how the values bubb...more >>

Debugging windows service on Vista
Posted by ink at 11/2/2007 12:23:59 PM
Hi all, I cant seem to debug my windows service on my Vista machine. It seems it has something to do with 0 Session. What I would normally do is add the following code to my OnStart() but it does not work on Vista #if DEBUG System.Diagnostics.Debugger.Break(); ...more >>

WebException
Posted by repairman2003 NO[at]SPAM gmail.com at 11/2/2007 11:32:22 AM
I am getting the following error when trying to call GetRequestStream(): System.Net.WebException: The requested URI is invalid for this FTP command.. Code where the exception catches: ... FtpWebRequest uploadRequest = (FtpWebRequest)WebRequest.Create(upload...more >>

OO debate: assuming type of containing object
Posted by John A Grandy at 11/2/2007 11:11:07 AM
I'm in a vigorous debate at my work regarding objects assuming knowledge of the type their containing object. This debate pertains specifically to ASP.NET, but I have decided to post in the C# forum because this is where most of the OO gurus hang out, and I view this as a fundamental issue ...more >>

HOw Do i set the alignment in DataGrid (C# .NET)
Posted by Kunal Patel at 11/2/2007 11:05:01 AM
In my datagrid (datasource is DataTable) all my double values are intended towards left . how do i set it to right allignment. which property shall i set and how do i display double value up to certain cedimal places. ...more >>

TransactionScope Class - Is there an equivalent in JAVA?
Posted by JT at 11/2/2007 10:30:42 AM
In .NET I have been using the TransactionScope class to wrap my unit tests into a transaction and roll back any database changes after I have completed my unit test. Now I am dealing with some JAVA developers and looking for a similar way for them to be able to do this from their JAVA code an...more >>

Bring to front understanding
Posted by Gidi at 11/2/2007 10:29:01 AM
Hi, I asked here yesterday about bringing a form to front with hotkey while using different application then mine (meaning, when i'm using outlook, and pressing ALT+T it will bring a form from my application to front), my problem was that after i press the hotkey, the window stays in minimi...more >>

How to update, remove and insert attributes in an XML file?
Posted by barbara_dave NO[at]SPAM yahoo.com at 11/2/2007 9:54:29 AM
Hi All, I want to modify the specified attributes in an XML file. I know the attributes' names, I just need to change the values of these attributes. I did some research and I think I need to use an XMLDocument object to load the XML file, and use XPathNavigator to retrieve the nodes. But ...more >>

Windows Desktop Search (WDS) APIs
Posted by Sriman at 11/2/2007 9:27:02 AM
Has anyone worked on Windows Desktop Search (WDS) APIs for Windows Vista? Need some help in resolving Vista Administrator issue for using WDS....more >>

How do you stop a ListView having no selected Items?
Posted by Mark Collard at 11/2/2007 9:04:02 AM
Hello I've added a listview to my WinForms C# 2.0 application. The listview is displayed in Details view and has the FullRowSelect property set to true. I'm using the listview control like a multi column list box (with column headers), and I've set the MultiSelect property to false. It all ...more >>

VS 2005 Class Designer-- Modify Templates?
Posted by David Veeneman at 11/2/2007 9:03:03 AM
I am using the VS 2005 Class Designer to create a business model for an application. It is a great tool, but I don't think it does a very good job creating skeleton code for properties. Here is an example of what it generates: public string Foo { get ...more >>

saving files so any user can access them
Posted by sklett at 11/2/2007 8:47:43 AM
I have an application that loads several files from a database (as byte[]) then writes them to the "docs and settings\all users\application data\my company\my app" folder. The problem I'm running into is that if I'm logged into windows (domain admin) and perform actions that result in files...more >>

Excel PID process casting
Posted by retsb NO[at]SPAM nrcan.gc.ca at 11/2/2007 7:15:49 AM
I have an Excel workbook that launch an external .exe. My .exe is written in c#. My application need a reference to the excel applicationthat just call it. When calling the external .exe (my c# application) from Excel, i'm passing the Excel PID in arguments. In c# i'm able to get the Excel proce...more >>

Process.Start() not working on server
Posted by Saya at 11/2/2007 6:14:44 AM
Hi, I am trying to develop a WebService that needs to execute some application commands on a server. I am using System.Diagnostics.Process. The reason for trying to impersonate a user is that the commands that needs to be run cannot be run at NETWORK SERVICE but as a valid application user: ...more >>

about developing a group c# application
Posted by KelvinWongYW NO[at]SPAM gmail.com at 11/2/2007 6:02:26 AM
Dear All my company is going to re-develop the system with C# and this team have 3 people and each person are going to develop each function with its own winform and finally there are a main winform that contain a menu button to access those functons my question is how can i integrate...more >>

Configuration Management
Posted by at 11/2/2007 5:24:43 AM
I have found an excellent resource on understanding Windows Application concepts and exam 070-306. http://technical-talk.com/mc/mcsd/mcsd306.asp ...more >>

Getting Excel column totals
Posted by RP at 11/2/2007 5:08:13 AM
I am exporting certain records to Excel 2007. There are about 15-16 columns and I want to take the print-out of this Excel document (containing exported records) in Landscape mode. I am using A4 page. I want to arrange the Excel document in a way that on first page 15 rows are displayed and the ...more >>

Re-size Excel columns
Posted by RP at 11/2/2007 5:05:04 AM
I am exporting certain records to Excel 2007 using C# code. I want to adjust the cell width accordingly so that when the record gets transferred to a cell, it is clearly visible. I want to increase the height and width of the Excel cell at run-time. ...more >>

The "Program Files" folder in Vista
Posted by Karsten Lundsgaard at 11/2/2007 4:14:00 AM
Hi, I have made an application in C#, where I use the statement Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) to get the name of the "Program Files" folder. It works fine in "Windows 2000" and "Windows XP", but it fails when I'm using "Windows Vista Ultima" in Danish. It r...more >>

SqlAdapter, dataset
Posted by Analizer1 at 11/2/2007 2:55:13 AM
i have a proc (sql server) i want to send back 3 selects from 1 proc....any examples of how to do this Tks Analizer1 ...more >>

DotNetNuke Development
Posted by VB at 11/2/2007 2:54:33 AM
http://www.itechart.com/ DotNetNuke development services for DNN include: =B7 Product Design and Analysis =B7 Prototyping =B7 Incremental Development Approach =B7 Full Product Testing Cycle =B7 Customization Services =B7 Localization Services =B7 Integration Services =B7 Product Support =B...more >>

Just what the h can we do with "sender" - new guy question
Posted by at 11/2/2007 1:50:28 AM
Okay, when you subscribe to an event, and that event fires, it is passed (sender, eventargs), yea? So what is sender? Can you do anything with it other than toString()? If it's a reference to the object that fired the event, how can I access that object's properties? I'm new, and am try...more >>

COM Interop issues from within VS.NET
Posted by jake.foster NO[at]SPAM gmail.com at 11/2/2007 1:30:21 AM
All- I have a WinForms app written in C# that's doing some COM interop with Apple iTunes (they have a published COM API). I'm getting a reference to the COM server and registering some event handlers that respond to user activities in iTunes. When I run my compiled exe everything works fine...more >>

filestream append and read access at same time?
Posted by Bob at 11/2/2007 12:35:56 AM
Hi, Is there any setting that I can use to allow the same file to be open in a filestream in append mode with one process and read in another. I can see why concurrent appends or write modes wouldn't work but it seems like maybe a read could coexist with append? Thanks, Bob ...more >>

webDAV or MAPI or something else?
Posted by planetthoughtful at 11/2/2007 12:05:58 AM
Hi All, I need to build a console app that can connect to a mailbox on a Microsoft Exchange 2000 Server located on our intranet to do the following: - go through all emails in the inbox - test these emails for whether or not they have attachments that meet a specific filename pattern - sa...more >>

Generic array is not recognized as correct parameter type
Posted by Hans-Jürgen Philippi at 11/2/2007 12:00:00 AM
Hi all, i've written a generic class (using VS 2005 and .NET 2.0) with a T type parameter and a constraint (naming an interface): public class MyGenericClass<T> where T : IMyBaseType { ... } Inside this class I'm going to call an external function that expects a parameter with t...more >>

Implementing IDisposible for my Class
Posted by Sylvie at 11/2/2007 12:00:00 AM
Hello, I have a class, when I use this class like this, using (StockManager StMan = new StockManager()) { .......... } it returns "error type used in a using statement must be implicitly convertible to 'System.IDisposable' " How can I implement Dispose parts ? My Class is; class...more >>

Using Shared Classes
Posted by Sylvie at 11/2/2007 12:00:00 AM
Hello, I have a web application and windows application, My web application has App_Code folder and in this folder have a Users.cs file, this file has some user management classes and routines, The problem is, when I try to use this class from windows application and want to add these c...more >>

Using SOS.dll on an event
Posted by Adam Benson at 11/2/2007 12:00:00 AM
I'm trying to analyze a process dump and want to examine an event and what it's targetting. When I !do the object I get this : 0:035> !do 0x02280784 Name: Omnibus.G3.Automation.LiveChannelLibrary.LiveChannelAvailableHandler MethodTable 0x0679efac EEClass 0x06926b64 Size 28(0x1c) bytes G...more >>

Sorting thumbnails in a list.
Posted by pmo at 11/2/2007 12:00:00 AM
I need to read in some images from file. Display them as thumbnails in a form. The user is then supposed to rearrange them in somehow, dragging thumbnails with the mouse or marking one or several with mouse and move with arrow keys. Any ideas? I need a serious pointer in the right way. Is ...more >>

is this feasible???
Posted by createurfuture NO[at]SPAM gmail.com at 11/2/2007 12:00:00 AM
pls chk this and comment on the design. http://createthefuturecontest.com/pages/view/entriesdetail.html?entryID=798 ...more >>


DevelopmentNow Blog