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# > july 2006 > threads for monday july 17

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

Generic Lists
Posted by Robert Bravery at 7/17/2006 10:59:14 PM
HI all, If I have a generic list of values. How do I find values in that list Thanks RObert ...more >>


Draw text on, split, join, and page count on tiffs
Posted by Benny at 7/17/2006 10:36:17 PM
Ok, this has been asked over and over again....but i have to ask because there has to be a better way (without spending $$). First things first, I'm running many (thousands of) tif images through an application I have been building. So far, i have used the Image.GetFrameCount to get page count...more >>

can u help me
Posted by mahdi.lotfi.iust NO[at]SPAM gmail.com at 7/17/2006 10:25:11 PM
i want to develop a plugin for MS office is it possible with CSharp i dont find any thing in msdn 2005 but i find a software "addin express" can it help me??? TNK ...more >>

Class
Posted by Gian Paolo at 7/17/2006 8:33:39 PM
Hi all c# vs 2005 i have a win form for login and a class to validate te login. I would like to know ho to make the class that it can recieve two value (user and pass) and can give back if the useser exist, if the pws is right and eventually if there was db connection problems. tha...more >>

Databinding
Posted by Alan T at 7/17/2006 8:30:57 PM
I will create a dataset programmatically, how do I attach it to the controls like text box? ...more >>

Installer Security Key
Posted by garey.taylor NO[at]SPAM gmail.com at 7/17/2006 6:43:38 PM
Hello, I've created a Visual C# application using Visual Studios 2005 and I would like to add some installation security. I want the user to enter a security key when then try to install my program. Does anybody know how to do this? Thanks, Garey ...more >>

Reponse.Redirect vs Server.Transfer
Posted by Steven Nagy at 7/17/2006 5:58:44 PM
Hi all, What are the major considerations when considering Server.Transfer? I have some legacy apps (when I say legacy, I mean ASP.NET1.0) that use Server.Transfer for almost everything. I always thought Response.Redirect was better because more of the items are GCed. So I am rethinking about...more >>

