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# > january 2006 > threads for wednesday january 4

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

Dyn loaded files and owner status window
Posted by GTi at 1/4/2006 11:36:37 PM
I have a main exe program that have a status window. This exe program loads several dll files with Assembly.LoadFile. I want now this dll files to send my exe program messages so I can display it on my status window. Is there any way I can call a class in my exe program from dll files? The dll...more >>


devexpress tree list - incremental search
Posted by Roman at 1/4/2006 11:01:31 PM
hello i was trying to find something about it, but without success. What would be the simplies way to implement incremental search in developer express tree list component? thanks for any advices luke ...more >>

managed DirectX user interface (ui) library suggestions?
Posted by Aidan Fraser at 1/4/2006 7:49:32 PM
Hi, Can anyone recommend any decent .NET UI libraries that work [well with] Managed DirectX? Preferably with C# source available, but this isn't a must. I'm currently checking out a lib called 'MCDX', which looks relatively comprehensive at first glance. Any other suggestions would be very ...more >>

Invisible Event
Posted by Paul Cheetham at 1/4/2006 6:44:29 PM
Hi, I have created a custom component in c#, and I have added a new event to it. I have a problem however in getting the event to show in the event list in the properties window. I have declared the event as follows: public delegate void DownChangeDelegate(object sender, bool DownState...more >>

Application Method Tracing
Posted by Matt at 1/4/2006 6:05:24 PM
I have inherited an application that I am not very familiar with and I would like to know if there is a way to produce a trace of what methods were called and the order in which they executed for particilar instances. Nothing fancy just something that would maybe log each method to a file as ...more >>

Enumerate what was collected by the GC?
Posted by mark r. at 1/4/2006 6:04:48 PM
Hi, all: I know it's strongly recommended against, but I believe my application runs much more smoothly if I call GC.Collect() in a worker loop. If I omit the call, I get an OutOfMemoryException from Graphics.DrawImage() halfway through. The loop in question is creating, resizing, and dr...more >>

Validating parameters to Web Service
Posted by Jackie W at 1/4/2006 5:38:15 PM
Has .NET any XML-based validation framework or tool classes to validate parameters passed to an Web Service? I need only couple of types validation - is parameter passed to Web Service method empty - does parameter belong to certain value set which is mentioned earlier somewhere in XML fil...more >>

debugging problems
Posted by Steve at 1/4/2006 5:15:16 PM
anyone know why my debugger has stopped working. all i get is the JIT debugger cheers guys shiznit ...more >>



