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 wednesday december 12

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

windows web browser Saveas not working
Posted by Learning.Net at 12/12/2007 9:35:46 PM
hi all, I have a window web browser where modifications are made to the document at run time through the Document property.Now the problem is when i go for saveas the modified page is not saved. Please Help me Out!! ...more >>


TargetInvocationException
Posted by tcomer at 12/12/2007 8:10:20 PM
Hello, I'm receiving a "TargetInvocationException" on the follow line of code: datagridServers.Invoke(new UpdateDisplayCallback(this.UpdateServerDisplay), new object[] { server }); The method: private void AddServer(MyServerClass server){ if(server != null) arraylistS...more >>

DX Setup and Deployment
Posted by Peter Morris [Capable Objects] at 12/12/2007 6:58:20 PM
Hi all I would like to additionally specify Flash and Direct X 9 for the prerequisites of my app's Setup & Deployment (MSI) project. Is this possible? If so, how? Thanks very much Pete ...more >>

Problems with modal dialog when calling C# from C++
Posted by Lester at 12/12/2007 5:23:24 PM
I have main application (with main window) created in C++/MFC. From there I call function in C# class library to display a modal WPF dialog. Dialog shows up OK, but it doesn't behave really modal. While it is not possible to go to the main window by clicking directly on it (dialog keeps focus), ...more >>

C# method need for converting text to graphics
Posted by Stratum at 12/12/2007 4:23:57 PM
I'm looking for some method, possibly in a .Net class that I don't about, for converting a text image to an image file in GIF or JPEG format. The application is a form (could be a Web form or a Windows form on an Internet-connected computer) where the user types the contents of a randomly gener...more >>

not sure if there is an easy way to do this!
Posted by Paul at 12/12/2007 3:50:02 PM
Hi I have an array list in C# and I need to remove duplicates of data groups in an array list. After the array list is populated each group of data is 5 elements in order (0-4,5-9,10-14), name (string), number (string), user(string), startdate(datetime), enddate(datetime). So it might look li...more >>

CF 3.5 and WPF?
Posted by Rainer Queck at 12/12/2007 3:32:51 PM
Hello NG, will the WPF be available with the CF3.5? Regards Rainer ...more >>

XPath and XmlNodeList, the horror, the horror!
Posted by DotNetNewbie at 12/12/2007 3:06:21 PM
Thanks all for the previous help btw. What is going on here? It works yet it doesn't want to work in a loop. XmlNodeList nodeList = root.SelectNodes(String.Format("/cars/ mfg[@name='{0}'/model]", folderName)); This works: nodeList[0].ChildNodes[0].Attributes["name"].Value.ToStrin...more >>



Notating Windows Forms
Posted by jehugaleahsa@gmail.com at 12/12/2007 3:01:25 PM
Hello: I have come to the realization that it would be very beneficial to be able to put comments for controls in Windows Forms. I would like this to only be visible to the form designer, not the user. This way, we can put information such as what fields are bound to the control, what values ...more >>

CrystalReports, c# - The string is non-numeric problem
Posted by Mike at 12/12/2007 2:59:59 PM
I use MS SQL EXPRESS DB VS 2005, c# Win Application I have problem "The string is non-numeric" with formula CDbl({pr_DajPonudu;1.KolicinskiPopust})/100 * {@NajamProstora} File KolicinskiPopust is carChar(25) within MS SQLEXPRESS DB I found description error and possible solution: ...more >>

Context Menu Shell Extension problem
Posted by Poggs at 12/12/2007 2:34:41 PM
Hi everyone, I used the pattern for Shell Extensions for Context menu from Dino Esposito's article. However I implemented it in more than one application and it seems that those two right click functionalities cannot work together. void IContextMenu.InvokeCommand (IntPtr pici) I put more ...more >>

