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# > june 2005 > threads for tuesday june 14

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

sql server login?
Posted by Iwan Petrow at 6/14/2005 11:40:46 PM
Hi, I have a database application. In the beginning a user is connected to the database. Here I want to check if the user input correct password and user name, but I haven't find any exception for this concrete task. Is there any specific exception for this purpose or I have to use SqlExcepti...more >>


Multiple event handlers in Visual Studio?
Posted by Adam at 6/14/2005 7:11:02 PM
In Winforms, in Visual Studio, how does one add multiple event handlers in the properties box for let's say, a textbox TextChanged event? Thanks in advance. Adam ...more >>

ASP.NET 2.0
Posted by Jose Fernandez at 6/14/2005 6:07:58 PM
Hola. Instale el asp.net 2.0 con el VWD y en la pagina de asp.net hay un tutorial de como hacer una aplicacion. todo iba bien hasta que llegue a la parte de Administracion Web Tool. El problema es que me da problemas con la conexion a la hora del setup de esta fase. Me dice que no encuentra...more >>

Dynamic DLLImport
Posted by Elisabete de Moraes at 6/14/2005 6:04:45 PM
Hi everyone, Is there any way to inform at runtime the name of the Dll that I want to be loaded using DllImport or DllImportAttribute ? Thanks in advance. Elisabete ...more >>

Variable for Casting?
Posted by James Scott at 6/14/2005 5:04:38 PM
Hello, my question is, if it's possible to "dynamical" cast? at the moment my print() method looks like this: public void print(Object obj) { if (obj is TypeA) ((TypeA)obj).print(); if (obj is TypeB) ((TypeB)obj).print(); if (obj is TypeC) ((TypeC...more >>

Constant-size queue?
Posted by Gabe Moothart at 6/14/2005 4:40:22 PM
Hi, I would like to use a System.Collections.Queue which is constant size - if it is full, it should fail to add new items instead of growing automatically. I looked at the help, and thought that a growth factor of 1.0 would do this. However, it doesn't seem to have worked. Is there any way...more >>

Problem converting byte[] to string
Posted by scott at 6/14/2005 4:36:10 PM
hi all, hope some one can help me, this prob is driving me mad. im using sockets to communicate between a client and a server. I don't' have control over the client and how it sends the data so i have had to try and work out how it is doing it. From what i can see it is sending the data ...more >>

Component hell
Posted by SirThanxALot at 6/14/2005 4:24:29 PM
Dear all, I need a component that is capable of: - Displaying cells - Cells must be customizable in color backcolor width and font - entire row selection - no headers With the ListView I could manage except for the last requirement. Is there any other component that might do the trick? ...more >>



About Thread Completion Notify.
Posted by objectref at 6/14/2005 4:13:42 PM
hi to all folks, i want to create the following senario: i have a T1 (Thread 1) that acts like http server that receives incoming requests. From that T1, i want to spawn from T1 to Tn thread jobs and beeing able to be notified when each of these threads finished it's job. I would lik...more >>

Calling a Static Method on a Class Type passed as a Generics Argument.
Posted by ESPNSTI at 6/14/2005 4:08:30 PM
Hi, I'm trying to call a static method on a class type that is passed into a method through generics, for example: public bool Test<TestStaticType>() where TestStaticType : TestStaticBase, new() { return TestStaticType.Foo(); // <-- The error is produced here } It's giving me the f...more >>

only numbers in textbox
Posted by at 6/14/2005 3:48:08 PM
Hello, how can i do this: i have textbox, but i want that only numbers is possible to write in this text box. Thanks Lubos ...more >>

Only numeric value in textbox
Posted by at 6/14/2005 3:46:48 PM
Hello, how can i do this: ...more >>

One Object, two possible types
Posted by James CC at 6/14/2005 3:36:17 PM
Hi there, I have a function, converted from VB, that is passed an object, and sets it up. The object passed is either a ListBox or a ComboBox. The code checks to make sure that the object passed is one of the two types, and then does some work. I provide a cut-down version (the first code)....more >>

Bizarre: string.split() method
Posted by JV at 6/14/2005 3:33:30 PM
This is too weird. You're going to love this one. I just ran across the most bizarre DotNet "feature" with the String.Split() method. You are supposed to pass it an array of characters to tell it what separators to split the string on. if it finds any of those characters, it treats that...more >>

Indexed properties?
Posted by Daniel Miller at 6/14/2005 3:15:04 PM
What is the difference between indexers and indexed properties (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkindexedpropertiestutorial.asp)? I don't see what the problem is with using plain indexers is. Let's just say I'm confused. :P...more >>

