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# > august 2005 > threads for friday august 12

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

Datagrid - Windows Forms - Can't see what is in the grid
Posted by Richard at 8/12/2005 5:47:16 PM
The grid has rows but you can't see them. You see the grid but all rows are completly blue but when you click on a column in the row you see the text that is in the row. I sprinkled datagrid.refresh and application.doevents around but it did not help. It seems like it's memory or video card relat...more >>


One day while newbie was playing around with the properties...
Posted by caincognito NO[at]SPAM yahoo.com at 8/12/2005 5:32:54 PM
After I finished playing around I found the following snippet of code in my program and the automatically generated code section calls it so I can't get rid of it with the editor. > private void crystalReportViewer1_Load(object sender, > System.EventArgs e) { } I scoured the properties of t...more >>

Item and indexers
Posted by Frode at 8/12/2005 3:22:01 PM
Be aware that if you create a class named 'Item', you can't create an indexer public class Item { protected ArrayList _list = new ArrayList(); public string this[int index] { return (string)_list[index]; } } It took me long time to figure this one ...more >>

IntegratedSecurity in SQLDMO using CSharp
Posted by Arun Kumar at 8/12/2005 2:18:57 PM
Hi, I am having problem setting the SQLDMO (SQL Server 2000) value for Integrated Security SQLDMO.SQLServer srv = new SQLDMO.SQLServerClass(); srv.IntegratedSecurity.SecurityMode(SQLDMOSecurity_Integrated); srv.Connect(Server,"",""); I get an error, can someone help on this....more >>

Inheritance Question
Posted by joe.osowski NO[at]SPAM gmail.com at 8/12/2005 1:19:26 PM
I am extending Microsoft's webcontrols with a few extra properties and methods. Specifically TextBox and DropDownList and later probably more. In a perfect world I would just add my methods to the WebControl class. Or store the implementation in the Interface(if that was possible). Unfortun...more >>

easy array question
Posted by jason at 8/12/2005 12:40:52 PM
hello everyone, i'm simply curious how to make an array out of some list of things (in this case an SqlDataReader). essentially i want something like: MyObject[] oObjectArray = null; while (oReader.Read()) { MyObject oObject = new MyObject(); oObject.Property1 = oReader["column1"]; ...more >>

exception anomaly
Posted by peter z at 8/12/2005 12:23:00 PM
I have a very simple C# windows app containing two forms. Form1 calls Form2.ShowDialog() in a try/catch block. Form2 has a button on it that when pressed throws an exception. While running in the IDE debugger, the Form1 try/catch works as expected (ie. the Form1 message box displays the except...more >>

Simple question about a drop down list
Posted by Rik Brooks at 8/12/2005 12:19:08 PM
I'm using the drop down list in a web app. I can set the items in the list with no problem. How do I set the text? That is to say, how do I set the part that the user sees before they drop down the list? -- ---------------------------------------- Magic is not in the hands of the magician bu...more >>



Problems referenceing Class Library (.dll)
Posted by raican at 8/12/2005 12:06:49 PM
I've been working on a series of classes for several months, and they all work in the original project. Today i decided to move the .cs file to a separate project to compile it as a .dll class library. It compiled ok, and the original project compiles and runs with the new ..dll referenced, but ...more >>

Source Safe vs. VS 2003 Integration Issues
Posted by Richard at 8/12/2005 12:05:12 PM
Sorry about the cross posting from the VSS newsgroup but I didn't get any help there yesterday and I know this group is heavily traffic-ed. If I sound annoyed and ticked off it's because I was: I'm Running VSS 6.0d with VS 2003... ARRRRGGGHHH!!! Could someone POSSIBLY ATTEMPT TO EXPLAI...more >>

Getting a image (blob) from mysql using reader.GetBytes??
Posted by Tinus at 8/12/2005 11:50:00 AM
Hello all, I've been searching for an answer for a day now (Google) and can't find what I'm doing wrong :-( The problem is as follows. I'm trying to read a blob from a mysql table. However I get the following error: 'Source array was not long enough. Check scrIndex and lenght, and the arr...more >>

Threading and garbace collection
Posted by John at 8/12/2005 10:25:54 AM
Hi all, I have written an application that uses threading (25 threads in fact!!) and obviously I want to ensure that everything is cleaned up nicely when the program finally exits. So, question is, for each thread that is I instantiate, do I have to do anything to clean up the thread or with t...more >>

