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# > december 2007 > threads for friday december 14

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

RSA signing data
Posted by Peter Morris [Capable Objects] at 12/14/2007 7:58:57 PM
Hi all I need to sign some data to ensure it has not been tampered with. I'm pretty sure I will be able to work out how to do what I want by searching for RSACryptoServiceProvider on Google, but what I can't see is how to get my app to generate a key pair at runtime. Can anyone give me a ...more >>

Parsing Text Files (EDIFACT) and Split() Method
Posted by Robert Fuchs at 12/14/2007 6:33:08 PM
Hi, an EDIFACT segment starts with a 3 letter acronym and ends with an apostrophe. Segments consist of composites, delimited by a plus sign, and composites consist of data elements, delimited by semicolon, eg.: BGM+220:::Order+0040750+9' There is an additional rule, when a delimiter ...more >>

ListViewItem
Posted by Gav at 12/14/2007 4:12:28 PM
I am trying to have a ListView to dispay a list of names and want to have an id stored within the list but not visable. I have tried to go about doing this by using the ListViewItem and setting the Text and Tag properties. Problem is when I add the ListViewItem to the ListView I get the fol...more >>

WMV Video Clipping in c#
Posted by Serdar C. at 12/14/2007 3:57:00 PM
hi there. i am developing a web based application in c# and asp.net. in my application the server have a large WMV file i.e about 6 hours long. i want to make sure that clients can download portions of that file. i.e. the client may want to download video part from 2h32m00sec to 4h56m03sec. do...more >>

search ms word by patterns
Posted by peter at 12/14/2007 3:42:17 PM
I need search all word documents in a fold by patterns like 'Wind' and 'Rain' not 'Hail'. How can I do it? Thanks Peter ...more >>

