atreus769's Q&A profile
Windows Forms how do I set environment variables from a Windows app?
I would like to set environment variables from my Windows application. I searched the Systems.Environment namespace but there doesn't appear to be a method that will allow me to do that (although I found a method to retrieve environment variables...). Does anyone know how I can set an environment variable Thanks although it would be overkill, do y ...Show All
SQL Server Data Flow Source for dbf (DBASE IV) files
We're trying to read DBASE IV files as a source, but can't find any providers for that format. Will these be included in the final release Is there another way DBASE has always been supported, so it's kinda stranged. Thanks, Dirk Has anyone had any trouble moving a package using a OLE DB Connection Manager reading DBASE IV files While developing I never had a problem, the confiugration string described here worked just fine. Now I'm finding as I move my package to production I can't access any of the files. I will always get a error as follows... The AcquireConnection method call to the connection ma ...Show All
Visual Studio Team System Identify that an old library is used.
Hi I am new to creating FxCop rules, however I have got to the point where I have written rules for our corporate naming guidelines which test for any violations. My question is as follows. I want to add a rule which checks whether a class is "using" a library and advise to use the new recommendation. Has anyone done this one before and can provide me with some pointers to get started Thanks for any help Brendan Brendan, Override the Check(Module) method and make use of the AssemblyReferences field: public override ProblemCollection Check(Module module) ...Show All
.NET Development The type or namespace name 'SqlConnection' could not be found
Hey all. I am remlig novel here to .NET so hope there's anyone affable while there can be be of use me awhile running. just now says the to me that ( The type or namespace name 'SqlConnection' could not be found ) however im not understand. I hav try to add this in my namespace ( using System.Data.SqlClient; ) at run that still no. plz help me. web.config entry for dataBase Connection string < connectionStrings > < add name = " Personal " connectionString = " Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf " providerName = " Sys ...Show All
Windows Forms CurrentRowIndex does not exist in DataGridView ???
Hi, What is the equivalent property in the DataGridView (.NET 2.0) of the CurrentRowIndex of a DataGrid (.NET 1.1) thnx Chris I believe it is dataGridView1.CurrentRow.Index dataGridView1 being the name you give to the DataGridView . ...Show All
Visual Studio Tools for Office VSTO lab2: Doc.Saved always true
Hello all, I'm a newbie of .NET world and sorry for my english. I'm trying to do the "Lab2: Adding Functionality to Word Document Solutions in Visual Studio .NET 2003" and I have a problem about this code fragment: "Private Sub ThisApplication_DocumentBeforeClose( ByVal Doc As Microsoft.Office.Interop.Word.Document, ByRef Cancel As Boolean ) Handles ThisApplication.DocumentBeforeClose If Doc Is ThisDocument And Doc.Type = _ Word.WdDocumentType.wdTypeDocument Then If Doc.Saved Then ' the document is already saved; allow the document ' to close without prompting the user ..... Else .. ...Show All
Windows Forms Showing a Form that lies in bakground
Hi, I have created a Shared Add-in, it contains a button, when you click on it, a System.Winidwos.Forms.Form shows up, now i have two problems that i can not solve them, 1. every time you click on the button it shows a new form, I want that it shows just one form not more, even if you clicked on button many times. I mean I don't want to disable the button , the button must be enabled always, because of the following point: 2. when you work on the office document the form lies in bakground (not visible), when you clik on the button the form must shows up agin . how thanks you all For #1, keep tra ...Show All
Software Development for Windows Vista Behaviour of existing instances in updated workflow
Hello, If I have a persisted instance of a workflow that was defined in a separate assembly, and later I modify the workflow definition and rebuild this assembly. What happens when I restart the instance Is there any standard way to manage versioning on the instances Regards, Mk Hi all, To get to know WWF, I started with simples workflows and extend them to make them more usefull. Sometimes I run into problems loading a workflow instance, getting an exception. Usually I write that down to the changes I have made to the workflow causing an ...Show All
Visual Studio Team System TFS Beta 3 slow opening docs greater than 1 MB
We have installed TFS Beta 3 successfully. However, trying to open word documents in our requirements area that are larger than 1 MB is taking a long time (about 20 - 50 mins). This was not a problem for us under TFS Beta 2. Can someone please help us trying to resolve this Thank you. Something is amiss in your Sharepoint setup. I can open multi-megabyte powerpoint files from the requirements folder in under a second. I know that's not too helpful, but I think it's indicative that the problem is not endemic to Beta 3, but something unique about your setup. Ar ...Show All
Visual Studio Express Editions sendkeys and focus
Ok i got a bit of a prob. i'm tryin to make vb type in a webbrowser thing tht i got onscreen in a vb form. my friend suggested send keys but you have to set a focus to the webbroweser or somethin like tht. i tried everything he's said but i've had no luck. can anyone out there help me if u didn't get tht, i want vb to type in a webbrowser bit which is in my form when i click a button. ok a bit of an update here. i tried what my friend said again except with a textbox. tht worked. But i tried the exact same thing except with my webbrowser and it doesn't work. Why not and how can i fix it so it will ...Show All
Windows Forms Function Pointers>>>> Need Help
Ok basiclly I'm trying to fix something MS messed up on. I have already made a solution that works and all, though I would like a better solution. I want to pass a function by reference (pointer) and not the value result of the function. Here is an example: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handl ...Show All
Visual Studio Team System Check OUt - Get Latest Version
We had an issue this morning where a developer checked out some code that I edited last night. When she went to check it in, it told here there were conflicts. It seems that when you check out a file, it does not get the latest version. Is it possible to change this so when you check a file out, it gets the latest version from Source Control It seems really silly and awkwards to not have this option available by default. Hello, unfortunately in Team Foundation Server we took different approach and we don't do Get Latest on Checkout (more details on this here ). However it's very probable that we will add such option in the nex ...Show All
SQL Server T-SQL Catch-all error handling?
Hi, Is there some equivalent in T-SQL to the notion of having a global try...catch. Basically, I have a stored procedure which evaluates a stack and then inserts the calculated value into another table. However if there are invalid values on the stack such that a calculation cannot be achieved, I just want it to insert null. (In this version). To do this I need to design some logic into the stack evaluating sp that simply catches e.g. invalid data conversions and the like and simply returns a <null>. Thanks in advance for any help with this. Please take a look at the links below: http://www.so ...Show All
Visual C# Creating a reference to a value type
I need to create a variable that holds a reference to a value type so that something like the following will work: int i = 0; int x = i; i = 2; // i need: i == 2 AND x == 2 This obviously works with reference types: DataSet ds = new DataSet(); DataSet ds2 = ds; ds.Tables.Add("Table1"); // now ds AND ds2 have 1 table (they reference the same object). I thought that boxing a value type would create a reference, but it doesn't: int i = 0; object o = i; o = 4; // But: i != 4 i = 8; // But: o != 8 So, how can I create a reference (NOT a pointer) to a value type EDIT: I'm not sure it ...Show All
.NET Development How to get date stamp of file in FTP server
HI, I want to check tthe date stamp of a file (when it was created or accessed last) in the FTP server. In the WEbrequestmethods class I found something called " GetDateTimestamp " but it doesnt seem to get the date stamp of a file in the server. So how do I do it Well I dont have any code as of yet, primarily as their was nothing in MSDN to suggest that the datetime stamp of a specific file could be retrieved. But it is such a common operation, that their has to be somthing in the framework, to know what the date a file located in some server (preferably ftp) was created or when it was accessed, ...Show All