Drag ListViewItem onto desktop/win Explorer (C#)
Posted by Xlay at 7/17/2006 5:58:31 PM
I need to permit the users to drag an item from a ListView control of my form onto the desktop/win explorer. However, I also need to do some pre-processing and manually place the files into the location. Basically, it seems all I need to do is determine the path where the user has dragged the it...more >>



StringFormat issue.
Posted by Jens Jensen at 7/17/2006 5:32:58 PM
Hello, I have a webservice that performs some financial calculations. I use String.Format("{0:n}) to presents the numbers in the culture specific format. This works fine on my dev machine which runs win xp in Danish.(running the webservice locally and consumming it there). My windows 20...more >>

Access to the registry key 'Global' is denied
Posted by Dylan Parry at 7/17/2006 5:25:10 PM
Hi folks, I've just got a new machine at work, so I've spent all day copying across all of my work from my old machine. Now I've come across a problem that I've never seen before. I now get the following error when I attempt to run one of my sites: "Access to the registry key 'Globa...more >>

How can I get a list of all domains existed in a Forest?
Posted by Pucca at 7/17/2006 4:28:01 PM
Hi, Can someone show me an example code of how to get a list of all domains existed in a Forest? -- Thanks....more >>

security issue
Posted by huz at 7/17/2006 4:16:59 PM
Hi, after reading about decompiling, and other stuff, i need some advice on how to store data for my appliactions.. this is what i need: i want my programs to have some passwords and usernames for accessing some other services on net, and i need a method, or few examples that will preve...more >>

vb to c# dll
Posted by segue at 7/17/2006 4:16:01 PM
What's a good way to get to these groups dotnet.languages.vb and csharp, I hate scrolling the udl. I'd also like to see my references in a folder in the solution explorer like I used to in VS2005. The references are no longer visible for some reason unless I use project references. ...more >>

Paint event not firing on usercontrol!!!
Posted by Peter Row at 7/17/2006 4:10:11 PM
Hi, Okay here is the setup: - I have a Form which has 2 panels and a splitter on (options, content panels). - I have custom UserControl which has a panel on it and 2 buttons. - On the above UserControl I do some painting I have tried putting it in: - protected override void OnPaint(Pain...more >>

is virtual necessary when inheriting from an abstract class that impmlements an interface?
Posted by Dan Holmes at 7/17/2006 3:59:55 PM
Suppose i have this class declaration: public abstract class ConfigurableComponent : Component, IConfigure if IConfigure has a method with this signature: List<Parameter> ListParameters(Identity identity) Would i need to implement it in the abstract class with as virtual in order for...more >>

Circle...
Posted by pigeonrandle at 7/17/2006 3:42:53 PM
....as in i seem to be going round in one. It's frustratingly small aswell! All i want to do is create a message hook (like the one SPY++ uses) so i can watch a window (for which i already have the handle) for certain messages. All the examples i have looked at seem only interested in hooking...more >>

How do I know if a directory entry has no children object?
Posted by Pucca at 7/17/2006 2:02:02 PM
I'm building a treeview and a list view. I need to know when I reached the end of the tree nodes, which means that node or directory entry has no children. Is there a property or method in DirectoryEntry class that does this? If not, how can I verify this? -- Thanks....more >>

Form displaced in japanese Windows XP
Posted by juergen at 7/17/2006 1:25:06 PM
Hello, I have a C# (.Net 1.1) application. The main Form looks fine on my english and german Windows XP (SP2). It also looks fine on these systems with japanese fonts installed. But if I start my application on a real japanese Windows XP then everything in the form is misplaced. The horizon...more >>

Static Classes extending Abstract Classes
Posted by Brybot at 7/17/2006 1:05:07 PM
Apparently it is not possible for a static class to extend an abstract class? I was wondering how else I might be able to go about my problem here? I have a base class Parent which has a static method and an abstract method. public abstract class Parent { public static bool True() ...more >>

Parsing Comma-delimited records?
Posted by VMI at 7/17/2006 12:58:02 PM
I'm parsing a comma-delimited record but I want it to do something if some of the string is between "". How can I do this? With the Excel import it does it correct. I'm using String.Split(). Basically, this is what I want to do: Use string.Split() on the whole string UNLESS the string is in ...more >>

Timer and Theading question
Posted by kimberly.walker NO[at]SPAM consultant.com at 7/17/2006 12:44:29 PM
I have a console application that calls 2 different delegates (Timers). The 1st Timer runs every 30 seconds this checks emails if there is an email it inserts the email into sql server. The other timer runs once a day that connects to the active directory and gets information from it and inser...more >>

Can I use Pinvoke for a dll that calls a COM component?
Posted by Pucca at 7/17/2006 12:43:03 PM
I have a program that originally compiles into a exe file. I changed the compile option to generate dll file. This program calls a com component. Can I use pinvoke in C# to call it? The following is the main dll file. #include "stdafx.h" #define MAX_ADSPATH_CHARS 2048 //************...more >>

Remoting architecture and serialization
Posted by Padu at 7/17/2006 12:32:15 PM
Hi, I'm designing a system in C# and I believe the .net framework will simplify my task. Let me give you a background of my app first: Client: Has a collection of certain objects called "Command". Commands may be saved (serialized) to a local disk, loaded later and then sent to a host for...more >>

Cleaning up COM objects
Posted by Frank Rizzo at 7/17/2006 12:31:40 PM
I've seen code that in addition to calling System.Runtime.InteropServices.Marshal.ReleaseComObject on all the allocated COM objects also call GC.Collect. Do I need to do that, or is it overkill? This is in a Console Application situation. Example: oXL.Quit(); System.Runtime.InteropSer...more >>

como hacer un panel transparente???
Posted by denet iglesias at 7/17/2006 12:27:05 PM
hola: yo quisiera saber como puedo hacer que un panel se ponga transparente poco a poco, pero que ademas se pongan transparentes los controles que estne dentro de el, por ejemplo un picturebox y un label, yo he logrado que el panel se ponga transsparente pero no los controles dentro de el... ...more >>

Error on databindings in Visual Studio
Posted by RMorgan at 7/17/2006 12:20:47 PM
Attempting to databind any property of any control on any form in the entire solution in the designer and I recieve a messagebox error, "Object reference not set to an instance of an object." My only option is to click OK. Design-time databinding used to work just fine in my environment. Not ...more >>

compiling..
Posted by maya at 7/17/2006 12:16:42 PM
hi, I'm following example 'Intro7.aspx' here, http://www.csharpfriends.com/quickstart/aspplus/doc/webformsintro.aspx#customctrls it says on top of Acme.cs "namespace Acme" I assume this means Acme.cs has to be in a dir called 'Acme'? (am assuming namespace is equiv to Java's packages; is...more >>

How to get RowID from DataRowChangeEventArgs?
Posted by Brett Romero at 7/17/2006 12:07:25 PM
I see it as private in e.Row._rowID. is there a way to get this from DataRowChangeEventArgs? Thanks, Brett ...more >>

How to add a constraint of Nullable Types to a generics method
Posted by Joe Bloggs at 7/17/2006 11:11:11 AM
Hi, compiling the following code: public class App { static void Main() { int? x = 5; bool? i = null; Console.WriteLine(GetType(x).FullName); Console.WriteLine(" x={0}", GetSafeValue(x)); Console.WriteLine(" i={0}", GetSafeValue(i)); Console.ReadL...more >>

Noob question...
Posted by rhaazy at 7/17/2006 10:54:13 AM
I have a windows form that loads and displays a dialog box... The user inputs a few strings into this dialog box. I want to be able to store these strings and make them accessible to the scope of the entire application. So my question is how do I make reference to a string that was initit...more >>

Looking for Hooking
Posted by pigeonrandle at 7/17/2006 10:35:39 AM
Hi, Is it possible to hook another application's WM_MOVE messages using c#? There seems to be some argument as to what messages you can hook and whether you can listen in on other app's messages using .net. I'm just looking for a straight answer really? Thanks, James Randle ...more >>

.NET Remoting with Multiple Channels
Posted by breeto NO[at]SPAM yahoo.com at 7/17/2006 10:35:25 AM
If you've configured .NET Remoting to use more than one channel of the same type, for example two TcpClientChannels with unique names, when you want to create a proxy to a remote object how do you specify which channel you want that proxy to use? Thanks in advance. ...more >>

serialize/deserialize object into string
Posted by Val at 7/17/2006 10:16:01 AM
How can I serialize/deserialize an object into a string. Existing examples seem to be showing this operation for files only. Thansk...more >>

Passing parameters to Oracle stored procedure?
Posted by taohuang.tamu NO[at]SPAM gmail.com at 7/17/2006 9:49:34 AM
I'm trying to call a parameterized stored procedure in C# using microsoft ODBC .NET. Could you please give me some help or hint? Thank you very much! C# code: .... //connection code odbcCommand.CommandType = CommandType.StoredProcedure; odbcCommand.CommandText = "BEGIN myProc(?, ?); END;"; ...more >>

"Trying to revoke a drop target that has not been registered"
Posted by Digitek at 7/17/2006 9:19:02 AM
Hello, I have a big problem to print an html file directly to the printer. I use an "AxSHDocVw.AxWebBrowser" object. Briefly, this is my code: AxSHDocVw.AxWebBrowser myBrowser; .... //this set of instruction prepare my document in html to be printed string HtmlFileName = "Test.html"; Obje...more >>

datagrid column sort
Posted by anterosousa at 7/17/2006 8:49:09 AM
Is there a way I can send a click event to a datagrid. I want to simulate a user clicking on a heading to sort the display. ...more >>

New array of dataRow[]
Posted by Niron kag at 7/17/2006 7:02:02 AM
Hi, I have a loop an in the loop I populate an array of dataRow. My problem is the array keeps its values from previous loop, and its Length gets bigger every loop. My code is: DataRow[] foundRowsAct; sSQL ="SQL STATEMENT"; foundRowsAct = dtACTIVITIES.Select(sSQL); I tried to write i...more >>

Visual Source Safe 6c Versioning
Posted by Chris Fink at 7/17/2006 6:54:01 AM
Our team is using VS.NET 2005 and Visual Source Safe 6c. We keep all of our source code in Visual Source Safe and version our applications using the assemblyinfo file. My question is this: Is there a way to version an app using VSS and lock it down a specific version or check-in from any ch...more >>

Loading Windows Forms App using reflection
Posted by DaveK at 7/17/2006 6:31:04 AM
I am developing a Windows Forms App in C# (2005). Rather than install the app on each client and then have to update each client with new versions, is it possible for each client to dynamically load the required exe and dlls at runtime from a server on a LAN (not over the web)? This would allow ...more >>

[ANN] edtFTPnet/PRO 3.0 released - includes support for SFTP
Posted by javaftpclient NO[at]SPAM yahoo.com at 7/17/2006 5:59:16 AM
Enterprise Distributed Technologies Ltd is very pleased to announce the immediate release of edtFTPnet/PRO 3.0 - a major upgrade to EDT's popular software library for embedding secure file transfer functionality in .NET applications. edtFTPnet/PRO 3.0's major new feature is SFTP support. edtFT...more >>

convert image to byte array and the other way?
Posted by piggy at 7/17/2006 5:56:01 AM
I am trying to convert an image to an byte array (tobytes() method) and from byte array back to an image (frombytes() method). The problem i have here is say the image size is 285 bytes but the total bytes is 635. I know it would include the header but the header should be the same size rega...more >>

Getting enum value through enum type
Posted by Harris at 7/17/2006 5:18:11 AM
Dear all, I have the following codes: ====== public enum Enum_Value { Value0 = 0, Value1 = 10, Value2 = 5, Value3 = -1 } private void comboImageType_SelectedIndexChanged(object sender, System.EventArgs e) { setCombo(comboValue, typeof(Enum_Value));...more >>

Help with a pattern
Posted by Spondishy at 7/17/2006 5:03:12 AM
Hi, I have a problem with a pattern that has probably been solved a 1000 times before, but I'd appreciate some advice. I have a scenario where I have a couple of data classes with getters and setters called HTMLLink and DocumentLink classes, which are extended from a LinkBase class. I'm wa...more >>

Java socket communication
Posted by jediknight at 7/17/2006 4:37:09 AM
Hi, I am trying to establish whether I can have a C# socket server and Java socket clients. From all the examples I have seen on the web refer to Java Servers and C# clients. Can anyone point me in the direction of a C# socket server and Java client example?? Cheers ...more >>

Some doubts about Font Fallback and C#
Posted by alberto.ribao NO[at]SPAM gmail.com at 7/17/2006 3:29:28 AM
Hello, I'm making some proofs of concept about localization with .NET Framework 2.0 My trouble is I'm trying to display the next string with a call to MessageBox.Show method: MessageBox.Show("250\u2009000 points"); With the default font system (Verdana) it shows a square instead of the...more >>

SocketFlags meaning
Posted by Ryan Liu at 7/17/2006 2:21:14 AM
Hi, One day I really need have a good study or network, not just C#. But I am in a hurry, can someone explain SocketFlags, is that save I use SocketFlags.None when I call Socket.Receive() method? Especially Partial OutOfBand MaxIOVectorLength Thanks a million, Ryan ...more >>

A variable to use and change on multiple forms in 1 windows app
Posted by Svein Erik at 7/17/2006 1:30:02 AM
This is a C# 2005 project: I'm struggling to figure how to make a variable accessible and changeable in several forms in a windows application.. It's only a int variable which is set when the program loads, and this must be accessible from any form within the application, and I also need t...more >>

3d rendering in .net?
Posted by Jmc at 7/17/2006 12:34:48 AM
Hi I would like to apply a bumpmap on an image (I have both the image and the bumpmap). What techniqe is best for that? It's a static image (no movements). Any sample code? (I'm using c#) /Jimmy ...more >>

TimePicker
Posted by Alan T at 7/17/2006 12:00:00 AM
Any component can show/select time? Or can I set the DateTimePicker to show time only ? ...more >>

Method assignment
Posted by Alan T at 7/17/2006 12:00:00 AM
Can I assign a method of a class to a method of another class? I have a method called ChangeEmployee(int aNewEmployee), I want to assign this method to another class's method so that the other class's method to do the same thing. ...more >>

Listview cannot add listviewitem
Posted by Alan T at 7/17/2006 12:00:00 AM
I have a listview defined a coloumn at design time. And the code I use to add a listviewitem: ListViewItem lvi = new ListViewItem(user.Name); lvi.Tag = (Object)user.Id; lvUsers.Items.Add(lvi); However, the listviewitem could not be added successfully. If I removed the column ...more >>

Listview onclick
Posted by Alan T at 7/17/2006 12:00:00 AM
private void lvUsersList_Click(object sender, EventArgs e) { int userId; ListViewItem lvi; if (lvUsersList.SelectedItems.Count > 0) { lvi = lvUsersList.SelectedItems[0]; userId = Convert.ToInt32(lvi.Tag.ToString()); MessageBox.Show("User id: " + userId.ToString()); } ...more >>

enumerated types
Posted by Alan T at 7/17/2006 12:00:00 AM
I want to define enuermated types to be use by other classes: enum node_types { categories, no_sections, email } How do I make this to be accessed by other classes? eg. switch (aTypes) { case categories: case no_sections: case email: default: } ...more >>


DevelopmentNow Blog