serial Port, what is wrong ?
Posted by Rainer Borchmann at 12/12/2007 1:25:08 PM
Hi, please can anyone tell me what is wrong with this code ? i have an oszilloskop on the COM1 ,and nothing comes out of it. Rainer VS2005 .............................. private void button1_Click(object sender, EventArgs e) { // Instantiate the communications // port with some basic set...more >>

convert generic string list to one string
Posted by gs at 12/12/2007 12:57:40 PM
is there any built in function or dotnet framework(version 2) to merge a generic list of string into one string with each element delimited by specified delimiting string? or do I have to roll my own/ IT is not hard to roil my own but hate to re-invent the wheel. I have searched built-in help...more >>

VStudio 2005 Solution always rebuilding
Posted by Dave at 12/12/2007 12:51:57 PM
Does anyone have any idea why my 2005 solution is choosing to rebuild, everytime i execute any project within its space? There's nothing overly strange with the project assemblies within, a few class libraries, a couple of console apps, one custom setup project and one windows installer projec...more >>

Crystal Subreports
Posted by Franck at 12/12/2007 12:37:38 PM
Ok i have a problem. What do i need to change to make crystal show subreport within subreports ? So i have 3 layer The MainReport Multiple SubReport Attached in the MainReport Multiple SubSubReport Attached in the SubReports Showing the SubReport itself by bypassing the MainReport the Sub...more >>

Variable number of parameters in Excel User Defined Function
Posted by ep at 12/12/2007 11:38:24 AM
Hey All, I'm writing a C# automation add-in for Excel 2003 and I need to be able to pass in an undefined number of object parameters (ie noncontiguous cells) to my UDF. This is achieved in VBA by using the ParamArray, but the C# params doesn't seem to work. Does anyone know a way I can ...more >>

KeysConverter Class
Posted by Rajkiran R.B. at 12/12/2007 10:43:51 AM
Can Anyone say me how to use the keysconverter class provided in .net Framework 3.0 I tried searching in MSDN but I couldn't figure out what is it exactly meant for... ...more >>

Process StartInfo
Posted by Analizer1 at 12/12/2007 9:15:02 AM
Hi...any body know what the max string length size when using Process.StartInfo.Arguments Example Process.StartInfo.FileName = "Wzzip.exe" Process.StartInfo.Arguments = "d:\somefolder\myzip.zip -b d:\work"+threadid.tostring()+" "+Path_File1+" "+Path_File2+" " etc more files with embedded ...more >>

having urls like www.example.com/category/subcategory/ and UrlReWriting
Posted by mapster at 12/12/2007 8:54:51 AM
Hi, Can I have urls like www.example.com/category/subcategory/ (notice the trailing slash w/o the file like index.aspx or default.aspx) if I am doing URL re-writing? ...more >>

Display literal string
Posted by Lucas at 12/12/2007 8:37:59 AM
Hi, I want to display an exception in a javascript alert and I'm rendering that client code using ClientScript.RegisterStartupScript(GetType(), key, string.Format(@"<script>alert('ERROR:\r\n\r\n{0}');</script>", ex.ToString())); The problem is that ex.ToString() contains escape character...more >>

SQLDataReader -- more questions
Posted by Dom at 12/12/2007 6:59:08 AM
Still teaching myself about SQLDataReader and associated classes. I have to say, the new HELP screens from MS are just about useless!! Let's assume I have just read some records from a table into the SQLDataReader object, r. 1. Am I right to assume that accessing the fields as r[int] is a ...more >>

issue with popualting a message on asp:label server control
Posted by Dhananjay at 12/12/2007 6:40:17 AM
hi all i have a problem on populating a message on asp:label server control.I am able to insert records into the table.but it is not populating any message like "Records entered successfully". i wanted to implement this .how to proceed can anybody tell me about this . i am using asp.net/vb.n...more >>

Strange problem with sharpziplib, xml and utf-8 encoding
Posted by macap.usenet@googlemail.com at 12/12/2007 6:38:44 AM
Hello, I am having a very strange problem with the sharpziplib and xml files. In my application I am uploading a zip file which contains an xml file via HttpPostedFile: private void getProject(HttpPostedFile file) { String projectName =3D ""; double proj...more >>

Simple (?) generics question
Posted by Olaf Krumnow at 12/12/2007 6:30:16 AM
Hi, I have a requirement that, I thought, was very simple, but in fact turned out as impossible for me. I read some posts here and the language specs from MS, but couldn't get a solution. I coded the part in java, because it's very straightforward there: public class Test { void test...more >>

problem WebRequest and WebResponse
Posted by Juan Pablo MV at 12/12/2007 6:14:44 AM
Hi, I have a problem using HttpWebRequest so I wish somebody can help me. 1. Application: I have a windows service that gets a XML through a http (URL) from my provider (feeder). Once I get the XML I process it and store the XML's information in a database. 2. The following method is the...more >>

Event Log and EventID
Posted by Jeff at 12/12/2007 5:59:28 AM
I have developed an application and writing to the event log. I want to use the eventid to identify certain error conditions. Is there a standard for this or can I use any eventid. Regards Jeff...more >>

typedef
Posted by ononak@gmail.com at 12/12/2007 5:58:04 AM
Hello, I am looking for the type C++ typedef equivalent in C#. Unfortunately, I couldn't find anything except using directive. Exp: using myId = int; However, this myId is only accessible in the file which is defined. Bu, I want to use myId type also in another files without redefining. ...more >>

List to contain objects that derive from a generic base class
Posted by alastair g at 12/12/2007 5:26:03 AM
I have a generic base class and need a list to contain different types of objects that derive from this. Public class genericBase<T> where T: ConfigBase{} I have tried : List<genericBase<ConfigBase>> _objectTypes but when I try to add to it using: ObjectTypes.Add((ObjectType<ObjectConfig...more >>

Hiding a base function so it is not accessible
Posted by Mike at 12/12/2007 5:15:39 AM
According to the MSDN (see reference below), it is possible to change a base class function from public to private. How is this done? I've tried using "new", but the function is still accessible. From MSDN: "A derived type can hide an inherited member by defining a new member with the same si...more >>

Import xls spreadsheet and create a MS SQL server table
Posted by massimiliano.capecchi@gmail.com at 12/12/2007 4:46:08 AM
Hello, I'm trying to import an excel spreadsheet and automatically create a table in MS SQL 2005 server. Do someone can help me? Thanks Vox69...more >>

Reading and writing registry values that are not there in Vista.
Posted by terryastone@hotmail.com at 12/12/2007 1:56:05 AM
I have an application that reads some registry values stored in the Local Machine\Software\... key. In XP, I can see these values using RegEdit. In my application I can read the values at startup, and change the values during the application. In Vista, I CANNOT see the values using RegEdit...more >>

call function from .NET Windows Service
Posted by Frank Uray at 12/12/2007 1:41:02 AM
Hi all Does anybode have a easy sample of the following: I have a little .NET Windows Service with one public function to return just a string. Now I want to build a .NET WinForms application and call this function from another pc. What is the easyest way to do ?? Thanks a lot for any...more >>

gdi+ and line break
Posted by deerchao at 12/12/2007 1:17:26 AM
Hi, I'd like to render colorful text with word wrap on screen (kind of inline <font> tag to change text color in html), but run into the line break problem. Graphics provides several DrawString methods with line break features, but I can't make them draw different colors within one string, An...more >>


DevelopmentNow Blog