Answer Questions
colinmit Determining IIS Options via C#
Hello. For my work, I'm automating system validation to be performed prior to installations of our software. One of the steps is to verify that certain options like "Common Files," "Internet Information Services Snap-IN", and "World Wide Web Server" are installed. I know how to verify this through Add/Remove Windows Components, yet I'm not sure how, or even if it's possible, to verify such things through the use of C# (which I'm writin ...Show All
AmauryR Compile C# project with Command line ?
hi all, I developed one C# project with .NET framework under Visual Studio 2005. I want to compile it in Command line. Anyone can tell me how to do it thanks a lot!!! If you need to build something other than the default configuration and platform you will have to add some extra switches msbuild solutionFile.sln /t:Rebuild /p:Configuration=Release /p:Platform="any cpu" Another ...Show All
mattwink Using Excel to graph?
I have a database and I've spent some time trying to get Crystal Reports to graph some information from it in the way I want it but haven't had much luck at all. Is there a way to use Excel to do graphing and then somehow get those graphs onto a windows form in C# I've seen some posts about importing data into Excel and I suppose I could try to do things that way but it would be inreadibly useful if I could just let the user get all the graphs ...Show All
ShaneMcM undo changes: datagridview
how to undo changes made to a datagridview Thank you! You have to undo on datasource, in case of DataTable you would call DataTable.RejectChanges(). ...Show All
MindlessDrone Help on Lagging File Seek
I am running a windows 2000 server, and run a C# program that writes to an excel file. The folder that contains all my finalized excel documents exceeds 5gigs, and when not seeked within the last 5 minutes, lags for up to a minute. So when someone tries to download a recent report, if no one has run a report within the last 5 minutes (guessing lost from cache,) they must wait 1 minute for windows to open that folder. Any ideas on a method possib ...Show All
Tommaso Caldarola Adding link buttons to a Browser menu strip.
I am very new to c# and am working on my first real program. A web Browser. I have everything done but now I want to add some buttons to the menue strip that I can click and go to a specified web page. I know how to add the buttons to the form and then click them to get the click event. But what do I add for code to make them open the web url in the browser. private void fRTHomePageToolStripMenuItem_Click( object sender, EventArgs ...Show All
Hockeyanimal Problem Installing New Windows Service
(Not sure if this is the best forum, but I am using C# and did not see a forum for Windows Services). I have just created a new Windows Service using C#, Visual Studio 2003, .NET 1.1 on my computer running Windows XP v5.1. The whole thing compiles without any errors and when I installed it using installutil, all messages indicate that it was installed correctly. However, my new Windows Service does not display on the list of available serv ...Show All
Hok Peng reading/editing html file
Hello, I am trying to read in an html file, and replace a custom tag with a string that will be generated from the application. I am guessing the way to do this has changed with .NET 2.0, as the books I have refer to FileInfo objects that are not being accepted by Visual C# Express. I would appreciate it if somebody could provide me with some sample code, or point me to some references on the web. Thank you ha ...Show All
Kameswara Sarma T R K IDE does not repsond after a successful build
After the "build success" text appear in status bar, the IDE could not respond to any mouse or keyboard input for a long time. What is it doing How to eliminate this period Thanks! Thanks! It works! Lei - Try this solution from another thread since you're building a winforms app. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=54840 Try going to Tools->Options->Windows Forms Designer->General and setting AutoToolb ...Show All
Baron von Tollbooth how can i get a substring in a string and then change its color?
for example if I type /* in the textfield all preceding characters should change to color green and when I type */ the change should stop. i have this code: private void txtReport_KeyUp( object sender, System.Windows.Forms. KeyEventArgs e) { if (e.Shift && e.KeyCode == Keys .OemQuestion) { MessageBox .Show( " " ); count = 0; } else if (e.KeyCode == Keys .OemQuestion) { Message ...Show All
Youpas Sockets
Hi there. Sorry for posting this in the wrong forum, I apologise but hope someone can guide me in the right direction. I have googled for this endlessly however the examples are poor or they are ok but cannot seem to understand them or simply there is not enough in depth explaination. I want to be able to create a simple application that sends/recieves data. I will have a Server app which listens to a connection and acts to whatever it needs to ...Show All
Cillian Mark Answers!
Speaking as a moderator, here. This forum has tons of posts that were answered but haven't been marked as such. It's important to be able to distinguish posts that still need attention, so if you are reading a thread that looks like it has been answered, give 1-2 people the credit by clicking "Mark As Answer." Thanks. ...Show All
Taliska A beautiful language ruined by generics
Arnshea, I'll try not to be rude, but it's gonna be real hard. Let's take your thesis and look at the implications. For simplicity sake I will only consider one instance, ArrayList... ArrayList w/o Generics: Each developer has to make a choice between writing a bunch of repetitive redundant code and having type safety. When you consider the number of developers who will use ArrayList, the ...Show All
PV17 c# to vb.net
What is going on. When c# first came out M$ was pushing users to move to that. Now I see an article that show that you can now translate c# to vb.net. http://msdn.microsoft.com/vbasic/default.aspx pull=/msdnmag/issues/06/02/PasteAs/default.aspx why does it seem like vb.net is being pushed so much more in the 2005 version. I just decided to move to c# from vb.net because of the following. 1.forced declaration of varia ...Show All
Shailesh Saini constantly update of file time modified
Hi , Does anyone know how to constantly update the file modified time I had a program whereby I will create a log file to log all events generated by the program. But upon running the program, the time of the file does not keep on changing, it will stay at the current time. It will only change when I stop the program. As my program need to create a new file after every one hour, this will not work. Does it mean that upon every stream write ...Show All
