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# > july 2006 > threads for saturday july 8

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

Find if service is running using System.Management
Posted by Primera at 7/8/2006 11:02:01 PM
I am trying to determine if a particular process is running. I think I am probably missing something obvious, but here is what I have so far... ManagementObjectSearcher msProcessCcmExec = new ManagementObjectSearcher("SELECT * FROM Win32_Process WHERE Name = 'CcmExec.exe'"); ...more >>

Byte Ordering : Little endian - Big Endian : Binary Files
Posted by mohamed.alam78 NO[at]SPAM gmail.com at 7/8/2006 10:58:12 PM
Greetings, How does one find the format of a binary file to be in Little Endian or big Endian before we start reading the file. Thanks ...more >>

Isolated Storage
Posted by Jon Berry at 7/8/2006 10:05:57 PM
I'm executing an external process from my C# app. It uses a typical command line type interface: program.exe inputfile outputfile I want the outputfile stored in IsolatedStorage. Is there anyway to do this without re-reading the file and re-writing it? I really like the idea of Isola...more >>

Checking fro Table existince in SQL2005
Posted by Robert Bravery at 7/8/2006 9:03:42 PM
HI all, I want check for the existence of a particular table in sql. Then branch code on the result I was thinking of a command something like: IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[tempimport]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1) But dont know how t...more >>

changing bit rate of an mp3 in c#
Posted by vtxr1300 at 7/8/2006 7:27:46 PM
Does anyone have any code to convert an mp3's bit rate? Thanks. ...more >>

setting the default working directory for a console application
Posted by spamspasm.nomail NO[at]SPAM gmail.com at 7/8/2006 6:32:58 PM
Ok, I'm trying to get this sample app http://msdn.microsoft.com/vcsharp/default.aspx?pull=/library/en-us/dnaa/html/getstart_vcsharp.asp#getstart_vcsharp_topic01 working. It requires me to specify a file. It turns out that it is defaulting the application's directory to: this: Unhandled Exc...more >>

problem with regular expression validator on asp.net page
Posted by vtxr1300 at 7/8/2006 4:50:53 PM
I'm having a problem with a regular expression in conjunction with the regular expression validator. I am trying to make sure that when a user browses for a file to upload, it ends in gif, jpeg or jpg. I have the following expression which validates fine in a .net tester I use and also a javascr...more >>