Draw nice 3D buttons by code in .NET?
Posted by JohnLid at 8/12/2005 10:11:42 AM
Hi All, Anyone know how to draw nice 3D buttons like this one by Code in .NET: http://www.econtechvn.com/en/aquabutton_detail.htm Please help me out. Thanks in advance. ...more >>

WebClient.CancelAsync causes TargetInvocationException
Posted by Cat at 8/12/2005 9:57:48 AM
I created an array of WebClients like this, WebClient[] downloaders = new WebClient[10]; And started asynchronous downloading for each WebClients. When the user wants to cancel the operation, I did like this, for(i=0; every downloaders...) { downloaders[i].CancelAsync(); } This cause...more >>

Detect relationships between tables in SQL Server
Posted by ahaupt NO[at]SPAM gmail.com at 8/12/2005 9:47:09 AM
Hi, I need to write an app that will detect the relationships (as well as their type) between tables in SQL. Anyone came accross something like this before? Any help will be greatly appreciated. Thanks, Andre ...more >>

trouble with ADODB in C#
Posted by jason at 8/12/2005 9:28:49 AM
hello everyone. i am using ADODB in a C# class library. why? because one of the applications using the class library is written in classic ASP, and therefore can't be handed an ADO.NET DataReader class and know what to do with it. no problem, ADODB in C# lets me generate a class RecordSet obje...more >>

why is sqldatareader so slow ?
Posted by marc hugon at 8/12/2005 9:25:17 AM
Hello I'm working on a batch program (command line utility), and I'm having speed problems to read a lot of data from a database. At first I thought it was what i was doing with the data that was slow (and I can work on that), but I've encoutered another problem. let's have a look at my cur...more >>

How can you send keys in console app programatically
Posted by GG at 8/12/2005 9:00:46 AM
I have a console application that is using Console.Read() so that the application does not exit. I have a separate thread that is sleepeing for n-seconds and checks to see if it is time to exit. When it is time to exit, the thread needs to send keys to the console so it can continue and exit. H...more >>

Using reflection to find constants
Posted by Mark at 8/12/2005 8:48:00 AM
Is there a way using reflection to interrogate a .dll and identify all the declared constants, as well as their initial values? Thanks in advance. Mark ...more >>

delegate question!
Posted by DBC User at 8/12/2005 8:15:50 AM
Hi all, Could someone explain me the following I have a winform. I call a long process in async model with a callback. Now that once I get the call back I update a message to the main winform. Well I got everything to work (based on an example), but I didn't understand the fullflow. Why do ...more >>

finding Source from dll
Posted by MAF at 8/12/2005 8:13:45 AM
Inside of code is there anyway to find the location of the source code from within the compiled dll? ...more >>

datagrid selectionbackcolor
Posted by melanieab at 8/12/2005 7:13:07 AM
Hi, I have a datagrid and am trying to set it's selectionbackcolor, and though all the other things work, this and the selectionforecolor don't. Any idea why? Also, I have the cells set to read-only, but don't like how the text is highlighted (blue), making it look as if you could change it...more >>

Hierarchy without tree
Posted by Sehboo at 8/12/2005 6:47:24 AM
Hi, How would you show the hierarchy of employees (or locations or roles...whatever) without using tree view on the web using asp.net. We have thousands of records, and if we use tree then loading that tree would take forever. I want to have something else which is simple and intuitive. ...more >>

nested using statement or try catch finally?
Posted by anyMouse NO[at]SPAM lycos.co.uk at 8/12/2005 6:30:29 AM
Out of the 3 following examples, which would be considered "best practice"? private SqlConnection Conn; // Connection set in class constructor example 1 --------- internal DataTable GetDataAsDatatable(string qry) { using(Conn) using(SqlCommand cmd = new SqlCommand()) using(SqlDa...more >>

Encoding for windows application?
Posted by Iwan Petrow at 8/12/2005 6:27:25 AM
Hi, I want for my application to set an exact encoding for converting byte arrays to strings and for reading from files. I can create an encoding instance with exact codepage and to work with it. Are there another ways to do this? Or any way to set the default encoding for entire application...more >>

