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# > june 2005 > threads for friday june 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

pocket pc connection
Posted by Markon at 6/17/2005 11:23:24 PM
Is there a way to directly access files on ppc from pc when connected with usb cable? Visual Studio can do this when it deploys projects ...more >>

loading images to ram
Posted by mraj at 6/17/2005 9:47:01 PM
Hello... I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To improve the performance, I want these images to reside on the RAM instead of the hard disk. How...more >>

how to follow a javascript link programaticaly?
Posted by ido at 6/17/2005 9:36:45 PM
Hi all this is my first post here :) I would like to know something about using javascript programaticaly The thing is i have this web site on which when i press a button i uses a function of javascript.. says exactly this in source <a href="javascript:np('1')" ... now when i am on tha...more >>

Data Entry Validation
Posted by Jeremy S at 6/17/2005 9:32:06 PM
In a Web Forms application I present users with a list of items - each of which the user is to assign to a grid. The grid is N rows by 3 columns. The users enter the desired target cell for each list item by specifying two integer values - one for the row number and the other for the column n...more >>

Does COM method return S_OK?
Posted by techie at 6/17/2005 8:43:42 PM
I have an unmanaged VC++ application calls a COM object which will be implemented in C#. The VC++ call is: BOOL res; VERIFY( importFilt->Import(&res) == S_OK ); My C# method is: public int Import() { // TODO: Add ValidatorImport.Import implementation return iVal; } ...more >>

Question about disk information
Posted by at 6/17/2005 8:33:28 PM
Hello, i have some questions. 1) How can I check, if disk C: is NTFS? And how can i get some others information about C: like free space or size. 2) How can I get, in which groups (Administrators, Power User ...) is current logged user? Thanks a lot Lubos ...more >>

Obscuring .NET code
Posted by John Olbert at 6/17/2005 7:27:02 PM
We are working on our first large .NET C# program. We create programs that run analytical instruments for chemists. Many programs contain complex algorithms which represent very significant investments in research. We were surprised by how a program like Reflector.exe can disassembler th...more >>

Analyze https page activity
Posted by MajorTom at 6/17/2005 6:58:49 PM
Hello group I have a winforms client application. The customer now wants to have access to information that is on a web page via https. We have all the necessary account and password, but the problem is when we need to confirm some data, the user have to leave his application go to the w...more >>



Ultra Newbie Question
Posted by Pross at 6/17/2005 2:50:48 PM
I apologize for asking what is probably a real silly question but I am not a C# programmer. I work in VB but a lot of code examples are in C# and I am trying to translate some code and I don;t understand what this syntax means: //---------------------------------------------------------------...more >>

Length of the data to decrypt is invalid.
Posted by gane kol at 6/17/2005 2:36:58 PM
Hi I am using DES algorithm. I am getting an error message in a few cases of the querystring Error Message : Length of the data to decrypt is invalid. Error Method : System.String Decrypting(System.String) Error Line: strDecrpt = sr.ReadToEnd(); QueryString Data: ---------------...more >>

[Newbie]Problem writing streaming audio using NetworkStream
Posted by keithh NO[at]SPAM flowcal.com at 6/17/2005 2:22:01 PM
I've been using C# for a few weeks now and I'm still working on some of the intricacies and form. My goal is to write a simple C# app that will generate a list of files and stream them to a port on my computer. I populate a string array (mp3String) with a couple of mp3 files (a.mp3 and b.mp3) ...more >>

C# Interface for Win32 DLL functions with pointers?
Posted by Fred West at 6/17/2005 2:08:42 PM
I am building a C# interface to a 3rd party win32 dll. The win32 function has the following definition: extern "C" int __declspec(dllimport) _stdcall w32func(unsigned char id, char *pname); Now in my C# class how do I declare the function. So far from the documentation, I have come up wi...more >>

Regex negative character set
Posted by pagates at 6/17/2005 1:45:03 PM
Hi All, It might be because its the end of a long week, but I can't figure out the correct way to write a regular expression to find all matches except a specified string. For example, take the following 3 lines: This is OK This is Not OK Again This is OK I want to find the fir...more >>

port forwarding
Posted by cyrus at 6/17/2005 1:23:02 PM
Does anyone know how to implement a class that can forward a port to another pc? It should for example when a http request on a port arrives on the pc where the program is running forward the request to another that runs a webservers and send the answer back. ...more >>

