olloemre's Q&A profile
Visual Studio 2008 (Pre-release) Do you plan some editable ListView (DataGrid) WPF control?
Do you plan some editable ListView (DataGrid) WPF control I think everyone is to be honest. Even though I know there are commercial grids in the pipeline that can probably do more than what I can program as an individual, I am developing my own as a kind of head-first plunge into WPF development. ...Show All
Visual Studio 2008 (Pre-release) RichTextBox, Indentation no effect? (bug?)
It seems that EditingCommands.IncreaseIndentation (and decrease) have no effect on RichTextBox Best regards, Thomas Andersen You're right. That did the trick. That seems like a wierd connection to me, as I was using the command (ctrl+t) and not tab. I think it would be better if there were no such connection with AcceptTabs, as one might want not to accept tabs but stil have indenting through some toolbar buttons. Anyway, thanks :-) Best regards, Thomas Andersen ...Show All
Windows Forms Locking a form from being re-sized
I have a winform with its "Locked" property set to true in its property page. But oddly enough, when I run the application, I am still able to grow or shrink the form. What am I doing wrong is there any other property that needs to be set The Locked property is to lock the controls on the form at design time. This helps you prevent yourself from moving controls when you have them set up just like you want them. To prevent resizing the form, use the FormBorderStyle. ...Show All
.NET Development Delete node in XML
Hi, I am newbie parsing XML. I have the following XML: < xml version="1.0" encoding="utf-8" > <books> <book> <id>id1</id> <value>value1</value> </book> <book> <id>id2</id> <value>value2</value> </book> </books> My question is, how can I delete one of the "book" node and it’s childs Thank you! If you are using System.xml and DOM you can use removeChild method to remove a child and its content. See the documentation at http://msdn2.microsoft.com/en-us/library/system.xml.xmlnode.removechild.aspx ...Show All
Visual Basic Transferring data from FoxPro dbf to Sql
Dear All, I need all your help urgently. I wanted to write a small piece of vb code to sychronize a few FoxPro dbf tables to SQL tables that having the same structure or at least a few fields that i selected. I had tried a code which I found on the net that running row by row and column by column to update the SQL tables but this code is too slow. In my dbf table it contains around 3000 records at least. Please help. Thanks in advance. Regards, Weoi Li ps: Happy 2006!!! I use code like the following to transfer from FoxPro to Access. This code may be dependent on the Jet engine but there should be a similar method for transfering to SQl Server. Public Sub Import() Dim ODBCDSN As String = "" ...Show All
Visual Studio Team System Uninstalling Team Foundation Server
Somehow my instance of Team Foundation Server is corrupted. I am unable to repair/reinstall or uninstall Team Foundation Server. When I try to do any of these operations, the installation dies and when viewing the Setup.log I see the following error: DepCheck indicates Microsoft Visual Studio 2005 Team Foundation Server - ENU is not installed. How can I get TFS to uninstall Thanks. A couple of different things 1. If you find that the databases are still in the directory ... take a look at SQL and if you don't find the databases there, here's the situation. Someone dettached the databases from SQL. TFS setup will not re-attach them for you. You need to do this yourself and then run setup. H ...Show All
Smart Device Development GetKeyState Method
hi, This is for an application in VB.Net on .Net Compact Framework (1.0). (PocketPC) I need to trap the Tab key as it is moved over the controls on the panel. There is a function GetKeyState in user32.dll. But I get a "NotSupported" exception when I try to use this function. Is there any substitute or alternative function that is compatible with CF. Thanks, Hi, Thanks for the quick response! I read through the link and tried using the GetkeyState function.... But i couldnt find as to which dll it belongs too. The normal statement to import a method would be...For Example Declare Function GetCapture Lib "coredll.dll" () As IntPtr Now for GetKeySt ...Show All
Visual C++ : I have a winrar_AM_modifiy_src_to_zip.bat. The problem that I have is :if the vc project which I have is very new and I also mak
del net_ModiSrc.zip "C:\Program Files\WinRAR\winrar" a -afzip -ed -r -ta2006-07-26 -tl -x@tmpfilelist.txt net_ModiSrc D:\ui_7_25\net I have a winrar_AM_modifiy_src_to_zip.bat. The problem that I have is :if the vc project which I have is very new and I also make the file change the very day. then I get a very big zipped file, how can I get a modified file when the modified time is the same as the new project. Thanks. Maybe instead of " a " you should try the " u " command It will add only changed and new files. If you need to keep the old version of files, then try " -ver " switch (but it seems to work for RAR archive format only). Therefore with " winrar u -ver ... " you will have a single archive with all of the v ...Show All
Visual Studio Team System Time-tracking for TFS work items?
Does anyone know if there is a way to track the time spent working on a work item I'm thinking of something like a "clock-in/clock-out" feature, so a developer can record the actual time spent working on a particular task, etc. I assume that if there isn't a built-in way to do this, there might be a way to build this in as custom functionality. Any ideas/guidance Updated Question: Perhaps I should have stated this better earlier... TFS work items obviously have a field or two in which a developer can enter the total time spent on a project, but what I'm looking for is a way to help track and calculate that total time, based on a mechanism (like a chess timer, for example) which would allow a user to "clock in" ...Show All
SQL Server Number Formats - Why does excel show 12.% instad of 12.0%?
I have a percentage cell within a matrix. I want this cell to be formatted to 1 decimal place, so I use the format of ##0.#% (After trying P1 etc). The cell appears formatted ok within the report viewer: 100% 12.9% However after exporting to Excel the following occurs: 100.% - There is no 0 after the decimal point (but there is a decimal point . ) 12.9% - Works ok when the the trailing digit is not a 0 Any ideas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Buying Pre-made models for XNA
What is the best source to buy pre-made models for XNA Does anyone know of companies out there that will make custom models on demand I would also like to know what the best meshing/modeling tool for XNA. We have been playing with Blender 3D. I have tried incorporating pre-made models from turbosquid.com and not all of them work. The ones in .x and .fbx format work fine, but most of the texture size are not in the factor 2 scale, and we might need to manually resize them. Thanks Kyle_W, we are an academic group at MIT and are working on an RFID simulator. We need to build accurate models of buildings, such as warehouses and retail stores, for our RFID enabled robots to move through. We might also need a model of a city. I ...Show All
Visual Studio Tools for Office Tab key not working in tables in a Word Document protected for forms using VSTO
I have come across a problem when programming VSTO. If I have a Word document that is protected for forms by section where one of my unprotected sections contains a table. I am having difficulty using the "tab" key within the table when clicked (tab won't move to the next cell or create a new row from the last cell). This problem does not occur when programmed directly in VBA. C#/VSTO: object oMissing = System.Reflection.Missing.Value; object oContinuous = Word.WdBreakType.wdSectionBreakContinuous; private void ThisDocument_Startup(object sender, System.EventArgs e) { ThisApplication.Selection.InsertBreak(ref oContinuous); this.Tables.Add(ThisApplication.Selection.Range, 2, 5, ref oMissing, ref oMissing); Sections[1].P ...Show All
Visual Studio Connection Builder
Hello, When I add a connection tool during update of my toolbox definition the drop down list to specify connection builder is empty, however I have a number of relationships in my DSL definition. Any ideas as to why this is happening thanks Stephen Hi, Stephen I think probably you need a "Connector" shape to map with your relationships, which will show in the builder. Hope it helps! Di ...Show All
Visual Studio Tools for Office Word VSTO: BeforeClose, Close, ShutDown and Document Saved
Word 2003 VSTO Solution using C# In my Word VSTO solution, I recently added a BeforeClose() event handler, so I can "restore" Word's commandbars (those I've hidden and whatnot). Since having done this, anytime a close the document using Word's close button (X), I am prompted to save the document. So I added this.Saved = true; in the BeforeClose handler as the last line and yet I'm still prompted to save the document. So I added a Close() event handler and checked the saved property, and sure enough, it's set to false following the BeforeClose() event. So I tried setting this.Saved = true; in the Close event in hopes the Save dialog would not display ... but that does not work!!! For giggles, I called base.Close() in the close event han ...Show All
Windows Search Technologies Add-in for UNC/FAT for Win 2003 Server x64
Does anyone know if there is a Win 2K3 x64 version of " Add-in for UNC/FAT " for WDS 3 or when will it be released I have lot of data on our network drives that I need to index. I use to be able to do that with WDS 2.x on my x32 Win 2K server. But not since I upgraded to new x64 machine. I really miss this feature. Thank you in advance for your help. hsshah Hi Paul, I did try to install it on my 64 bit machine. It installed without any errors..however I don't see the mapped network drives in 'Indexed Locations' menu. Someone else too reported the same behavior in this forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=660506&SiteID=1 Thanks for following up on this. Please do let ...Show All