CLSID Exception
Posted by Marcel Hug at 1/4/2006 5:01:05 PM
Hi NG ! I use a COM-Lib from Lotus Notes Domino. If I initialize a NotesRichTextItem i get the following exception: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in messagemaintainer.dll Additional information: COM object with CLSID {29131533-2EED-1...more >>

re-post on what tab controll to recommend?
Posted by netsql at 1/4/2006 4:33:28 PM
as per ms, we should use 3rd party tab controls (to set background color of control, right/left, sliding animations, etc.) what's a good tab control recommendation? tia, ..V...more >>

Monitor Message
Posted by Dave at 1/4/2006 4:18:17 PM
Is there a way to receive a message when the monitor turns on/off? Such as in wndProc? I want to run some code after the monitor turns back on. And when the mouse moves or the keyboard moves it turns on the monitor so i will never know when the monitor turns on unless a message gets fired back...more >>

Create add in
Posted by SimonZ at 1/4/2006 4:06:22 PM
I would like to create add-in for outlook which will add a button to message toolbar. When user clicks on that button I would like to show him a form with some data from database. When user select the right data on that form than I'll save the message to database or some folder on disk r...more >>

tab control recomendation
Posted by netsql at 1/4/2006 3:47:31 PM
as per ms, we should use 3rd party tab controls (to set background color of control, right/left, sliding animations, etc.) what's a good tab control recommendation? tia, ..V...more >>

Reflection
Posted by Roy Gourgi at 1/4/2006 3:17:57 PM
Hi, Someone suggested I try this, but I still get the error message: No overload for method 'Invoke' takes '0' arguments What am I doing wrong? using System; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Text...more >>

System.Management
Posted by eric at 1/4/2006 2:26:14 PM
I'm writing a program in C# and found a couple of threads about how to check the status of a printer before sending it any data, to ensure that the printer is ready to print. They say to include the System.Management namespace. This is where my problem is, I have no System.Management namespace...more >>

Quick Console?
Posted by David Veeneman at 1/4/2006 2:25:14 PM
Did the Quick Console window make it to the RTM version of VS 2005? I can't find it on my VS 2005 Pro menus. Thanks David Veeneman Foresight Systems ...more >>

String Manipulation
Posted by INeedADip at 1/4/2006 2:03:06 PM
How can I change a particular char at a given index.... I want to do something like: strText[2] = 'b'; But apparently the "strText[2]" is readonly? Is there another way to get access to a particular character? ...more >>

Strange error in VS 2005, .NET CF 2.0
Posted by Daan at 1/4/2006 1:38:01 PM
We are using Visual Studio 2005 to create a .NET Compact Framework 2.0 application. In our solution, we have several projects. Sometimes, when trying to build the solution, we get the following error: The "GenerateResource" task failed unexpectedly. System.InvalidOperationException: Collecti...more >>

Deleting a Datagrid column
Posted by Nick at 1/4/2006 1:14:02 PM
Hello, Please pardon my ignorance as I'm sure this is easy to do. I have a datagrid where I want to let the user delete columns. I added a context menu to the datagrid that has a delete option. If the user right clicks on a column heading can I highlight that column and then delete it? I'm ...more >>

Serialization of an object containing LinkedList
Posted by Justin Crites at 1/4/2006 1:09:52 PM
I have an object which I want to be serializable. I have marked with with [SerializableAttribute]. The object only has a single data member, which is a LinkedList<int>. This linked list is a private member and cannot be exposed publically without violating encapsulation of the class. If I ...more >>

C# equivilent for Asc and Chr
Posted by INeedADip at 1/4/2006 1:06:10 PM
'Asc' returns an Integer value representing the character code corresponding to a character 'Chr' is the inverse and returns the character associated with the specified character code What are the equivilents in C#? ...more >>

notification about DB changes
Posted by Marty at 1/4/2006 1:05:13 PM
Hi, I have an application bound to a database through ADO.NET, how can it be notified when the database content is updated by a third party ? If you have any idea or link that I could read I would very appreciate. If ADO.NET is not the solution, with which engine can this be done? Tha...more >>

Shrink .jpg to a new file
Posted by Mark at 1/4/2006 1:02:59 PM
I'd like to automate the process of shrinking .jpg files using C#. I'd like to point at 1000 files, shrink them to 30%, and then resave the new files. I've seen the Graphics.DrawImage method, but this appears to be used for display only? What classes/method would be most useful? Thanks ...more >>

Unique key constraint in ADO.NET
Posted by Bruce Wood at 1/4/2006 12:59:15 PM
I know that this isn't a C# question, but I can't find a newsgroup specifically devoted to ADO.NET, other than a moribund one that deals with ADO in general. This problem is driving me to distraction. Maybe someone else has run across the same thing. I'm using ODBC to build a joined table i...more >>

cannot find forms.cursor??
Posted by wtfxxx NO[at]SPAM gmail.com at 1/4/2006 12:45:48 PM
I cannot find the cursor property of the form... under the initialization i try: this.cursor = ... but that gives me an error saying it does not have such property. Under the drop down menu that comes down after "this." there really is no cursor property. What am I missing?? Currently d...more >>

I need a cookie to be sent by e-mail
Posted by Igor Thernov at 1/4/2006 12:38:31 PM
I need a cookie to be sent by e-mail. So that by opening such a mail a cookie would be stored in appropriated place by client. Then the subsequent requests from this client to corresponding web-resource would use this cookie. How such an e-mail should be composed? Best regards, Igor. ...more >>

Good Book for learning C#
Posted by pp at 1/4/2006 12:33:02 PM
Hi, I want to buy a book for learning C#, do you have any ideas? Tanks, Paulo Praça...more >>

Querying the current assembly for version info
Posted by Nate at 1/4/2006 12:24:02 PM
I'm trying to figure out how to query an assembly (in this case an aspx code-behind DLL) for its current version (major, minor, build, ...), and basically expose it as a property... public string Version { get { string version; version = ....; // code to extract version info ...more >>

how TcpLinstenr is fired in windows service
Posted by TulasiKumar at 1/4/2006 12:23:48 PM
Hi all, What is my requirement is i want to get the TCPIP data from TCP Port.I had written the code in c#.Net.What i had written the code is pasted below.what i written the code is correct or not according to my requirement.Using this code i didn't get any TCPIP pcakects data.Any one can modif...more >>

Encryption Question
Posted by INeedADip at 1/4/2006 12:08:51 PM
I was able to use the different Crypto providers to encrypt data, but this is a little too much. The encrypted strings are too long. I don't need this to be REAL secure. This is what we used in VB.NET, and I would like to convert it to C#..any help would be greatly appreciated: 'The functio...more >>

What is the SPAM Policy of these groups?
Posted by Peter Olcott at 1/4/2006 11:46:34 AM
I have a new software product that I need to promote. I want to get the maximum exposure. This product is very relevant to all the MS Windows programming groups. How can I best promote this new software for maximum exposure without violating any SPAM policies? Thanks ...more >>

Can I find the installation dorectory from code
Posted by Dave at 1/4/2006 11:46:02 AM
I want my app to create a file in a convenient exisiting folder. The logical place to craete it would be the application's installation folder. Is there any way that an application can get the path of its own installation - or, equivelantly, the path from which it was run. (I was going to use ...more >>

Re: Plotting a graph using an array of relatively linked nodes
Posted by Marc Gravell at 1/4/2006 11:39:59 AM
(aside: I notice that when moving east you don't check west, so ignore my A, B example, but I can still imagine a circle with 4 nodes) (aside: running with your existing code (i.e. without a major rewrite), you could possibly use an enum instead of a string for dirFrom - it would probably b...more >>

Referencing a Form after it is created...
Posted by RSH at 1/4/2006 11:31:17 AM
Okay in my coninuing forms saga I have a situation where I am spawning a new form from my main form: ////////////////////////////////////////////////////////////////////////////////////// frmFindReplace frmFind = new frmFindReplace(this); frmFind.Show(); bFRVisible = true; ///////...more >>

Not completing a using block
Posted by Paulustrious at 1/4/2006 11:22:02 AM
Is there any difference in resource usage (or rather disposal between) using (something resource intensive) { DoSomething() } return ....and.... using (something resource intensive) { DoSomething() return } -- Paul...more >>

Looking for pop3 proxy in c#
Posted by TOMERDR at 1/4/2006 11:17:20 AM
Hi, I am looking for pop3 proxy in c# or guidelines how to write such. in generel my proxy will delete or alter some messages. Thanks in advance ...more >>

unsafe code and array
Posted by Jerome at 1/4/2006 11:07:30 AM
Hi all, I *have* to use unsafe code, but I have a questions : it seems I can't use delete to free something like : int * myarray = new int[size]. What should I do if I wanna create/delte/resize such an array ? I'm afraid I didn't get all about the unsafe code ! Clearly, how should I use the...more >>

RECT - Rectangle
Posted by Mythran at 1/4/2006 11:07:12 AM
I have a question regarding the RECT structure required for PInvoke calls. I was reviewing the Rectangle structure (System.Drawing.Rectangle) and it occurred to me that I may be able to use this structure in place of defining a RECT structure. I would create the RECT structure definition the ...more >>

checked listBox
Posted by Hrvoje Voda at 1/4/2006 10:49:07 AM
How to remove only selected item? Hrcko ...more >>

Missive
Posted by nikool19a NO[at]SPAM yahoo.com at 1/4/2006 10:18:13 AM
FRIEND, As are you, Brandon and www.ChezBrandon.com are intelligent and awesome. May you have an awesome day. A succinct warning: Elements of the Mossad, sated with cash from the murderous and destructive narcotics trade -- for example, according to Reader's Digest, cocaine alone costs US ...more >>

Switch statement alternative
Posted by Roy Gourgi at 1/4/2006 10:05:05 AM
Hi, Sorry I though that it was quite trivial what I was asking but I guess not, I will explain. :) What I meant is to call methods (and not classes, that was a misnomer sorry) in a class that differ only by a number. The reason as I am looking at it right now (that might change later upo...more >>

Creating MVC with Observer-Pattern
Posted by Marcel Hug at 1/4/2006 9:40:28 AM
Hi NG ! I have already written a task about MVC and I tried to get the best informations together. I would like to implement the MVC pattern and it work on the way I did it. At first i know the MVC-ipmlementation from the JAVA by using the observer-pattern. I used an interface IObservable ...more >>

VB6 -> .NET Roadmap Questions
Posted by Old VB6 Guy at 1/4/2006 9:30:11 AM
First of all, sorry if crossposting bothers you -- I don't normally do it, but both of these groups seem relavant to my questions. Alright, the time has finally come to make an investment in time and money to jump start my career again. I am currently a VB6/ASP programmer, but worse yet, I am...more >>

Most efficient way to insert 1,000,000 records?
Posted by chrisben at 1/4/2006 9:24:02 AM
Hi, I need to insert more than 500,000 records at the end of the day in a C# application. I need to finish it as soon as possible. I created a stored procedure and called it from ADO to insert one by one. It is kind of slow (seems slower than using a DTS package to import from a file). ...more >>

switch statement alternative
Posted by Roy Gourgi at 1/4/2006 9:21:52 AM
Hi, My program has to be able to call on many classes that differ only by a number and rather than use a switch statement I was wandering if it is possible to do it in C# as it is possible in other languages. For example, if I want to call any one of 100 different classes named clsNo1, cl...more >>

HttpWebRequest Hangs
Posted by mwieder NO[at]SPAM gmail.com at 1/4/2006 8:54:26 AM
The following code hangs at the GetRequestStream after a few loops of succesful execution: while (true) { HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(new Uri(strUri)); //add headers here httpRequest.Method = "POST"; httpRequest.Referer = strReferer; httpRequest.ContentT...more >>

C# Equivalent to C/C++ static variable in a function?
Posted by John Kelsey at 1/4/2006 8:31:57 AM
Back in the "old" C/C++ days, I used to declare static variables inside functions. Something like... // just a silly example to demonstrate the technique int foo(void) { static int NextVal = 0; NextVal = (++NextVal) % 317; return (NextVal); } I use this technique/style for ma...more >>

Caricare datagrid da un altro thread
Posted by Alex at 1/4/2006 8:26:12 AM
Ciao a tutti, sto sviluppando un applicazione windows, in breve all'interno dello stesso namespace ho un form con una datagrid e un thread che effettua dei controlli e "dovrebbe" caricare i dati sulla datagrid stessa. - nel namespace ho dichiarato un riferimento al form in questo modo: pr...more >>

HttpWebRequest.GetResponse Error and useUnsafeHeaderParsing
Posted by MikeZ at 1/4/2006 8:19:22 AM
I post this question last week, no good answer, so I post again. Sorry about this. I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a VS2003 project. I got HTTP violation exception on some of the machine. So I did the research, and found to put <useUnsafeHeaderParsin...more >>

Getting users from a specifc AD group
Posted by egholm NO[at]SPAM gmail.com at 1/4/2006 7:28:59 AM
I want to get a list of users from a specific AD group. I use this code: **************************************************************************************** SearchResult result; DirectorySearcher search = new DirectorySearcher(); search.Filter = String.Format("(cn={0})", groupName); sea...more >>

Roles question
Posted by Steven Blair at 1/4/2006 7:27:26 AM
I am writing an application using the ASP.NET Configuration Roles and Users. The problem I have, in my C# I need to work out which type of user just logged in. I am currently using: string[] role = Roles.GetRolesForUser(); This give me a string "Administrator" etc. My C# code looks lik...more >>

.Net Web Browser
Posted by mwieder NO[at]SPAM gmail.com at 1/4/2006 7:19:19 AM
Does anyone know of an implementation of a web browser that will allow programmatic control? Specifically, I need access to read the cookies collection (session cookies included) and control the browsing to various pages. I'd prefer managed code, but I'd settle for unmanaged as well. I've loo...more >>

InvalidOperationException: The object is currently in use elsewher
Posted by Sharon at 1/4/2006 6:55:02 AM
I have a DataGrid control on a Form. The data of the control is added by another application by Remoting. It means that a worker thread is invoking a UI thread. Therefore I used a delegate in the Form invocation like this: public delegate void AddDefectEventHandler(string xmlDefect); public...more >>

Logged on desktop user?
Posted by GTi at 1/4/2006 6:16:16 AM
Is there any way I can find out if there is any user logged on the desktop from a service? ...more >>

Exception handling with Modeless dialogs
Posted by john doe at 1/4/2006 4:17:46 AM
I have the following code: private void LaunchForm() { Form1 form1 = new Form1(); form1.Show(); } My question is, where does form1 "go" once the method has exited? Specifically, I'm interested in not having to put try/catch blocks inside every method of my form, but rather have o...more >>

How to disable the pop-up control/system menu?
Posted by Sharon at 1/4/2006 4:08:02 AM
In the Form there is the Control/System menu. I wish to prevent this system menu from poping-up although the minimize, maximize and close buttons is still shown on the Form caption bar. How can I do that? ---------- Thanks Sharon...more >>

How to prevent roundiing in NumericUpDown
Posted by Avi at 1/4/2006 3:37:29 AM
Hello All, I am using NumericUpDown control. I have set Decimal places property to 3. Problem is that when I programatically assign it a value which has 4 digits after decimal point , it rounds the value to 3 digits. E.g. 0.0695 --> 0.070 How can I prevent this rounding? I want the value to ...more >>

Export to Excel using XMLSpreadSheet Language
Posted by vijay babu at 1/4/2006 3:31:24 AM
Hi, I'm developing asp.net web application and doing some part of the Export data to Excel using XMLSpreadSheet Language. But, I'm unable to set some new properties like autowidth for cell and color formats for cell. Can any one give some good links or examples using XMLSS for the ...more >>

Multilingual Resource dlls
Posted by va_acharya at 1/4/2006 3:09:14 AM
I have given multilingual support to my winform application, everthin is working fine, but when i compile my project it generates multipl resource dlls for all the languages. Is it possible to combine or merge all the resource dlls of all th languages in one single dll. Visha -- va_a...more >>

GetTokenInformation
Posted by plmanikandan NO[at]SPAM gmail.com at 1/4/2006 3:05:09 AM
Hi, I need to check the SE_TCB_NAME previlige for the current user using GetTokenInformation api call.i used the api call and get the privilege,but i am unable to go thru each previlege to check whether SE_TCB_NAME is enabled or not.my code is below[C#} using System; using System.Drawing; ...more >>

How to replace 1000 different values in 250 files in a fast method?
Posted by serge at 1/4/2006 1:34:00 AM
I managed to put together C# code and have it do the following: 1- Get all the table names that start with the letter "Z" from sysobjects of my SQL 2000 database and put these table names inside an array variable. 2- Loop through each table name inside the array 1 to 1000 tables 3...more >>

HttpWebRequest and HttpWebResponse
Posted by sridev at 1/4/2006 1:10:48 AM
hi all, i have a c# application.In that i am using the httpwebrequest and httpwebresponse class to send request and to get the response. In the uri i am directing it to a aspx page.In the aspx page i have generated an xml file.And using the two classes i am getting the result per...more >>

how to communicate between MC++ and C#
Posted by Nuno at 1/4/2006 12:22:07 AM
Hi I have some legacy code written in C++ and I am trying to add a GUI (plus some other functionalities) using C#. Thus the problem that I am facing is to have C# and C++ live together. I am thinking that the 2 worlds would communicate using a managedC++ layer. So in C# I have some utilit...more >>


DevelopmentNow Blog