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# > april 2007 > threads for monday april 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

increment
Posted by per9000 at 4/2/2007 11:35:15 PM
Hi, yesterday I experimented with the increment/++ operator. It seems some behavior is not defined in C (as I was informed when posting on Comp.Lang.C) - does the same go for C#? Is it clear what f.x: "b2[c2+ +] = a[c2];" does in C#? Is it possible that a compiler, when going from C# to CIL, cou...more >>

count the number of cells which are blank in a excel column
Posted by shantanu at 4/2/2007 9:39:46 PM
Dear All My requirement is to count the number of cells which are blank in a excel column, for that i am writing the following code;;;;;;;;;;;;;;;;; private void ValidateReviewComment() { //Range xlsRng = _sheet.get_Range("G1",Type.Missing).EntireColumn; //MessageBox.Show(xlsRn...more >>

how to do that
Posted by Ricardo Luceac at 4/2/2007 5:49:35 PM
Hi all... I know this isn't the right place for that but i'm with this problem.. I work in a hospital and need to make a program that counts the amount of people interned per day. I have in a mysql database the day that the person interned and the day that it leaves. tHow can I cou...more >>

Showing a winform in Excel is slow the first time
Posted by Torben Laursen at 4/2/2007 4:09:01 PM
I have a COM shared add-in written in C# that I use in Excel. One of the thinks that the user can do is to open some winforms. The problem that I have is that the first time the user opens a winform it is slow around 7 seconds and after that it takes no time. Is there a way to speed up the pr...more >>

Dynamic list of regular expressions, find the one that matches.
Posted by Allan Ebdrup at 4/2/2007 3:28:45 PM
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find the first regular expression that matches the string. I've gor the regular expressions ordered so...more >>

multiple threads writing to WebBrowser, getting deadlocked
Posted by Zytan at 4/2/2007 2:52:17 PM
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only deadlock when I use lock { } around the call to WebBrowser.Write to ensure thread safety! Does any one ...more >>

RegEx namespace for 2.0
Posted by Tom Jones at 4/2/2007 1:45:27 PM
Regex used to be found in System.Text.RegularExpressions in Framework 1.1, but I cannot find a System.Text namespace in 2.0. Does someone know where to find this? ...more >>

Get Method Name
Posted by at 4/2/2007 1:24:41 PM
Is it possible to get the name of the method that the code is currently executing in so that I can pass it to another method? For example, in void method1() I will call void method5(). In method5 I want to know which method called me? Because there are many methods calling many other method...more >>



How can I find if a TextWriter / StreamWriter is disposed?
Posted by Zytan at 4/2/2007 12:47:13 PM
There is no IsDisposed() method. I could just access it, and catch ObjectDisposedException, but that seems ugly. Zytan ...more >>

assembly always gets built optimized
Posted by bonk at 4/2/2007 12:17:57 PM
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression because the code of the current method is optimized."). This happens alltough the checkbock "optimiz...more >>

Method Exception information
Posted by PGP at 4/2/2007 11:46:49 AM
Where will i look to find potential exceptions thrown by a method? I am looking at Object Browser and couldnt find any, MSDN doesnt seem to provide a consistent format for this either. Any advice would be appreciated. ...more >>

what other way is there
Posted by rodchar at 4/2/2007 11:16:07 AM
hey all, i'm using the following line of c# code: bitmap.Save(Response.OutputStream, ImageFormat.Jpeg); and i use this by saying image.imageurl = picture.aspx?id= ... my question is: is there anyway to directly assign the bitmap to the imageUrl property without needing the aspx page...more >>

Double quotes...
Posted by Gaurav at 4/2/2007 11:02:03 AM
String s = @"c:\test.xml"; I want to use the above string in a batch file with enclosed quotes, like ""c:\test.xml"" How can i do that? It might be simple, but I can't figure out the syntax??...more >>

.Designer files not recognized in VS 05
Posted by James at 4/2/2007 10:49:43 AM
When using 2005 I create a new Form and VS displays the .Designer file below the main .cs file at the same level as the resx file. But, if I manually create a MyFom.cs file and a MyForm.Designer.cs partial class files the ..Designer file does NOT display below the like it should. Why not? How ...more >>

Why does "TypeConverter.GetProperties" exist
Posted by Larry Smith at 4/2/2007 10:08:57 AM
Hi there, Can anyone provide any insight on why MSFT introduced "TypeConverter.GetProperties()". There are two classes for dealing with metadata in .NET, 'Type" and "TypeDescriptor". Each has a "GetProperites()" method so why complicate the situation even more than it already is by adding...more >>

Why is the exception in my delegate ignored?
Posted by james at 4/2/2007 9:47:59 AM
When I compile and run this code outside of Visual Studio no exception is reported to the console and the program continues to run. class Program { static void Main(string[] args) { System.Timers.Timer t = new System.Timers.Timer(10); t.Elap...more >>

DataGridView - Insert Row
Posted by Chris at 4/2/2007 5:58:07 AM
how do you insert a new row to a databound datagridview? It won't allow this action. ...more >>

What should my thread signature look like if I want to return a String?
Posted by chance at 4/2/2007 5:41:37 AM
I want my thread method to return a String. However, the compiler is saying that the best overloaded method match for System.Threading.Thread has some invalid arguments. Not sure what I need to change here. public String generateNOV(string xmlParms) { Thread novThread = new Thr...more >>

Data Binding nodes in TreeView
Posted by bg_ie NO[at]SPAM yahoo.com at 4/2/2007 5:35:47 AM
Hi, I have a tree view which contains a number of nodes which correspond to a set of objects, as follows - class Address { int postCode; sting[2] abbreviation; } class Person { string[] name; Addressaddress; } Person[2] person; TreeView: + Name: Barry + Address: BH 91...more >>

Return listview item from webservices
Posted by apondu at 4/2/2007 5:29:04 AM
Hi, This is Govadhan, i am a begginer for web services using c#.net. I have written a small web service where in i have created a listview item in the web service method and added some data to the listview item. Now i have problem. I want this listview to be passed as a return value to the ...more >>

Windows Form Talking To Another Windows Form Help Needed
Posted by Pumpkin Carver at 4/2/2007 5:15:19 AM
I have a form that has a listview on it and a serious of strings in the listiew. When i doubel click on the listview item it opens a new form and displays the text that i pass to the constructor. What i am trying to do now is have a previous/next button on the form i just opened and have it go t...more >>

copy table to one database to onther
Posted by Neeraj at 4/2/2007 4:36:28 AM
hi I want to create a table in a database with same schema and data of other database. what i am doing is i make a connection to second database make a select statement "SELECT * FROM modul" DataTable dt = ds.Tables[0].Copy(); now i get DataTable then how can i save it to another database w...more >>

Accessing objects in different panels without passing references.
Posted by gwoodhouse NO[at]SPAM gmail.com at 4/2/2007 3:47:58 AM
Morning, My last question brought no end of fruit so i thought i would ask this: Right now, i pass object references into the constructor of forms i add to the panels in my application. Is there an easier way to access objects/controls in other panels without implicily passing the reference t...more >>

how to get the ip address & country of the webpage visitor
Posted by bushi at 4/2/2007 3:23:28 AM
hi everyone! i want to get the ipaddress,and the country name of a webpage visitor,using asp.Net(C#).if anyone knows about it,plz rply me. thanx in advance. ...more >>

Associating a set function with a TreeView Node
Posted by bg_ie NO[at]SPAM yahoo.com at 4/2/2007 2:30:07 AM
Hi, Lets say I have a TreeView with nodes that represent objects of a number of different types. Is there a way of associating the Set method of each object with its node in the TreeView? That way when you select a node in order to change its associated data, you have easy access to its Set f...more >>

Data reader help!
Posted by Shum at 4/2/2007 2:13:57 AM
Hi all.. i have another problem! The Read() method is supposed to read through all the rows one by one untill no row is left to be read... but not in my case.. after mySqlDataReader.Read() returns true first time and gives the value in nout. etc.. it works fine, i mean it executes fine th...more >>

Base classes using inherited values
Posted by gwoodhouse NO[at]SPAM gmail.com at 4/2/2007 1:36:10 AM
Good Morning, Ive been programming in c# for a few months now, and one of the things i havnt quite figured out is this: I would like to have inherited classes with their own set of variables. I would like to use an inherited method, but instead of using the base's variables, i want the appl...more >>

DLL won't run on user computers
Posted by Calin at 4/2/2007 12:52:49 AM
I've made a NET wrapper for a small C library. The wrapper works ok on my dev machine however it won't run on my second computer (and other computers). I have NetFramework 2.0 and VS installed on my second machine. Here's the error I get when I click the debug button in the error dialog: S...more >>

System.Data.Common.DbDataAdapter Bug.
Posted by David Coleman at 4/2/2007 12:00:00 AM
Hello all, I am running XP Sp2, VS 2005 Sp1, Sql 2005 Sp2. I am receiving the exception "Invalid character value for cast specification." from the line ((DbDataAdapter)da).Update( dataSet ); The dataset contains a single table and the table contains a single row. (see below). The ...more >>


DevelopmentNow Blog