naskar's Q&A profile
Visual Studio Team System Error TF50604 during Installation
I've got a problem during the installation of the TFS 2005 RC. First I've set up a brand new PC with Windows 2003 Standard, Active Domain Controller (= ADC; and new DNS; the new domain is addc.mydomain, mydomain is an existing NT-domain, but I used "New Tree", so this shouldn't be the problem...) After that I created three new accounts on the ADC-computer (TFSSetup, TFSService, TFSReports), TFSSetup is a Domain Admin, the two others are Domain Users. On the other computer ready for the TFS (SingleServer) I did everything according to the chm-file (TFSInstall.chm), which includes installing hotfixes, sql server 2005 standard, and so ...Show All
SQL Server ForEach Loop Container
I am using a SQL Task to load the data needed for the loop into a variable, then using a script task to perform calculations. Is it possible to update a table from the script task with the calculated values . Thanks Yes the structure for all reports are the same, the calculations are dependant on the specific measure. May I contact you offline and not involve the forum until a suggestion is ready ...Show All
Visual C# carriage return
I need to know how to put a carriage return in code in visual C# express in a text box. Bruce Hi there, Try something like: textBox1.Text = "The quick brown fox\r\njumped over the lazy dog" ; I found that you have to use both character constants (i.e. "\r" and "\n") to get the text to span multiple lines (using either of them alone doesn't work). Also, remember that your text box's MultiLine property must be set to True otherwise the character constants won't have any effect & the text won't span multiple lines. Hope that helps a bit, but sorry if it doesn't ...Show All
Windows Forms Redraw control after window has hovered over it
Hi! I'm writing a custom control and have a problem when the controls needs to redraw itself. Specifically, it's when you drag, for example, another window over my application's form containing the control. The redrawing of the control doesn't happen or the redrawing is incomplete. I already set the ControlStyles AllPaintingInWmPaint, DoubleBuffer, ResizeRedraw and UserPaint . I'm overriding the OnPaintBackground to draw a series of lines, like the following protected override void OnPaintBackground(PaintEventArgs e) { base .OnPaintBackground(e); DrawGrid(e.ClipRectangle, e.Graphics); } & ...Show All
SQL Server Indexes and tuning resources
I'm something of an amateur when it comes to table indexing and tuning and was hoping everyone could recommend some quick-read resources that I can better my knowledge and understanding. I know there are books that cover these topics but I really need some quick solutions and need to better understand these things as quickly as possible. Thanks! - James James, Your best bets are Books Online (either intalled locally or online at http://msdn2.microsoft.com/en-us/library/ms313868.aspx ). SQL TechNet center at (there are whitepapers and webcasts) http://www.microsoft.com/technet/prodtechnol/sql/default.mspx and other resources such ...Show All
Visual C++ help deciphering an error...
When I try to compile my application that is a console application dependent upon a setup file I recieve the following error: Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/runga.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. runga.exe - 2 error(s), 0 warning(s) Could anyone tell me what it means and suggest a possible solution Thanks Alan Homer HI, Sorry these posts haven't made too much sense. I will try again: What I actually have in a code that essentially consists of many subroutines. A few of them seem to have a main fun ...Show All
SQL Server ERROR: A variable may only be added once to either the read lock list or the write lock list.
Hi, I have set of 2 DTS packages, one of which calls the other by forming a command-line (dtexec) using a Execute Process task. From the parent package-> Execute Process Task-> dtsexec /F etc... /<pkg variable> = "servername" Each of the parent and the called package have a variable: "User::DWServerSQLInstance" which is mapped to the SQL server connection manager server name property using an expression. The outer package has the above variable and so does the inner called package (which gets assigned through the command line from the outerpackage call to inner) I "sometimes" get the followin ...Show All
Visual Studio Team System Deleting old directories from source control (Beta 3)
I am now playing with the TFS B3 source control and I am comfortable with it since it feels much like perforce, which I used a lot. Now, I deleted a team project through tfsdeleteproject.exe , but it left the root source control directory in the server. Its subdirectories are now marked with a dark gray folder with a red 'X' on it, and it can't be deleted in the source control explorer (the delete button is disabled). I tried using tf delete , but I can't seem to specify the workspace from the command line. Also tried setting the /workspace option but tf doesn't seem to recognize it. As you might alrea ...Show All
Visual C# Transform Word Doc in to xml?
I searched in msdn abt how to Transfer word Documents into XML or XSL-FO From that I got this link Transforming Word Documents into the XSL-FO Format , here they given all the procedure how to do that.Its manual one. But i wanted these work to be done by program itself. Can u please help in this. So far i did something like Microsoft.Office.Interop.Word. Application word = new Microsoft.Office.Interop.Word. Application (); Microsoft.Office.Interop.Word. Document doc = new Microsoft.Office.Interop.Word. Document (); try { object filename = @"E:\Share\docgen\Word2003\TestResult\All_Classes.doc" ; obje ...Show All
Visual C# Strange behavior C# compiler on internal members
Hi, I encountered a strange phenomenon when reflecting over some public members of internal types. According to the C# Language Specifications v1.2, paragraph 3.5.2 on Accessibility domains it holds that "If the declared accessibility of M is public, the accessibility domain of M is the accessibility domain of T". Here 'M' is a member declared in type 'T'. According to this definition I'd expect declared public members to be compiled as internal, when their type is internal, but they are not, they show up as public! What is the reason for this behavior Hi, the visibility and accessiblity of a member of a cl ...Show All
Visual Studio How do I create an application.extension.config file using MSBuild?
Hi, I'm using MSBuild to build an executable program (exe) from VB.net source code. How do I get MSBuild to output an ApplicationName.exe.config file Thanks, Damian MSBuild does not generate .CONFIG files on its own. The only thing it can do for you is copy an existing .CONFIG file from your project to the final bin directory. So, if you have a file in your project called "APP.CONFIG", then MSBuild will copy this file to the bin directory as " AssemblyName .EXE.CONFIG". ...Show All
Visual C# error:No value given for one or more required parameters.
I am using C#.net to write a program. I have an update to update the database when the user changes the cooment. All values that I have assign to the datarow as data in it. Here is the code: foreach ( DataRow dr in _dsComment.Tables[0].Rows) { if (dr[ "CommentId" ].ToString() == strId) { dr[ "OrdNo" ] = _Order; dr[ "Comment" ] = frmN.Comment; dr[ "Date" ] = System. DateTime .Now.ToShortDateString(); dr[ "Name" ] = UserName; } } _DaComment.Update(_dsComment, "Comment" ); _dsComment.AcceptChanges(); the Error I am getting is: No value given for one or more required parameters. this is throw at the update. my updat ...Show All
Microsoft ISV Community Center Forums Setting ASP.NET Configuration in IIS
hi, im currently working in setup and deployment project using custom installation with System.Configuration.Install; a have already created several custom installation classes, but i have one problem. my deployment includes 2 different versions of .NET which is 1.1 and 2.0. i have created everything including modification of web.config, installation of databases, and Creating Website, Virtual Directory and Application Pool using this custom installation component, what i cant seem to workout and cant find is how i can programatically alter the asp.net configuration thru ADSI System.DirectoryServices using the IIS me ...Show All
Windows Forms Can you add controls to a DataGridView ?
Does anyone know if it is possible to put controls in a DataGridView For example inserting a grid within grid to create the collapse effect. If it is possible does anyone have an example The DataGridView only supports hosting of controls when a cell is in edit mode. There is no easy way to do the collapse effect that you want apart from custom drawing the rows and dynamically adding/removing rows when a row is collapsed/expanded. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Windows Forms Adding a control to an user control, and allowing it to be visible outside of the parent control
I'm writing a derived control that is based on a RichTextBox. Within that derived control, I am adding a ListBox. I want the listbox to be able to display outside of the RichTextBox control though, but I'm not sure how to do that. Currently, I am dynamically creating the ListBox control, and adding it to the RichTextBox with the following code: ListBox myListBox = new ListBox(); this.Controls.Add(myListBox); How can I make that ListBox display outside of the RichTextBox if I need it to Thanks, Chris Thanks, that works perfectly! ...Show All
