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# > november 2007 > threads for friday november 16

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

XSL Question
Posted by Analizer1 at 11/16/2007 8:12:18 PM
When the XSL is loaded and run Is it compiled and ran each time tks ...more >>


Is .NET SDK the same as .NET framework class library
Posted by Tony Johansson at 11/16/2007 6:35:22 PM
Hello! I have VS2005. In the VS2005 I have a folder called v2.0. The .NET framework class library is version 2.0 for VS2005. So is .NET SDK the same as .NET framwork class library. If not what connection does it have to the .NET framework class library. //Tony ...more >>

Setting Up Outlook Pop Accounts
Posted by Mick Walker at 11/16/2007 6:23:26 PM
Hi All, I have a scenario where upon initial running of my application I need to create a new pop3 mail account within the locally installed Microsoft Outlook program. I need to be able to set smtp auth options as well as the general server and user settings. Does anyone know or have any...more >>

Getting image from wewbsite
Posted by Johnny Jörgensen at 11/16/2007 6:02:24 PM
Does anybody know how you can extract an image fron a webpage loaded into a webbrowser control and either save it to file OR save it in a database? Cheers, Johnny J. ...more >>

Cannot read psexec output
Posted by sjoshi at 11/16/2007 5:32:21 PM
Hi All I'm trying to use the Process/ProcessStartInfo class to use sysinternals psexec tool to run a remote command but I'm unable to get the output. The same command thru a DOS window runs fine on a remote server. The code is very simple... _logger.Debug(string.Format("Filename: {0} Arg...more >>

Embed FolderBrowserDialog on form?
Posted by Michael Howes at 11/16/2007 5:14:26 PM
I need a folder selection tree on my windows form. I don't see a way to add the FolderBrowswerDialog as a Control and add it to my form's controls collection. Is there a way to accomplish this or do I need to write my own? It would be nice to get the folder icons like they are on each ...more >>

Trace across AppDomains
Posted by ctacke/ at 11/16/2007 4:55:29 PM
If this is simple, forgive my ignorance, but I'm coming from the CompactFramework where we don't use AppDomains. I did a fair bit of archive searching and couldn't find an answer and I got no responsed in the remoting group after a week, so I'm throwing a little wider net this time. I have a...more >>

DateTime comparasion problem with 0:00:00
Posted by Mike at 11/16/2007 4:39:45 PM
Hi, I have DateTime filed in db table. I'd like to search my db based on DateTime filed, actually to list all rows with particular date, for e.g. 16.11.2007... I send string to method for. eg. 16.11.2007 --> short date and convert that to DateTime. After conversion it looks like 16.11.2007 ...more >>



C# and IIS
Posted by Kevin Wincott at 11/16/2007 4:06:37 PM
Hi I have created a script that creates a website in IIS6 and sets it up OK but the code im using to enable the "anonymous access" doesnt seem to work, when I complile it there are no errors, the code is: w3svc.Properties["AuthFlags"].Value = 1; w3svc.Properties["AnonymousUserName"].Value...more >>

Rijndael Encryption - CAPS Result
Posted by Sylvie at 11/16/2007 4:04:06 PM
http://www.obviex.com/samples/Encryption.aspx According to this link, I am using Rijndael Encryption & Decryption Algorithms, But I want my encrypted strings just CAPS string and just alphanumeric values ABC...Z and 123...90, no other chars I want, what should I do ? or what other algos I m...more >>

A simple, scrollable, output display window
Posted by Roger Garrett at 11/16/2007 4:03:00 PM
I'm writing a visual studio C# program. I have my form with a number of controls. I also want a simple scrollable window in which I can programmatically add text as the program is running. I want to use it to show diagnostic output as the program runs. It should be fairly simple to do, yes? ...more >>

Why can't I do this (or can I) ?
Posted by Ian Semmel at 11/16/2007 3:51:45 PM
I haven't used interfaces before, but I thought I'd come across a reason for using them. Suppose I have : public interface ILogger { void LogLine(string s); void LogLine(object o); } and somewhere else I have : ...more >>

At a loss with Media Player
Posted by Susan at 11/16/2007 3:39:00 PM
I have a tool that uses the Windows Media Player to display certain products to users. It works great on my machine, but I am having great difficulty on one of the "product" machines. To help find the problem, I have installed VS 2005 on the machine so that I can at least figure out what the p...more >>

Storage of object reference
Posted by GeezerButler at 11/16/2007 3:28:34 PM
Is an object reference stored as a 32 bit value? In other words, is a simple read or write of an object reference an atomic statement?...more >>

Try Catch Finally Using
Posted by Mike at 11/16/2007 2:27:54 PM
All the code samples I can find show using on its own or try... catch.. ..finally on its own. Will the following cover me properly in terms of handling errors and cleaning up? string conns = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=|DataDirectory|Northwind.mdb"; try { using (Ol...more >>

Class from XSD.exe ... now what
Posted by Lee Franke at 11/16/2007 2:12:25 PM
I have an XSD and I generated a class with xsd.exe. I added it to my project. I can instantiate all of the appropriate classes and set values. How do I get it to write out the resulting XML? Also how do I make sure all of the sub classes within the XSD class are properly attached to the p...more >>

Convert a Widestring to an Ascii String?
Posted by Marc at 11/16/2007 1:34:43 PM
Hello dear, I have a string and every second char is a \0. Can I somehow convert it to a normal string. Or may-be in the underlying code I am doing something wrong, choose the wrong C# type? This is my function I am trying to get right: public static bool GetPrivateProfileSectionAsCS(st...more >>

Extensions to my BigInteger and BigRational classes
Posted by jehugaleahsa@gmail.com at 11/16/2007 1:25:31 PM
Hello: I am currently working on a some simple (not really) classes called BigInteger and BigRational. They are pretty much identical to Java's BigInteger and BigDecimal classes, respectfully. BigRational is really simple and it just maintains a dividend and denominator and then prints out ...more >>

datagridview's rowcount in virtualmode
Posted by slg at 11/16/2007 1:13:14 PM
I am using virtual mode for datagrid. After i set the rowcount property to 16000, I am receiving datagridview 's CellValueNeeded event 16000 times for each row. This is causing the application to hang for sometime. I am displaying only 16 rows at a time. I am following the sample mention...more >>

Color box
Posted by Zach at 11/16/2007 1:11:33 PM
When someone selects a custom colour, that colour is placed in one of the boxes below the regular colour. How can that custom colour be retained after closing down the colour box and re-opening it? What I am asking is (I think): how to do this process in reverse //dlg.CustomColors = new in...more >>

Basic C# questions
Posted by dh at 11/16/2007 1:03:02 PM
Q1: if (...) { byte[] var1 = new byte[4]; var1[0] = 'A'; var1[1] = "B'; var1[2] = 'C'; var1[3] = 'D'; CheckInput(var1); // CheckInput(bytes[] bytes) ... } When defining a variable like "var1" in the above code to hold a string of "ABCD", should it be decl...more >>

File.Exists()
Posted by repairman2003@gmail.com at 11/16/2007 12:34:18 PM
I'm trying to check whether a .lnk (LNK - Windows shortcut file) exists. I can successfully create the lnk file and then go browse to the folder and see the lnk file is there, but calling File.Exists("test.lnk") fails. How can I do this?...more >>

How to implement a 3 way Rocker Switch
Posted by Eitan at 11/16/2007 12:09:02 PM
Hello, I have a button (System.Windows.Forms.Button) on a form (WinForm, C# Application). I would like to have a counter counting up (or down) as long as the user is pressing down the button, in other words I would like to implement a Rocker Switch – 3 ways. Any suggestions how to imp...more >>

DLINQ
Posted by Jacek Jurkowski at 11/16/2007 12:06:40 PM
How to specify orderby columns in DLINQ query dynamically at runtime? Query bellow is ordered by K_OSOBY.NAZWISKO, K_OSOBY.IMIE columns but method parameter specifies where it should be ordered by K_OSOBY.NREWID. HowTo change orderby of this at runtime? var query = from K_OSOBY i...more >>

adding nodes to treeView control dynamically at runtime
Posted by weird0 at 11/16/2007 12:05:10 PM
Here is the code that i have been using to add nodes dynamically, but I cant see any child nodes being displayed on the treeView... all i can see the root node "Network". I have been trying to develop a modelling soft. as an educational project. // event fires when shape is added to visio con...more >>

Can't get XSD to generate DataSet primary keys
Posted by Howard Swope at 11/16/2007 11:05:16 AM
[.Net 2.0, VS2005 SP1, MSDataSetGenerator used through IDE] No matter how I shape my XSD, I can't get it to create primary keys in my data set. I have looked at tons of examples, followed them to the letter, but still no go. When I merge my data sets I get duplicate records. If I go in and ...more >>

Keyboard Listener
Posted by Kbalz at 11/16/2007 10:45:03 AM
I have an application that minimizes itself, and I want it to listen for certain key commands, and when they are pressed, my program can react to them. So far I've gotten my application to react as I intend while the program has focus, but when the application loses focus, the listening stops...more >>

Bind Property of Child-Objecty to DataGridView
Posted by Pieter at 11/16/2007 10:17:37 AM
Hi, I want to bind a proeprty of a child object to a DataGridView, but it doesn't work. For instance: Imagen that I have an object Company, and this object company has a child object Address. Address has a property Street. Now I want to bind a list oc Company objects to my DataGridVie...more >>

How to retriever network computer's Host Name and Mac Address?
Posted by martin lanny at 11/16/2007 9:34:16 AM
Simple network scanner is a part of my dotnet solution. It pings ip addresses in a selected network range and gives me the response time for each computer it finds. Anyhow, I would need to retrieve two more pieces of information for each active (local network) IP address: - Computer's Ho...more >>

drawing using c#
Posted by Ali at 11/16/2007 9:32:54 AM
I need your help please I am abegineer in drawing using c# I want to let the user use the mouse to draw a rectangle in windows form and allow him to select it and drag it in any part of the form I found many complecated codes couldn't understand them, so if you can help me in this topic by sim...more >>

MultiLine textBox - limit num of char on each line
Posted by Gidi at 11/16/2007 9:24:01 AM
Hi, I've a multiLine Textbox, and i want to limit each line to a maximum number of charecters. How can i do it? Thanks, Gidi....more >>

How to finish this property?
Posted by Andy B at 11/16/2007 9:06:20 AM
I have the property below. What I need to do is access the asp.net Menu controls MenuItems in a content page that are on a master page. I need to set the Enabled state to false when the page loads and re enable it when the page goes to the next one. Any ideas how to finish this one? Or if I go...more >>

property or member definition wrong?
Posted by Andy B at 11/16/2007 8:02:40 AM
I have a masterPage code file that looks like below file. For some reason I keep getting compile error 1519: invalid token '{' in property or member definition. I know it has something to do with my Menu property, because when I comment it out or delete it then it works... any ideas? us...more >>

Is There a Simpler Way To Display Parent/Child Data in Two ComboBox Controls
Posted by Bob Johnson at 11/16/2007 7:42:42 AM
..NET 3.5, Windows Forms app: My objective is to display parent/child data in two ComboBox controls, such that when a parent item is selected in one combo box, associated child items appear in the other combo box. I already know one way to make this work using two DataTables and a DataView,...more >>

Do something if the parameter name is someParam
Posted by roundcrisis at 11/16/2007 7:05:58 AM
Hi there: I m trying to do something (check values) if one of the parameter in a procedure is used, for example let say I have the following procedures: index(int a, string specialParam, ..) save (string specialParam) delete(string specialParam, string lloooo) upstream() basically i ...more >>

Event fire clarification...
Posted by Jay at 11/16/2007 6:32:35 AM
Stepping through code and discoverd that an event declared for a 3rd party datagrid (Infragistics UltraWinGrid) in InitializeComponent() fires twice: 1 for setting its grid.dataSource, and a second time on its grid.dataBind(). Is that correct that this happens? What I'm investigating is a p...more >>

grid row hight
Posted by Alex K. at 11/16/2007 6:16:01 AM
hi all Is there more effective way to change height of all rows in a DataGridView at once instead of going through all rows and setting row.height=a for each row? thank you Alex...more >>

URL Parsing
Posted by Mansi Shah at 11/16/2007 4:52:28 AM
Hi, I want to change the URL while moving to other page in .net. For ex., I want to move to the page http://localhost/abc/ss/Cat.aspx?catid=106&Pcatid=2 But i want to show http://localhost/abc/ss/106-Cat.aspx Anybody has idea regarding this??? Regards, Mansi Shah. ***...more >>

C++ -> C#, checking if object created
Posted by Jon E at 11/16/2007 4:01:02 AM
In C++ I'd have something like :- -------[C++]----------- DECLARE_HANDLE(MYHANDLE) class Fred { MYHANDLE m_hHandle ; etc... } Fred::Fred() { m_hHandle = NULL ; } BOOL Create( void ) { if( m_hHandle != NULL ) { ASSERT(false) } else { m_hHandle = SomeFunct...more >>

streaming mp3 files in websites
Posted by Andy B at 11/16/2007 3:50:28 AM
I need to stream mp3 files from my website (asp.net 2.0). Is there a good way to to do this besides flash? ...more >>

Generics: how to have a constraint on an attribute?
Posted by Matteo Casati at 11/16/2007 3:38:02 AM
Hi, I would like to set a constraint (where keyword) on a type in a generic class, based on the [Serializable] attribute to accept as "T" type each class marked as serializable. Is it possible? If yes, how to do? Else... why not??? :-) Thanks ...more >>

Hosting a web application within a windows form
Posted by CodeRazor at 11/16/2007 3:06:02 AM
Hi, I wish to host a web application within a windows form. I don't believe my requirement would be satisfied by just using the WebBrowser control. You see what i will need to do is to be able to pass data objects from the windows host into the web application being hosted and then pass th...more >>

How to communicate with explorer?
Posted by ofiras at 11/16/2007 2:00:53 AM
Hello everyone, Is there a way to open explorer in a cretin page, write in a cretin column that is in this page and press the send button with a C# program? I want to let the program check my web site for security issues (Sql inject)... I don't mind if there is a way to do it without explorer....more >>

Making a collection inside a class
Posted by Sunfire at 11/16/2007 1:53:12 AM
How do you make a collection inside a class and then access it? I am trying to make a class that is a news item and dont know where to really start. Any ideas? ...more >>

Animating one object moving in front of another
Posted by Peter Webb at 11/16/2007 12:13:58 AM
I want to animate one object moving in front of another. I cannot re-render the background as the object moves, as it would be extremely time consuming. This is what I would like to do. I draw the background to a Graphics object, copy it, draw the front object on the original, render it to th...more >>


DevelopmentNow Blog