Graphic Tools for .NET
Posted by Tom at 6/17/2005 1:18:13 PM
Does anyone know of a good chrating tool add-in for .NET. We are a Visual Studio 2002 c# shop writing custom applications/web parts in Sharepoint. Thanks ...more >>

How to measure the size of an object.
Posted by Frank Rizzo at 6/17/2005 12:35:02 PM
I am doing some memory profiling work and I am trying to figure out the minimum size of an object. The object has a bunch of variables that are other objects (hashtables, array lists, and whatnot). How can I measure the size of such an object? C# provides a sizeof operator, but only for v...more >>

Events getting deleted
Posted by Steve Lloyd at 6/17/2005 12:30:42 PM
Hi, I am using c# as my code for ASP.Net and getting some annoying behaviour I am creating custom handlers for events in the InitializeComponent section of a user control but when I redesign the form they are getting deleted and replaced by the Handlers for all of the controls in the form....more >>

I want to read all charecters of pdf file ....
Posted by Alex Smith at 6/17/2005 12:18:38 PM
Hi friends, I want to read all charecters of pdf file using char array. Thanks, Alex. ...more >>

C# and C++ communication
Posted by Steph at 6/17/2005 11:58:30 AM
Hi, I have an application in C++ that runs on different client computers. I need to develop an application in C# on the server that sends parameters to the client application (in C++). What is the best solution to make the application in C# communicate with the application in C++ ? I also n...more >>

How to ..
Posted by Jacek Jurkowski at 6/17/2005 11:52:08 AM
ToolStripProgressBar control does have a Style property. When set to a value "Marque" in the designer, the progress bar starts to show mooving around bar. But in the run time it doesn't show anything ... How to start showing Marque in the run time? ...more >>

