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 18

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

Hello to all Members
Posted by ALI RAZA at 10/18/2005 11:39:05 PM
Hello Came to know about this place by a friend, looking forward to share my experience with all of you ALI RAZA SHAIKH MCAD.Net www.programmersparadise.cjb.net alirazashaikh.blogspot.com ...more >>

Force one copy of application
Posted by Raed Sawalha at 10/18/2005 11:18:02 PM
how can I view only one exec copy of my application? double click app icon-> open-> again double click app icon-> i need to check it already running not to open it again. regards...more >>

Easy C# String problem....
Posted by news NO[at]SPAM OxfordEye.co.uk at 10/18/2005 11:03:28 PM
Hi Guys, Im trying to pass a string from a C++ DLL back into a C# application. In the C++ DLL the string is a char array, static char myArray [2048]; extern "C" __declspec(dllexport) char *getMyString (void) { sprintf (myArray, "the string I want"); ...more >>

Help regarding DataView.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/18/2005 9:31:48 PM
hi all I am having application in c# which is using dataview. my problem is i have one global dataview which i can use through the application. I am creating 2 threads in which i am setting rowfilter property of this global view. My question is when i am starting 2 threads at the same time the...more >>

.NET 2.0
Posted by Peter at 10/18/2005 9:29:16 PM
Can Visual Studio 2005 compile Apps to .NET 1.1 ? Thanks...more >>

information from internet-explorer
Posted by milk-jam at 10/18/2005 8:39:44 PM
I'm trying to write a log which save each time internet explorer is opened or closed and all of the url which where visited? Any help is greatly appreciated. ...more >>

deserializing xml
Posted by farseer at 10/18/2005 8:39:10 PM
Hi, i am getting an error when trying to deserialize and xml. the error is shown below. i get this error regardless if i try to desearialize in C# or VB. the XML itself does infact contain a top level "PDocument" note which contains an xmlns namespace and some other attriute. is the error be...more >>

Good C# book
Posted by Sam at 10/18/2005 8:37:40 PM
Hi All I don't know anything about C# and I'm planning to learn the language. Does anyone know any good book out there that explains things well? Any suggestion is greatly appreciated Regards, Sam ...more >>



difference between xml dataset and sql/access?
Posted by Benny Raymond at 10/18/2005 8:29:13 PM
I'm nearly done writing the first version of my tracking app and I'm starting to re-think the way I store my database. Currently I have my database setup as an xml dataset. Before I started the program I choose to go with a dataset because I was unclear if the end user would have to have a...more >>

Failures with dynamic in-memory assembly generation
Posted by Andreas at 10/18/2005 7:58:59 PM
Hi! I'm trying to create in-memory assemblies from source using C# 2.0 from Visual Studio 2005 Beta 2. The generated assembly should have the same name as an assembly that may already exist on disk in the same directory the assembly-generating executable is running from. The code I'm using ...more >>

numericUpDown with time
Posted by piotrek at 10/18/2005 7:40:05 PM
Hi. I would like to create numericupdown control that's value is time in format 12:12. Is this posible? Value property contains only decimal. PK ...more >>

