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# > october 2005 > threads for tuesday october 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

configuration file
Posted by Koert at 10/4/2005 11:53:45 PM
Hi there, I have a GUI project that always has worked fine. Till recently we used Com+, now we use .Net remoting instead. We use a configuration file, named "ClientRemoting.config". This is placed in the same directory of the excecutable (Debug or Release). The project include also some Use...more >>

web service problem
Posted by Piotr Kraj at 10/4/2005 10:39:43 PM
I have created web service application in C# using .NET Visual Studio and the trial "Hello world" application. It compiles and displays a web page with the "HelloWorld" method and Service description. However, when I click on Service description I get an empty web page insted on XML documen...more >>

How to start second form
Posted by piotrek at 10/4/2005 10:04:44 PM
Hi. Its beginner question - sorry, but maybe someone can help me to start second form, from an existing one. I created and designed class Form2 that inherits from Form, and would like to see this one after clicking a button. In button clicked i tryied to write: Form 2 name = new Form2(); But...more >>

Arraylist
Posted by Mike at 10/4/2005 9:24:07 PM
Hi, I've included : using System.Collections; and declared the Arraylist as: ArrayList myList = new ArrayList(); but type myList. (then the dot) I can't see the methods and properties, so how can see them!!? -- Regads, Rochdi...more >>

Database problem.....HELP
Posted by DM at 10/4/2005 8:43:13 PM
newbie trying to set up a Database and keep getting the same result. ERROR An error occured while retrieving the information from the database: Unable to cast COM object of type 'System._ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed ...more >>

Efficient way of selecting an item in a Virtual ListView
Posted by Danny Tuppeny at 10/4/2005 7:31:09 PM
Hi All, I'm trying to find the best way to select an item in a ListView using the Virtual mode. My "items" are business classes, and I have a reference to once I want to select (passed from another dialog). One way is to spin through the items and compare the .Tag property to my business ob...more >>

