ua1's Q&A profile
.NET Development appSettings, where do they save?
I have a windows forms application. (Visual Studio 2005) A simple form with a button on it. Here is the code private void btnTestButton_Click(object sender, EventArgs e) { ConfigurationManager.AppSettings["TestSetting"] = "TestValue"; string res = ConfigurationManager.AppSettings["TestSetting"]; MessageBox.Show(res); } I step through the program in debugging mode. The MessageBox shows "TestValue" as it should. This proves that the application setting was saved, somewhere. I keep the program running. I search my hard drive for all files named *config*, modified within ...Show All
Visual Studio Team System Manual test in Excel template?
Would it be possible to have an Excel template instead of a Word template If so, what would to be edited to make this possible Our current plan for VS 2005 does not support manual test as Excel documents. We will definitely consider this in our next version of VS. For now, you could either implement your own manual test type by using our extensiblity framework (which would be expensive though), or try the following workaround. 1. Create your own manual test types in Excel 2. Create dummy manual tests in Word which have links to the real manual tests in Excel format 3. When you run the dummy manual tests, you can easily navigate ...Show All
Windows Forms Is this possible?
Is is possible to have a C# app update text boxes in a webpage that I don't own For example if there was a webpage that had a couple of textarea input fields would it be possible to write a C# app that could put text into those textarea's Thanks. The thing is I don't own the webpage, and loading it in the app isn't really what I want to do. Is it possible to do without having to load the page into a webbrowser control in my own app Thanks. ...Show All
SQL Server Can't connect with Visual Web Developer Express
When attempting to use VWD Express' built-in web server I recieve the following error in browser window: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) I've done the following: Followed advise on How to: Configure Express to accept remote connections Retrieved port_address from SQL Server Configuration Manager (i.e. SQL Server 2005 Network Configuration > Protoco ...Show All
SQL Server SQL Server 2005 RTM
Hi, What if I want to remove(clean) all default instances and install SQL Server 2005 RTM as the default instance. I am getting the error "An instance with the same name is already installed on this computer. To proceed with SQL Server Setup, provide a unique instance name. " while trying to install RTM. I unistalled Sept CTP. How do I remove all the existing instances and start fresh. Thanks, -Suri I forward my posting to another question here. Try the following. 1. Uninstall all visible Beta components in Add/Remove Programes. 2. Detect the Beta components infromation in the the log file located in ...Show All
Visual C# IL DASM fails with C# express
1. I have a copy of ildasm 1.0 from 2001. How do I download a newer edition v 1.0 cant find it's own help file when i try to open a file in a folder other than ildasm's home directory. 2. When I build, then try to open, say, ConsoleApplication1.exe, i receive the ildasm error dialog: 'failed to open meta data'. What is it looking for, and how do I provide it ILDASM is included with the .NET Framework SDK. You can download the different versions of it here http://msdn.microsoft.com/netframework/downloads/updates/default.aspx Isn't it already included with Visual C# Express You need ILDASM from the v2.0 SDK to open executables compile ...Show All
Visual Basic Data source
in the change data source wizard ;i have only two data sourcee types; Access and MsSql server database file ; how can i add Mssql Server and Oracle to this wizard window I would probably guess you are using the VB Express product. These are the only two databases supported by the VB Express IDE. To use others you have to code the database stuff manually. ...Show All
Architecture UML/Modeling Tools you are using?
One of the problems I have found in VSTS 2005 is the lack of modeling tools for the Software Architect. Jack Greenfield addressed and answered my concerns here . He also said MS is working on some addressing some of the issues. I responded to him here . I needed something today to allow me to continue doing my job which currently is implementing a product line engineering process. I am using UML on this project. In case you are interested, here is a list of the tools we are evaluating from MS and their status. I answered Steve Cook's question as to what UML I would like to see supported by MS here . XDE was out because it ...Show All
Windows Forms Scrollbars and Custom Border Painting
I've customized a panel to draw a custom border utilizing WndProc but I have a problem when the scrollbars are displayed, take a look at the lower right portion of my border. I have attached a snapshot of the problematic control and a .NET panel equivalent. I think the corner box is misplaced and not painted on the correct intersection of the two&nbs ...Show All
Windows Forms Ambiguos error...
Hi all. I have very strange problem and make me crazy. I don't know what it is. This is the code: int id, n=0; this.treeView1.TopNode.Nodes.Clear(); for (int i = 0; i < ApplicationState.GroupCount; i++) { id = Convert.ToInt32(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GID"].Value); this.treeView1.TopNode.Nodes.Add(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GroupTitle"].Value); for (int j = 0; j < ApplicationState.ItemCount; j++) { if (id == Convert.ToInt32(xml.xmlData[0].ChildNodes[0].ChildNodes[j].Attributes["GroupID"].Value ...Show All
Visual Studio Team System Setting up Alerts
My install (single-server) of Team System was very smooth, except for a small glitch that I received when I inputted my smtp server. It stated that it could not connect to the smtp server, however, I was able to ping it without any problem. I thought it might correct itself, but when I try to set up the alerts, nothing ever gets sent. First of all, is there a place where I can update the smtp setting for Team System Also, if it tries to send an alert, but can't... does it save an error anywhere I would like to look at the error logs to see if anything is trying to send. Any other gotcha's on the alert functionality Thanks, ~sl ...Show All
Visual C++ writing to a file?
Hello, In C# I can write TextWriter tw = new StreamWriter("d:\\path\\file.txt"); tw.WriteLine("fred"); tw.Close; What is the C++ equivalent for Visual C++ Thanks Cheers Geoff Here's another: #include <fstream> int main() { std::ofstream ost( "myfile.txt" ); ost << "Fred" << endl; return 0; } ...Show All
Visual Studio Express Editions Setting Up a Provider Please Help
Hello, I have installed Web Developer 2005 Beta 2, and i'm running through this tutorial http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsse/html/VWD_SSE.asp and everything is ok until the "Setting Up a Provider". I need to add a new provider, but in the ASP.NET Web Site Administration tool there is no way to do so (the "add new provider") link is missing. I am new to this so I may be missing something, or the functionality may have moved to another location, any help would be great! Thank You. To successfully add a password you need to start with an alpha-numeric charac ...Show All
Windows Forms Display decrypted data from encrypted values in a Datagrid
I'm developing a C# winforms application, often I send some encrypted information to the database and it's saved as well. When I get the encrypted information, there isn't problem to set up the text property to a textbox control (txtControl.Text = objEncryptDecrypt.Decrypt(dbValue)), but I have a lot of problems to display the same decrypted value in a datagrid cell, and why That's why: private void createTableStyle() { //Crear un Grid Table Style. Mapearlo a la tabla "ACTIVIDADES" DataGridTableStyle aGridTableStyle = new Dat ...Show All
Visual C# How to get return code from a launched process
I need to capture the return code from an external program that I am launching using the Process class. I can't seem to find information on how to do this. An example would be, my program launched a legacy executable that returns a value indicating the success/failure of the application. Assuming that you call Process . Start () then it returns a Process object. If you call Process . WaitForExit () to block until it is done you can then reference the Process . ExitCode property to get the return value from the process like so: int StartProcess ( string process ) { Process proc = Process.S ...Show All
