473,788 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

11
2,205
thread by: cbmeeks | last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
I'm working on a project that deals with some algebra. Or, actually, just math in general. It could eventually work it's way up to more advanced math, analytics, etc. Anyway, I'm looking for ideas on how to store the actual formulas using classes. For example: class X
9
3,875
thread by: Thom Little | last post Jun 27 '08 by: Thom Little
Using C# 3.5 I want to select a value from an XML file. The intent of the following is to print "EpsilonGamma". It does not work. Can you point out my probably very obvious error? XmlDocument document = new XmlDocument(); document.Load("sample.xml"); XmlElement root = document.DocumentElement; XmlNode node =...
10
1,431
thread by: Brent | last post Jun 27 '08 by: Peter Bromberg [C# MVP]
I have a list of company names (say, IBM, Corning, General Motors, and another 5,000 of them). If I take a body of text, a news article, for instance, and I want to see which company names appear in that text, is there an efficient way to do this? I thought about looping through the array of names, and doing an IndexOf or Regex match,...
5
1,653
thread by: brentbackup | last post Jun 27 '08 by: Pavel Minaev
I know I'm some years behind, but I just have the go-ahead to start developing on .Net 2.0. While the development process goes ahead, I'm to maintain the .Net 1.1 stuff on the same machine. I downloaded and installed the 2.0 framework. As I understand it, 1.1 and 2.0 are supposed to play nice with each other. However, now when I go about...
5
3,721
thread by: Mahmoud Al-Qudsi | last post Jun 27 '08 by: Anthony Jones
Is there any way to stop an XmlDocument object from using data grabbed from a previous request? e.g. if I used XmlDocument.Load to grab a URI, and I know that this URI changes often (for example, an RSS feed) can I somehow tell the framework to not use cached data? Will I have to create a custom HttpWebRequest and convert the data to an...
1
6,733
thread by: tinman77 | last post Jun 27 '08 by: tinman77
Thanks in advance for everyone's help... My problem is that more often than I would like, I get attachments that for some reason or another do not include an extension. What I want to do is create a C# app that based on a file on my hard drive that I specify, will spit back to me the mime type. I can do the rest from there. I have...
0
1,869
thread by: Steve K | last post Jun 27 '08 by: Steve K
to this newline when an enter key is detected. Update: I tried adding this code: <code> public PMDDataGridViewTextBoxEditingControl() :base() { this.Multiline = true; } </code>
3
4,066
thread by: Piotrekk | last post Jun 27 '08 by: =?Utf-8?B?SmFuaQ==?=
Hi I have a problem connected with user.config file. I am using default settings.settings . To settings.settings I am adding one user scope string and one application scope string. Thus app.config file is added to my project. When I build and run the project app.exe.config file is created and added to application base directory. This file...
0
1,245
thread by: =?Utf-8?B?SmFuaQ==?= | last post Jun 27 '08 by: =?Utf-8?B?SmFuaQ==?=
Hi parez, I agree with Jon, for this case are user settings the best solution. The article http://www.codeproject.com/KB/dotnet/user_settings.aspx describes the pros. Jani "parez" wrote:
0
2,065
thread by: Stephen Thomas | last post Jun 27 '08 by: Stephen Thomas
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or namespace name 'LiveSearch' does not exist in the namespace 'ConsoleSampleWebSearch' (are you missing an assembly reference?) C:\Documents and...
2
887
thread by: jp2msft | last post Jun 27 '08 by: =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=
Microsoft updated their website interface, and now I am no longer able to post questions. I log in and get to the screen where I select New > Question. The page refreshes, but the question window never appears. How do I get the question window? My pop-up blockers (Google and IE7) have both been disabled, and I am doing this from home and work...
2
2,084
thread by: Peter Webb | last post Jun 27 '08 by: Peter Webb
Sorry, stupid newbie question. I have VS2008, and I downloaded and installed the DirectX SDK. I want to access the DirectX classes from C#, but I can't see how to make C# aware of them. using Microsoft.DirectX.Direct3DX; says the namespace doesn't exist.
4
1,183
thread by: =?Utf-8?B?SXZhbiBJdmFub3Y=?= | last post Jun 27 '08 by: Alvin Bruney [ASP.NET MVP]
Hi Is anyone aware if Microsoft is planning to support WPF in the Compact Framework? I know that they introduced the WCF in 3.5 CF but have not heard anything about WPF. (or how about WF)? Thanks Ivan
1
1,150
thread by: =?Utf-8?B?TWFyaw==?= | last post Jun 27 '08 by: Alvin Bruney [ASP.NET MVP]
What I want to do is bring data into an excel 2007 worksheet that is stored in a sql database table. The idea is to parameterize the "where" clause in the sql select statement limiting the result set. There are lots of examples in the literature with regard to bringing in data stored in cubes --- but not so much from data in sql table. ...
3
1,585
thread by: Todd Carnes | last post Jun 27 '08 by: Todd Carnes
Peter Bromberg wrote: I need to study the topic more before deciding which way to go, but the "compact" version sounds more like what I'm looking for so far. Thank you everyone for taking the time to share your suggestions, links, etc. with me. :) Todd
0
186
thread by: David Ching | last post Jun 27 '08 by: David Ching
"Scott Seligman" <seligman@example.comwrote in message news:g04qfi$s1e$1@panix3.panix.com... Very cool... I had not known about this style. Before Win2K, the way to do it was to intercept WM_MOUSEACTIVATE and return MA_NOACTIVATE (or MA_NOACTIVATEANDEAT). -- David
1
1,532
thread by: Aju | last post Jun 27 '08 by: Aju
lock (o) { Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), Attributes); Console.Write(message); Console.ResetColor(); } I hoped each thread would get it's own color based on an external
0
1,027
thread by: Marcin Hoppe | last post Jun 27 '08 by: Marcin Hoppe
Polaris pisze: What I'd do if I were you and didn't want to buy an off-the-shelf product (like itKeyboard from http://www.touch-soft.com/) would be to download a trial version of an off-the-shelf product and use Spy++ to look at messages that it sends and receives. Best regards! -- Marcin Hoppe
6
2,141
thread by: =?Utf-8?B?S3VuIE5pdQ==?= | last post Jun 27 '08 by: =?Utf-8?B?S3VuIE5pdQ==?=
Dear all, I'm trying to use oledb to get the content of an excel file. Now I can use oledb to get the content of a datasheet. But I should know the name of the datasheet in advance. How can I use oledb to query the names of all the spreadsheets in the excel file? Thanks in advance for any hints and reply.
2
2,156
thread by: =?Utf-8?B?d3VyemVsQ2lkZXJtYWtlcg==?= | last post Jun 27 '08 by: =?Utf-8?B?d3VyemVsQ2lkZXJtYWtlcg==?=
I have created a very simple C# class library (DLL). I have ticked the "Register for COM interop" option in the project properties dialog. I have made the in the AssemblyInfo.cs file. I can call a public method in this library from VBScript. So far so good, now I'd like to have some very *simple* loggging capability.
15
2,677
thread by: Pixel.to.life | last post Jun 27 '08 by: Peter Duniho
Dear All, Here is a problem I am facing (it might be too simple, but then I admit I am not a Guru:-) I have a main thread, in managed C++, that deals with displaying a form and some controls. I invoke another thread for some processing from this thread, so basically the main thread is waiting on the sub thread.
6
6,407
thread by: Jon | last post Jun 27 '08 by: Tim Jarvis
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get this exception: System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required. at...
7
1,415
thread by: Valery | last post Jun 27 '08 by: Anders Borum
What is known about C# generics closing the gap with C++ templates in the future? Template specialization is especially badly missed. What new language features are coming in the next release of C#?
4
1,832
thread by: =?Utf-8?B?UGF0cmlja1M=?= | last post Jun 27 '08 by: =?UTF-8?B?QXJuZSBWYWpow7hq?=
Is there an easy way in C# to take a string that contains an expression, say for example something like '(10 / 2) + 1' and evaluate it without having to parse the string myself and muck about with other stuff like operator precedence?
35
2,916
thread by: =?Utf-8?B?UElFQkFMRA==?= | last post Jun 27 '08 by: =?Utf-8?B?UElFQkFMRA==?=
I'd really like to be able to constrain a generic type to System.Enum or, better, enum. But of course that results in "Compiler Error CS0702". So far I've been checking the type parameter at runtime and throwing an exception if the provided type is not an enum. That works, but it just doesn't seem quite right. After reading through...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.