Process
Posted by Crispie at 8/12/2005 6:05:02 AM
Hello, I start freepdf as a process in my C# program. The Problem is, that this is done in a while-clause and cause of this, I have running a lot of freepdf-Processes at the same time. I would like to change this, so that the next Process is waiting until the running one ends. The code: f...more >>

error converting data type varchar to int
Posted by snatch_this at 8/12/2005 5:44:54 AM
Hi, I'm getting an error "error converting data type varchar to int", while trying to execute a stored procedure. Which is weird, as I don't have any int type variables anywhere in this piece of code. Here's the sproc: CREATE PROCEDURE [dbo].[spAccountLogin] @accountName varchar(50), @accoun...more >>

Best Singleton Design in C#
Posted by anonieko NO[at]SPAM hotmail.com at 8/12/2005 4:53:25 AM
PICK ONE 1. Singleton (Thread-safe using double-checking ) -------------------------------------------------- class Singleton { private static Singleton instance; protected Singleton(){} public static Singleton Instance { get { if( instance == null ) ...more >>

Configuring IIS
Posted by iyhammad at 8/12/2005 4:35:02 AM
Should i configure the IIS to host ASP.net 2.0 web application or not?? if yes How? notice that i have Windows XP SP2 and i have VS2005 beta2 running on it. thanks for advanced help.......more >>

Creating an App that runs as both Console and GUI
Posted by Lobsterpants NO[at]SPAM gmail.com at 8/12/2005 4:22:33 AM
Hi folks, I am developing an application that will either: 1. Run completly through the GUI (no command line options set) 2. Run completly through the command line 3. Allow the user to default some options through the command line and then open the GUI with these options set. I can achev...more >>

Crystal Report export to PDF -
Posted by CodeRazor at 8/12/2005 4:09:01 AM
Hi, My code exports a crystal report to pdf. My question is: Does .Net have some kind of inbuilt Pdf writer within it or Does the client need to have Acrobat writer installed to allow for an export to pdf to occur. My code works fine on my pc, and i have Acrobat writer. Will it work ...more >>

CRnd() equivalent in C#
Posted by CodeRazor at 8/12/2005 2:25:52 AM
Hi, Whats the C# equivalent for the Rnd() function in VB? cheers, CR...more >>

Generic enumerator on arrays
Posted by Douglas Harber at 8/12/2005 1:49:41 AM
If I declare an array: SomeClass[] instancesOfSomeClass; which has an array of SomeClass objects assigned to it, is there anyway to use a generic enumerator with this collection? I'd like to use an IEnumerator<SomeClass> but there doesn't appear to be any way to generate such an enumera...more >>

Tab Order Checker
Posted by PromisedOyster at 8/12/2005 12:24:47 AM
Does anyone know of any utility that would check the tab order of the forms within an assembly. (ie should be left to right, top to bottom) I wouldn't have though that it would be all that difficult to write using reflection. ...more >>

Alternate File Streams or Alternate Data Streams
Posted by mcr at 8/12/2005 12:00:00 AM
Hi. As some of you might know you can use alternate file streams in windows. read more here: http://www.robvanderwoude.com/index.html (Search for "NTFS Alternate File Streams") My problem is that I can not get this to work from C#. No mater what I do I get a NotSupportedException. ...more >>

Thread Synchronization updating form
Posted by Claire at 8/12/2005 12:00:00 AM
When we wanted to update a vcl window from a thread in Delphi, we needed to call the Synchronize method. This would make sure that the thread would wait to synchronze with the process before attempting to update a control. Ive a status bar on my main form who's text is updated during thread a...more >>

Monitoring my c# application with PerfMon
Posted by Paul Tomlinson at 8/12/2005 12:00:00 AM
Can anyone point me to a source of information wherby I can monitor the amount of memory, cpu etc that my app is consuming using PerfMon. Do I need to do anything special within my app to allow this to happen? Apologies for the noob like question :-/, this performance monitoring is new to ...more >>

DataGrid column displaying row index of DataSource
Posted by Maksman at 8/12/2005 12:00:00 AM
Well, I'm having trouble setting myDataGrid to show ordinal position of row in a DataSource in the first column (...say, like Excel does) Code snippet follows: .... myDataSet.Clear(); myDataSet.EnforceConstraints = false; myDataAdapter = new SqlDataAdapter(mySelectCommand); myDataAdapter....more >>


DevelopmentNow Blog