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# > may 2006 > threads for friday may 26

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

Active directory
Posted by Mr. Bean at 5/26/2006 11:11:57 PM
Hello, I'm trying to retrieve the user's properties from Active Directory. I was able to retrieve all the user properties, however, I wassnt able to get the manager's user name. What I got was the path of the user name : CN="Display Name", CN=myCompany,CN=COM.. Here is the private string...more >>

Converting C# to VB
Posted by Bob Roy at 5/26/2006 10:52:20 PM
Could someone help me translating the following C# code to VB? Is there a different newsgroup where it would be better to post this? [ListBindable(false)] public class CategoriesInfo : CollectionBase { static CategoriesInfo instance; // create the static instance of the class static Ca...more >>

Reusing a asp:repeater?
Posted by dauphian NO[at]SPAM gmail.com at 5/26/2006 6:41:43 PM
Greetings, I am using a user control to do the work, and have figured most of it out so far, cept the below: I am currently trying to do the following: - query to get a count of items in a db - for each item, query a different table and display results So far I am able to query the tab...more >>

Commercial Application Development
Posted by Ron at 5/26/2006 5:00:47 PM
Is there a forum/newsgroups for developers to talk about commercial application development? Until now my experience has been in custom software for clients but I have an application idea that I will want to sell commercially and am looking for tips/tricks/pitfalls (commercial application ...more >>

shouldn't if (this!=null) generate a warning?
Posted by cody at 5/26/2006 4:54:25 PM
Shouldn't if (this!=null) generate a compiler warning? in fact, it does not. ...more >>

Crystal Reports C#
Posted by JimD at 5/26/2006 3:04:49 PM
Does anyone have any feedback on the version of crystal reports that comes with VS 2005? I have always just rolled my own reports. However, one app I am working on has a little more complexity to the reports than normal and needs to be able to export to Excel. PDF would be a plus too. I can...more >>

rename "Main Report" in Crystal Report Viewer
Posted by Dentharg at 5/26/2006 2:40:45 PM
Hi! How can I rename this tab in Crystal Report Viewer from "Main Report" to something else? Thanks!...more >>

Xml deserialization problem
Posted by Toco at 5/26/2006 2:25:01 PM
When I try to deserialize a filestream based off a class I have written, I get error back saying there is an error in Xml document. I know for a fact the Xml is well written. Does the serializer require an schema document 1st? There is nothing wrong with the xml file, it is well formed....more >>



Excel Add In
Posted by Dan McCollick at 5/26/2006 2:16:25 PM
Hi all, I am using SharpDevelop to try and create an Excel Add in. Does anyone have any tutorials for going about this? I have a couple from microsoft, but they all refer to setting up the add in, in ms visual studio or visual c#. One of the first steps listed is to click on new project, e...more >>

Bug in exception handling?
Posted by ben NO[at]SPAM peikes.com at 5/26/2006 2:09:31 PM
I have a custom exception class MyException: System.Runtime.InteropServices.COMException { ..... } and code like this try { ..... } catch(MyException ex) { //Some code } catch(Exception ex) { // Other code } I put a break point in the MyException catch block, and another ...more >>

Storing Hash Codes
Posted by Brian at 5/26/2006 1:45:11 PM
I know this is the wrong way to do it, but maybe someone can tell me the right way to do it... I have two different databases that I need to synchronize. The database doesn't have keys exactly, but it does provide a rowid function. So, I am storing a dictionary of <string, long>, stri...more >>

Important question about .NET 2.0 datasets...
Posted by Dave at 5/26/2006 12:45:54 PM
We've created a robust client server application over the past 3 years on the .NET framework version 1.1 using c#. We layed all of our marbles in creating strongly typed datasets and for the most part we are extremely happy we did that. However, there's an incredibly huge bug (in my opinion) ...more >>

Separating WinForm from Logic
Posted by randy1200 at 5/26/2006 12:17:02 PM
I have a WinForm class that has accumulated a tremendous amount of logic code. Can anyone point me toward a good article on factoring logic code out of a WinForm class? Thanks, -- Randy...more >>

Regular Expression
Posted by Kevin at 5/26/2006 12:03:51 PM
Hi! I need to check for a correct syntax of a code that will be executed in the DB. I think thaht the regex is the best way. The code is like this: COUNTIF (([minmeasure] - [avgpreasure]) >= 300 and ([minmeasure] - [avgpreasure] ) < 400 ) I did it this regex, but i don't know how to continue...more >>

Problem with Threading in Win Forms
Posted by bilosta NO[at]SPAM gmail.com at 5/26/2006 12:03:35 PM
Hello to everybody I'm new in win apllications and C#. I have a problem with Threading. Here is my problem: I have a form with button named: BupisiStudente, when I click on it a call next method: private void BUpisiStudente_Click(object sender, EventArgs e) { ...... //calling method fr...more >>

ToPascalCase() ?
Posted by sloan at 5/26/2006 12:01:54 PM
Ok, maybe thats not the best name for a method, but I'm looking for something along the lines of ToUpper() or ToLower() If I have an input like john smith or johN smitH ... Is there a way to cleanly make it John Smith ? Normally, space would be the delimeter, but knowing how...more >>

Seeking Advice for Inter-Application Communication (VB6 to C#)
Posted by Joseph Geretz at 5/26/2006 11:57:55 AM
I need to communicate between two applications. The legacy application is in VB6. New development is in C#. Here's the scenario: The VB6 app will be pumping document files into a folder. We'll be writing a new (C#) class for this new feature. The C# Application (as distinct from the file p...more >>

Drawing in design mode ?
Posted by Billy Bob at 5/26/2006 11:39:44 AM
Hi, Is it possible like Visual Basic that when you are in Design mode so you can add controls etc to a windows form that you can draw on it? like draw a line or a shape? Bob *** Sent via Developersdex http://www.developersdex.com ***...more >>

ADO objects different in C# vs VB?
Posted by Tina at 5/26/2006 11:32:17 AM
Again, I'm manually converting a large vb.net project to C# in order to learn C# and I have another difference I don't understand. I'm using Framework 1.1. I have a strongly typed dataset that was generated from a design time Data Adapter named dsMyDataSet. I'm in a datagrid delete even...more >>

Cant find a windowscontrol
Posted by Patrick F at 5/26/2006 11:27:58 AM
Hi, i am trying to find a windows control, just cant figure out what it is called. (Open a folder with files, right-click and press View->Details, this is the control i want. Like a listbox but with columns. Name Size Type etc Patrick *** Sent via Developersdex http://www.developersd...more >>

Viewing Calendar in a different culture is not working
Posted by Mike9900 at 5/26/2006 11:21:02 AM
Hello, I want to view the calendar in another culture, for example let it show in Arabic. I use this code in the Main, but the calendar is still in the same culture: CultureInfo sa = new CultureInfo("ar-SA", false); sa.DateTimeFormat.Calendar = new System.Globalization.HijriCalendar(); /...more >>

I have problem with word.dll
Posted by live at 5/26/2006 11:09:41 AM
Hi, when i try to open document word for reading and writing with C#, the program stop on this line [ Word.ApplicationClass WordApp = new Word.ApplicationClass(); ] And the program give me this error : 'DefaultDomain' : chargé 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dl...more >>

convert HEX string into integer
Posted by :) at 5/26/2006 10:58:36 AM
Hi all: I have a HEX string such as 0x0010026AB0, I can I convert it into an integer in C#. Does it have some build-in function. Thanks in advance. ...more >>

Seeking simple security example
Posted by Dave at 5/26/2006 10:31:03 AM
I am trying to create a couple of event and a memory mapped file for interprocess communication that have security settings such that they can be used between any two users. I have found some horribly complicated code on the web and have got totally bogged down in scals and dacls. Can someone ...more >>

console or forms
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 5/26/2006 10:30:10 AM
Hi, This is probably a mute point, but id like to know when to choose a console application to a windows application. What i meen is this. Most coding in books is with the console application. I think this is possibly because as a beginner its easier to demonstrate c# principles. But I got to th...more >>

Implementing a DataGridView numeric only column
Posted by Greg at 5/26/2006 10:22:39 AM
I'm new to the datagridview control, and am left wondering how one goes about restricting input to numeric only. Is it possible to trap key presses at the cell level, and in the relevant columns, ignore them if non-numeric? Greg. ...more >>

Converting Between byte[] and String?
Posted by Matt F at 5/26/2006 10:20:03 AM
How does one convert between byte[] and string? MF...more >>

Runtime expression engine
Posted by walter at 5/26/2006 9:37:01 AM
Hi there, I figured that there must be someone knew this-- I'm looking for a runtime expression evaluation engine for our business rule engine. A typical case is passing in a expression at runtime and engine return a bool/ calculated result. I found some code on the internet, like http:/...more >>

Using OracleType.Raw with C#
Posted by john.gillespie NO[at]SPAM singularity.co.uk at 5/26/2006 8:58:52 AM
I am trying to insert a byte array into an Oracle DB. The type of the column in the DB is Raw The C# type I have is a 16 byte byte[] array. Whenever I try to do this I get the following error message: "Type System.Byte[] can not be marshaled as an unmanaged structure; no meaningful size o...more >>

combobox datasource
Posted by Alejandro González at 5/26/2006 8:56:51 AM
Hi I have a combobox binded to a Datatable something like combo.DataSource = dt.DefaultView; combo.DisplayMember = "descField"; combo.ValueMember = "valueField"; it works fine. Now if I update the datatable I want the combo to reflect those changes. I'm trying to rebind the combo doi...more >>

Need help adding reference to Microsoft.Office.Core
Posted by Michael Russell at 5/26/2006 8:40:44 AM
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. To do this, I created a reference to "Microsoft Excel 11.0 Object Library", and have a "using E...more >>

Regex - Combining statements
Posted by Dave at 5/26/2006 8:21:02 AM
I am trying to create one RegEx pattern, something like, \s*(?<typename>\S*){1}\s*(?<varname>\S*){1}\s*[;|=]{1}\s*(?<varvalue>.*)[;]* out of the following 2 expressions and am not having much luck. Expressions ----------------------------- (?<typename>\S*){1}\s*(?<varname>\S*){1}\s*[;]{1} ...more >>

How to marshall an an array of strings between C# and a C++ dll?
Posted by Rajesh at 5/26/2006 7:36:05 AM
Hi All, I'm having problems marshalling an array of strings between C# and C++ C# [DllImport"ABC.dll", EntryPoint = "Func",ExactSpelling = false)] static extern void Func(out IntPtr num, ref IntPtr str); IntPtr strPtr = IntPtr.Zero; IntPtr num = IntPtr.Zero; Func(out num, ref s...more >>

Debugging C# in Excel Add-In
Posted by pagates at 5/26/2006 7:35:02 AM
Hello All, [ This was originally posted in the microsoft.public.excel.programming newsgroup, but did not receive any replies ] We have developed a control in C# that is used in an Excel Add-In. It appears to work correctly, and the Add-In continues to function after using it. However...more >>

Is it possible to make empty datagridview rows visible?
Posted by Greg at 5/26/2006 6:22:41 AM
I have a datagridview that will not always have all its rows populated with data, but they all need to be visible. Currently, the grid is only showing rows with data. Is there a way to override this behaviour? Greg. ...more >>

Language improvement: Add scope to class member fields
Posted by WXS at 5/26/2006 5:07:01 AM
Vote for this idea if you like it here http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5fee280d-085e-4fe2-af35-254fbbe96ee9 ----------------------------------------------------------------------------- This is a consortium of ideas from another thread on topic --------...more >>

How to change disable color for Checkbox???
Posted by Matrixreloadedth NO[at]SPAM gmail.com at 5/26/2006 4:35:01 AM
How to change disable color of Checkbox??? I have a checkbox with forecolor in red but when i disable by set Enable properties to false forecolor is changed to gray color but i don't want it. how to make disable color as the same before set enable = false Anyone can help me????? ...more >>

Arrays of classes or structs, which is best
Posted by Macca at 5/26/2006 3:29:02 AM
Hi, I have a number of queue structures. I want to have multiple instances of these, i.e Instance 1 Instance 2 Instance 3 ... ------------ ------------ ------------ queueA queueB queueC I was thinking of usind a st...more >>

ASP.NET Generic template
Posted by Celine at 5/26/2006 1:52:41 AM
I still failed to pass DataTypes as parameters, as in the following 3 examples: this.mainObject = (mType)Session[mName]; this.mainObjectDt.AddMainObjectRow(this.DataSet_GUIDs_C1Row); mainObject.UpdateMainObject(ref DataSet_GUIDs_C1DataTable) See the big picture here: ...more >>

How to delete a file at a remote web location.
Posted by JohnSouth at 5/26/2006 12:17:59 AM
Hi I've a C# windows application that scans for XML files at a remote URL address and downloads them to the local machine when they arrive. I can do that OK with HttpWebRequest or WebClient. After they've been downloaded I want to delete them from the remote location (or if not possible, m...more >>

How to limit just one C# application on windows xp?
Posted by Jason Huang at 5/26/2006 12:00:00 AM
Hi, In my C# windows form application project, I built MyApp.exe and installed on client's Windows XP. Is it possilbe to limit just one MyApp.exe runnig on client's PC? And how? Thanks for help. Jason ...more >>

beginner: Windows form Q
Posted by scroopy at 5/26/2006 12:00:00 AM
I've created a form, MyForm, which Program creates an instance of in Main() like this: Application.Run(new MyForm()); but how do i get access to the instance of MyForm the app is using so i can use its methods? ta...more >>

Insert an Image to a dataGridView column
Posted by Marc Solé at 5/26/2006 12:00:00 AM
Hello, I want to insert an image to a specific column of a dataGridWiew. I explain what I'm doing: - I define the ColumnType as a DataGridViewImageColumn. - I select the image (an icon of open folder). When I accept, in the design form, appears in the ImageColumn the typical red cross of...more >>

DllImport and error handling
Posted by Torben Laursen at 5/26/2006 12:00:00 AM
I am calling a c++ dll using DllImport and is loading a number of functions. I all work fine but I need the code to be able to react to a case where the dll is missing or some of the functions are missing. My C++ code looks like this: if(!Dll_) Dll_ = LoadLibrary(dllname_.c_str()); ...more >>


DevelopmentNow Blog