Adam2000's Q&A profile
Visual Studio Team System InfoPath crashing when editing specific Process Guidance Content Items (Build97)
Hi, Infopath is a lot more stable when editing ProcessGuidance.xml from Build 97, but I am still having the occasional problem. However, it seems to be related to specific Content Items. For example, whenever I select the "Develop Threat Model" activity, Infopath crashes. Is there a workaround other than editing the XML directly Regards Allen Jones Hi David, Trying to make a simple change to the ProcessGuidance.xml using MS InfoPath application to see how this works. I made changes to files to enable edit mode according to the "MSF Process Guidance Customation Guide". I then open ProcessGuidance.xml file ...Show All
Visual Studio Express Editions Simple .bat example
Can anyone point me to an example which will call an external .bat file (within the working directory) when a VB button is pressed I'm able to develop the GUI with a single button however I'm struggleing with declaring the .bat file within VB. Could also use an example which shows how a .dll file is declared. To declare a DLL: Private Declare Function FunctionName Lib "dllName" Alias "Alias" To launch an external application/file: Dim MyBatchFile as string = "c:\PathToFile\File.bat" Shell(MyBatchFile) You can also specify whether you want to open it as minimized, maximized, normal, e ...Show All
SQL Server How can we write C# code in sql.
Hello Anybody knows how to write c# in SQL All responses appreciated. thanks. There are many examples out there, one of them is http://www.codeproject.com/dotnet/CLR_in_Sql_Server_2005.asp . But anyway if you google for word like clr or c# in combonation with SQL Server 2005 you will find some good examples out there, depending of what you want to do (triggers, udts, udfs, procedures) HTH, Jens Suessmeyer. ...Show All
Windows Forms Design mode of custom control hosted in UserControl
Here's my problem. Throughout my code in a custom control I check to see if it's in design mode. If it isn't I don't do anything, if it's not then I do. (I have to do this because I'm using MSHTML and it works as soon as you create it regardless of mode.) This works great if the control is hosted on a regular form etc. but  ...Show All
Visual C# Current Project
I have created an addin which is a basic button on the standard VS .NET 2005 IDE. When i click it i need to get the path of the solution currently open in the IDE. Any suggestions You can use the _Solution.FullName property to get the full path and name of the solution file. You can get this from EnvDTE . Solution . ...Show All
Smart Device Development When will WM5 SDK for Smartphone RTM
Hi All, Does anyone know when the Windows Mobile 5 SDK will be released Kind Regards, Tarek I believe it did about 5 months ago. Please download here: http://www.microsoft.com/downloads/details.aspx FamilyID=dc6c00cb-738a-4b97-8910-5cd29ab5f8d9&DisplayLang=en ...Show All
Visual Studio Express Editions Order Tables Ascending in DataSet
Hey there, I have a problem cause I don't know how to order tables ascending within a dataset, so I need to know how can I do that, I have for example these tablenames within a dataset in this order: "0050Colors" "0021Cars" "0120Symbols" "1008Field" "0215Country" that's the order in what the tables are added into the dataset, and I need them in the next order: "0021Cars" "0050Colors" "0120Symbols" "0215Country" "1008Field" So what would be the code, to order the tables in that way, please help, thanks!!!. ...Show All
Windows Forms .gif Animation Play w/out Looping in Visual Basic .NET 2005 Beta 2 Express
Hi, can anyone tell me how to make a .gif animation play without looping When I load one into a picturebox, even when the file is not designed to loop, it loops anyways. How can I stop this Thanks, The Digital Pioneer To prevent the GIF from playing at all you can set the PictureBox.Enabled property to false. However to play the GIF once without looping you will probably have to create your own control. To do this you could use the Image.GetFrameCount inconjunction with the Image.SelectActiveFrame method to only loop the GIF image once. ...Show All
Visual C# How do i create a RichTextBox vertical scroll button
Hi guys, I am desperately trying to figure out how to create vertical up/down buttons for scrolling a RichTextBox (i.e. I want to disable the vertical scroll bar and use buttons instead). Any help would be GREATLY appreciated. Hi! To disable scrollers - set Scrollbars property. To add new buttons - add them as usual controls near text box. ...Show All
Visual Studio Express Editions Internet Explorer in C#
Hello, First of all, I am very thankful for these forums and I am glad you guys are here to help! Anyway, I have Visual Studio 2005 Express C# Edition and I am working on a program and let me explain what I need to do. Okay, so I am working on this program. I was talking to the head manager on this and he said here is what we need. We need to have one text box and one button to load a website. Inside the text box the user will type the URL in. When the button is clicked on, it will load the URL from the text box. How can I do this Paul Hi! Simple, use WebBrowser control, Button and TextBox controls on your form. On button's Cl ...Show All
Windows Forms ClickOnce, assembly validation failed.
Ok, I have a very strange problem. I have a class library and I create a windows forms application that uses it. I Publish it as a ClickOnce online only setup. When I try to run it it fails the validation and I get: ERROR DETAILS Following errors were detected during this operation. * [01/06/06 9:47:45 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation) - Reference in the manifest does not match the identity of the downloaded assembly MyLibrary.dll. - Source: System.Deployment However, if I open the manifest file, I can see: <dependency> <dependentAssembly dependencyType="ins ...Show All
SQL Server Serializing / Deserializing from within Script component ?
I have a script component used as transformation. I have written a small helper class that is used by ScriptMain class. The helper class has methods to serialize an object to file and to deserialize the file. Deserialize is called from overriding pre-execute and serialize is called from overriding post-execute. When I ran for the first time, there was nothing to deserialize (I checked for File.Exists) but serialization happened fine. When I ran the second time (this time there was a file to be deserialized), I get this error from pre-execute (Error captured usign messagebox.show): Unable to find assembly 'VBAssembly, Version=0.0.0.0, Culture ...Show All
Visual Basic Application Icon
The help file says that any icon added to the application under resources should be listed in the drop down for the application icon. Mine do not show up! Anyone know why I believe we would need more information to help. Is the icon file available somewhere we can look at Did you make sure to add it as an Icon in the Resource Editor, and not as an image Is it a .ico file ...Show All
Visual Studio Express Editions The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference
Hi, I have this code on my form but I received the aboved-mentioned subject error. string SqlConnStr = "server=localhost;database=HRM;uid=sa;pwd=sa" ; SqlConnection SqlConn = new SqlConnection(SqlConnStr); What's wrong Is it because I've miss to declare SqlConnection Classes Thanks. Have you added a reference to System.Data.dll and have this line of code at the top using System.Data.SqlClient; ...Show All
Visual Studio Adding a new file to an project that Depends on another file.
Hi All, I want to create a new file with a custom extention for my custom VSIP editor then add this file to the project <- no problems so far Then i want to make this file dependent upon a .cs file, so if its moved the custom file (extension adoc) is also moved (and it looks so much better in the IDE), below is how this looks like in the project file. <Compile Include="Program.cs" /> <None Include="Program.adoc"> <DependentUpon>Program.cs</DependentUpon> </None> Now the question is how can i make a file dependent upon using the either the automation model or the VSIP int ...Show All
