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 tuesday november 6

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

sqlDatareader
Posted by Analizer1 at 11/6/2007 10:57:29 PM
Im looking for example of how to get data into a table without using Table.load(reader) ' using the read() in a loop SqlDataReader reader = Cmd.ExecuteReader(); while (reader.read()) { //do some work ehre } ...more >>


How: multiple program instances sharing same data
Posted by Zytan at 11/6/2007 10:53:12 PM
I want multiple instances of the same .exe to run and share the same data. I know they all can access the same file at the same time, no problem, but I'd like to have this data in RAM, which they can all access. It seems like a needless waste of memory to make them all maintain their own copy ...more >>

I Need Some help !
Posted by payam.esfandiari@gmail.com at 11/6/2007 9:46:18 PM
Hi, I need an open source program under ".Net" languages, the program called "work flow management". I wonder if any one could help me handle this exception! If anyone could guide me please contact me . thanks . ...more >>

C# ASP.NET DataGrid and UID
Posted by at 11/6/2007 9:44:37 PM
I have an interesting problem. I need to create a page that has a few text boxes for info like name, address, etc. Also on that page will be a datagrid that allows for dynamic insert (via footer). The data from the datagrid will be in tblActivities and the info (name, address, etc.) will be...more >>

size question,
Posted by dragonslayer008@hotmail.com at 11/6/2007 9:28:33 PM
Hi, I have a form with two controls on it. One is just a panel where I will put buttons and slider controls eventually. The other is a custom control which draws some output. I have docked the panel to the left of the form, and I dock the custom control to "fill". I was trying to center ...more >>

C#, MS ACCESS and Oracle
Posted by kurisutofu at 11/6/2007 8:36:01 PM
Hello, I have a mdb file(ms access) that connects to an oracle database using a userID and password. Now, I created a software to run this file and excute a query. To be clear, the file has a query called "TRADES" that will select all trades of a day for example. So, the C# software op...more >>

Presenter First Design Pattern
Posted by Gav at 11/6/2007 7:33:33 PM
I have just started to rewrite my application using the Presenter First Design Pattern to make sure my business logic is not in the Gui itself. I've got the general idea but I'm a bit unsure as to how I should be launching a dialogue window from my main application window. What i have done ...more >>

Modal forms
Posted by Dave at 11/6/2007 6:36:02 PM
Is this possible? I have 3 forms frmGrandparent, frmParent & frmChild. Can frmGrandparent do a frmParent.ShowDialog() and then (while frmParent is open) do a frmChild.ShowDialog(). At the end of the day frmChild should be the topmost form and the focus should be on it. -- L. A. Jones...more >>



Working with VERY LARGE numbers
Posted by Aamir Mahmood at 11/6/2007 6:19:12 PM
Hi, I have working on a system in which I have to manipulate *very* big numbers. Like 32368060745625089670148189374568111100874165870871388541651800834565616109380834613212956588769877 They may be upto 10000 digits long. These numbers are coming through a device in ascii format, I am cre...more >>

What's the best online resource for learning C# for beginners?
Posted by kimiraikkonen at 11/6/2007 5:43:34 PM
Hi, My question is exactly same as topic title? What's the most effective and efficent website for learning C# from zero-level? Thanks. ...more >>

Capturing Syslog messages on port 514 using CSHARP/VB.NET
Posted by trytobreak@gmail.com at 11/6/2007 5:38:00 PM
Hey guys, I have a netscreen firewall which is configured to forward syslog messages to port 514 of my machine (specific ip on the network) and I am really puzzled as on how to capture these log messages using CSHARP/ VB.NET. Can you please forward on me some example code on how to go about...more >>

