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# > march 2004

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

Convert String to Binary number or other recognizable repersentation
Posted by pei_world at 3/31/2004 9:43:50 PM
I am working on Encryption in C#. after I encrypted the message, they are in some kinds of unrecognizable format, when I try to parse that string in my XmlDocument, It give me error. So I want to find a way to covert them to universal recognizable format. binary number is a possible solution.# ...more >>


Concatenate a datareader list into a string
Posted by Tom at 3/31/2004 9:31:06 PM
Hi I want to retrieve database data and concatenate them to a string. Here is my code [code string sql = "Select phone From users where userid=1 or userid=2 or userid=3 or userid=4 SqlDataReader dr = null dr = SqlHelper.ExecuteReader(DBConnection.ConnString, CommandType.Text, sql) Ar...more >>

C# is very slow when....
Posted by Steven Blair at 3/31/2004 8:20:09 PM
Hi, Been writing a C# application for the last week or so. Wehenevr I ran my code from within .NET development environment, I had no problems. recently though, when I press Run, it takes a long time for the application to run, then when I am doing certain tasks (DB connections, registry access...more >>

Deleting File from HardDrive
Posted by Arvind P Rangan at 3/31/2004 8:09:42 PM
Hi, After uploading a file i wish to delete the file which has been uploaded. Can anyone help me on this. Or give me links for the available Example. Thanks Arvind ...more >>

datetimepicker
Posted by ichor at 3/31/2004 5:48:02 PM
hi, i want to use the datetimepicker to pick only the time. but the i am able to pick the dates also even tho i set the format = time. how do i do this in C#? i want to disable the drop down box that appears in the dtpicker thanx ...more >>

ComboForm1 Datasource Question
Posted by Sammut at 3/31/2004 5:19:01 PM
Hi, I am creating a comboform and trying to show a field from an access tables but I cannot get how to tell the comboform what field from the table I want to see The access database is called "ecs" The table I want is called "locality" and has 2 fields "Code" & "Text" nwo I want to show th...more >>

integer
Posted by ichor at 3/31/2004 5:10:20 PM
hi how do i validate that the user always enters a string? do i use regularexpressionvalidator or is there any easier way? ...more >>

Web Browser component in C#
Posted by Bryan at 3/31/2004 5:03:33 PM
I have a AxWebBrowser componet in my c# app. I want to be able to get rid of the header and footer when I print it. I got it so that a button can open the print and page setup dialogs. So in the page setup dialog but you can get rid of this and then print, but that isn't exactly what I wa...more >>



datagrid loop through to find checkbox
Posted by Mike at 3/31/2004 4:52:27 PM
Sorry I'm a really newbie when it comes to C#. My question is: How do I loop through a datagrid control find all the checkboxes evaluate wheather it's checked or not. And also at the same time grab the label I've made for the product id. A little more info: I'm creating a sho...more >>

How to persist ComboBox.Items?
Posted by Gary at 3/31/2004 4:49:24 PM
Is there an easy way to persist ComboBox.Items? For example, to create a history list?...more >>

Serializable attribute not working
Posted by faktujaa at 3/31/2004 4:26:10 PM
Hi All Custom object ABC is declared in C# as [Serializable()] public class ABC{ int One; This object is passed to a remote object as ABC objABC = new ABC() objABC .One = 1 Remote.CheckMe(objABC) Also Remote object is derived from Marsha... and hosted in IIS. Remote object is a class library d...more >>

P/Invoke & CallBack functions
Posted by Maxim Kazitov at 3/31/2004 3:54:06 PM
Hi, In my project I call some C functions from C# code, and some times I should use callback functions. Usually all works fine. But in some cases I have following problem : Error Message: Run Time Check Failure #0 The value of ESP was not properly saved across a function call. This is usu...more >>

Reading files with delimeters
Posted by R.A. at 3/31/2004 3:43:36 PM
Hi Is there some support reading binary files with delimeters and getting the data in string arrays based on the delimiters, using c#? Thanks ...more >>

MSMQ message from VB 6
Posted by Kimmo Laine at 3/31/2004 2:40:24 PM
Hi, what kind of formatter should i use (in C#) when i send message from VB 6 like this Dim Dest As New MSMQDestination Dim Msg As New MSMQMessage Dest.PathName = ".\PRIVATE$\TestQueue" Msg.Body = "Hello!" Msg.Send Dest private void OnReceiveCompleted(object sender, Rec...more >>

Custom Logon
Posted by RF at 3/31/2004 2:34:42 PM
Hi All Experts, I need some help on custom logon. I've done some research and found GINA (Graphical Identification ...). This is way too much for my needs. What I need actually is once after the user logons on to the workstation (before the desktop is loaded), I need a second logon screen to...more >>

Can't programmatically access a custom Outlook form in C# (late binding problem)
Posted by Scott English at 3/31/2004 2:17:48 PM
I am creating an Outlook Add-in in C#. I want to programmatically = manipulate an Outlook form. I am using the PIAs for Office XP. The ModifiedFormPages property of an Inspector returns a Pages = collection. The Add method and Items property return an object of type = Object. All the examp...more >>

Adding rows to the middle of a datagrid.
Posted by ChrisM at 3/31/2004 2:06:43 PM
Hi all, I have an application which has a Windows Form which displays information in a DataGrid control. I'm trying to find a way to allow the user to insert a row in the middle of the grid. Does anyone know how(if) this can be done? Thanks, ChrisM ...more >>

P/Invoke for void **
Posted by Dilip Krishnan at 3/31/2004 2:01:12 PM
Hi I'm having a function in a Dll that has the following signature. int foo(void **ppSomeHandle, char *str1, char* str2) I was wondering whats the best way to access it in managed code. In C# how would I define the same [DllImport....] public static extern unsafe int foo(IntPtr *ppSomeHa...more >>

ICustomMarshaler
Posted by Matthew Wieder at 3/31/2004 1:59:22 PM
I'm trying to implement uintMarshaler:ICustomMarshaler which will be used to Marshal a uint as an integer. I have been unable to even find any sample code anywhere that is helpful, so any help is appreciated. I must implement: class uintMarshaler : ICustomMarshaler { public static ICus...more >>

CurrencyManager.Position ??
Posted by Chris at 3/31/2004 1:48:16 PM
Hi, after inserting a record in a DataSet (using .NewRow() and .Add() ) and commiting it to the DB using the sqlDataAdapter.Update(), do I want to set the position of my currency-manager to the last row in the dataSet. Changing the position is done using the same (working) code that is execut...more >>

Where to define Service Decription for my service program?
Posted by David at 3/31/2004 12:26:21 PM
Hi, I wrote a Windows Service with C#. I can set Service Name for my service. But where should I define Service Decription for my service? Thanks in advance. David ...more >>

Populate datagrid in Form1 constructor, window handle error?
Posted by polarz at 3/31/2004 11:46:03 AM
I have a menu item that will populate a datagrid when clicked, but when I try to load the same data on startup I get the following error. Cannot call Invoke or InvokeAsync on a control until the window handle has been created. if(Convert.ToBoolean(loadSum)) { loadDataDelegate startLDD = ne...more >>

Errors using COM under Win98 with C# Classes
Posted by Clinton Pierce at 3/31/2004 11:13:01 AM
I've created a C# class DLL that I need to call from various scripts (.VBS and Winbatch). This is the procedure I followed: * Put the C# DLL into the PATH * Ran this on the target workstations: regasm OurClass.dll /tlb:OurClass.tlb * Tried calling the class in a minim...more >>

P/Invoke and string array
Posted by Maxim Kazitov at 3/31/2004 11:12:24 AM
Hi, I try to invoke function with following prototype from external DLL : LONG Fun1(LONG n, LPCSTR* lpNames, LPLONG lpStatus); n - number of element in Names; lpNames - is in/out string array (function can modify array); lpStatus - is in/out long a...more >>

Custom Types in TLB
Posted by Matthew Wieder at 3/31/2004 11:07:49 AM
We have classB in projectB which implements interfaceA from projectA. Some of the methods that are implemented take or return enums or classes also defined in projectA. When we export projectB (marked as AutoDual) using tlbexp and then consume it from VBA, the VBA compiler (and intellisense...more >>

Office version
Posted by Francis at 3/31/2004 11:04:28 AM
Hi all, Can anyone tell me how to retrieve the version of the Mircosoft Office through C#? Francis ...more >>

Deriving from C# ASPX Pages
Posted by Dmitri Shvetsov at 3/31/2004 10:49:41 AM
Hi, Does anybody know how to create a root class with ASPX page to derive from this class then? The idea was to create the "root" page with all evaluations, restrictions, basic interface, etc., then derive a new class from it. Maybe URLs, documentation? Dmitri. ...more >>

Writing dataview as XML
Posted by Amos at 3/31/2004 10:31:29 AM
Is it possible to write the data in a dataview as XML? I use the dataview to filter data from a dataset but I need to write that filtered data in the dataview as an XML file. Thanks, Amos ...more >>

Work with FindWindow API
Posted by Bernardo at 3/31/2004 10:31:16 AM
Hi, Anyone knows how can I know if an application is running? Thanks,...more >>

ComboBox Question
Posted by RF at 3/31/2004 10:28:05 AM
Hi All, I need some expert advise concerning a problem with the ComboBox class. I have simple combo box with some elements: - combobox: - abc - 123 - 456 Here is the problem: When I start typing inside the combo box the same element name like 123, the cursor automatically...more >>

converting images
Posted by stecus at 3/31/2004 10:19:34 AM
Hello All, I am trying to convert an images BMP to an images GIF. This works fine but I want to adjust de resolution from het GIF images. Can I do this or is it not possibel? Does anyone have an example? Bitmap mybmp = new Bitmap(strFileToConvert); mybmp.Save(strFileToConvert + .gif",Syst...more >>

COM dll in C# ?
Posted by roben at 3/31/2004 9:56:37 AM
HI, Is it possible to create a normal COM/DLL file in C# that can be access through "normal" ASP. Like.. ? <% Set Myobj = CreateObject("Myobj.Class") %> I tried to create a class library in c# and set the "Register for COM Interop" = true But when I try do do a regsvr32 xxx.dll it giv...more >>

File Not Released After Thumbnail Created
Posted by Jeff S at 3/31/2004 9:51:06 AM
In an ASP.NET Web application, I enable users to upload a file for use in a photo album. After uploading the file, some code executes (see it below) that creates a thumbnail image from the original. The problem is that the original is not released; when other code tries to delete it (using File....more >>

reading part of a string
Posted by Dave Bailey at 3/31/2004 9:36:16 AM
wish to take the following statement: return " and wo3 = " + "'" + sysCodeList.SelectedItem + "'"; and read the sysCodeList.SelectedItem until there is a space in the string. Does anyone know the code for doing that? Thanks, Dave...more >>

confusing output from process
Posted by Paul O at 3/31/2004 9:36:13 AM
I'm using a Process object to run an external command line program that gathers cpu utilization stats. I get the output using "process.StandardOutput.ReadToEnd()" and assign it to a string variable "stats". All of that works great. The problem is when I go to parse and display the output from the...more >>

Session expires after Directory.Move
Posted by Adhik Kadam at 3/31/2004 9:33:48 AM
Hi, I am facing bit different problem. I am using move method of Directory Class to rename folder to new name. But it is doing some nasty thing i.e. why and how it is removing current session (current session expires) after execution of Move Command. This is small but huge problem to me as ...more >>

general question regarding language usage...
Posted by Paul M at 3/31/2004 9:13:46 AM
hi there, i know that everyone says that C++ is a more low-level language for programming and all...what is the real performance difference between using VB.NET, C#, and VC to create a windowsform application using .NET? is there some website with more information on this kind of topic? t...more >>

Excel Formula in C#
Posted by Mark Brewer at 3/31/2004 8:51:09 AM
Hi, What is the syntax to insert a formula in a specific cell programmatically using C#? Regards, Mark ...more >>

How to view binary file in vs7
Posted by R.A. at 3/31/2004 8:14:27 AM
Thanks. ...more >>

books
Posted by Mike at 3/31/2004 8:04:26 AM
I'm looking to convert some of my "classic asp" applications to .NET using C#, can anyone recomend any good Web DB programming with C#? thx ...more >>

Executing Remote commands
Posted by Jonny at 3/31/2004 7:31:10 AM
hi all Is it possible to send and execute commands on a remote machine... similiar to xCmd Any idea's how Thanks Jonny...more >>

Want to make button skin class??
Posted by simsimlhr NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/31/2004 7:13:45 AM
How can make skin button of any shape in C#. What classes can we use. Any Url For articles. Thanx in advance Qasim Raza ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= ...more >>

Multiple Embedded Files with Microsoft.CSharp.Compiler
Posted by dd_le_postier NO[at]SPAM yahoo.fr at 3/31/2004 6:32:42 AM
Hi, I need to build a win application that will compile a kind of project that contains .cs files and .bmp files. For this i use Microsoft.CSharp.Compiler, it's Compile method handles mutliple sources files, this is ok. Now, i need to include several bmp files as embedded resources (i will l...more >>

Properties and delegates
Posted by A S Carpenter at 3/31/2004 5:51:05 AM
I am calling a property on an instance and I'd really like to keep the property around and use it as a callback. Obvious choice is a delegate (a property is really nothing more that a method with set_ generated by the compiler). I can't use the property syntax with a delegate and I can't use the "...more >>

datagrid custom validation
Posted by Mike P at 3/31/2004 5:41:49 AM
I am adding a custom validator into my datagrid and when I call the OnServerValidate function, my ControlToValidate isn't recognised. Is this because a different signature is required when calling the function from a datagrid? public void Validate_DCUG(object sender, System.Web.UI.WebControl...more >>

How to check asc char code in C#?
Posted by Tom at 3/31/2004 5:11:07 AM
Hi I need to check the asc char code of a textarea in C#. I used charCodeAt in js before. However, which attribute should I use in C# and is InnerText correct [code int a = textarea.InnerText.Length for (i = 0; i< a; i++) { if (textarea.InnerText.charCodeAt(i) > 127 || textarea.InnerText...more >>

a StackOverflowException which doesn't make sense
Posted by Jakub Gajda at 3/31/2004 4:16:07 AM
Hello I have encountered a strange crashing of an app I'm working on When I was trying to isolate the cause of the exception I mad following discovery When I create a new project: Windows Application in C#, add a butto on the form and write the following lines into the Click even handler priv...more >>

Question re Garbage Collection
Posted by John Baro at 3/31/2004 4:07:33 AM
I have object A on a form In a method on the form I add object a to collection B which is local to that method. When that method is finished object B is out of scope but A is still in scope because it belongs to the form. Next time the GC runs will it see object B as collectable? Methinks ye...more >>

different colors on Label control
Posted by Glenn Lerner at 3/31/2004 2:53:07 AM
Hi, Is it possible to have different foreground colors on a single lable? I don't want to create multiple lable controls because each item that I want in different color may change length during run time. Example: Qty: 1,000 Price: $2,000.00 I may want Qty and Price in black and the ...more >>

Memory leak
Posted by mathew.holton NO[at]SPAM surface-inspection.com at 3/31/2004 2:28:39 AM
Hello. I am having major problems with memory leaking in my c# app. Here's my problem: I have an array of objects that need to be re-created every time new information is to be shown in them. So for each element in the array I create (new) a new object. The problem is the 'old' contents ...more >>


DevelopmentNow Blog