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# > july 2006 > threads for thursday july 13

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

Showing an info message during external application execution
Posted by Lonifasiko at 7/13/2006 11:37:00 PM
Hi group, I must launch from my Winforms application another application (.exe developed by the client) which response time sometimes can be more or less 30 seconds. I'm using ProcessManager class and WaitForExit() to start it and wait till it rsponds me. It's necessary for the application ...more >>


Total number of files and directories
Posted by AtulSureka at 7/13/2006 11:11:02 PM
Hi, I want to determine the total number of files and folders in the given directory. I have a solution to go recursively on each folder and make a count . But I do not want to go recursively as it may reduce the performance. Is there any direct function or property to detmine the number...more >>

WinForm validation
Posted by Marek at 7/13/2006 10:43:36 PM
Hi all, who can give me an answer on this question: how to validate controls on WinForm? So clicking on AceptButton does not return control from WinForm to program until all controls have proper values. TIA, MP ...more >>

How to figure out the application context?
Posted by Tuncay Baskan at 7/13/2006 9:20:24 PM
Hi everyone, I'm writing a class library and I need to the know the of the current application, if it is a web application or a windows application or a console application. (Actually the latter two doesn't matter) Checking if HttpContext.Current doesn't seem like the right way. I think the...more >>

Extracting file name
Posted by Robert Bravery at 7/13/2006 8:33:11 PM
Hi all, Using regex, how can I extract just the file name of a given path and filename as in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\importXL\importXL\opex06det.xls where all I want is opex06det.xls Thanks Robert ...more >>

lock(list) vs. lock(list.syncroot)
Posted by Jacob at 7/13/2006 8:21:01 PM
Hi there, Say I have an ArrayList named list. What's the difference between using lock(list) { .... } and lock(list.SyncRoot) { .... } ...more >>

Advice on Buying book for Enterprise Library - January 2006 release
Posted by bytebugs at 7/13/2006 7:05:12 PM
Hello Folks, Can anyone suggest me a good book to learn using the Microsoft Enterprise Library Application Blocks. I can only find two books on the net 1. The Definitive Guide to the Microsoft Enterprise Library by Keenan Newton. This book has yet not released 2. Effective Use of Microsof...more >>