generics + inheritance
Posted by Richard Friend at 11/6/2007 5:30:51 PM
Does anyone know how to get round this problem? using System; using System.Collections.Generic; using System.Text; namespace ClassLibrary1 { public class BaseClass { public int counter = 0; } public class GenericClass<T> : BaseClass where T : BaseClass,new() ...more >>

is it possible to mark my CLR function as UNSAFE in code or visual studio anywhere so that wehn vs deploys, it creates unsafe assembly? (instead of me
Posted by DR at 11/6/2007 4:47:29 PM
is it possible to mark my CLR function as UNSAFE in code or visual studio anywhere so that wehn vs deploys, it creates unsafe assembly? (instead of me having to manualy deploy in tsql!) ...more >>

Hyperlink column?
Posted by Gary at 11/6/2007 4:42:30 PM
I have a bound Datagrid in my Windows Application. Is it possible to have one of the bound columns in the grid behave as a hyperlink, so that when clicked, it opens up a new window with some info? Any pointers/suggestions? ...more >>

char to string fails
Posted by dave at 11/6/2007 4:34:31 PM
char[] ch = new char[1]; ch[0]="-"; FileStream fp=new FileStream("z:\\" + "math" + ch[0].ToString() + "optpivot",FileMode.Open,FileAccess.Read); Why does this fail with Cannot implicitly convert type 'string' to 'char' (CS0029) ? Best David ...more >>

Private constructor idiom
Posted by PLS at 11/6/2007 4:25:46 PM
I'm converting a piece of c++ code to C#. There's one part I'm having a problem with. There is a class A which can be created only by calling a class factory method on object B. Things won't work correctly if the application creates an A in any other way. The idiom for this in C++ is to ...more >>

Getting an Image from webBrowser.DocumentStream
Posted by jwgoerlich@gmail.com at 11/6/2007 3:10:33 PM
Hello group, I am working with images on a website which uses cookie-based authentication. I would like to programmatically download and save the image. I am using a webBrowser rather than a HttpWebRequest because of the authentication. My code is as follows: webBrowser.Url = new Uri("ht...more >>

PropertyInfo.SetValue()
Posted by FourEyes at 11/6/2007 3:02:21 PM
I've read that Reflection is slow and shouldn't be used when performance is a concern. In my case, performance is definitely a concern, so I was thinking that I could collect the PropertyInfo objects that I need at initialization, and then just call PropertyInfo.SetValue() at runtime. Can anyo...more >>

Drag and Drop
Posted by Pete Kane at 11/6/2007 2:57:43 PM
Hi All, anyone have a basic code example of DnDing between two listboxes ? ( with multiple items would be good ! )...more >>

Monitor.TryEnter waittime?
Posted by Rainer Queck at 11/6/2007 1:40:40 PM
Hello NG, is there a possibillity to determine how long a thread had to wait on Monitor.TryEnter(lockObj,timeout) ? Thanks for hints. Rainer Queck ...more >>

List with no duplicates
Posted by Trecius at 11/6/2007 12:46:04 PM
Hello, Newsgroupians: Just a quick question really quick. Does C# have a generic class that will allow me to add only one instance of an object to the "collection" without having me do a .Contains() or something similar? In my case, I have a set of controls a user selects. If the user se...more >>

How to Write a UDL File
Posted by Daniel Jeffrey at 11/6/2007 12:30:55 PM
Hello, I have been searching for hours and can find no help on this. I need to programmatically write a UDL file for a only Delphi Application to use (my program is a launcher). I was able to do this in Delphi but for the life of me I cant do it in c# - any help would be appreciated ...more >>

DLL comparison after daily build
Posted by Depechie at 11/6/2007 11:33:14 AM
Hey guys, I'm stuck with something difficult... I would like to know if an assembly has changed between 2 versions. Little bit of detail... we have a daily build pc that will build all projects and increases the build number. So when I do a binairy compare of the output dll's they are diffe...more >>

Installer project
Posted by Peter Morris at 11/6/2007 11:16:08 AM
The MSI group seems a bit dead, so I hope nobody minds me posting this in here where I assume somebody has experience? How do I add CommonApplicationData as a special folder for my installer project to install into? I want all users to share a specific file. Also I need to specify the inst...more >>

Drawing shapes in visio using c#
Posted by weird0 at 11/6/2007 10:41:53 AM
I googled enough to the extent of going crazy. I want to draw shapes of ellipse(node), arrowhead with their events being available, so i can drag and drop them. I have downloaded the Visio SDK 2007. The documentation is too abstract and expects a lot of previous knowledge. I want to know as ...more >>

Work with MS Office
Posted by Alan T at 11/6/2007 10:22:38 AM
Any book/tutorials about working with MS Office, eg Work document, Excel worksheet? ...more >>

Howto : Callstack at runtime?
Posted by Rainer Queck at 11/6/2007 10:14:55 AM
Hello NG, is it possible to get - and if yes how - the call stack at runtime? I am debugging a multithreaded application, an it looks like I have a synchronization problem. Even though I am making intensive use of Monitor.TryEnter and Monitor.Exit it "looks" like there is some overlapping i...more >>

FileSystemWatcher. Should i use this?
Posted by ink at 11/6/2007 9:48:01 AM
Hi, It has been recomended by someone i work with, NOT to use the FileSystemWatcher class for watching for new import files in a directory as it is a bit flaky. Is this true, or can i trust that it will work. i am using C# Framework v2. Thanks. ink ...more >>

determining which core a thread is on
Posted by Lee Crabtree at 11/6/2007 9:36:31 AM
Is there any way to find out on which core of a multi-core machine a thread is executing? Here's the rationale behind such a question. Maybe it's wrong, I'm not sure. The app we've written communicates with some USB devices through a wrapped DLL that SHOULD handle thread safety (locking a...more >>

In-Memory Assemblies
Posted by ThunderMusic at 11/6/2007 9:25:22 AM
Hi, I'm trying to make something work and I'm pretty sure it can be done, but I can't get it working. I have a encrypted file that contains everything my software needs: exe, dlls, et al. I want to make a "loader" that will decrypt the file and get all parts in memory and run the exe in-me...more >>

Arraylist of arrays
Posted by wolima at 11/6/2007 9:20:00 AM
I have to create a arraylist of arrays. So, at the end, I have to convert this arraylist in a two dimmensional array. I wrote something like this. ArrayList myAL = new ArrayList(); double[] cvt = new double[3]; cvt[0] = 0.0; cvt[1] = 1.01; cvt[2] = 2.02; myAL.Add(cvt.Clone()); cvt[0...more >>

Regular expression for validating [GrandTotal]=4*[TotalCharges]+[currentCharges]+2
Posted by venugopal.sjce@gmail.com at 11/6/2007 9:17:51 AM
Hi Friends, I'm constructing a regular expression for validating an expression which looks as any of the following forms: 1. [GrandTotal]=4*[TotalCharges]+[currentCharges]+2 OR 2. [TotalCharges]=Sum([CurrentCharges])*6 Some of the samples I have constructed below: ...more >>

mdi child detach reattach problem
Posted by Marina at 11/6/2007 9:16:53 AM
We have MDI WinForms C# .Net2 application. Parent form has MdiContainer=true; Children forms are created like this: Form child = new Form(); child.MdiParent = this; child.Show(); To detach mdi child I use: child.MdiParent = null; If user wants to...more >>

Menu & ToolBar Inheritance
Posted by Matt Hess at 11/6/2007 9:15:00 AM
Does anyone know if there are plans to fix the Visual Inheritance problems for controls that use collections in Visual Studio 2008? I have installed Beta 2 and it is still not fixed....more >>

EventHandler & Return Types
Posted by markliam@gmail.com at 11/6/2007 9:02:33 AM
I have auto-generated some code for a button by double clicking it. By default, the code is created with a return type of void and assigned to a click event. Now, I want the function to return a DialogResult instead, so I go and replace 'void' with DialogResult in the function header, but then ...more >>

Way to interface with Dataset through ODBC or OLE?
Posted by googlegroups.dsfm@antichef.net at 11/6/2007 8:59:05 AM
Hi, all, I'm somewhat stumped on a sticky problem - I've got a Dataset that I'd like to be able to send through an ODBC or OLE connection, so a client accessing it on the other end would be completely abstracted from any of my code and see it just the way they'd see output from a "regular" da...more >>

WPF and Standard Output redirection - Weird Error
Posted by sundarvenkata at 11/6/2007 8:57:19 AM
Hi All, I wanted to develop a WPF application to capture the output of a command line program and display it in a GUI. However I get a weird error in the following code: System.Diagnostics.Process pfadminProc = new System.Diagnostics.Process(); pfadminProc.StartIn...more >>

Tell me where to go.
Posted by gtb at 11/6/2007 7:42:57 AM
Feel free to tell me where to go if I am off topic, or even you think my plea so pathetic as to make me unredeemable. ;>) My background is test software, instrument drivers, C/C++, assembly, Tcl/tk, python, primarily Unix, a very little VS C++. Nowadays I see many job chits that speak of .n...more >>

generic newbie: returning TYPE from a method
Posted by sklett at 11/6/2007 7:36:37 AM
I'd like to create a method like this: private T FindCustomField<T>(string fieldID) { } the compiler doesn't like that very much, I'm not sure if it's even possible to use a Type parameter as the return type. Anyone know? Thanks, Steve ...more >>

Preventing Postdata when clicking refresh button
Posted by Navaneet at 11/6/2007 7:26:08 AM
Hi, Can anyone tell me how to prevent some particular POST DATA when refresh button (F5) clicked on server side(vb.net). Thanks Kumar N ...more >>

VS Setup Project...
Posted by Blue Streak at 11/6/2007 7:01:20 AM
Hi, Folks. I am trying to add [TARGETDIR] to the Environmental Variable %PATH % for a console application written in C#. I know the path for Win2k/XP is stored in the System Registry under H_KEY_LOCAL_MACHINE but all I seem to be able to do is replace the %PATH% variable with the ...more >>

Arraylist of Hashtables of arraylist
Posted by Kamran Shafi at 11/6/2007 6:59:44 AM
Hi, I am creating an arraylist (say masterArrayList) of hashtables, where each hashtable (say table) is of the format key=string, value = arraylist of strings (say existing_strings). In a foreach loop I retreive the corresponding hashtable from the masterArrayList and add new strings to exist...more >>

Beginner Dialog Question
Posted by markliam@gmail.com at 11/6/2007 6:57:21 AM
I have a dialog box that asks for user input in 3 textboxes and has 2 buttons: Ok & Cancel. If the user input is validated, the box should return DialogResult.OK. If the user input isn't validated, it should display a message and return nothing at all, keeping the dialog box visible until th...more >>

Application_Error being ignored
Posted by Alex Munk at 11/6/2007 6:00:02 AM
I am using VS2005 Professional, DOT.NET FrameWork 2. During testing and debugging through the IDE using the development machine LocalHost server whenever an error is encountered the Application_Error fires OK and all code in the function is executed successfully. When this application is d...more >>

How to duplicate TabPage during run-time ?
Posted by Sharon at 11/6/2007 5:53:02 AM
Hello gurus, I want to have a Form with a TabControl, this TabControl will contain TabPage that has controls in it, this TabPage is prepared at design time. I want in runtime to duplicate the TabPage that wad made during the design time together with all its controls, but without the cont...more >>

MenuStrip ... Insert Standard Items: where is the code?
Posted by AA2e72E at 11/6/2007 5:28:03 AM
Am I correct in thinking that I need to write the underlying code for all the menu options inserted? Where would I start to implement, say, Select All, for instance? Thanks for any pointers....more >>

SMTP code times out. No idea why
Posted by Vince at 11/6/2007 4:36:10 AM
Can someone help me here please? My code keeps timing out on the very last line. POP3 works fine. The port is 465 and the host is pop.googlemail.com Thank you SmtpClient mysmtp = new SmtpClient(); if (useSSL) { mysmtp.EnableSsl = true; } mysm...more >>

decimal oddity
Posted by Henrik Schmid at 11/6/2007 2:26:02 AM
Hi, this is not the usual why-can't-I-represent-0.1-in-double post. I don't understand why we loose information when converting from double to decimal. Consider the following code. d1 and d2 are clearly different. When converting to decimal, I expect dec1 and dec2 to be different too. ...more >>

PRINTING A ARRAYLIST(newbie)
Posted by cameljs18@yahoo.com at 11/6/2007 1:43:50 AM
private void printDocumentOrders_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { float linesPerPage = 0; float yPosition = 1; int count = 0; float leftMargin = e.MarginBounds.Left; float topMargin = e...more >>

Transparent Image on Button
Posted by ur4ikk@gmail.com at 11/6/2007 1:32:21 AM
Hi, I try to show a background image on the button control. A background of an image should be transparent (should get the control color). Unfortunately, I can't find appropriate control property like "Transparent" in Delphi or something like this. What is the way to perform this action in...more >>


DevelopmentNow Blog