Tim Higgison's Q&A profile
Visual Studio 2008 (Pre-release) CTP Ma 2006 Problem -> The projects don't appear
Well i have this little problem :( I install the May CTP without any problem. But i don't know why the projects don't appear, when i try to create a new project, for example the LINQ Console Application don't appear. What can i do Thanks and sorry about my english. Regards We have a known issue with VS installed with C# but not VB. The workaround has been discussed in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=394734&SiteID=1 Please try the answer there and see if that works out for you. The alternative is run VS setup and add VB and the rerun the LINQ Preview (May 2006).msi install. Ting Liang ...Show All
Visual C# Hiding the vertical scrollbox on a multiline textbox
Is there a way in c# to hide the scrollbox (on the right hand side of the control) on a multiline textbox In order to remove all of the scrollbars, set the ScrollBars property to ScrollBars.None. To remove just the one on the right and leave the one on the bottom... set the ScrollBars property to ScrollBars.Horizontal. ...Show All
Visual C# Application.Exit
Ok. Can someone tell me how to when the application closes to perform a function..maybe something like this. if (application.exit == true) { MessageBox.Show("Are you sure"); } Take a look at the Application.ApplicationExit event. You cannot cancel the exit because the Application.Exit will kill your forms without raising the Closing event. If you need to have the ability to cancel, then do NOT call Application.Exit. Instead call the Form.Close method of the primary form within your application(the one you passed to Application.Run). You can then handle the Form.Closing event and use the CancelEventArgs to cancel the clos ...Show All
SQL Server dtsx with config file?
Hi all This is the situation: I've a dtsx package wich creates a tab delimited txt file from a sql server 2005 databasetable. Now this all works just fine. But what I want to do is that the user can choose the destination path of that created txt-file. Right now I've declared the path when I created the flat file source. On the net I found that a config file for a dts package (sql server 2000 - Dynamic Property Task) could do the trick... Any help plz thx! There are a number of ways of doing this. You could use a configuration file but that would mean editing the configuration file each time and ...Show All
Software Development for Windows Vista Beta 2 Debugging question for HOL 1
Hello, I'm working through the Hands on Lab (HOL) #1 for WF Beta 2, Exercise 3 and task 7. Everything's been working according to the lab instructions until I got to the debugging section. I'm seeing a couple of strange things: 1. Step 6 tells me to step into the code for the ReportSubmitted_Invoked handler. I've tried this, but the debugger doesn't go to the code level; it simply highlights the next activity in the workflow designer. I also tried explicitly setting a breakpoint in the ReportSubmitted_Invoked method of the code beside file, but it's not hit and appears disabled. The text 'ReportSubmitted_Invoked' is written to the cons ...Show All
.NET Development Passing a ascii byte array as System.String to a COM BSTR param
I have a VC6 ATL COM Object that accepts a BSTR as an input parameter in one of its methods. The COM Object expects an ascii buffer to be embedded in the body of this BSTR and uses a call to SysStringByteLen to dynamically create an appropriately sized single byte char array for holding the extracted contents based on the results obtained from interrogating the size prefix of the BSTR. The COM interop wrapper generated from this dll defines this parameter as a System.String that gets marshalled as UnmanagedType.BStr. I am trying to use this method from managed code (C#) but am having difficulty creating an ascii encoded string parameter ...Show All
Visual Studio 2008 (Pre-release) Do I need WSE3 if I have WCF
Do I need to download and install Web Enhancements Version 3.0 if I have the latest version of WinFX (Windows Comunication Foundation) thanks Ralph Absolutely not. WSE 2.0 and WSE 3.0 provide WS* support for VS 2003/.NET 1.1 and VS 2005/.NET 2.0 (respectively)...and WSE is not a complete implementation of the specifications, but supports many security specifications (WS-Security, WS-Trust, WS-SecureConversation, SAML) and the latest MTOM, along with a few other specs. WCF is a complete communication platform that better supports the emerging and currently standardizes web services sp ...Show All
SQL Server SSIS Packages Under Source Control - Odd behavior
I have an odd scenario going on. Using Visual Studio 2005 Team System, when I open a Solution containing several Integration Services Packages that is under source control (Version 6.0 Sourcesafe Database) it automatically checks out each SSIS project file in the solution and then creates in my local directory additional ".database" files. Has anyone else come across this odd behavior The database file is orthogonal to source control. That's an artifact of using the VS environment. You can delete the database file if you're not using it. However, it may be generated again, so it's best to just i ...Show All
.NET Development concurrency with one user ??? vb.2003
Hi I got a simple form with a grid bound to a dataset and a button that calls adapter.update when i modify the same record twice i got a concurrency error The code in the handler looks like this Try Me .BindingContext(DataGrid1).EndCurrentEdit() If DsFall1.HasChanges Then SqlAdGebruikers.Update(DsFall1.GetChanges()) DsFall1.AcceptChanges() End If Catch ex As DBConcurrencyException MsgBox(ex.Message & Environment.NewLine & CType (ex.Row(0), String )) &n ...Show All
Visual Studio Team System Roles and Users
Hi, How can I define roles How can I assign different roles to a same user Is Project the way Thanks Leticia Thanks, Eric. Now, I'm in other step : 1) I have two new users created by Active Directory, which were added as members to the Team Foundation Administrators group. 2) The same two users appears as new integrants inside Project Manager-Development Project Plan. The problem : In Vs,Team explorer, work items ... they don't appear as valid members. Message : "The value you entered for field "Assigned to" is not in list of values that are allowed ". Maybe ...Show All
Windows Forms Handle changes in screen resolution.
I would like to know how to use Screen.PrimarScreen.Bounds to handle changes in screen resolution from the design time to run time. I found that it could be used in the following link, but i couldn't find any more information as to how to use it. I am a beginner in .net Appreciate your help. http://msdn.microsoft.com/smartclient/community/wffaq/default.aspx#adt56jjf supose you want your screen to be 50% the size of the screen.... private void Form1_Load(object sender, EventArgs e) { this.Size.Height = Screen.PrimaryScreen.Bounds.Height * 0.5; this.Size.Widt ...Show All
SQL Server Set Report for Snapshot History via Web Service?
Hello, Part of our Reporting Services 2005 implementation calls for the creation of a report (RDL) and uploading it to our RS server for deployment, all done programmatically. We'd like to have the uploaded report set up for snapshot history. Does anyone know how to do this programmatically through the web service I know how to do it manually through Report Manager, but can't seem to find the right method calls to do it via the web service. Thanks in advance BTW: the report we create meets the requirements of a snapshot history report... i.e. default report parameters, and a stored credential datasource. ...Show All
Visual C# problem with XmlWriter and MemoryStream
hello friends i am able to write a xml file on the disc. but when i use MemoryStream in the XmlWriter.Create() method. I m not able to read back data from the stream ...please correct the code that i have written. private string GetContentMessage( object o) { string str; int size; byte [] myBuffer; TestClass test=( TestClass )o; MemoryStream objMemoryStream = new MemoryStream (); XmlWriterSettings objXmlWriterSettings= new XmlWriterSettings (); objXmlWriterSettings.CloseOutput = false ; objXmlWriterSettings.Encoding = Encoding .UTF8; ObjXmlWriter=XmlWriter.Create(objMemoryStre ...Show All
SQL Server Problem in connection to sqlexpress witn ASP.nET
hi all When I use asp.net 2.1 to connect sql 2005 express locally I got error message to say 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: SQL Network Interfaces, error: 25 - Connection string is not valid) I use following connection string ConnectToDb.ConnectionString = "Data Source=servername;InitialCatalog=PushToMail;Integrated Security=true"; for more information : when I open SQLEXPRESS this oblige me to inter servername : ...Show All
Visual Studio Team System How to add the Root Cause field to a Work Item
Hi, How can I add the Root Cause field to the bug.xml file (in order to customize the bug work item). I can see the field in the Column Option window, but can't see it in other work item types (Risk, Task..). Thanks, Michael Where do you want to add the Root Cause field You say to the bug.xml file, but it is already there if you are using a CMMI template. ...Show All
