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# > october 2007 > threads for thursday october 18

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

setting foreground window when no user is actively logged in
Posted by Stephan Steiner at 10/18/2007 10:48:30 PM
Hi I need to start a GUI application from a console app. Upon startup, the application can display one or two popups, which need clicking away. I have all this handled using FindWindow, GetDLGCtrlID and PostMessage respectively (find window, find control ID of the button that needs pressing...more >>


Regular expression to match only strings NOT containing particular words
Posted by Dylan Nicholson at 10/18/2007 10:00:28 PM
I can write a regular expression that will only match strings that are NOT the word apple: ^([^a].*|a[^p].*|ap[^p].*|app[^l].*|apple.+)$ But is there a neater way, and how would I do it to match strings that are NOT the word apple OR banana? Then what would be needed to match only strings ...more >>

Deleting element from xml doc
Posted by Gaurav at 10/18/2007 9:08:26 PM
Hello, I am stuck trying to apply the following logic to the below xml: <?xml version='1.0' encoding='ISO-8859-1'?> <Collection> <Book Id='1' Locator='Yes'> <Title>Principle of Relativity</Title> <Author>Albert Einstein</Author> <Genre>Physics</Genre> </Book> <B...more >>

How to modify library-specific settings in referencing applications
Posted by dhochee NO[at]SPAM gmail.com at 10/18/2007 8:59:49 PM
I understand that settings stored in the app.exe.config file and accessed via Properties.Settings.Default are only available within an app domain, but I'm confused about the best way to handle merging settings that were defined for referenced libraries. For example, we have a connection string...more >>

windows Theme
Posted by R.A.F. at 10/18/2007 7:37:35 PM
Hi, I develop my own control, however i would like to keep them in phase with Windows Theme. for example, if i have a custom button, i would like also to offer to user the possibility to select the renderer (XP theme, flat, gradient, and so on...) how can i get data/info regarding XP ...more >>

printing
Posted by Bob Allen at 10/18/2007 7:37:10 PM
i have a project that i need to be able to take a single print job and print to multiple trays. it is an hp 9000 with 4 trays. i have read news groups etc and everything i find doesn't work. i have 2 print settings. 1 set to the papersource of tray 2 and 1 set to the paper source of tray 4. if...more >>

how to capture error on Translate(typeof(NTAccount)
Posted by auldh at 10/18/2007 5:06:01 PM
i have sample set i'm working through. it is presenting ACE rights on exchange containers. the problem is that as it tries to translate a user it fails because it is not vaild SID any more. when i try to use "try and catch" i will exit the program. however MSDN does not show that there is ...more >>

building a service application at the same time as desktop app
Posted by Claire at 10/18/2007 4:55:01 PM
I am writing a service that sits on a single pc. It does occasional work to a database eg logging users out after time period, sends emails in the background, processes scheduled jobs etc Its part of a larger project. To date I've kept the service solution separate from the desktop solution b...more >>



Version information from EXEs, DLLs, etc?
Posted by Homer J. Simpson at 10/18/2007 3:58:52 PM
Is there a nice set of .NET functions built into the framework to retrieve file version information embedded in EXEs, DLLs, etc? I'm talking about the strings such as Company, File Version, Copyright, Product Name, and so on...which you normally see in the Version tab of an EXE's Properties d...more >>

Unable to navigate Crystal Report
Posted by Alex Munk at 10/18/2007 3:03:00 PM
I am using Visual Studio 2005 Professional edition and built in CR version 10.2.3600.0 to create a web application. The front-end to the report is written in C#. Basically Report.aspx creates the datasets that the report needs then creates an instance of the strongly typed report then passe...more >>

Locking Static DB Load Method
Posted by randy1200 at 10/18/2007 2:26:01 PM
I'm working in Visual Studio 2005. I have the following method. I'm trying to figure out why I wouldn't want to wrap the contents in a lock(MyLockObject) {...} Seems to me that having a static method in a mutlithreaded environment isn't thread safe. public static MyDataSet Load() { //O...more >>

ADODB Find/ Seek method in C# 2005
Posted by Bryan at 10/18/2007 2:04:09 PM
Hi , I am using ADO (ADODB) with access database. Not sure what I am doing wrong.here. Can anyone please help me? string mdbFile = System.IO.Directory.GetCurrentDirectory() +" \\bTrack.mdb;" ADODB.Connection conn = new ADODB.Connection(); ADODB.Recordset rs = new ADODB.Recordset(); str...more >>

Deserialize XML string to Object error
Posted by ink at 10/18/2007 1:50:58 PM
Hi All I am relatively new to doing this and i think that i am making some king of school boy error. The error i am getting is on the following line of code. XmlSerializer xs = new XmlSerializer(typeof(ImportRecord)); The error is. "Configuration system failed to initialize" ...more >>

Inheriting Consts
Posted by Jon at 10/18/2007 1:41:51 PM
Hello all, Am I missing something quite simple as I can't seem to see how to inherit consts from my base class. Can this be done? Thanks, Jon www.nantwichonline.com ...more >>

A question about replacing a process with another process
Posted by TonyJ at 10/18/2007 1:35:25 PM
Hello! Today we have two processes A and B written in MFC which are communicating with each other by using serialized socket. These processes are running as console application and as a GUI application. Assume I want to replace one of these processes say B with a process written in C# using...more >>

A question about replacing a process with a another process
Posted by TonyJ at 10/18/2007 1:33:53 PM
Hello! Today we have two processes A and B written in MFC which are communicating with each other by using serialized socket. These processes are running as console application and as a GUI application. Assume I want to replace one of these processes say B with a process written in C# using...more >>

newbie - creating a new instance
Posted by Keith at 10/18/2007 12:52:30 PM
Hi, I have a c# class that I am trying to create an instance of from vb.net, and am getting the error "Sub New() is not accessible in this context because it is 'Private'. Declaration (c#) and instantiation (vb.net) are below: <snip of C#> namespace LogicTec.JLTRE.Data { public class Syst...more >>

XML Class
Posted by Looch at 10/18/2007 12:11:05 PM
Hi All, I used the wsd.exe tool to create a class based on an XML schema which did not have a style sheet reference. How can I add a style sheet reference (i.e. <?xml-stylesheet type="text/xsl" href="simple.xsl"?>) to that class for each object of that class that is instantiated? Thanks ...more >>

dynamic html vs dynamic formview/detailsView
Posted by rodchar at 10/18/2007 11:51:01 AM
hey all, can someone please help me decide on which way to go. i get a single untyped data table which can contain different fields and values at different times. so i'm thinking i would dynamically generate the html table which would take care of displaying the data. but would it be bette...more >>

TreeView properties treeNodeSrc - treeNodeTypeSrc
Posted by ippo at 10/18/2007 10:20:29 AM
Hi all, I have a silly problem with treeview. I'm using .NET 2.0. I need to set the two properties treeNodeSrc - treeNodeTypeSrc at run time using C#, but in the treeViews that I define, these two properties don't exist!!! Do I need to import something more to use all the properties of the tre...more >>

DataSet Designer reflect Database changed schema
Posted by Dave Anson at 10/18/2007 9:10:02 AM
The DataSet designer in Visual Studio 2005 is still pointing to the old database. I have done this before and it worked without a hitch. The problem is that I have moved the database and solution on to a different development box from last time i did this. The other database is no longer acce...more >>

WCF Serialization Problems
Posted by zackary.evans NO[at]SPAM gmail.com at 10/18/2007 8:55:31 AM
I am attempting to serialize a Dictionary<string, string> type in a WCF data contract. But when i create a service reference to my contact, the type instead comes out as ArrayOfKeyValueOfstringstringKeyValueOfstringstring[]. How do I fix this? I am creating the service reference in VS2005 using ...more >>

console.write easy peasy beginners question
Posted by simonl at 10/18/2007 8:17:52 AM
I'm messing about with a console app that does some tedious data processing, I want to show activity in the console window. What I wanted was - followed by \ followed by | etc; ie a bar revolving on the spot console.write advances the character position by one though Can I send a ...more >>

XmlIgnore an inherited attribute
Posted by bg_ie NO[at]SPAM yahoo.com at 10/18/2007 7:52:01 AM
Hi, I have a number of classes that inherit from another class which contains an attribure called "Url". I serialise my objects to an xml file, but I would like to hide the "url" attribute for one of my inherited classes. I can place the XmlIgnore in the base class, but this will hide the att...more >>

invoke vs begininvoke, mdi/child and showdialog
Posted by kennethm NO[at]SPAM nospam.nospam at 10/18/2007 7:33:03 AM
vs2005, c# Trying to understand why one way works but the other doesnt. I have not tried to create a simpler mdi/child/showdialog app for posting purposes (I think even this would not be so small or simple). I am hoping the description will generate some ideas I can check out. PROBLEM: ...more >>

I have a managed DLL code written in C#
Posted by Par at 10/18/2007 7:24:00 AM
Hi I have a managed DLL code written in C#, which is calling / importing an unmanaged DLL function. The function in the undamaged DLL code looks like - Void delete_tuner (short tuner_number) I create one class that shall contain a set of related unmanaged DLL functions. The class I cre...more >>

Preventing the user from moving a form around the screen
Posted by Eitan at 10/18/2007 7:09:02 AM
Hello, I created a Modal form (WinForm). I would like to prevent the user from moving the form around on the screen. How would I do that? Thanks, EitanB...more >>

documentation tips requested
Posted by rodchar at 10/18/2007 6:56:01 AM
hey all, does anyone have some good tips or references on writing good documentation alongside the application code (not comments)? I do write stuff down but 6 months from now if i have to come back to that documentation it's a little difficult to pick up where i left off... thanks, rodch...more >>

Graphics rendering question
Posted by Andy at 10/18/2007 6:24:33 AM
Hi, I am using the following code to render a text string in a new bitmap file. The code works, but the text looks, well, crappy, even though I told it to use ClearType hints. Any idea how to make the text look nicer? Thanks Andy internal static string RenderDate( DateTime dat...more >>

TreeView Resize
Posted by Diogene Laerzio at 10/18/2007 5:50:35 AM
I'd like to allow user to resize a treeview control in a form at runtime. What properties should I set to allow this? Thank you. ...more >>

CodeDom and pasing csharp code
Posted by skneife NO[at]SPAM gmail.com at 10/18/2007 1:19:43 AM
I am looking for the way of using CodeDom for parsing C# code. My needs is to extract for a source files all methods. Does anyone have a sample ? Sam ...more >>

Automating input
Posted by AA2e72E at 10/18/2007 12:54:00 AM
Is there any way of getting VS2005 to 'type' the content of a file into the currently open CS file? I am trying to capture the VS2005 screen: I'd like to be able to record the code (already stored in a file) being typed; doing this manually is fraught with problems and I wondered whether I ...more >>

Prevent decompiling of the code
Posted by Torben Laursen at 10/18/2007 12:00:00 AM
Hi I need to be sure that my C# code is as hard as possible to decompile. Can anyone tell what is the best tool for that job? Also will this be a part of Visual Studio 2008? It seems natural to me that the .net framework came with a solution so other people could not see your source code...more >>

Dissecting and generating PDF files
Posted by Jon Harrop at 10/18/2007 12:00:00 AM
What libraries are available for reading, dissecting and creating PDF documents from C#? -- Dr Jon D Harrop, Flying Frog Consultancy http://www.ffconsultancy.com/products/?u...more >>

Querystableadapter how to use it ???
Posted by Paolol at 10/18/2007 12:00:00 AM
Hi, I don't understand how to use the Querystableadapter. I create it and added 1 query and 1 stored proc, but who i can acces those from the Form1 ?? In Form1 i see only the Table from the dbSqlDataSet ! Please help me :) Thanks, Paolol ...more >>


DevelopmentNow Blog