M. Buragohain's Q&A profile
Visual C# Using multiple forms
Hello, I am trying to use multiple windows forms in my project like this: the main form that shows all of my information, and I have a button when clicked I want to show a new form and have my main form disabled until the new form is closed. What is the best way to accomplish this Thank you -Bryan You should display your second form as a modal form. Until it is dismissed the user can not interact with any other part of your UI. To make a modal form create the instance and then call ShowDialog. MyForm frm = new MyForm(); frm.ShowDialog(); The return value from ShowDialog is a DialogResult value indicating why it was ...Show All
Visual Studio Team System Unplanned work report incorrect
For some reason or another, the "Unplanned Work" report (MSF Agile 4.0) is not displaying properly. I set the plan completion date to a date somewhere in the middle of the project lifetime, click on the view report and only see "Planned" work items even though work items were created after the "Plan completion date". The report shows that the number of work items increases after the "plan completion date", but it doesn't show them in orange. Jason, What version of TFS are you using Could you ensure that the reports you have deployed in your project correspond to the latest reports in the me ...Show All
.NET Development Unable to connect Sql Server from VS.Net
I am a new .Net user. I am trying to use Visual Studio.net 2003 to creat a Windows application. When I try to connect to my SQL server I am getting th efollowing message "Unable to connect to batabase. It is only possible to connect to SQL server Desktop engine database and MS Access databases with this version of Visual studio. Someone suggested that I may not have proper security set up. i am not sure where to start checking. Any help would be tremendoously appreciated Thanks Anand Hi, Visual Studio is an IDE which makes it easier to use the .NET Framework. You can continue using Visual Studio and write c ...Show All
SQL Server AquireConnection error message
There are two data flow task areas. The one does not have any problems running thru the phases, validation, pre and post execution. When it's time for the second data flow task to run thru the phases the following message is received at approximately 89% of the Pre-Execute phase: "The AcquireConnection call to the connection manager "xx" failed with error code 0xC0202009." Then it continues to go thru the post execute and cleanup and gives another message: "[connection manager "xx"]: Error: An OLE DB error has occurred. Error Code: 0x80004005. An OLE DB record is available. Source "ASE OLE DB Provider& ...Show All
Windows Forms Handel DataGridView DataError event
I will personalize the MessageBox that is displayed if an error ocurs in the DataGridView Control. I have do it in the DataGridView_DataError For example: e.Cancel = true ; e.ThrowException = false ; if (Grid.Rows[e.RowIndex].ErrorText != String .Empty && null == e.Exception) return ; MessageBox .Show(e.Exception.Message, "Error." ); Now I will do it in all the DataGridView Controls I have in my applicacion. I have inherited a new control from DataGridView and used these control on my forms. I have coded the DataError event in the personalized control, but it dosen't work. What is wrong ...Show All
Visual Studio Team System Team Build Error
I get this Error when doing a team build " Solution: CoreSolution.sln, Project: x:\___\ABC_XYZ_WebUI\, Configuration: Release, AnyCPU ASPNETCOMPILER(0,0): error ASPRUNTIME: Failed to create AppDomain. thanks I tried building this solution and all projects but one are building successfully. It seems like you are having an oltpd project in the project that MSBuild does not support building: D:\ganesh_temp\AEGIS\AEGIS_CoreSolution.sln : warning MSB4078: The project file "AEG.AEGIS.OltpDb\AEG.AEGIS.OltpD” is not supported by MSBuild and cannot be built. More on this can be found at MSBuild forums ...Show All
.NET Development error using join to access sql server content
Why would this error The join works in Query Analyzer. GridViewShowA.Visible = true; String objConnection = ConfigurationManager.ConnectionStrings["MyConnection"].ToString(); String strSQL = "SELECT x.office as Office, x.email as Email, z.fname as 'First Name', z.lname as 'Last Name', "; strSQL += "z.title as Title "; strSQL += "FROM db1.dbo.tblA X "; strSQL += "JOIN db2.dbo.tblA Z "; strSQL += " ON x.email = z.email"; strSQL += "WHERE x.office = '" + DropDownListoffice.SelectedValue.ToString() + "' "; strSQL += "AND z.email = x.email"; SqlDataAdapte ...Show All
SQL Server Importing data
I think this is the proper forum for this problem. I have tried to import data from Excel 2003 into SQL Server. I have tried with 2005, 2000 and MSDE. I couldn't get this to work, so I imported a table with 1946 rows into Access and then into SQL. After getting past the field problems, the import engine finally successfully completed, telling me it imported all 1946 rows. But the first time the table only had 1 row, and the second time only 2 rows. What's the problem Either the SQL import didn't import all the rows and only thinks it did, or the data went somewhere else. Can any one shed any light on this problem I am desperate at th ...Show All
Visual Studio 2008 (Pre-release) Querying and late bound data providers
Hi Normally in the projects I work on we use a strict provider based architecture for accessing data. Obviously this is done to avoid having any nasty database or XML or something else dependancies in the logic of the program. The problem on the other hand is that querying such data stores must also be part of the provider meaning that all possible ways of querying data must be covered by the provider which obviously isn't feasible. Now I was hoping that LINQ could solve this problem, but I order to do that (at least in the way I currently hoping) I need to know if you can do something like the following. Assume we have an abstract class ...Show All
Visual C# How to trust an intranet-server?
Hello, how can I mark a Server as "trusted location" Problem: Was studying C# during my holidays on my notebook. Wanted to transport the projects to our code-fileserver in the company. But now some parts of the application won't run. Message: "That assembly does not allow partially trusted callers." If I copy the project to the local harddisk, it runs without problems. But I need it running from our development fileserver. How to add this Server to my "trusted locations" thanks, Andre You need to adjust your system’s security policy for either the remote assembly in question o ...Show All
Smart Device Development How to persist form control selected value between application session?
I am new to the compact framework and I'm I have to get an application put together quickly, I hope someone can help me with a basic question..... I need to persist between application sessions the selections made in combo boxes. In the compact framework what is the best way to do this Thanks in advance for any help, C there is no 'best' way, but there are plenty of options... write the selected indices to a database/textfile/xml file, and when the app loads, have it read these values ...Show All
.NET Development When to call dispose when using SqlConnection and SqlCommand?
What is the best practice when running code as follows: //### code start #### SqlConnection conn = new SqlConnection("xxxx"); SqlCommand cmd = conn.CreateCommand(); //...do the necessary processing cmd.Dispose(); conn.Close(); conn.Dispose(); //### code end #### calling Dispose on the cmd and the connection seems redundant. Additionally, if I am disposing hte connection should I first explicitly call Close() The shortest form is simply to call conn.Close(); however even this is questionable. conn.Close() may be valid since the connection is aware of the cmd object created with the conn.CreateCommand(), ho ...Show All
Visual Studio Team System Problem: TFS Proxy returns: TF15013 (Item.asmx missing?)
Situation: TF Client can connect at TF Server. But, problem goes when TF Client tries to connect trough TF Proxy. In TF Client output I receive following message (after using Get Latest V.): The source control proxy 'MyProxyComp' is not responding, so the request will be sent to the main server. Please verify your settings. Additional information: TF15013: The requested Team Foundation Server is not registered with the proxy server. When I start Fiddler to find what GET requests my TF Client does: MyProxyCom ...Show All
Visual Basic Some questions about VB 2005
I have some questions about VB 2005: 1) How can I shutdown or restart the computer 2) What's the difference between My.Application and Application 3) How can I shell an non-executable program, e.g. ".txt" These are my question until now in VB 2005. Please can anybody answer me 1. http://www.codeproject.com/useritems/Shutdown_Restart_VBNet.asp 2. My.Application is a helper class that does a lot of stuff and is really a shortcut way of accessing methods in the framework that are commonly used.. These are not just a repeat of those in the Application class. An example of ...Show All
Windows Forms TaskVision client destroyed my PC!
I've decided to repost this message as separate thread cos I don't think it's getting the attention I deserves. Here's the problem... I installed the TaskVision client about a week ago, and immediately after started noticed weird things happening to my PC - suddenly lots of application were missing files. I checked the Program Files folder where they wer ...Show All