Code Snippets in C# for NET 2.0
Posted by Sanjay Pais at 6/17/2005 11:05:39 AM
Any one played around with snippets should be able to help me :) I need to Add a custom code Snippet and need the value of the variable ProcedureName to be set to the name of the class. I know I am being lazy :) public ovevride void Lock(string str1, string str2){ //set value of procedu...more >>

serial interface
Posted by arpitha chowdary garapati at 6/17/2005 10:35:06 AM
hi, iam handling 2 projects in which i have to communicate hardware components(Receivers) using RS 232, RS 422, USB. i installed .NET 2003 in my system. but this is not supporting serial interface. icame to know that 2005 version is implementing but i want to confirm whether USB and serial ...more >>

How Do I Debug A Client/Server app in VS.NET?
Posted by jabailo NO[at]SPAM texeme.com at 6/17/2005 10:26:36 AM
I've built a remoting solution with a client and a server. I want to start the server, and then run the client against it. Since I can only make one project in a solution be the "Set As Startup Project" how can I start the server, and then start the client, both in debug mode? ...more >>

string array
Posted by Hrvoje Voda at 6/17/2005 10:11:08 AM
How to get a list of names from database into string array? variable name should be string array... This is the code I use... public string GetFunctionName(Guid UserID) { sSelect = ""; string name=""; if (db!=null) { if (nGroupID.Length !=0) { for ( int iIndex = ...more >>

Meta Data not found when using a Windows Service
Posted by Nathan Kovac at 6/17/2005 10:06:44 AM
Yesterday afternoon I was getting the following errors in a windows service: 'DatabaseManager.DataComponent', 'Error', '3 Errors: Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found Line: 0 - Metadata file 'RemoteLoader.dll' could not be found Line: 0 - Metadata file 'wwScripting...more >>

How to send an e-mail
Posted by John J. Hughes II at 6/17/2005 10:02:59 AM
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of my customers are not really happy with having the IIS installed, not being used except to send e-m...more >>

.Net Framework 1.1 Hotfix
Posted by J-T at 6/17/2005 10:01:02 AM
I have installed .Net framework 1.1 on my box and when I apply .Net framework 1.1 SP1 to it ,it says that to run this application you need to have .net framework 2.0 !!!!!! I can not underestand this???!!Why do I need Framework 2.0 to apply Sp1 to version 1.1???? Where Can I get the .Net fr...more >>

Why shouldn't I trust my own application?
Posted by Michael Rodriguez at 6/17/2005 9:59:55 AM
I attended a Microsoft seminar yesterday on Click Once technology. The presenter urged us to restrict our smart client applications to the minimum security settings possible and gradually increase the security as needed. My question is: Why? I could understand if this was an application th...more >>

Problem with Settings.Save()
Posted by Boris Sargos at 6/17/2005 9:58:57 AM
Hi, I don't maange to save the user settings in my application. I created a settings file named MySettings.settings, that contains the property "BackupFolder" (string typed), in User mode. The syntax I use in the code to save the data is : MySettings.Default["BackupFolder"] = m_TxtBac...more >>

how to calling non-.NET DLL methods at runtime?
Posted by ShadowOfTheBeast at 6/17/2005 9:55:02 AM
Hi all, What mechanism to call at runtime non-.NET DLL methods is it using .net remoting? -- The Matrix Insurrection...more >>

Command window
Posted by Steve Lloyd at 6/17/2005 9:50:18 AM
Hi, I am trying to debug my application using the command window but i keep getting: error: 'blah' does not exist. I am trying to debug some concatination by doing ?Request.FilePath.LastIndexOf("/") All i get is : error: 'Request.FilePath.LastIndexOf' does not exist Can anyone tel...more >>

C# Builder
Posted by chichak at 6/17/2005 9:00:57 AM
Hi, I'm asking for help of somebody. I started training in C# Builder and web services and i have a lot of problems with using SQL database. Until now I am using C++ and interbase and work with queries with no problems, but now when i want make some database on web server and chang...more >>

Slowdown databinding
Posted by RvGrah at 6/17/2005 8:26:59 AM
This code: private void GetPlans(){ dt = dt.Clone(); //New object? cn.Open(); SqlDataReader drd = cmdGetPlans.ExecuteReader(); if (drd.HasRows){ while (drd.Read()){ dt.Rows.Add(new Object[] {drd["JobID"].ToString(),//where the problem happens drd["CustName"].ToString()}); } } cn.Close...more >>

Exception or validation method?
Posted by Andy at 6/17/2005 7:09:26 AM
Hi all, This is more of a design question. I'm building an n-tier application, and the question revolves around the buisness layer telling the application that a value is not appropriate for whatever reason. What is the recommended way of doing this? Thrown an exception of a property is ...more >>

Cannot Access a disposed Object - System.Timer
Posted by theinvisibleGhost at 6/17/2005 6:43:48 AM
I'm having a problem that occurs at random in my app. I get an exception "Cannot Access a disposed object" In MSCorLib when calling boolean Change (int32, int32) Stack trace reveals System.Threading.Timer.Change(Int32, int32) at Systems.Timers.UpdateTimer() at System.Timers.Timer.set_Interv...more >>

Local Security Policies
Posted by Justin at 6/17/2005 6:33:03 AM
I am currently working on a windows app in C# that when given a computer's name needs to check local security policies on that computer across the server. Some of the policies I would like to check are the auditing policies, such as "Audit Logon Events" and "Audit Policy Change," etc, I wou...more >>

C# control question
Posted by kilsoft NO[at]SPAM gmail.com at 6/17/2005 4:41:51 AM
I have created an control with my page content. How do I address a table with a runat=server property in the content control from another page hosting the control? In the junk code below I need to change the InnerHtml of the content table1. <main page> <header control /> <left navigation co...more >>

Shift-JIS to UTF8 string conversion and c#
Posted by Mikael Karon at 6/17/2005 4:36:03 AM
Hi, I'm desperatly trying to convert a string wich I have in Shift-JIS (@", ,=C8,=BD,=CC=89p=8C=EA,=CC=83=8C=83x=83=8B") to UTF8 but I just can't get it to work. One would thing this would be trivial and well documented somewhere (perhaps it is and I'm not getting/finding it) but however much...more >>

TraceSwitch
Posted by nhmark64 NO[at]SPAM newsgroup.nospam at 6/17/2005 1:57:41 AM
Hi, When i run testapp.exe the testapp.exe.config file i have in the DEBUG directory gets deleted, and the TraceSwitch in my code never gets set. testapp.exe.config ____________________ <?xml version="1.0" encoding="utf-8"?> <configuration> <system.diagnostics> <switches> ...more >>

What does this mean?
Posted by Chris at 6/17/2005 1:55:28 AM
I've been working with c# for some time now and I've just seen a syntax I don't recognise in a system I am looking at. What does this do? bool MyVariable &= Method(); By the way, Method() reurns a bool *** Sent via Developersdex http://www.developersdex.com ***...more >>

Regular expressions: parsing an "OLEDB like" connection string ...
Posted by Martin Robins at 6/17/2005 12:00:00 AM
I am trying to parse a string that is similar in form to an OLEDB = connection string using regular expressions; in principle it is working, = but certain character combinations in the string being parsed can = completely wreck it. The string I am trying to parse is as follows: commandText=...more >>

P/Invoke MFC member
Posted by Tony Maresca at 6/17/2005 12:00:00 AM
Hello. My C# based assembly is loaded into a commercial MFC based application as a 'plug-in' of sorts. The host app exposes limited API functionality, and one of the APIs it provides is a static exported unmanaged C++ function that returns a pointer to its CWinApp object. From my assembly,...more >>

[Newbie Question] Updating a record problem.
Posted by DC at 6/17/2005 12:00:00 AM
My update code seems to execute without error but doesnt write the data back to my database, am I leaving someting out? Do I need to tell the DataAdapter to update the database somewhere? private void btnUpdateSeminar_Click(object sender, System.EventArgs e) { string strConnectionString...more >>

Where's the "MainMenu" web control in web form?
Posted by Jason Huang at 6/17/2005 12:00:00 AM
Hi, In VB, we have windows control item "MainMenu", do we have this item in the ASP.Net C# web form? Or how could we make it? By the way, how about the ASP.Net 2005? Thanks for help. Jason ...more >>

Thread synchronization
Posted by scott at 6/17/2005 12:00:00 AM
hi all, Thx to any one that can offer me help, it will be much appreciated. iv got a multithreaded program and need to use thread synchronization. The synchronization does not have to work across multiple processes just the one. I was wondering if any one new which one used the least...more >>

Extending C#
Posted by Chad Z. Hower aka Kudzu at 6/17/2005 12:00:00 AM
I know this is not the ADO.NET group, and I made a different post there. But Im posting this URL as an example of how truly flexible the C# language is. Many developers do not realize how extensible of language it is. The article is based on SQL retrieval, but the concepts apply to anything in...more >>

collection to dataset
Posted by NuB at 6/17/2005 12:00:00 AM
I have a collection of data, that i'm looping thru and reading and populating a file. Can i make that collection into a dataset so i can then create a dataview, or dataTable to then sort, etc, thru it. ...more >>

c# gui app
Posted by Dave at 6/17/2005 12:00:00 AM
Hi, I am writing a gui application in c# and when i want to change the main form property at run time in the code i use this.image or this.backcolor and so.. when i want to change the controls on the form i use the control name like this: label1.color=... when i am wrting form1.image i get com...more >>

C# property
Posted by Giang Pham at 6/17/2005 12:00:00 AM
I create one activeX by using C++ dot Net. Then I using it on a from of C# project, I insert and have it a name (m_ctrlGraph) When I use its property, such as: m_ctrlGraph.FrameStyle = 2 It always has an error like this: " Cannot implicitly convert type 'int' to 'NTGRAPHLib.FrameStyle " ...more >>

Questions only for experts
Posted by at 6/17/2005 12:00:00 AM
Hello, i have some questions. 1) How can I check, if disk C: is NTFS? And how can i get some others information about C: like free space or size. 2) How can I get, in which groups (Administrators, Power User ...) is current logged user? Thanks a lot Lubos ...more >>

App.config vs <<AppName>>.exe.config handling
Posted by Ranjith Venkatesh at 6/17/2005 12:00:00 AM
I read and write to a config file which is the data store for this Windows Application written in C# using VS.NET 2003 in Windows XP. Now I want to trigger the program to read the config whenever I change it. I use a FileSystemWatcher with the path set to System.IO.Directory.GetCurrentDirec...more >>

Clipboard on Pocket PC
Posted by Tomá¹ Machala at 6/17/2005 12:00:00 AM
Hi, I read something about using clipboard but it seems to be working only under normal Windows, not Windows for Pecket PC. I'm trying to get a string saved in clipboard and save any else string there. How to do this? Thanks. ...more >>

save TimeStamp in int
Posted by James Scott at 6/17/2005 12:00:00 AM
Hello, I was wondering if there is a package out there, that allows to convert a date into an int-Timestamp (accuracy needed: 1 sec) and maybe provides some basis time calculations. Background for that is, that I want to save the data into an Hash with an int-timestamp as key. Thanks!...more >>


DevelopmentNow Blog