How do you avoid unboxing?
Posted by David Young at 6/14/2005 3:14:36 PM
I'm using hashtables to transport data between layers in my app, but in so doing, it seems almost impossible to avoid unboxing. private static BusinessObject PackageBusinessObject(Hashtable myHashtable) { if(myHashtable!=null) { BusinessObject myBusinessObject = n...more >>

blob into sql database
Posted by Hrvoje Voda at 6/14/2005 2:42:56 PM
How to insert a blob arraylist into database? I know it's not good, but my customers want that, so if someone has some simple example of how to do it... Hrcko ...more >>

Properties/ set+get methods
Posted by James Scott at 6/14/2005 2:21:32 PM
hello, is there a way to write set&get methods more compact? I have a bout 50 properties that I have to acesss - and that's a lot of redundant code. Another way I can think of is putting the values in a Hashtable. Or are there (big) disadvantages to that? Thanks! ...more >>

how to replace an object's property with an unknown string vaule
Posted by Lance at 6/14/2005 2:07:02 PM
Hi, Sorry for the confusing subject, but here is what I am after: I am using the 'System.Drawing.FontStyle' object, and I would like the caller of the function to be able to decide when calling the function what style to use. Hmm even more confusion, methinks. Here is some pseudocode for what ...more >>

How to get stdout/stderr from unmanaged DLL?
Posted by Thomas W. Brown at 6/14/2005 2:02:02 PM
I have setup Console redirection within my Console app (via Console.SetOut and Console.SetErrror) to route console WriteLine calls to a logfile. This works just fine with one exception... I use PInvoke to call into several unmanaged DLLs which write diagnostic information out to stdout (an...more >>

arraylist
Posted by NuB at 6/14/2005 1:27:14 PM
I'm working on an existing app that creates an arrayList of errors to populate a log file. I need to get those errors to read them each line by line and import them into tables based on the criteria then create a file for which error was imported into the table. How can i take the arraylist...more >>

DataSet and DataRow Question
Posted by Yosh at 6/14/2005 1:04:37 PM
Let's say I have a DataRow that I got from DataSet "A". Can I modify = the data in the DataRow and add it to a new DataSet "B" and have it = update the same datasource? I hope this makes sense. Yosh=20 sorry for the multiple post but I wanted the post in this newsgroup...more >>

Attributes and Web Services
Posted by stotty NO[at]SPAM gmail.com at 6/14/2005 12:33:15 PM
Send a data structure using Web Services. Data structure looks like: Class Person { int age; string name; Pets pet; } However the age field is optional and the name field is required and must be between 4 and 20 characters. The web service just returns the class i.e [WebMethod] p...more >>

COM Object performance in different Threads
Posted by Ben Childs at 6/14/2005 12:11:03 PM
Hi, I am writing an application in C# (VS.NET 2002) that runs performance intensive analyses on data sets. In order to keep the UI responsive I have created a seperate thread to do the analysis. I am using my own DLLS to load the data sets from files and run the analyses. But I have run ...more >>

Simple Threading Problem with WinForm
Posted by Elliot Rodriguez at 6/14/2005 11:31:04 AM
Hi: I am writing a WinForm app that contains a DataGrid control and a StatusBar control. My goal is to update the status bar using events from a separate class, as well as some other simple things. The method I am writing queries a large dataset. As part of my feedback to the user, I am ...more >>

Set Form Location and Size before calling Show method
Posted by mark NO[at]SPAM financialzinc.com at 6/14/2005 11:08:20 AM
I am developing an application in .Net C# that needs to restore a number of tool windows to some previous location and size. The problem I have is that when I create the form and set the Location and Size properties before calling the Show method, the form is not created in the Location that I s...more >>

TAction class??
Posted by Leif Eirik Olsen at 6/14/2005 10:22:17 AM
Hi, Beeing used to develope with Delphi (not dotnet), it has become a habit using Delphi's TAction/TActionList. These classes are great for centralizing the code for user commands and in addition great to centralize the user interface elements. Does enyone know if these (or similar) classes...more >>

new line
Posted by Hrvoje Voda at 6/14/2005 10:19:10 AM
name += function.Name + " "; How to write this code but with exception to put a function.Name into a new line ? I want to get a string name into a list like this: Function 1 Function 2 .... Hrcko ...more >>

Drag-Drop stops working after one or two days
Posted by Qingdong Z. at 6/14/2005 10:19:09 AM
I have a VS.NET windows application which use drag-drop feather. It works fine when application start, but stops working after application run one or two days. The application is related to Video process, CPU/Memory extensive. The drag-drop is in a new windows form. It drags from TreeView Con...more >>

Static Functions in a Multi Threaded App
Posted by Seenu at 6/14/2005 8:50:09 AM
Is it safe to create a static function in a multi threaded application ? As an example, I have a function that logs errors ,exceptions and some informational data public static void Log(....) { // } There are multiple threads in this application that call this function. Is there any advant...more >>

How to get ListBox to show changes made to an item in C#?
Posted by Grant Schenck at 6/14/2005 8:31:55 AM
Hello, I have a ListBox control on a form. I add members of a class to the Items collection. They show up and I can select them. The text shown is from my classes ToString override. Now, later on I need to update this item. I find it in the Items collection and update a member used by ...more >>

for loop not stopping when it should
Posted by melanieab at 6/14/2005 7:56:08 AM
Hi, I'm trying to check and see if something other than numbers (either the +, -, *, or /) are entered into a textbox, where bigR is what I call the text in the textbox. I can get what was entered and where along the string (the where part is the first section of below). I'm running into tr...more >>

Using C++ DLL in C# (cant view methods or structs)
Posted by Mas L via DotNetMonster.com at 6/14/2005 7:53:01 AM
Hi, I have a c++ source code which I can compile to be a DLL (in VS.NET 2003). And I need to use it in a C# program. After I compiled/build the C++ code to a DLL, I add it as a Reference in my C# program. When I look at the reference and I double click to view it in the objec browser ...more >>

Regular Expression Help?
Posted by Vagabond Software at 6/14/2005 7:31:37 AM
I'm trying to validate a text box that complies with the following rules: 1) text can be blank/empty 2) non-blank text shall contain ONLY A-Z and/or 0-9 3) non-blank text shall contain a maximum of 6 characters Here is what I have so far... (^A-Z0-9*$){0,6} Don't look at it too...more >>

Need clarifikation about lock(this) and [MethodImpl(MethodImplOptions.Synchronized)]
Posted by norbert.thek NO[at]SPAM gmail.com at 6/14/2005 6:00:29 AM
Hi Can somebody tell me if I'm right or not The attribute [MethodImpl(MethodImplOptions.Synchronized)] Is like an lock(this) over the Method where i put this Attribute?! If I have two methods like: [MethodImpl(MethodImplOptions.Synchronized)] void method1() {do something;} [MethodImp...more >>

Include a usercontrol in a table
Posted by Salvador at 6/14/2005 5:30:02 AM
Hi, This question is related with c# and ASP.NET, (I could't find the rigth forum). What I need to do is to add a usercontrol in a row of my table using the server code (I know how to do it on the front-end). The idea is to show the search results on the page, every entry is a usercontro...more >>

To change a window application to a thin client
Posted by Hans [DiaGraphIT] at 6/14/2005 5:16:02 AM
Hi! I wounder if it is possible for my windows based application to be moved out on a win 2003 server and to be executable from there? (Perhaps in a terminal service environment) Features of my application: - connectivity to a SQL database - multiple users running synchronously. - cr...more >>

A way to #INCLUDE in C#.NET?
Posted by Gee at 6/14/2005 4:11:48 AM
Hi all, I'm looking for the best method to adopt as a replacement to using #INCLUDE. Currently, I have one page with a PANEL that changes the content of the panel (to another web page) depending on what menu option the user has selected. The way I do this currently is with a line of code...more >>

Desktop Icons
Posted by Just close your eyes and see at 6/14/2005 3:59:03 AM
hi all is there anyway in C# or using winAPI that can help me in arranging desktop icons on a small area in the middle of the desktop wallpaper or in more detail can i set the coordinates of each icon as i wish thx all...more >>

Redirecting StandardOutput in realtime
Posted by vijaynats NO[at]SPAM yahoo.com at 6/14/2005 3:45:47 AM
Hi I created a windows app to run a dos batch file (which takes around 5mins to complete and generates lots of output messages on the console in the meantime)and i used RedirectStandardOuput to display the output text in a textbox. The problem is that till the batch file has not finished ru...more >>

Fastest way to copy from a one dimension byte array to two dimension int array
Posted by johannblake NO[at]SPAM yahoo.com at 6/14/2005 2:17:17 AM
I need to copy all the data from a one dimensional byte array to a specific column in a two dimensional int array. For example: byte[] byteArray = {4, 5, 6}; int[,] intArray = new int[2, 3]; After copying to the first column in intArray, I want the intArray to have the following data: in...more >>

Registering a COM Server using C#
Posted by VivekR at 6/14/2005 2:07:12 AM
Hi All, I was using VC++ earlier to register COM Server programmatically. What i do is I use LoadLibrary(Desired COM DLL), then GetProcAddress("DllRegisterServer"), and then call that function using the function pointer that GetProcAddress returns. How do i do that in C#, I tried using the Dl...more >>


DevelopmentNow Blog