foreach (DataGridViewRow
Posted by Robert Bravery at 7/8/2006 3:53:50 PM
HI All, I'm trying to loop through a datagridview, and use values found in various columns. But problem is that I get errors newar the end. I'm assuming that it is reading the blank row at the bottom of the grid. How can I code my foreach block so that I loop through all the datagridviews row...more >>



Using WMI for system Metrics efficiantly
Posted by Babillon at 7/8/2006 3:28:01 PM
Hello all. I'm writting a little application to help me expand my knowledge in a few different areas. The app is, as you might of guessed from the subject, a system metrics display using WMI. For now I'm doing it with Windows Forms, but later on I will be changing it to use DirectX's Overlays....more >>

packet anlayzing
Posted by amany at 7/8/2006 2:52:36 PM
Hello everyone am trying to analyze the packet i got through a simple peer to peer masseges and i wont to view the informations of the layer 3 and layer 2 frame like (IP address and MAC address)if anyone can help ASAP cindly Thx ...more >>

packet anlayzing
Posted by amany at 7/8/2006 2:50:28 PM
Hello everyone am trying to analyze the packet i got through a simple peer to peer masseges and i wont to view the informations of the layer 3 and layer 2 frame like (IP address and MAC address)if anyone can help ASAP cindly Thx ...more >>

Reading an Ascii string
Posted by John at 7/8/2006 1:31:39 PM
Hi, I'm a beginner is using C# and .net. I have big legacy files that stores various values (ints, bytes, strings) and want to read them into a C# programme so that I can store them in a database. The files are written by a late 1980's PC Pascal programme, for which I don't have the source...more >>

operator is new in 2.0?
Posted by Alexander Ubillus at 7/8/2006 12:39:34 PM
Hello, I'm reading this book (Self-Paced for 70-536) where it says that operators are new both to VB:NET and C#. As far as i know operators exist for C# since 1.x and this link says so too: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfoperator.asp So,...more >>

Error in xml file after write
Posted by Martin at 7/8/2006 12:09:02 PM
I read and write from an xml file. Running the code below removes the first part of the xml declaration. That is, instead of "<?xml...>" I get "ml...>" in the begin of the xml file. The code is part of a service. I hope someone can help. Regards Martin XmlDocument scanDoc = new XmlDocu...more >>

create subdomain in IIS with C#
Posted by vtxr1300 at 7/8/2006 11:35:27 AM
I have a web site that allows users to register. When they register, I'd like to create a subdomain that points to their profile page. Does anyone know how to do this in IIS through a c# asp.net page? Thanks. ...more >>

IHTMLPopup Error - Cross Frame Security
Posted by rbanerji NO[at]SPAM metacrawler.com at 7/8/2006 10:36:02 AM
I am building a BHO that is meant to popup a IHtmlPopup window on a mouse over image event. All the code works fine if the image is in the main Window. However if the image is in a frame then I get the following error: {"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)...more >>

Access remote server using C# windows app
Posted by pratcp at 7/8/2006 10:08:13 AM
I have a remote server (a shared hosting webserver) where I have few users ftp some flat files. I need to access these files using a windows app/windows service written using c# and run it on a nightly basis. How do I access the remote server in a c# windows service or console app? The reason ...more >>

Thanks
Posted by Behzad at 7/8/2006 8:10:55 AM
Hi again. I was in a hurry and i forgotted to say "Thakns" Please Forgive me! Thanks in advance Behzad ...more >>

Why Form2 does not appear on the screen?
Posted by Behzad at 7/8/2006 7:45:08 AM
Hi all, I have made a MDI application.Let's say FrmSession and FrmProperties.I want to create something like Photoshop.There are allways many instances of FrmSession but at each there is only one instance of FrmProperties.But the problem: Every time the user makes a new session i create a ...more >>

length of data type
Posted by donald at 7/8/2006 3:30:44 AM
how to get the length of variable for differernt data type, such as data type of structure, integer, date, etc. Thanks in advance. ...more >>

System.Collections.Generic.SortedList accessing
Posted by newscorrespondent NO[at]SPAM charter.net at 7/8/2006 3:26:01 AM
I have a list declared: public System.Collections.Generic.SortedList<int, System.Collections.Generic.List<MTGTracer> > ActiveList = new SortedList<int,List<MTGTracer>>(); The key is an integer and the value is a list of MTGTracer. The documentation states: This property provides the a...more >>

it's a question abuot vs2005 default web server and the iis web server between.
Posted by topgene at 7/8/2006 3:23:58 AM
question describe: i used C# write the follow method: -------------------------------------------------------------------------------- public static void GetMp3FileFromAudio(string ExeFilePath,string AudioFilePath, string SaveFilePath) { System.Diagnostics.ProcessS...more >>

Need help in Regex.
Posted by jmchadha NO[at]SPAM gmail.com at 7/8/2006 1:34:38 AM
I have got the following html: "something in html ... etc.. city1... etc... <a class="font1" href="city1.html" onclick="etc."> click for <b>info</b> on city1 </a> ... some html. city1.. can repeat lot of times here.... Requirement: ------------------- I want to get the value of "href" i.e...more >>

what is fastest way to change text color?
Posted by Ryan Liu at 7/8/2006 12:00:00 AM
Hi, I want to change keywords text color in a text editor. I select RichTextBox and use its Select() method to select keywords line by line, one by one, then change its color. this.Select(start,length) ; this.SelectionColor = color ; But turns out it is very slow for big file. I...more >>

How to load Html to webBrowser from Memory Stream?
Posted by Risen at 7/8/2006 12:00:00 AM
Hi, all, How can I to load Html file that in memory stream to webBrowser instead to load Html file from disk. can anybody help me? Thx. B.R. Risen ...more >>


DevelopmentNow Blog