return type without the nullable
Posted by Dan Holmes at 7/13/2006 5:28:27 PM
if i have a class like: class Test { public int? ANumber { get...set...} } and then, using refection i read all the properties of the class how can i get the type of the property without the Nullable part. the type of the property ANumber would be: System.Nullable`1[System.Int32] ...more >>



Winforms and WebForms
Posted by Bit byte at 7/13/2006 5:19:05 PM
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that they give a WYSIWYG environment for designing user interfaces - however, all searches I have done ...more >>

Registry c# code to read/write
Posted by jj at 7/13/2006 5:09:45 PM
1. How do you get the full path of an installed application from another application? ( Example: I want to get the the full path where "Notepad" is installed from "Mysimple" application) 2. How do you enter relevant information of my application (keys, values..etc) into registry? Thanks in...more >>

Can somebody point me to where no touch deployment is really explained.
Posted by UJ at 7/13/2006 3:39:08 PM
Can somebody point me to where no touch deployment is really explained? One of the big questions I have is it seems like with no-touch you don't actually have the executable on your machine - your always running it from the server. What I need is something like the Application Updater block. ...more >>

Graphics to image
Posted by Steph at 7/13/2006 3:32:42 PM
hello, how to convert a graphics to a image in c# ? look as : Graphic g = new Graphic(200,100); Graphic g2 = new Graphic(200,100); g.DrawImage( g2? , g.rect()); because... i ve too Graphics ! so how to obtain image from a Graphic object ? ...more >>

c# beginner
Posted by hharry at 7/13/2006 2:46:35 PM
hello all, switching to c# from vb.net and had quick syntax question... in vb: Dim httpRequest as HttpWebRequest httpRequest = WebRequest.Create( _ "http://www.winisp.net/goodrich/default.htm") in c#: HttpWebRequest httpRequest; httpRequest = (HttpWebRequest) WebRequest.Cre...more >>

ListView Sorting Problem
Posted by Steve Z. at 7/13/2006 2:34:56 PM
I am trying to implement the sorting of a ListView object by clicking on a column (using the example at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/listviewsort.asp). While debugging it I get the following exception: An unhandled exception of type 'Syste...more >>

Julian dates question
Posted by Bit byte at 7/13/2006 1:52:10 PM
How may I represent dates as Julian dates - I have seen code where julian dates are represented as longs, and other where they are represented as floats. Which is the correct representation? Anyone knows where I can obtain a routine for converting: 1). Dates to/from julian representations ...more >>

Too slow responding to an event
Posted by Henrik at 7/13/2006 1:49:02 PM
Hi, I have a problem where I use an event to signal another part of my program to process a message. The idea is something like this Class1 handles the first part of the processing for a message received from the network. When I reach a certain point in the processing an event is raised and...more >>

Support for creating C# classes out of Schema or DTDs
Posted by plex4r at 7/13/2006 1:46:02 PM
I am reading data out of a relational database and converting the data to XML. I after I send this data from a web service I am reading the data using XMLTextReader calls like the following: if(customerReader.NodeType == XmlNodeType.Element) if (customerReader.LocalName.Equals("COLUMN1NAME"...more >>

Regex
Posted by .... at 7/13/2006 1:24:32 PM
Hi I'm trying to do something which I think is pretty simple, but really I don't know what I'm doing :-) I have a string like this HELLO WORLD 25 ERRORS I want to search the string and return and line with the word ERRORS 25 ERRORS I've tried this, but it's not working... Can...more >>

C# + Access Database Problem
Posted by ATXTech at 7/13/2006 1:12:41 PM
I am using a Access created database with a program I wrote in C# to create and track helpdesk tickets. I store basic stuff like customer name, number, issue, tech assigned, etc. with in the database. **PROBLEM** The database worked fine in saving and displaying records until it reaced the 26...more >>

Saving Images to access database
Posted by Bob Allen at 7/13/2006 12:49:24 PM
I am trying to save an image to an access database. I am using the following code as my update syntax. In the example below b is a byte [] array of the image. All it is putting in the field is Long Binary Data. UPDATE datapath SET img_fnt = '" + b + "' where path1 = 'xxx'; the column is cr...more >>

Mirror / rotate image ( System.Drawing.Graphics / System.Drawing.Drawing2D.Matrix)
Posted by Eduard Witteveen at 7/13/2006 12:48:37 PM
Hello list, I have code the draw MyDrawingObject information on a System.Drawing.Graphics object. The code is more/less the following: > void MyDrawingObject::Draw(ref System.Drawing.Graphics graphics, ref WindowDrawer windowdrawer) > { > if(_mirror || _rotate != 0) { > // do somethin...more >>

Hidden WebBrowser stealing focus
Posted by Dave Booker at 7/13/2006 12:34:01 PM
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click' and it steals the focus from the user's current application. How can I prevent the hidden WebB...more >>

How to change Listview w/different #of col and col header during r
Posted by Pucca at 7/13/2006 12:02:01 PM
I'm doing like a directory view thing with a TreeView on panel1 and Listview control on panel2 of a splitcontainer. I have 2 quesiton: 1. How do I make the splitcontainer and the TreeView and the Listview to resize when user click the max icon or resize the window? 2. What's the best way ...more >>

Checking for a null value in a datareader
Posted by RSH at 7/13/2006 11:49:24 AM
I have a situation where I am looping through a datareader's rows. An exception is being generated when I attempt to check the value of a Boolean field where it has a null value:\ If VarType(dtrList["ServiceCenter"]) != VariantType.Null And dtrList["ServiceCenter"] = True Then chkAss...more >>

Dynamically loading DLLs dynamically that have dependencies...
Posted by Dan Dorey at 7/13/2006 11:42:35 AM
I actually have two questions here, but I'll start by giving an outline of what I'm trying to do. I'm building an app with a simple plugin architecture (all in the same app domain). I have each plugin in a separate sub-dir inside a "Plugins" directory. Each plugin consists of at least two DLLs...more >>

Finally moving from 2003 to 2005!
Posted by WhiteWizard at 7/13/2006 11:01:03 AM
And of course we are having some problems. This is a windows application, and the problem is that when VS2005 reads the 2003 version, and tries the conversion, it does not appear to be picking up and relating the resx files for the forms that require it. I have tried going in and adding ...more >>

Limit to range of colors displayed by Label control?
Posted by Evan Stone at 7/13/2006 10:37:21 AM
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, whic...more >>

Reading test data for NUNIT from a file
Posted by tchaiket NO[at]SPAM yahoo.com at 7/13/2006 10:07:20 AM
Hey all, I'm using NUNIT to test our classes. However, I don't want to hard code test data into the NUNIT classes. For example, to test adding a new Client, I don't want to hard code the Client Name, phone number, email, etc. I want to the NUNIT to read this data from a file. This way I c...more >>

Help extending textbox with an additional property
Posted by Barry at 7/13/2006 9:53:02 AM
A beginners question to someone that isn't a beginner ;) I've forgotton a lot. The code below isn't what I want to do but it demonstrates succinctly my problem. I want to drop a "MyTextBox" control on a form at design time, set the "DummyProperty" property to be "test value1", and I want to s...more >>

Xml validation - Should fail but does not
Posted by Raghu at 7/13/2006 9:45:27 AM
I have following schema: <?xml version="1.0" encoding="utf-8"?> <xs:schema elementFormDefault="qualified" targetNamespace="http://mycompany.services.customer2/types/restricted" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://mycompany.services.customer2/types/re...more >>

DataGridView Alignment
Posted by Brad at 7/13/2006 9:11:17 AM
I have a very simple dataset whose members comprise a single row - configuration information from an XML file. I'd like to display the data with the column headings going vertically down the form instead of horizontally across. Is there an easy way to do this? TIA Brad ...more >>

Reflection and Nullables
Posted by Joe Bloggs at 7/13/2006 9:01:24 AM
Hi, Can someone please kindly show me how to determine if a type (read value type) is Nullable. MSDN has this KB: How to: Identify a Nullable Type (C# Programming Guide) http://msdn2.microsoft.com/en-us/library/ms366789.aspx however, using their code snippet, I couldn't get it to work: ...more >>

What's a practical use of .Net remoting?
Posted by VMI at 7/13/2006 8:57:02 AM
I'm working with the CSLA and a big part of this framework is .Net remoting, which I would like to understand. What would a practical use of .Net remoting be? I read several descriptions, but I wasn't able to apply to a real-life situation. For most of these things, my principal question usual...more >>

Interface Question
Posted by dan at 7/13/2006 8:36:15 AM
Hi, In my application I have used the Factory Design method to model a portion of my business layer. Each object I create using the factory method share the same actions (subs/function) which I use an interface to interact with and it works great. However, I have run into a problem because e...more >>

connect to Oracle server by using csharp
Posted by blackdog at 7/13/2006 6:53:48 AM
I have Oracle client in my system, like to use csharp to communicate with Oracle server to retrieve data. I am very new in csharp, would anyone please give me an example codes or web pointer. thanks a lot. ...more >>

WinForm Communications in .NET
Posted by dev NO[at]SPAM fwcjua.com at 7/13/2006 6:53:00 AM
Can anyone tell me the best, or widely accepted practice for Windows Forms to talk to each other with Visual Studio 2005 and c#. I was using Events/Delegates, but without the need for multicasting it seems a little much. Passing WinForm object references around feels sloppy. I've been using inte...more >>

Parsing a complicated date time
Posted by campbell.mcneill NO[at]SPAM gmail.com at 7/13/2006 6:47:38 AM
Hi, I'm trying to parse the following date "Wed, 18 Dec 2002 08:01:23 +0100 (MET)". I'm using the following code: System.IFormatProvider format = new System.Globalization.CultureInfo("sv-SE", true); parsedDate = DateTime.ParseExact("Wed, 18 Dec 2002 08:01:23 +0100 (MET)", "dd MMM yyyy h...more >>

forms authentication
Posted by Phil Townsend at 7/13/2006 6:20:42 AM
I've just written a login page using forms authentication. I'm a little confused on how to expire the user, that is if they close the browser and reopen it, I wnat them to have to log back in. I know this is simple, but can anybody help? *** Sent via Developersdex http://www.developersdex....more >>

diff beetwen vbexe and vb .NET exe
Posted by arjun ch at 7/13/2006 5:12:12 AM
hai my friend i have one question diff beetwen vbexe and vb .NET exe Arjun *** Sent via Developersdex http://www.developersdex.com ***...more >>

Visual studio 2005
Posted by Just close your eyes and see at 7/13/2006 1:36:02 AM
Hi All when I am trying to discover visual studio 2005, I got a strange behavior when I am trying to put about 50 button on the form and run the application it makes some flicking in the startup I tried to avoid flicking by using DoubleBuffered, see this class InheritedButton:Button { publ...more >>

Parse large xml files
Posted by Howard at 7/13/2006 1:21:46 AM
I have some very large xml files that are over 2gb. I need to convert them to a sql database. The file is so large that it crashes notepad every time i tried to open it. Anyone who has delt with large files please give me some advice. ...more >>

What wrong my Updating Northwind Syntax Win[C#]
Posted by MikeY at 7/13/2006 12:05:15 AM
Hi Everyone, I'm having problems with my syntax on the updating part for the Northwind.MDB. All other code seems fine. It has to do with the Order Details on the thisAdapter.Update( ). Or I believe the problem lies with with space between Order and Details and not knowing how to get around ...more >>

Convert HTML to Image
Posted by PenguinPig at 7/13/2006 12:00:00 AM
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" & ">" directly.... I have done googling, but all return shareware. I would like to know how to progr...more >>

Stored Procedure with parameter
Posted by Alan T at 7/13/2006 12:00:00 AM
I have a string passed from another function, eg list_employee 4 This will call the stored procedure list_employee to get details of employee of id 4. Is there a way to just use this string, list_employee 4 instead of splitting into list_employee and 4 ? I know we can use SqlComma...more >>

How to convert a string to MemoryStream
Posted by ad at 7/13/2006 12:00:00 AM
I have a string variable. How can I convert the string to MemoryStream? ...more >>

Reporting
Posted by Mantorok at 7/13/2006 12:00:00 AM
Hi all We use a framework (in-house) and we need a suitable method of reporting, obviously we would prefer to utilise our existing businessobjects rather than query our database directly. Thanks Kev ...more >>

DataList Display problem
Posted by beachboy at 7/13/2006 12:00:00 AM
hello, I have set "RepeatColumns" on myDataList = 5, if the reminder of itemdata is not multiple of 5.. e.g: only have 3 items. then the display will break... any method i can solive this and add empty columns if the output is less than 5? Thanks in advanced. ...more >>


DevelopmentNow Blog