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 2006 > threads for tuesday october 3

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

howto modifying resource on an existing assembly (.exe) ??
Posted by # Cyrille37 # at 10/3/2006 10:38:14 PM
Hello, I'm trying to add a resource to an existing assembly, but I failed. I've only nearly found how to create a new assembly, but not change a existing one. I would like to write a little C# program that store some text inside a resource, without a external file storage. For example : an...more >>

Bug in ListBox.IndexFromPoint ?
Posted by Michael A. Covington at 10/3/2006 9:59:40 PM
When capturing a MouseDown event on a ListBox, I want to find out which list item the mouse is on. So I do this: int i = listBox1.IndexFromPoint(e.X,e.Y); A click on a nonexistent item (e.g., a listbox from which everything has been deleted) gives i=65535 but ListBox.NoMatches = -1. If...more >>

Outlook Contact address display
Posted by kannan at 10/3/2006 9:11:02 PM
Hi, I am trying to loop through outlook contact address and display in messagebox. I have used following code: Outlook._Application olApp = new Outlook.ApplicationClass(); Outlook._NameSpace olNs = olApp.GetNamespace("MAPI"); Outlook.MAPIFolder oContacts = olNs.GetDefaultFolder(Outloo...more >>

Outlook - Addin Object
Posted by kannan at 10/3/2006 8:19:01 PM
Hi All, I am trying to loop through MS-Outlook object Contact address list. I can able to find the count using following line. int iAddresscount = ((Outlook.Application)application).GetNamespace("MAPI").AddressLists.Count; but I want to loop through each contacts and display in th...more >>

thrDownload = new Thread(Download()); problem..
Posted by akowald NO[at]SPAM gmail.com at 10/3/2006 7:08:12 PM
VS 2005 errors out when I try to add strings to the download void like this: thrDownload = new Thread(Download("bobatecake","jillatecake")); Ideals? Thanks. ...more >>

Problem with pkcs #7
Posted by Tomas Rawski at 10/3/2006 6:55:32 PM
I'm building a DLL to encrypt and decrypt information with certificates in ..net 2.0. I have working on something very similar like this link (http://windowssdk.msdn.microsoft.com/en-us/library/ms180956.aspx), but i have a problem. _ When i send or receive a crypt message from another host ...more >>

Problem with parsing double value from xml file
Posted by Martin Pöpping at 10/3/2006 6:53:57 PM
Hello, I´ve a problem with parsing a double value from an xml file. My code looks like this: int concept_id; double rank; XmlElement root = documentXMLString.DocumentElement; XmlNodeList records = root.ChildNodes; XmlAttributeCollection attributes; ...more >>

TCPListener and TCPClient not working over nat
Posted by Jon Slaughter at 10/3/2006 6:22:59 PM
I can't seem to get these to work over my router. I have all the ports open and ftp works from outside. Is there anything special I have to do or what? (my app does work over the LAN though) I'm using the bare basics and the app is very simple. I was just trying to see how hard it was to do. ...more >>



Dynamic cast string value to a specific data type for stored procedure
Posted by tedqn NO[at]SPAM yahoo.com at 10/3/2006 5:00:59 PM
Problem: - Stored procedure input parameters data type specific (SqlDbType.Int, SqlDbType.VarChar,etc). - Form submitted value in TextBox, DropDownList, etc are all string type (I guess). Some maybe empty. I need a function that would grab the string value and dynamically convert to the corr...more >>

UdpClient.BeginReceive callback function??
Posted by Tenacious at 10/3/2006 4:49:16 PM
MSDN gives this code as an example to create a callback function for UdpClient.BeginReceive. It doesn't compile because the compiler does not recognize "UdpState". I can't find any info on it either. Does anyone know what "UdpState" is or could you point me to some sample code on how to properl...more >>

ProcessInfo Puzzle!
Posted by Vai2000 at 10/3/2006 4:32:59 PM
Hi All, I have an executable which requires user interaction after invoking the EXE Usually the interaction is only the password....so only 1 step How can I call this EXE from my process and pass the password prompt as well.... TIA ...more >>

I want to compress packet go out from my machine
Posted by Champika Nirosh at 10/3/2006 3:26:00 PM
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send out.. and also need to un compress at the receiving end.. futher explaing... If I copy a fil...more >>

WebRequestMethods.Ftp Problem
Posted by Bob Phillips at 10/3/2006 2:24:06 PM
Hello All: I am building a small app that will download files from an FTP server (SCO Unix). I am told that the filenames may be reused, so I have to check the file size. However, the WebRequestMethods.Ftp.GetFileSize is not returning anything from GetResponseStream(). A read of the stream ...more >>

StreamWriter.WriteLine() vs .Write("\n") and missing newlines when writing to files with the later
Posted by Fred Dag at 10/3/2006 2:15:54 PM
Hi, When writing using both these methods ( StreamWriter.Write("\n") vs WriteLine() ) to a file and open in Notepad I see a special character instead of newlines with Write("\n") vs a newline with WriteLine(). How do I insert characters into a string ( ie "line 1\nline 2\n" ) so that when...more >>

System.Net.FTP and VMS
Posted by Mark Rae at 10/3/2006 2:08:26 PM
Hi, Has anyone successfully used the FTP stuff in the System.Net namespace against a VMS FTP server? I'm trying to do this at the moment and can't even get a directory listing, although there are no problems using the Chilkat FTP component, or connecting and browsing manually with a vari...more >>

Strange error using a dll
Posted by Torben Laursen at 10/3/2006 2:03:16 PM
Hi I have a dll written in C++ builder that I have been using for several years by calling it using VBA or C++ from VS. But I cannot use it from a C# program. When I try to use a function inside it I get this strange exception: Unable to load DLL 'DB_Forms.dll': Invalid access to memory l...more >>

Debug-Look at data inside a dataset?
Posted by Laurel at 10/3/2006 1:50:05 PM
Is there a way, in the debugger, to look at the contents of a dataset? I tried drilling down into my dataset and it's like exploring the registry! Anyway, I didn't find anything useful. The code I use to fill the dataset is below. The dataset fills OK and is usable. I just want to know how...more >>

ContextMenuHandlers - adding to Windows shell
Posted by MrNobody at 10/3/2006 1:23:02 PM
If you ever installed WinZip on Windows XP you would notice that when you right-click on a folder there is a new WinZip entry on the context menu and it has it's own submenu with a whole bunch of options. I would like to try something like this for a small utility program I am writing. Loo...more >>

Publishing
Posted by PiotrKolodziej at 10/3/2006 1:03:59 PM
Hi Is the a way to prepare install packet in such a way that user dont have to care about installing .NET Framework 2.0? I know that FM 2.0 is required for all c# applications, but i would like client not to care about any other install packets but mines. Thanks PK ...more >>

Procedure or function has too many arguments specified. Problem
Posted by sun919 at 10/3/2006 12:59:57 PM
hi there... i ve a little question asking concerning saving data into database Basically, I have stored procedure name InsertquestionnaireList and the argument for this is both correct ... I have a function which run this stored procedure.. All of these are illustrated below, i dont know what...more >>

windows service with process.start()
Posted by uuyytt at 10/3/2006 12:19:18 PM
I have a Windows service from which I want to start Internet Explorer with a particular URL as an argument. I don't know why my code (shown below) doesn't work. I know that IExplore.exe starts as I can see it in my task manager, but it is not visible. Can anyone explain what is happening? M...more >>

Try Catch Opinion
Posted by John F at 10/3/2006 12:17:01 PM
Hello All, I know you shouldn't issue a 'return' from a finally block, but how about a catch block? If while in a method call you fall into a catch and don't want to continue processing the rest of the code in the method is it ok to 'return' from the catch? Thanks, John...more >>

Convert bmp to ico
Posted by John at 10/3/2006 12:07:02 PM
I need to convert a bmp file to a ico file. Can anyone recommend a free software that does the conversion? Thanks....more >>

Row Filtering in dataset
Posted by DBC User at 10/3/2006 11:52:00 AM
I have a data set which has a data table. This dataset is set as a datasource for a display grid. Before I assign the data set to data grid, I would like to elliminate some rows from the data table. How can I do this? I saw an example where I can identify the table and then apply the select o...more >>

Pop up menu
Posted by Alan T at 10/3/2006 11:42:06 AM
I got a listview would like to have the contextmenustrip to pop up only when I right click a listviewitem. ...more >>

Help (No really I need Help with Help :)
Posted by WhiteWizard at 10/3/2006 11:34:01 AM
Hello all, I have been tasked with coming up with a system for providing help for our users, and we have some somewhat unique requirements. NO INTERNET. This is a windows application that will be running a good majority of the time at about 60,000 feet. I have done some previous work w...more >>

Lock generic SortedList
Posted by Oscar Thornell at 10/3/2006 11:33:13 AM
Hi, Any comments regarding this implementation... SortedList<String, String> list = new SortedList<String, String>(); lock (((IList)list).SyncRoot) { foreach (Object item in list) { //Do some stuff... ...more >>

cannot view xsd file of asp.net2 website project
Posted by j-in-uk at 10/3/2006 10:54:53 AM
When I try to open my .net2 website at another location, I cannot view my xsd files. I get the error "unable to convert to an input xml file content to a dataset. Root element is missing" ??? ...more >>

Sequencial Guid
Posted by Roy at 10/3/2006 10:19:02 AM
Is there an equivalent class function in C# to generate sequencial guid just like the NewSequentialID() function in SQL Server 2005?...more >>

Accessing getElementById in c#
Posted by AAJ at 10/3/2006 9:53:50 AM
Hi all is it possible to replace the following javascript with an equivalent on the server side c# <script type="text/javascript" > var txt1 = document.getElementById("txtProblem"); txt1.title = "Enter the description of the problem."; </script> thanks Andy ...more >>

Is Trace.Close() really needed?
Posted by Marc at 10/3/2006 9:35:03 AM
I'm building a Windows service that writes log messages via TraceListeners. I assume Trace.Close() is useful for garbage collection, but I'm not sure where to call it in the Windows service. Any thoughts?...more >>

Registry Key to check Windows Version
Posted by ChuckB at 10/3/2006 9:00:06 AM
Is there a registry key that has windows version information in it? ...more >>

Unit Testing Model-View-Presenter
Posted by Sean Chambers at 10/3/2006 8:42:49 AM
Hello, I am attempting to utilize the MVP pattern in a new app I am building. I am using TDD, along with mock views attached to the View interface to attempt to unit test the UI. The problem I am having is when using the InitView() of the presenter, normally I would be retrieving data from ...more >>

Treat a DataSet as a class structure
Posted by SteveT at 10/3/2006 8:22:01 AM
Can someone point me in the right direction? Somewhere I read that you reference a strongly typed dataset as if it were a class structure. For example, <SomeTests> <TestsGroups> <Group> <TestName>TestA</TestNmae> <Test>Run1</Test> <Test>Run2</Test> <Test>...more >>

Stretch Bitmap
Posted by pavel.orehov NO[at]SPAM gmail.com at 10/3/2006 8:10:17 AM
Hi, Does anybody knows how to stretch Bitmap in C#. Bitmap b = Bitmap.FromFile("..."); // stretch code ??? Thanks, Pavel ...more >>

How do you open a file for reading like Notepad?
Posted by MrNobody at 10/3/2006 7:56:02 AM
I was writing a program that was reading data from files (not making any changes) and I used the File.OpenRead(filename) command. It threw an error for one file because it said the file was being used by another process. But I can open this file fine with Notepad and see the contents. How c...more >>

how do you read an entire database to a dataset
Posted by AboutJAV NO[at]SPAM gmail.com at 10/3/2006 7:48:38 AM
Hi, I read alot of articles on how to read 1 table to a dataset. How do you read and entire database to a dataset, do a fill, and update it after modification. Thanks ...more >>

Looping through Outlook Contact Address list
Posted by kannan at 10/3/2006 7:10:03 AM
Hi, I am new to C# and It may be a simple question. I am trying to loop through MS-Outlook object Contact address list. I can able to find the count using following line. int iAddresscount = ((Outlook.Application)application).GetNamespace("MAPI").AddressLists.Count; but I want to lo...more >>

Extracting values from arraylist
Posted by Amit at 10/3/2006 6:40:06 AM
Hi everybody,I have 2 dropdowns and on selected index change the second dropdown is populated accordingly and so on.i am displaying the selected value in a label for the user so that he comes to know the hierarchy level. i will show you this with a example so that u can understand it well and h...more >>

reading from text box
Posted by dani kotlar at 10/3/2006 6:31:57 AM
This seems to be a simple question: How do I get the program to react after text was typed into a test box and Enter was pressed? I tried to write a KeyDown event. The program compiles and runs, but when I enter text and press Return nothing happens. The debugger also gets stuck in this point. ...more >>

Incorrect values when using float.Parse(string)
Posted by trevor at 10/3/2006 6:02:20 AM
Incorrect values when using float.Parse(string) I have discovered a problem with float.Parse(string) not getting values exactly correct in some circumstances(CSV file source) but in very similar circumstances(XML file source) and with exactly the same value it gets it perfectly correct all the...more >>

Server hangs on a client callback
Posted by dvestal NO[at]SPAM gmail.com at 10/3/2006 5:10:08 AM
I'm new to .NET remoting, and I'm having trouble getting a callback to work from a server. I've been through a dozen webpages and the references available to me, but I'm still missing something. I'm trying to have a client pass a callback function to a server, and the server call it. The cal...more >>

processStartInfo in C#
Posted by cu.4m.srinivas NO[at]SPAM gmail.com at 10/3/2006 4:42:56 AM
Hi all, I want to get the process running in the system, with name "abc",and in turn get their arguments, so that i do some processing later Foll. is my code: Process proc = new Process(); proc.StartInfo.FileName = "notepad.exe"; proc.StartInfo.Arguments = "abc.cs"; proc.StartInfo.UseSh...more >>

cross-thread operation
Posted by dani kotlar at 10/3/2006 4:17:32 AM
I am trying to make a client-server application to run, but I am running into this problem: in the server Form the call InitializeComponent(); creates a text-box. Later the calls: readThread = new Thread(new ThreadStart(RunServer)); readThread.Start(); attemt to update ...more >>

Outlook Add-in using C#
Posted by kannan at 10/3/2006 2:57:01 AM
Hi, I have to create one Add-in component using C# which will communicate to MS-Outlook to retrieve emails and store it in database, so that my other application will retrieve these information from database and display in that system. I am not familiar in outlook concept and I don't know h...more >>

Convert VB to C# (Redim array question)
Posted by Jason Chan at 10/3/2006 1:38:02 AM
I am converting a sample VB program to C#, and I stopped at lines of code I dont know how to write in C#, that is the Redim statement. In the VB: Private Function DoSomething(ByRef lBegin() as Long) As Boolean 'some codes ReDim lBegin(0) ' lBegin(0) = 0 ' how do ...more >>

How can i validate an ActiveX control registered on my system whether it is licensed or not?
Posted by Melisa at 10/3/2006 1:05:26 AM
Hi I have a list of all activeX controls registered on my system. When i add one of these activeX controls to Windows Form on runtime , an exception is thrown if this activeX control is not licensed. I want to check a specified activeX control whether it is licensed or not before adding ut to...more >>

Granting reflection rights to remoting server object
Posted by Jan at 10/3/2006 12:15:01 AM
How do I grant permission to use reflection by a remoting server object? I'm trying to use Type.InvokeMethod in the server object class but I get a MissingMethodException: "Method '<name> not found.". If I call the same code from the UI-thread in the server there's no problems....more >>


DevelopmentNow Blog