Checking to see if a Com object was released
Posted by greg.merideth NO[at]SPAM gmail.com at 10/18/2005 7:22:08 PM
There's a utility application I have that generates Excel files for the end users that 99% of the time works just fine. The problem I've encountered is when placing a lot of data (and by a lot I mean creating 90+ tabs and filling each worksheet with 4-5,000 values with misc formatting per shee...more >>

ConvertLettersInString
Posted by gh at 10/18/2005 6:08:56 PM
I have a string of 20 characters. I would like to replace all the letters, between the 3rd and 17th letters, with a Z. Is there a function for this? Thanks...more >>

ASP.NET question
Posted by John Salerno at 10/18/2005 5:46:49 PM
Is there a separate ASP.NET newsgroup? I can't find one, and I don't know if it's appropriate here, but I figure it's still written in C# so it's all the same thing anyway. I'm just wondering how I might write something that inserts a "Home" icon wherever I put the code. In other words, ins...more >>

Call Static Methods from Another Application
Posted by Guadala Harry at 10/18/2005 4:49:03 PM
Just wondering what it would take to call a static method in a static class of an ASP.NET 1.1 Web app from a different application. Specifically, I have a little "utility application" (C# Windows desktop application) that I have on my Web server. All of the ASP.NET Web applications on the s...more >>

CreateInstance - set font properties for excel
Posted by News.microsoft.com.DotNet at 10/18/2005 4:38:44 PM
Hi, Hope someone can help me out with this. I have a CC3 sharp app that needs to export data to an excel file. Problem is the version of excel can be 97 to 2003. Anyway, have been able to use InvokeMember for ranges and values, ie: Parameters = new Object[2]; Parameters[0] = "C2:C6";...more >>

creating a value type by reflection
Posted by farseer at 10/18/2005 4:23:20 PM
How can i do this? i have the following in a config file: name="id" type="int32" can i create a variable called "id" as type int32? ...more >>

mappoint and COM+
Posted by DAMAR at 10/18/2005 4:15:05 PM
Hello I 'm writting a code in C# I'd like to make a COM+ component that uses mappoint library If I add reference to my project it doesnt compile - compiler complains that interop.Mappoint has not strong name. What should I do, or maybe should I use DLLimport instead? Thanx for replies...more >>

CreateInstanceAndUnwrap
Posted by Max at 10/18/2005 4:02:38 PM
I'm using CreateInstanceAndUnwrap as follows: object myinstance = myAppDomain.CreateInstanceAndUnwrap("LibraryFile", "LibraryFileNamespace.LibraryFileClass", true, 0, null, null, null, null, null); to get an instance of the LibraryFileClass so I can call a function in this class, and I get...more >>

.NET 2.0 System.Messaging.Message not exist
Posted by John A Grandy at 10/18/2005 3:04:53 PM
in .NET 2.0 where is the type Message located ? in .NET 1.1 it was System.Messaging.Message ...more >>

Config Setting Scope
Posted by Vai2000 at 10/18/2005 3:04:30 PM
Hi All, I have a small driver console app which calls an assembly (static referencing). This assembly uses a configuration file for initializing certain values..Surprisingly when my driver app calls this assembly and I step into it I see that the configuration values are returning null.... The c...more >>

winforms, DataGrid, Key press events... KeyUp, KeyPress" are ignored
Posted by Serdge Kooleman at 10/18/2005 2:45:17 PM
How to get "Key press" event when i'm working with DataGrid (winforms). Seems to me that standard events "KeyUp, KeyPress" are ignored :-( Thank you ...more >>

c# looping equivalent to EndOfField
Posted by .Net Sports at 10/18/2005 2:44:10 PM
when working with ASP, I was able to use control statement loops such as "While myvar.EOF" , "Do Until myvar.EOF" , in which I would loop thru a recordset until the particular field in a database table had exhausted all its entries for that query. I need to do something similar in C#, whereas I ...more >>

Need a way to programmatically get the number of pages in a TIF??
Posted by ganderso NO[at]SPAM wmcdirect.com at 10/18/2005 2:42:48 PM
Hi I have a number of TIF files. I need to have a way to get the number of pages in each file programmatically. Anyone know a control or app that I can call to do this? Thanks in advance. Greg ...more >>

Final VS 2005, when?
Posted by Michael Rodriguez at 10/18/2005 2:42:00 PM
Any idea when the final release of VS 2005 will be available to MSDN subscribers? I had heard it would be available before the official Nov 7th release date. TIA, Mike Rodriguez ...more >>

what does the this unhandled MissingManifestResourceException mean?
Posted by Carlos at 10/18/2005 2:34:28 PM
Hi all, I just got an unhandled exception of type MissingManifestResourceException but do not know what it means. I declare a class before the main form, and within the namespace. can someone help? Thanks in advance, Carlos. ...more >>

Is there a simple way to test if 2 text files are identical?
Posted by Robert W. at 10/18/2005 2:28:04 PM
I've scanned through the various methods of the 'File' library but can't see any method that would be equivalent to the DOS "COMP" command. Is there, in fact, a simple method to do this or do I have to write my own? -- Robert W. Vancouver, BC www.mwtech.com ...more >>

Problems with reading wav files
Posted by Erpman at 10/18/2005 2:15:03 PM
I am trying to access the data with in a wav file. I am testing with very small files in order to keep the code simple to start with. Basically, im writing the entire wav file to a byte[] using a fileStream. The problem is that when reading back the data word by word and printing the resul...more >>

PRB - HttpWebRequest does not work with CGI websites and/or RAW da
Posted by ATS at 10/18/2005 2:02:16 PM
PRB - HttpWebRequest does not work with CGI websites and/or RAW data Please help, I'm trying to make a web deploying UserControl that gets RAW binary data that is dynamically created from a CGI application webiste, and have the UserControl write the data down to a file. I've used the code ...more >>

Writing and reading network data...
Posted by Adman at 10/18/2005 1:28:01 PM
Hi all. I've done some websearching, and haven't been able to find my question answered, so I thought I'd post. I apologize if this has already been answered. My question seems to be a variation of a FAQ. I'm writing a small online game (client/server). The server spits out a steam of da...more >>

Constructing IntPtr from an instance of a class
Posted by Valerie Hough at 10/18/2005 11:48:21 AM
In C#: How do I construct an IntPtr object to point to an instance of a class, pass it somewhere, then reference it once again as the original object.? My specific implementation is to use PostMessage to pass my class instance as the "lParam" of the message. Thanks in advance. Valerie Ho...more >>

Not a win32 application
Posted by Belee at 10/18/2005 11:39:05 AM
I developed a c# application and took it to a client site. After the initial run. When ever you double click the icon, it give the following error "Not a win32 application". I will copy another one to the place and after the initial run it will do the same. In one case I reinstalled the ...more >>

C# and MFC
Posted by C Glenn at 10/18/2005 11:36:15 AM
Can an application be created using C# and MFC? Can I use ActiveX objects created with MFC in a C# app?...more >>

File/Folder permissions
Posted by Richard at 10/18/2005 11:34:03 AM
Hi all, Is there any class in .NET 1.x that will help me set file & folder permissions for a user? Aka - I would like to do the in code equivalent of right clicking a folder in file explorer and granting read/write access to a specific user {not the user running the program}. Any ideas?...more >>

Loading assembly and unload it
Posted by Raj Chudasama at 10/18/2005 11:31:32 AM
I have a need to unload an assembly (like exit it out) and then re-open that same executable. How can i do this? ...more >>

Events and Thread Safety
Posted by Fred West at 10/18/2005 11:31:00 AM
I have an object with events that are subscribed to, from different threads. My code currently looks like this: private event MyEventHandler myEvent = null; public event MyEventHandler MyEvent { add {myEvent += value;} remove {myEvent -= value;} } FIRST QUESTION: Do I need to lock in th...more >>

c# asp.net credit card processing
Posted by gl at 10/18/2005 10:48:06 AM
I have just started a project that's going to do very heavy credit card processing through asp.net and i had some questions. I've never really done any cc processing through code and I wasn't sure where to get started. Can anyone suggest a particular gateway or cc processor? I saw a component ...more >>

Simple threading question about UI interaction
Posted by Jim H at 10/18/2005 10:43:42 AM
I have work being done in worker threads and I trigger an event, that gui objects have subscribed to, when the work is complete. Will that event handler code be executed in the ui thread or the worker thread? What I am trying to do is process the data in a thread and use an event to update...more >>

asp.net C# catch/try (newbie)
Posted by Rob at 10/18/2005 10:39:02 AM
Hey, I'm relatively new to C# and ASP.NET, but have been doing OK. I'm trying to understand why I can't do this kind of thing to execute a function if and only if it's defined. Is there another way to do that? try { FormPostBack(); } catch { } Many thanks, Rob...more >>

Office Dev help pls pls
Posted by Zamolxe at 10/18/2005 10:03:00 AM
fter creating a Office prj in C# this error appears is the wordDoc is oppened, if the prj is compiled and runed from the IDE the WORD is opening and after a nanosec it closes. How can I fix this. I have installed them in the folowing order: 1.VS Arhitect 2003 2.Office2003PRO(FULL, and I mean F...more >>

Referencing DLLs to distribute
Posted by Doug Crabtree at 10/18/2005 9:58:54 AM
I am kinda new to the whole distribution process. I several programs that I am writing that use common .NET DLLs. I want each program to use the same DLLs in a "COMMON" folder. How do I get the released build to reference those DLLs? The debug version works fine (within the VS Environment)...more >>

Performance issue part 2 (revised with all code) Please help
Posted by Raj Chudasama at 10/18/2005 9:53:14 AM
i have a need to load image from URL. the image is really small (gif) and i use the following code. but the code is too slow any1 have any alternative way(S)? here is the url http://phone.avioninc.com/asterisk/wami/graphics/phoneringing.gif -----here is the performance counter out put when ...more >>

passing parameters to a thread function
Posted by Carlos at 10/18/2005 9:52:03 AM
Hi all, I am familiar with passing parameters to a thread function using C++, but I needt to learn it using C#. Can someone shed some light on how to do this? Code snippets will be great to show me. Thanks in advance, Carlos ...more >>

will this Design work?
Posted by shan chennai at 10/18/2005 9:46:27 AM
hi... i have a design as follows... Presentation Layer (.aspx, .cs) -- Service Layer (just a facade) -- Business Layer (business objects) -- Data Layer (all DB related things for business objects are done here) -- Data Access Application Blocks -- DataBase No we pass objects and not da...more >>

Reading Integers from Threads
Posted by Fred West at 10/18/2005 9:44:34 AM
I have a class with a private Int32 data member that gets modified from multiple background threads. To synchronize these modifications I use the lock statement: Int32 count = 0; object countLock = new object(); .... lock (countLock) count++; .... lock(countLock) count = newValue; ...more >>

How to select multiple items in ListBox control
Posted by ted at 10/18/2005 8:58:31 AM
Hi, I can't figure out how to set multiple items in a ListBox to selected when the listbox is in a User Control. When the ListBox is set in directly into a form I can use the following: listbox.SelectionMode = SelectionMode.MultiExtended; listbox.SelectedIndex = 1; listbox.SelectedIndex =...more >>

display MonthCalendar selectable dates
Posted by Rachel Suddeth at 10/18/2005 8:48:00 AM
Is there a way to have the non-selectable dates (those before MinDate and after MaxDate) draw differently so my users can see right away what dates aren't allowed? I'm not seeing it... Otherwise, anyone know of a cheap 3rd party calendar control I could use that would provide that ability? ...more >>

'Type Mismatch' exception when calling Word.Application.Documents.Open method in Office (Word) 2003 PIA from C#
Posted by webstuff NO[at]SPAM urbanperspective.net at 10/18/2005 8:41:47 AM
Hi, I'm getting a 'Type mismatch' exception when calling the Word.Application.Documents.Open method when using the Office XP 2003 PIAs. the actual error is: System.Runtime.InteropServices.COMException (0x80020005): Type mismatch. This method works when using the Office XP PIAs (not that ...more >>

Deserialization problem. Can't set value of new field
Posted by Joe at 10/18/2005 8:38:13 AM
Hello, I'm trying to deserialize my objects (which derive from CollectionBase) using the special constructor. Everything works fine until I go to set the value. I get the following error: "Object type cannot be converted to target type." The property Value of newField = 'ArrayList' and va...more >>

GETRANDOM(min,max)((rand()%(int)(((max)+1)-(min)))+(min)) How in C#
Posted by Roy Gourgi at 10/18/2005 8:31:58 AM
Hi, What is the equivalent code in C# of these 2 statements in C++. GETRANDOM(min,max)((rand()%(int)(((max)+1)-(min)))+(min)); // C++ code srand( (unsigned)time( NULL ) ); // C++ code TIA Roy ...more >>

Icons, What am I Missing?
Posted by Ctal at 10/18/2005 8:18:29 AM
Relatively new to dotnet so bear with me if this is obvious. In the course of my career, I've assembled a collection of icons to use with my apps. Most of these are 32x32, 256 or 16x16, 16. In VS6, I could assign the same icon to forms and the application. VS would squish or stretch icons ...more >>

ERR - WebClient.DownloadData returns "protocol violation"
Posted by ATS at 10/18/2005 7:41:05 AM
ERR - WebClient.DownloadData returns "protocol violation" Please help, I'm getting a "protocol violation" from a site that is working perfectly fine when I issue WebClient.DownloadData as such: WebClient WebClient_Temp = new WebClient(); byte[] zbyteTemp = WebClient_Temp....more >>

DateTimePicker & Databinding
Posted by eye5600 at 10/18/2005 7:31:13 AM
Is there a cure for the problems using databinding with a DateTimePicker? I find that a) sometimes it works, sometimes it doesn't, and b) it fails silently causing all databinding on the DataSet to fail with a error message. Help!...more >>

I want to access data from a network computer in window application
Posted by sonu at 10/18/2005 7:09:49 AM
I am working with a window application which will run on every computer on a network. but data will be only one machine on network. i am giving in connection string like.. connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\wwwroot\\project\\combo.mdb"; it i...more >>

ORA-12154: TNS:could not resolve service name
Posted by Bruno Otero at 10/18/2005 5:56:34 AM
Hi, My connection string in my web application to my oracle database is working fine when i test it on my machine.. But when i try to run the application on the web server the error ORA-12154: TNS:could not resolve service name appears. Here it is the connection string: string ConnectionSt...more >>

sql serevr, user defined function, .Net
Posted by Iwan Petrow at 10/18/2005 5:44:27 AM
Hi Is this possible and how: To create a function in c# (in dll) and import this method in sql where I can use it. For example I want method like this: string MyMethod(string s, int i). I use VS 2003 and sql server 2000 Thanks. ...more >>

Web Crawler
Posted by Ernie at 10/18/2005 5:34:27 AM
All, I am trying to create a crawler to go out to a site, collect information and store it. While I have addressed a lot of the issues in the collection of the information I am stuck on one particular issue. It apears that a page posts back to itself to move to the next result set. Th...more >>

alt + tab
Posted by Diogo Alves - Software Developer at 10/18/2005 4:21:02 AM
hi, I have a application that works with some dialog forms, the problem is, when I have a dialog open and I press alt + tab the application icon does not appear.... What is happening?...more >>

How do I get an HWND for an aspx page?
Posted by None at 10/18/2005 3:45:56 AM
Hi, How do I get an HWND for an aspx page? like System.Windows.Forms.Form.ActiveForm.Handle.ToInt32() in Windows Forms. If anybody knows solution please let me know it. Thanks, Vinoth ...more >>

DateTime Picker control, displaying and selecting times
Posted by Macca at 10/18/2005 2:39:03 AM
hi, I am looking to use the date/time picker control to allow the user to select a time. I have done a similar thing in a C++ project by formating the date time picker to show only the time and then using a spinner control as a buddy control to allow the user to cycle through the hour/mi...more >>

Programatically set Indexing Service Catalog Properties
Posted by Eranga at 10/18/2005 1:26:26 AM
Hi! I want to change and setup Properties of the Indexing service catalogs programatically. Generation property, abstraction property and any other property of catalogs should b ealtered from my code. I use C#.net . Could any one of m etell how I can achieve this. I am OK with programinatical...more >>

Select Users or Groups Form
Posted by None at 10/18/2005 12:50:04 AM
Hi, I have one Listbox and Two buttons one is Add and Other is Remove. When i click the add button i want to show the Select Users or Groups Form(i.e, When you right click any file or folder and click Properties and then Go to Seurity Tab and Click Add Button. Now it will show the Select ...more >>

writing Excel data to SQL table
Posted by Mike P at 10/18/2005 12:46:27 AM
I'm trying to take some data from an Excel spreadsheet, put it into a dataset, and then update a SQL table with the data. I'm not 100% sure I'm doing this right, can somebody tell me what I'm doing wrong? The error I'm getting is 'uninstallable ISAM', so I think the error is to do with the con...more >>

C# Jobs - Scotland
Posted by Craig Lister at 10/18/2005 12:00:00 AM
Hello! Posted a few questions here as I have the Beta of 2005 (VS) and think C# is amazing. I'm a Delphi developer of 6 years, but desperate to cross over to C#. Anyone know of: 1. A company in Scotland (Closer to Edinburgh) that would take on a developer and X-Train ? 2. A way to get i...more >>

Frames in MSHTML
Posted by David Pendrey at 10/18/2005 12:00:00 AM
Hello all, I am using the WebBrowser control to browse a webpage containing frames = and am having difficulties accessing the 'frames' property of a document = object. Bellow is my code and the error recieved: webAccess.Navigate(URL); // Wait until document is loaded. This part DOES work ...more >>

C# Doulbe_Click in ListView SubItems
Posted by Jason Huang at 10/18/2005 12:00:00 AM
Hi, I have no problems in double_clicking on the ListView Item, however, the double_clicking seems doing nothing on the SubItems, and the subitems can't be high lighted. I am wondering what have I done wrong. Any help will be appreciated. Jason ...more >>

How can change the bounds of the client area of a control ?
Posted by Steph. at 10/18/2005 12:00:00 AM
How can change the bounds of the client area of a control ? =20 In fact I would like to have a Panel with Raised borders. I can draw the = raised borders but they disappears as soon as I put control inside with = it's Dock property set to DockStyle.Fill. =20 I tried using the "Set...more >>

ToolTip Problem
Posted by kiran at 10/18/2005 12:00:00 AM
I set a tooltip to a button. using SetToolTip method.in Form_Load function. When I mouse over the button tooltip is comming perfectly. But When I click the button and mouse over the button , tooltip is not comming. Regards kiran ...more >>

Windows Message value and meaning...
Posted by Steph. at 10/18/2005 12:00:00 AM
Does anybody where I can find the value of "Windows Messages" ?=20 In the example below I would like to know the meaning of the "msg.Msg" = parameter; if Msg =3D 134 what is that kind of message ? 134 =3D = WM_????? protected override void WndProc(ref Message msg ) { MessageBox.Show(...more >>

send emailing list
Posted by Stanley Cheung at 10/18/2005 12:00:00 AM
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to background task instead of user need to wait and wait until all email sent. Also, when user waiting ...more >>

C# News Group
Posted by Sochinda Tith at 10/18/2005 12:00:00 AM
Hello all, I'm a new programmer in C#, and I have some problems with Microsoft C#.NET. So I would like all of you to help me for the following problem that I meet: How can I change font to Cambodian language(Khmer) of Main Menu, Message Box, Form Title in Microsoft C#.NET? I look forwar...more >>


DevelopmentNow Blog