Soren D.'s Q&A profile
Windows Forms How can code short cut for CTRL+Enter in VS 2003.
I am using Visual Studio 2003 and wanted to provide a menu short cut key as CTRL+ENTER key. I am not seeing this key by default at System.Windows.Forms.Shortcut. How can assign CTRL+ENTER key in menuitem Thanks in advance. Dave, If you open the ShortCutKeys, and Choose CTRL and then a list of options are coming in which "Enter" key is not there. I am seeing this VS2003 as well as in VS2005. Is there any way to introduce "Enter" into this list or can I someway customize it Thanks, ...Show All
Visual Basic Variables losing information?
Why does dataAccess lose some of it's values just after the new sub has been called Both synchronizingObject and notifyDelegate is set to nothing as soon the new sub is done. I'm 100% sure that the variables are set to something while calling new 'Click on button [code] Dim dataAccess As DataAccessQrapport dataAccess = New DataAccessQrapport(Me, New DataAccessQrapport.NotifyProgress(AddressOf ShowProgress)) something= dataAccess.getSomething(ID) Public Class DataAccessQrapport Public Delegate Sub NotifyProgress(ByVal Message As String, ByVal PercentComplete As Integer) Public synchronizingObject As System.ComponentModel.ISynchronizeInvoke Public notifyDelegate As NotifyProgress Public Sub New(ByRef SynchronizingObject As System ...Show All
Visual Studio Team System VS2003 with TFS MSSCCI shows the wrong file status
Hi, I'm using VS.NET 2003 SP1 with TFS MSSCCI provider 1.1. In the Solution Explorer, some of the resx files are shown as "checked out" status (with the red icon). However I don't have anything checked out. It seems to only happen to some of the language resx files (i.e., Form.de.resx and Form.fr.resx), but not regular code .cs files. How do I clear the checkout status in VS.NET Thanks, Heng-yi Hello, we've tried your scenario on two different machines. In both cases everything worked fine - form was referencing only the resx and de.resx. It wasn't checked out. In regard to step 2 - we were adding files to SCC using VS2003 because it didn't break the changeset in this case and VS ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! Full source: <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; var pinID = 1; function GetMap() { map = new VEMap('myMap'); map.LoadMap(new VELatLong(48.03, ...Show All
SQL Server How can VB look something up in an SQL Table?
How can a Visual Basic Application Lookup information from an SQL table database (all of this in the Code Window, not with the Application User seeing this). e.g.: Making a VB Application verify that the text in a TextBox is the same as the text in an SQL Table/Row (Like when verifying a password.) As Andrea says, to get his exact sample to work, you will need to install Pubs per his instructions and make the a slight change to his code, to whit... With con .ConnectionString = "Server=(Local) /SQLEXPRESS ;Database=Pubs;Trusted_Connection=True;" .Open() End With Changes in bold/red. To get this to work against your specific databases you have to realize that you are not using the p ...Show All
Visual Studio Express Editions Using an image as in emedded resouce
** Newbie Alert ** I'm trying out some example code from MSDN in an article called " How to: Retrieve an Image that Is an Embedded Resource (Visual C#) " (ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_csexpresscon/html/f42dff1c-6804-4fda-94e5-1e77460a9142.htm) Step 4 says to replace the string with "the name of the resource, as it is known in the assembly." I don't know what that means. I've tried using the resource name I gave it, but I get a runtime error that seems to indicate he couldn't find the resource. Has anyone gotten their bit of code to work Thanks! Dan Thanks for the quick reply! The real problem was that I wasn't using the fully qualified namespace ...Show All
.NET Development Problem referencing dlls
I am referencing the OpenNETCF.Desktop.Communication.dll from visual studio 2005 professional edition for a VB.net windows application. I am able to use it fine until I save and re open the project. After that I get the following error when trying to debug: Could not load file or assembly 'OpenNETCF.Desktop.Communication, Version=2.9.2244.24857, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) It seems strange that this problem only arises once i save the entire project. This leads me to believe that it is a problem with visual studio and not the .dll, but I could be mistaken on that. Any ideas on what the problem is, or possible fixes Than ...Show All
SQL Server Dynamically changing task name displayed within ForEach Loop Container
Does anyone know how to change the task name displayed within a ForEach Loop Container (or of the ForEach Loop Container task itself) based on a variable. I am pretty familiar with setting variable values during task execution and using expressions to alter task properties based on variables. I have tried using an expression to alter the value of the Name property of the ForEach Loop Container but the name of the ForEach Loop Container does not change during execution. Since the color of the various tasks change during execution, I would think that the task names could be changed as well. You can create checkpoints or if that does not fit your needs; you could write to a file or table on each iteration an the look at that. if you ...Show All
SQL Server Load data from .DAT file
Hi All, I am using Bulk Insert task to laod data from .dat file to SQL table but getting an error below. [Bulk Insert Task] Error: An error occurred with the following error message: "Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.". Any help will be appreciated. Thanks. I've tried those solutions but no luck. There is anothe ...Show All
Windows Forms Mage Commandline error with .deploy files
Hi! I'm creating application manifest manually using mage.exe. If I run mage.exe with the original files (exes and dlls), everything works fine, but as soon as I change the extensions adding .deploy (i.e. xx.dll.deploy, xx.exe.deploy), it throws a bunch of warnings like: Warning MSB3110: Assembly 'xx.dll.deploy' has mismatched identity 'xx', expected file name: 'xx.deploy' The command line used is: mage -New Application -ToFile program.exe.manifest -Name "MyProgram" -Version 1.0.0.0 -FromDirectory 1.0.0.0 When I look at the generated manifest, the problem is that mage wrongly assigns the "codebase" attribute at element "dependentAssembly" Any suggestions is there another command line flag ...Show All
SQL Server creating and scheduling job for SSIS
Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. It's the same as if you were executing the package from the command prompt. The Agent calls DTExec so set the password using the /SET option. Go to the properties of the Job then go to Steps then edit the step and go to the Set Values tab. ...Show All
Visual C# Problem with Word Function in DLL class when called from Windows Service
Hi, I'm not really sure where I should be posting this one, it's in the area of Word Interop, Windows Services and Asynchronous programming... I have a Class Library DLL, which contains a function that processes a Word document (opens Word, does some stuff, quits Word). The class library contains another function that basically just wraps this to allow it to be called asynchronously. When I include the DLL in a Windows Forms project I have and run it - it works fine, but when I include the DLL in the Windows Service project, it fails to process the Word Document, and also leaves Word open - even though the code goes into the catch section of the Try catch block which contains a Word.Quit. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. installation help
hey guys im having trouble on installing the XNA..... i already had installed Visual C# Express Edition and when i tried to install XNA , a screen came telling me that it did not detect any Visual Studio Express components.... i then install all the things one by one after rebooting i go to xna explorer and make a root something, after my installation of C# i only got the executable file of X# in my all programmes place.... but no visual studio 2005 express like i get when i had installed C++ on it a week ago... after installation of XNA i then get that visual studio file in my programmes later on but when i go there, and go to make a new project then it says project made but i dont see any forms or anything like i do when i do new project ...Show All
SQL Server Fit matrix on one page
Hello, A matrix object in Reporting Services has an option "fit this matrix on one page if possible" It doesn't seem to work. I have a report with six very small matrices. When I export my report to PDF it just smears the last small matrix over two pages. Anyone has a solution for this Thnx... Jeroen ...Show All
Gadgets First gadget nearly complete
Hi, Ive been writting this gadget and getting towards finishing version 1, however while im tidying the last few bits up i thought i would post it here and get some feedback from you guys. It shows xbox 360 gamer tag info from mygamertag.net you need to add your gamertag in the setting page. you can download the gadget from http://www.w3fox.com/360gametag.rar Im running RC1 5600. i have the following items that im working on. 1) Pink fringe around flyout close button ( Jon i will be trying your solution in the next couple of days) 2) sometime the images from mygamercard.net are slow i presume due to traffic i have tried preloading them into tempory int files but they are still slow loading. 3) There are more options like ...Show All