How to use +, -, *, / etc in C# Generic
Posted by My interest at 12/14/2007 3:39:34 PM
Question is how to make the following class compile? class foo<T> { private T a, b; public T Sum() { return a + b; // this line does not compile. } } The background is that I want this class to be instantiated by all the "numeric friendly" classes (i.e. th...more >>

Update UI from Background thread
Posted by RSH at 12/14/2007 3:12:17 PM
Hi, I have an Asynchronus process that is reporting back to the UI at regular intervals. I read several posts on how to use delegates to make this happen. But for some reason my application just hangs, nothing being written it just hangs. when I comment out the "Invoke(new UpdateTextCa...more >>

C# - Calculate difference between two dates and get value in month(s)
Posted by Mike at 12/14/2007 3:06:09 PM
I use c#, V2005 How I can get difference between two dates and get value in month(s) I had found some solutions but it is not exactly what I need. private static int monthDifference(DateTime startDate, DateTime endDate) { int monthsApart = 12 * (startDate.Year - endDate.Year) + start...more >>



How remove rows from DataTable where column=value?
Posted by Ronald S. Cook at 12/14/2007 2:50:14 PM
I have a DataTable like Id Code Value 1 TAB Inventory 2 TAB Marketing 3 GRP Pens 4 ICO Lot I would like to remove all rows where Code=TAB since I'm done with that part. The reason I want to do this is so the DataTable (which will be in memory fro the entire app ses...more >>

Find a Program Path
Posted by Soulless at 12/14/2007 2:04:54 PM
Hi, I have created a batch file in C# and want to find and place it in the path of an installed application. Now, this might be done on an XP, 2000, etc system. The application is installed and will likely be in the registry. Does anyone know of anything in C# to check the registry for a p...more >>

get original key object from dictionary
Posted by not_a_commie at 12/14/2007 1:28:42 PM
given a Dictionary<object, object> and an object that exactly replicates the Equals and GetHashCode of the original object used as the dictionary key, how do I retrieve the original key that was used?...more >>

form detailview question
Posted by GS at 12/14/2007 1:11:30 PM
in Windows form, I have Datagridview and detailview with the same binding data manager. upon clicking the + in the navigator, the primary key field is blank as expected, but I need to enable it for new record to let user to fill it. On the other hand I don't want to allow change to the field for...more >>

Re: Inserting elements dynamically into the StackPanel in WPF
Posted by sundarvenkata at 12/14/2007 12:06:51 PM
Hi All, Is it possible to insert elements dynamically in between existing elements in a StackPanel in WPF?? Thanks, Sundar...more >>

Windows Forms Font Resize
Posted by vapor at 12/14/2007 11:50:01 AM
I'm interested in getting a Windows forms font to resize similar to what happens with the Windows toolbars when the end-user changes the system font. With the Windows toolbar, the font 'grows' as the user changes the computer settings. I'm not interested in the event that fires, what I need is...more >>

Generics, use +/-/* operator etc
Posted by My interest at 12/14/2007 11:25:27 AM
How can I use * operator in C# generics? e.g. class foo<T_> { T_ v1, v2: public T_ squar() { return v1 * v2; /// wrong! } } ...more >>

How to close socket properly?
Posted by Frank Rizzo at 12/14/2007 11:01:33 AM
When you close a socket (.e.g. .Shutdown, .Dispose, etc...), the socket goes into TIME_WAIT mode for about 4 minutes, then gets killed by the OS. However, during this time, the socket is not available. Is there a way to close a socket, so that it actually closes and is immediately availabl...more >>

notifyicon.text only holds 64 characters...
Posted by sherifffruitfly at 12/14/2007 10:39:37 AM
.... I need somewhat more to show when I hover over the icon - are there any straightforward ways to do this? Thanks for any ideas, cdj...more >>

thread scheduling, how??
Posted by Jeff at 12/14/2007 10:31:48 AM
Hey ..NET 2.0 I'm working on a winservice created in .NET 2.0. Now I want to do some modications to this winservice. I want this winservice at every start of a new month to start a thread which pulls data from several webservices and saves these data to table... So I'm wondering how t...more >>

How to program for Large Fonts on Vista?
Posted by Frank Rizzo at 12/14/2007 10:03:28 AM
Winforms applications look allright on Windows XP when you turn on Extra Large Fonts. In Vista, if you turn on Extra Large fonts, winform applications look cartoony as if they've been stretched. In you check 'Use Windows XP scaling' in the Font Size dialog, winform applications go back to ...more >>

import and use class in dll
Posted by jacky at 12/14/2007 9:41:45 AM
Hi I've got a dll written in c++ with header like this: class __declspec (dllexport) CPrnDrv { private: static int licz_wywolan; HANDLE hPort; BOOL PrintPortOpen (LPTSTR lpszPortName); BOOL PrintPortClose (); bool WritePort(prnstr str); public: ...more >>

identify IOException?
Posted by Sergei Shelukhin at 12/14/2007 9:18:48 AM
Hi. I catch IOException and want to separate the case when I receive "The process cannot access the file because it is being used by another process" error from other possible IOException-s. Checking the message text is not an option because the app is multilingual and might use a .NET version t...more >>

Cannot click when using HTTPS
Posted by Dave E at 12/14/2007 9:05:02 AM
I have written an application that reads third party web pages. If I am using HTTP everything works fine. I create an AxSHDocVw.AxWebBrowser object and then Navigate2 to the page. I then populate some form fields, browse to the appropriate button on the page and then call it's clic...more >>

Distributing ASPNET_SETREG.exe
Posted by timmmahh at 12/14/2007 8:59:10 AM
I'm using this application to encrypt my impersonation credentials for ASP.NET applications. Does anyone know if this application is freely redistributable, as I would like to include it in my product installation so I can configure the impersonation details on the fly. Thanks...more >>

ClickOnce security
Posted by Nikolay Podkolzin at 12/14/2007 8:11:02 AM
Good noon, community! Would you be so kind and help me solve my problem. I need Deploy application through ClickOnce technology. I've configuration file where I assign sensitive data about connection to the database. A VS deploying solution all files have signing by certificate. When I'm inst...more >>

'There is no row at position 0'
Posted by william.oram@gmail.com at 12/14/2007 6:57:36 AM
I have a DataGrid and am attempting to have in-grid data editing. At the moment I'm working with a single DropDownList: public void roleList_Update(Object sender, DataGridCommandEventArgs e) { int newRoleID = 666; DropDownList ddl = (DropDownList) e.Item.Fi...more >>

Generic runtime instantiation
Posted by Peter K at 12/14/2007 6:54:18 AM
Hi I have an interface for a "factory" defined like this: public interface IDeviceFactory<T> : IDisposable { T GetDevice(); } Then I can define various factories like: public class DefaultDeviceFactory<T> : IDeviceFactory<T> { ... } public class AVDeviceFactory<T> : IDevic...more >>

Unauthorized Access Exception
Posted by vijay_3491@rediffmail.com at 12/14/2007 6:25:55 AM
Hi, I am using Web browser control in my application. When accessing webbrowser.document.window.frames[0].document throws an Unauthorized access exception Any one pls help. Thanks in Advance ...more >>

Generics
Posted by ramyaece_2006@rediffmail.com at 12/14/2007 6:14:27 AM
Hi, Could you anyone provide me some useful links about generics. Thanks...more >>

user control
Posted by RobcPettit@yahoo.co.uk at 12/14/2007 5:52:00 AM
Hi, this sounds like a daft question but, if Im adding several tabds, and I want to have the same layout in each tab, eg textbox-treeview- labels, which is the the best way to do it. Would I be better of creating a user control and add this when adding tabpage, or just adding text-treeview-label...more >>

DIV contents not updated in Firefox when using DIV.innerHTML
Posted by Mahernoz at 12/14/2007 5:43:22 AM
Task to be Accomplished: I want to copy the contents of dvAArea (after i change a value in the dropdown or a textbox) into the new dvBArea Problem: In Internet explorer this code works fine but Firefox gives the unchanged content of dvAArea (and not the current content). I want the current con...more >>

Fill TreeView with Table data
Posted by RP at 12/14/2007 5:19:47 AM
I have an Access Table with following columns: GID (auto number) PID number TreeID Text ItemName Text This table consists of records in the following manner: GID PID TreeID ItemName ----- ------ --------- ------------ 1 1 001 Roo...more >>

ReadOnly without asking
Posted by Kim at 12/14/2007 5:03:01 AM
Hi All I want to Mark my word document writen by my C# .NET app. readonly without asking about its then opening it again. No one have to change the contend of document, only My app. must write this document. I know the ReadOnlyRecommended object in Word "AsSave. I work in VS2005 and use...more >>

A Must Read!!!
Posted by shan.micky@gmail.com at 12/14/2007 4:54:29 AM
I have found an excellent resource on understanding Windows Application concepts and exam 070-306. http://technical-talk.com/mc/mcsd/mcsd306.asp ...more >>

Wide of page in Word
Posted by Kim at 12/14/2007 4:40:07 AM
I have tranform a Table list to Word and got the rigth font and char size but I allso want to set number of char fore a line so the document get rigth look code public static void WordInsertText(ref word.Document doc, string text) { object missing = System.Reflectio...more >>

Retrieve name UserControl
Posted by kjqua@tiscalinet.it at 12/14/2007 4:33:00 AM
Hi, I build a control with method and property, and one specific method. The InitLayout() see below. protected override void InitLayout() { // base.InitLayout(); if (DesignMode) { // I'm DesigneMode str...more >>

Reading complex configuration
Posted by Peter K at 12/14/2007 2:49:35 AM
Hi I need to be able to supply some relatively complex configuration to an application. The application will either run in a web context (with a web.config file, or as a application with an app.config). The only configuration reading I have used before is AppSettings["name"] and I have a...more >>


DevelopmentNow Blog