Esteban27421's Q&A profile
Software Development for Windows Vista Seeking Suggestions on DirectX - A simple Measuring tool
Hi there, You don't have any idea how much courage this requires. I'm very experienced programmer. I'm not the least bit interested in games or shading most of the things that directX does so well (Although Gold wave uses directx in their displays and I think they are superlative and would love to know how to do that.) My needs are very simple and fairly easily stated. I'm updating a beloved Eyedropper program originally written in vb6 which has migrated gracefull to VS2005. The program samples any pixel on the screen. What I'd like to to would to be able to extend the functionality to be able to replicate a ...Show All
Windows Forms Problems with datagrid booleancolumn
When I try to use a boolean column in my datagrid, I get a 3state checkbox in the cell. I know what this is for, but I don't need the null state. I am working in VB.net with a ms sql server 2000 bit field to make the boxes checked or not. 1 = checked 0 = unchecked So when my users want to edit the data directly in my data ...Show All
SQL Server Large log backups
I noticed that my log backups are very very large after doing a full backup of my databases and was confused why that was. I created 2 maintenance plans - one for full backups and DB maintenance that runs nightly - one for log backups that run at 4hr intervals For whatever reason, the first transaction log backup that is performed after the full backup of the database is as large if not larger than my full backup, while subsequant log backups are more reasonable in size. Until the next full backup is performed, that is, then the next log backup is HUGE again... Example: 05/04/2006 01:16 AM 35,801,484,800 TPRO_backup_2006050323 ...Show All
.NET Development Grant File Access To Another User
I would like to know how to grant, to a specific user, access to a specific file. My application user would be an administrator on the machine where the file is located. The user I want to grant access to the file is also a user on the machine. How can I do this in C# (.NET 1.1) Thank you Hi, There are several options: interface with ADSI or WMI, shell out to CACLS.EXE, or use some Win32 plaform calls. For ADSI, see KB 899553 . For CACLS.EXE, see this post . I haven't come across a good WMI example in C#. But here's the core WMI reference . There's a GotDotNet sample with " A C ...Show All
Visual C# handling exceptions .
you know when you do a try catch .. and you catch an exception... what do the developpers do with the exception basically what is the use of try/catch i know its for catching an exception .. but what do developpers do with it usually Thanks, I use it to catch any error i feel i might have missed. itz for like saftey puposes for me. If u get an exception while running my program i go fix that problem. I leave the try-catch just incase a user finds the error that i might not have seen. ...Show All
SQL Server I need help with what appears to be a botched install.
Okay, i'm learning VB.NET (and having quite a bit of fun with it). Well, I had the old beta version. Anyway, went away for a week and found I could no longer use it. Why "Beta period is over.". Yeah, it sucks. Well, I uninstalled it via the uninstaller. I upgraded my .NET framework, etc, and redownloaded VB.NET. Everything installed okay, save for the SQL server. It repeatedly fails. I have hunted down and shot each component quite ruthlessly, but I don't know what beta component remains. I can't get it to install because it says I have beta components left. And VB.NET works. Barely. I had to disable the hosting pro ...Show All
Visual FoxPro Assigning Data to a variable in a query
I have a table that I want to query based on a Selected Record in a gridView. I have the Record Number in GridView.SelectedValue but I have no ide how to set up a query in here much less run it. I need to know OldLine and oldItem from a table called items I mean I know "Select OldItem, OldLine from ITems where RecordNumber = " + GridValue.SelectedValue" Sure hoped that worked but no... As you can probably tell I am relatively new to VB, VWD but not queries. Please can someone give me an example of how to do this in a Public Sub The whole purpose is to get the old item number so I ...Show All
Visual Studio Team System Code Analyzer - XML Comments
Is there a way to get the Code analyzer to flag warnings/Disallow code to be checked in where its missing XML comments for Methods, Properties etc Currently, code analysis for managed assemblies operates post-build against binaries. This means the analysis cannot detect anything meaningful that's expressed in source but does not exist in IL. We are looking at expanding source-based analysis in the next version of the tool, and I will add this scenario to the list, I think it's a good one. Thanks for the post! ...Show All
Visual Studio Express Editions How to set a date field to null
I have a bound text box showing a date field and I can enter a date into this no problem and save the changes. I have spent the past two days trying to find a way to allow the user to delete the date i.e. set the field back to null! I have found several articles on the net but nothing that provides an answer or explains why something that should be simple should be so hard!! DateTime is not a nullable type. If it's nullable in your db, you need to allow it to be set that way in your UI, and use DBNull.Value as what you pass into the DB if that condition exists, instead of a datetime. ...Show All
Visual Studio 2008 (Pre-release) Speed of XAML
Is it possible for you guys to give us a realistic timeline on when XAML wil be ready to be a actual viable option to develop applications for E.g when will the whole framework standardize and when will we be able to develop apps that won't run at snail speed Thank you very much, Jaco I know now what our problem is, thank you very much. It is still not performing as good as it should, but seeing as you guys are still working to improve the speed, it is bearable. But, to overcome my problem, I need to be able host a Dialog Window with rounded edges! Please can you give me an indication when ...Show All
.NET Development EncryptedXml question
Hi, This is the first time I'm trying to use EncryptedXml class to encrypt my xml file using Rijndael. I was wondering how I can use password and salt to encrypt the file. Here is the code from MSDN, that doesn't use any password or salt. Please help me. public static void Encrypt( XmlDocument Doc, string ElementName, SymmetricAlgorithm Key) { // Check the arguments. if (Doc == null ) throw new ArgumentNullException ( "Doc" ); if (ElementName == null ) throw new ArgumentNullException ( "ElementToEncrypt" ); if (Key == null ) throw new ArgumentNullException ( "Alg" ); ...Show All
Smart Device Development Custom WinCE 5.0 and VS 2005 Beta2. Connection question.
So, I have a custom board and windows ce 5.0 built to our needs. I have active sync built into the image. Now, comes the problem. VS 2005 Beta2 asks for an tcp/ip (transport) and to have activesync (bootstrapper). Then I try to connect and get "Connection failed. The current version of ActiveSync is not supported. Install the latest version from www.microsoft.com.". Well, I got activesync 3.8. That is the latest I found. As a component for PB 5.0, where can I find the latest activesync component to include in my image If this matter, the red X after it failed was on the desktop side. Thanks RM. You ca ...Show All
Windows Forms Databind to collection object
I've created a customized collection and want to databind it to a DataGridView. After some research, I found that I need to create a bindingsource control and then bind to the specific collection object. The first problem is that I need to retrieve the collection instance for some additional method calls. How can I get the underlying collection instance back I found that the databingsource will use BindingList<T> as its internal store. How can I convert it back to my specific collection so that I can make additional method call Belair, thanks for your help first. Actually, I've just made the same thing worked. (Certainly with ...Show All
.NET Development Redistributing MSXML4
Hi, I have written an application which is redistributed via an MSI. I merge in the MSXML4 merge modules. I have discovered that if I add a manifest assembly reference as follows: /manifestdependency:type='win32' name='Microsoft.MSXML2' version='4.20.9818.0' processorArchitecture='x86' publicKeyToken='6bd6b9abf345378f' language='*' My app doesn't work. I think that this is because these DLLs already exist in the C:\WINDOWS\SYSTEM32 directory and it is not installing them into C:\Windows\WinSxS. Shouldn't the merge module detect this and install into both places Thanks Mark MSXML4 is ...Show All
Windows Forms Form Designer and negative coordinates
I have found that if controls such as panels or buttons are given negative location coordinates, on the next load, desinger will convert them to their abs values. Why does designer do this, and is there a workaround In VS .NET 2003 (C++): - In designer, create a panel w/ location '-3, -3'. - Save the form. - Close the form. - Double ...Show All
