Giugio's Q&A profile
Windows Forms DataGridView - switch cols and rows
I really need the DGV to display its cols (fields) down the left (as rows) and the data (there's a single row) as another col. I can't see how to do this. Is this possible Thanks, R Yes - it looks that this solution (via a coded intermediate table) will indeed switch/pivot the rows/cols. But it also seems that we lose the DB auto-updating functionality. And also, we lose the ability to define col attributes (since these are now rows). It seems a pity that the DataGridView doesn't have a way to just natively pivot! Thanks for your help and time Chi, Roger ...Show All
Visual Studio Visual Studio Hangs - Need to restart IIS
We have installed Visual Studio 2005 Professional on a development server. Occasionally VS hangs. The only quick fix we have found is to restart IIS. Obviously we do not want to have to do this each time it hangs. Any idea what is causing the problem Gabriel, you seem to know something about hangs in VS. I experience Hangs everytime I close an edit window, If I have a couple of windows open I can quickly close 2 windows and then it hangs, waits, busy cursor, waits and then the cursor will dissapear and I can actually type in the editor but I get no prompt so I don't know where i am typeing until I type it. I can't use the mouse to select any text. all this takes maybe 3 minutes, which is just enough tim ...Show All
SQL Server Adding Row Numbers to Flat File Source
Hi, I was wondering if it was possible to add an identity column to a flat file data source as it is being processed in a data flow. I need to know the record number of each row in the file. Can this be done with the derived column task or is it possible to return the value of row count on each row of the data Any help on this is greatly recieved. Cheers, Grant The Pre and Post execute limitation is just that. It also makes more sense as you only need to read and write the variables pre/post, which is faster than accessing them for every row. Use local variables in the actual main execution code. You may want to take a quick look at the Row Number Transformation, it may do exactly what you want with s ...Show All
Gadgets This is not a valid gadget package!! grr!
hey, So i finished creating my gadget, i use winzip to zip it up to mygadget.gadget and then double click to install... However it just says: This is not a valid gadget package The gadget works if i move the folder to the windows gadget directory! Does anyone know how to fix this problem Regards Hi nickwilliams , This could be the same problem i'm having I made a gadget -- submited it to gallery, and they accepted it, it worked fine, 100 people downloaded it. I then decided to update it a little, all i added was the following line in the code.js file: System.Gadget.background = "url(bgB.png)"; I pack it back up, no changes to the gadget.xml or page.html (which basicly me ...Show All
SQL Server Adding an SQL Server database to a Websolution
Dear Forum I really hope someone can help me with the following - it's eating me up. I'm creating a website in VS2005 and want to add an SQL Server database to the Solution, og I've created a subfolder to the App_Data folder called Database. Now when I click Add New Item and choose SQL database in the Add New Item dialog box I get the following error message Connections to SQL Server files (*.mdf) require SQL Server Express to function properly. Please verify installation of the component or download from the URL: http://go.microsoft.com/fwlink/ LinkId49251 Now at some point in the past I installed Visual Basic, Visual Web developer and SQL Server express edition, but when I got hold of VS2005 Professional Edition I carefully m ...Show All
Visual C# Help with strange PInvoke conversion
Hi, thanks in advance for your time and eventually for your help. I have to wrap some c functions from a dll creating a C# assembly . I tried many forums etc etc but i didn't find any help . Here's the c funtion prototype : short SessionNew( Session *pSession, SessionNewArgRec *pSessionNewArgRec ); where : typedef struct _Session * Session ; struct _Session is not defined anywhere, so i suppose that Session is a int ptr SessionNewArgRec is a struct which im sure i do a good conversion of . this is what i've written up to now : [DllImport( "libxxx30.dll" , SetLastError = true, CallingConvention=CallingConvention.Cdecl)] public static extern short SessionNew( IntPtr hSession, IntPtr lpSessionNewArg); i don't think this is right, 'cause eit ...Show All
Visual Studio Can't get my shape to show in the Toolbox
Hi guys, this is my first few hours playing around with DSL, and I've got this strange little issue: I've started out by adding a new shape & domain class in the minimal language sample. I've called my class WizardFlow, my shape WizardFlowShape, added an embedding relation from the ExampleModel to my WizardFlow class, and did the Element Mapping for my class to the WizardShape. Still, and even though i get no warnings prior to compilation, and the thing compiles ok, when I debug it, i can't see my new shape in the Toolbox. I double checked every property, went through the whole tree of things in the Dsl project view, the works ! Still, the shape will not yield to my will, and will not show in the debugging toolbox ... I went as far a ...Show All
Visual Studio Tools for Office Override WndProc for a Word app generate via Microsoft.Office.Interop.Word.Application?
Hi, I am working with an application that launches Word externally to edit files. I need to modify the System Menu so that it includes our own submenu. Is there a recommended way to override WndProc for Microsoft.Office.Interop.Word.Application apps Should I hunt for the process to extract the window handle Thanks Here is how I generate the app: ApplicationClass wordApp = new ApplicationClass (); object optional= System.Reflection. Missing .Value; object visible=true; wordApp.Visible = true; object filename = fileName; object t = true ; object f = false ; _Document doc = wordApp.Documents.Open2000( ref filename, ref optional, ref optional, ref f, ref optional, ref option ...Show All
SQL Server Package Configuration using xml-file fails
Hallo, I use SSIS Version 9.00.1399.00 and keep getting problems trying to use package configuration. I choose xml configuration file as type and browse a path on our LAN to create te configuration file . Then I select the properties of a OLEDB communication manager as Properties to Export Doing so I obtain this configuration: Name: JACBE_IF_CONFIG Type: Configuration File New configuration file will be created. File name: L:\Projects\Vinci\SSIS\DVL\FMC loader Import\FMC Loader Import\FMC Loader Import\JACBE_IF_CONFIG.xml Properties: \Package.Connections[JACBE_IF].Properties[UserName] \Package.Connections[JACBE_IF].Properties[ServerName] \Package.Connections[JACBE_IF].Properties[RetainSameConnection] \Package.Co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scorched Tanks for Windows (and 360)
Hey, Continuing my habit of starting more games/projects than I can ever hope to finish, I decided on Thursday I'd write my own version of Scorched Tanks in XNA. What I've got so far is by no means close to being a game, yet, you could probably "play" around with it for 5 minutes or so, so call it what you will. It's working on 360 and Windows (without code changes of course) which is good news. What I've zipped is really just a work in progress for people to play around with and ask any questions (should there be any). The code is, as with all works in progress, fairly atrocious, so I'll keep it to myself for a bit but if by a miracle I've done something and you want to know how I'll happily tidy up the relevant bits and post it. ...Show All
Smart Device Development Install .NET Compact Framework in my WM 5.0 emulator
Hi everybody, I have installed: 1.- Windows Mobile 2005 SDK 2.- Windows Mobile 2005 Emulator Images I can connect with de emulator but when I try to deploy an application the emulator says: .NET Compact Framework v2.0 couldn’t be found. Please install it and run this setup again I have downloaded .NETCFSetupv2.msi from www.microsoft.com . They says that the instalation contains a .cab file for Pocket Pc. I can’t install NETCFSetupv2.msi in my desktop because it’s installed in my dekstop yet. How can I install .net Compact Framework in my emulator to run apps Thank you If you have VS 2005 installed and are developing the app then just connect to the device in VS and deploy it. Make sure yo ...Show All
Software Development for Windows Vista Problem with the manifest file for Vista
Hi, I have to embed the manifest file for my application for Windows Vista. I have added all the necessary information in the manifest file and embedded it to my application using .rc file of my application. And it is working file. But I am facing the problem of the different manifest files for Debug and Release version. Please have a look at the following: In Debug version: < dependency > < dependentAssembly > < assemblyIdentity type = ' win32 ' name = ' Microsoft.VC80.DebugCRT ' version = ' 8.0.50608.0 ' processorArchitecture = ' x86 ' publicKeyToken = ' 1fc8b3b9a1e18e3b ' /> </ dependentAssembly > </ dependency > < dependency > < dependentAssembly &g ...Show All
Windows Forms How to make mouse cursor disappear
I need help in Visual C# How do you make the 1) Mouse Cursor Disappear on Form Load & 2) Mouse Cursor Appear on Form Closed because I am using Touch screen monitor so I do not want the Cursor to appear when the Form Loads as the Form is Full Screen but when it closes the cursor will appear again How do I do it. Thanks in Advance! Hi You can changes the cursor to a cursor designed by you. If you create a Single Pixel Cursor and load it on form load then Virtually ur cursor will be disappeared. Or you can Set the Mosue position where you want on Mouse Move method you can get the coordinate and you can fix it to some posiition. ...Show All
.NET Development NTFS ObjectIds
Is there a way in which I can access and create NTFS Object Ids (the one NTFS uses to keep track of shortcut links etc), from within a C#/NET application, without resorting to issuing commands via Process.Start etc. Ta PhilD ...Show All
Visual Studio Express Editions Bluetooth detection
Hi all, I am using Visual Basic Express and would like to know whether is it possible to write codes that can detect and display the available bluetooth device within range I need to write a program which will allow sending of pictures to the selected mobile phone via bluetooth. Please kindly advice how I should go about doing it Is it using the Serial Port or suzume, I'm a fraid you cannot create any appplication on the Smart Device such as Pocket PC 2003 Device Application in VB Express Edition. But in Visual Studio, you can make the samrt device applications. I suggest you to use the VS 2005 to complete your project. I searched MSDN, there is an anticle on the concept: http://msdn2.microsoft.com/en-us/library/ms863414.aspx ...Show All