XCOPY return ExitCode 4 in C# code.
Posted by Zeya at 10/4/2005 7:26:38 PM
I am developing a ASP.Net(Web) based deployment tool, which requires XCOPY functionality. Here is the code for the method: public static int ExecuteProcess ( string ProcessName, string ProcessArguments ) { string ErrorStream = ""; Process DOSProcess = new Process(); ProcessSta...more >>

Please HELP!
Posted by Scott at 10/4/2005 7:14:39 PM
I need to write a c#.net program that would convert the RTF file into PS file to be sent to the printer. Any help is highly appreciated. Scott. ___ Newsgroups brought to you courtesy of www.dotnetjohn.com...more >>



FlickrDotNet examples?
Posted by Beetlejuice at 10/4/2005 6:33:05 PM
Hi all. I'm trying to negotiate my way through FlickrDotNet (A .NET Flickr API written in C#) and due to its odd (to me, anyway) syntax, and total, complete, all-encompassing lack of documentation I'm unable to do anything interesting. Flickr : http://flickr.com/ FlickrDotNet: http...more >>

Programmatically read file(s) from a USB device
Posted by domtam NO[at]SPAM hotmail.com at 10/4/2005 6:01:16 PM
Suppose I have one of those USB storage devices (like a mp3 player, USB thumbdrive, or even digital camera) connected to my computer. I'd like to write a C# program that can - detect that the USB device is connected, and then - read file(s) from that USB device. How can I do that? Any refer...more >>

C# convention
Posted by John Salerno at 10/4/2005 5:15:35 PM
I just realized that the C# convention for uses braces is to put the opening brace immediately after the first line that defines the block (except for class declarations) like this: if (something) { stuff } Why is that? Do a lot of people do this? It seems like putting braces on s...more >>

Test for Graphics file?
Posted by William Barnes at 10/4/2005 5:13:24 PM
Is there a built-in method available for determining if a file represents a graphic image? I've tried using something like this: public bool IsGraphics(FileInfo fi){ Image tempImage; try{ tempImage = Image.FromFile(fi.FullName); return true; } catch(Out...more >>

Kill Process
Posted by Max at 10/4/2005 4:52:38 PM
I use late binding to have my program compatible with multiple versions of Microsoft Outlook. Here is a snipped of my code that launches Microsoft Outlook and displays it to the user: [CODE] Type objClassType = Type.GetTypeFromProgID("Outlook.Application", true); object objApp_Late = Acti...more >>

How do I add a new column cominging 2 string and a int column ?
Posted by Alpha at 10/4/2005 4:03:01 PM
Is there any way to create a new column in a dataset table from 2 string column and a int column? I got an error "expecting string" from my code below. Any help would be appreciated. DataColumn scc1 = new DataColumn("CodeLength",Type.GetType("System.String")); scc1.Expression = "...more >>

C# Equivalent of a C++ std::vector
Posted by Peter Olcott at 10/4/2005 3:33:02 PM
What is the C# equivalent of a C++ std::vector? ...more >>

Not returning boolean correctly
Posted by tshad at 10/4/2005 3:27:46 PM
I have class method that is passing back a boolean, but it always returns a false; The class is: *************************************************************************** public bool Delete() { int rowsAffected = 0; DbObject myDbObject = new DbObject(); SqlParameter[] param...more >>

copy ctore, assignment operator and Clone() - dang!
Posted by Steve at 10/4/2005 3:09:24 PM
I can't find a straight answer on what to use? I need a deep copy, so I implemented IConeable and the Clone() method. However, I'm not sure I did it correct. Is it suposed to be an allocation of a new object, then the assignment of each member? Is that all or is there something else I need to...more >>

Need a fast way(c#) to get directory of files over a WAN using selection criteria
Posted by ganderso NO[at]SPAM wmcdirect.com at 10/4/2005 2:56:21 PM
Help!! I need to interrogate about 150,000 files across a WAN and pull in ONLY the files less than 5 days old and larger than 10k bytes. I'm currently using Directory.GetFiles and it's taking hours!! Anyone have any great ideas? Any help will be greatly appreciated. Thanks Greg ...more >>

DbType for Text
Posted by kevin at 10/4/2005 2:20:04 PM
using SQL SERVER 2K and VS 2003 my sp takes a text input parameter, but all ofthe character DbType enums specify a max lenght of 8,000 characters. What do I use for a Text parameter?...more >>

animated form
Posted by Raj Chudasama at 10/4/2005 1:07:29 PM
in .net development environment, there is a feature called auto hide (you can see the thumbnail, for example, task list, results window, etc). You can toggle the window in a way that if you have it set to autohide it scrolls down on mouse out and scrolls in on mouse over event. I would like to...more >>

Type Comparison
Posted by Spencer Wasden at 10/4/2005 12:14:06 PM
I want to determine if a control on a form is a TextBox type. I would like to do something like the following WITHOUT doing a string comparison. foreach (Control c in this.Controls){ if (c.GetType().ToString() == "System.Windows.Forms.TextBox" ){ MessageBox.Show(c.Text); } } Is thi...more >>

How to trace the memory in c#?
Posted by Nick at 10/4/2005 12:11:34 PM
hi, all In c#, we know it has garbage collection. I am think is there anyway we can know an exe, how many thread in this exe, when the memory gets allocated, and when it gets destoryed. Becuase I believe our program has a memory issue. From the window task manager, we can see, the memory just g...more >>

enum defined in a linked .cs file
Posted by Joe at 10/4/2005 11:45:20 AM
I have a .cs file which is linked to several other projects. All my classes in this file are defined as internal. I would like to have an enum defined as well in the namespace but I get an error from one project that the accessibility of the enum is less (public) than that of a method which ...more >>

Creating Application Settings Using the Designer?
Posted by David Veeneman at 10/4/2005 11:34:16 AM
How do I persist properties bound to application settings in the VS 2005 Designer? I am binding form and control properties to application settings using VS 2005, as explained in MSDN: http://msdn2.microsoft.com/en-us/library/wabtadw6 Everything works fine, except my properties won't pe...more >>

Secondary Thread start Method in Main Thread
Posted by Dale Lundgren at 10/4/2005 11:23:48 AM
I have a c# class library that launches a Win Form in a secondary thread. From the Form (now running in the secondary thread) I need to be able to start a method that is defined in the class and have it run in the main thread. I have read many examples and tried numerous approaches based on...more >>

DataSource & DataMember property at custom control.
Posted by Alvaro E. Gonzalez V. at 10/4/2005 10:39:16 AM
Hello!!! I'm building a control that in a property assign a Dataset which they are initialized and another property Like DataMember. Similar as it happens to the DataSource property of a System.Windows.Forms.ListBox... That mechanism can be used or as is the best way to do it... Th...more >>

Copy graphic from another program
Posted by Søren Reinke at 10/4/2005 10:29:47 AM
Hi there I need to sample a specific area of another programs GUI at a certain interval. How can i do that ? It could be the area starting at 100,50 with the size 50,50 pixels. Hope you can help me with a little example. I guess it is something with bitblt and unmanaged code, but i ...more >>

ListBox.Items.Contains
Posted by Mike at 10/4/2005 10:20:11 AM
Hi lstRight contains the following item "Bart " and myTempDataRow["M_Name"].ToString() returns "Bart " with more spaces, so the lstRight.Items.Contains(myTempDataRow["M_Name"].ToString()); is returning false; so how can I fix this space problem? T...more >>

C# .Net Socket.Send Bug?
Posted by Matt at 10/4/2005 9:36:37 AM
Hi, I've got a C# client/service application using a Socket object to communicate. I have a socket bug that I can't solve without kludged-code. Does anyone know a more elegant solutions? Is this a known bug with the .NET Socket object? Under high stress data sending, I occasionally receive ...more >>

Controls.Count
Posted by Paperback Writer at 10/4/2005 8:49:24 AM
Hi everybody! I tryed to use the Controls.Count in my WebForm to get the number of controls, but it's always showing 3 Controls! In the UserControls it works perfectly!!! Is tha a bug or do I something false ? ...more >>

Memory address of an object
Posted by kplkumar NO[at]SPAM gmail.com at 10/4/2005 8:04:18 AM
I want to get the memory address of an object. Can someone tell me how to do that in C#. Also, I tried using the unsafe and the "&" operator and could not acheive it. Can you tell me a good way of doing it? I am new to this and have no clue how to get the memory address. ...more >>

AsyncCallback Explain why my code is not working
Posted by Lenn at 10/4/2005 7:51:53 AM
Hello, I have the following example of AsyncCallback from a C# book which I wanted to implement in my project: //Class with AsyncDelegate public class AsyncProcess { public AsyncProcess() { } public delegate int AsynExecuteDelegate(string command); public System.IA...more >>

Serializable object containg MarshalByRefObject Object
Posted by nick_tucker NO[at]SPAM hotmail.com at 10/4/2005 6:28:34 AM
If I have an Arraylist(which is marked as serailizable) which contains objects derived from MarshalByRefObject something like below public class MyArray { private ArrayList m_al; public void MyArray() { m_al.Add(MyObject("XXX")); m_al.Add(MyObject("YYY")); m_al.A...more >>

Image in ListView
Posted by Raed Sawalha at 10/4/2005 5:20:03 AM
I have a list view i need to display items on it as following: BMP BMP my text My Text ....etc any idea?...more >>

Can't make project in VS
Posted by bob NO[at]SPAM invalid.com at 10/4/2005 4:00:54 AM
I haven't used Visual Studio (2003) in several months. I fired it up and tried to create a new C# class library project. Nothing happens. Nothing appears in the Solution Explorer and nothing appears in the directory where I told VS to make the project. I uninstalled VS and reinstalled it. S...more >>

How to insert a byte array into sql server?
Posted by Prince at 10/4/2005 3:45:28 AM
Hi all, Can anybody tell how to insert a byte array into sql server... Looking forward for ur reply... ...more >>

Search for Crypto function...
Posted by Marcus2 at 10/4/2005 3:35:04 AM
Hello newsgroup... I am new to C#... I know a CryptEnumProviders "feature" from C++. What is the way to list the CSPs using C#? I did not found any function to do so. Thanks, Marcus...more >>

Marking a row in dataGrid
Posted by Gidi at 10/4/2005 3:11:05 AM
Hello, I have a dataGrid that contains customers details, i made an event that when the DataGrid is loaded the first row is marked or when some row is clicked this row is marked, how can i do that when the user uses the Up and Down arrows, it will mark the row that the user is on now. i tri...more >>

How to close another socket
Posted by Nuno Magalhaes at 10/4/2005 3:08:53 AM
How can I close another socket belonging to the same application but all know is the IP address of the client and the port number that the server is listening on. Sounds like a firewall I know but I would like to know how to do it in C#. Can anyone help me? Thanks, Nuno Magalhaes. ...more >>

Modi OCR, alone?
Posted by RicercatoreSbadato at 10/4/2005 1:29:09 AM
Is there a way to use the MODI OCR component in an application on a system whitout Office 2003? Which DLL have I to copy? tnx ;) ...more >>

Calendar web control
Posted by CodeRazor at 10/4/2005 12:19:02 AM
Hi, I have been using the DayRender event of the calendar control to format the appearance of my calendar control, and it works ok. However, because of the way the DayRender event works, it will fire once for each day in the calendar control, so if i am displaying july, it will fire 31 ...more >>

re: Terminating an IP Connection
Posted by Chad Z. Hower a.k.a. Kudzu [msft] at 10/4/2005 12:11:53 AM
> What is the best way for terminating an IP connection? > > Say, I've got an IP number 198.162.1.100 trying to connect to a port, > how can I terminate the connection in a simple and effective way done > in C#? Is the connection attempt you want to terminate from within the same process? Or...more >>

How do I check for complete file
Posted by Anders Eriksson at 10/4/2005 12:00:00 AM
Hello! I'm trying to create a program that will watch a directory and when a file is created print that file. I have used FileSystemWatcher for watching the directory and I get an created event. The problem is that I don't know when the file is complete when using Explorer copy or move. ...more >>

SQL Statement Class Helper request
Posted by ABC at 10/4/2005 12:00:00 AM
Is there any products/public/share source codes or like-as case which can dynamic generate SQL Statement? for example, SQL.SelectTable("TableA") SQL.SelectFields("FieldA, "FieldB", "FieldC") SQL.AddWhere("FieldA", "AA") SQL.AddWhere("FieldB", "C", "E") return SQL.SQLStatement ...more >>

Vista GUI in Visual C# Express?
Posted by Zack Whittaker (R2 Mentor) at 10/4/2005 12:00:00 AM
Hey, In Visual C# 2005 Express, can you make your application look like a Vista application with the black bars and the transparancy? If so, where would I download the tool from? Thanks :o) -- Zack Whittaker Microsoft Beta (Windows Server R2 Beta Mentor) » ZackNET Enterprises: www.zack...more >>

Q: Get characters from string and formatting.
Posted by Visual Systems AB (Martin Arvidsson) at 10/4/2005 12:00:00 AM
Hi! I have a string, it could look like this 455 56 Gothenburg or 45556 Gothenburg What i want to do is to separate the numbers from the text into two different strings and the numbers i would like to formate like ### ##. My brain is just not giving me any direction on how to solve thi...more >>


DevelopmentNow Blog