Stampc's Q&A profile
Windows Forms How to serialize with TreeView?
How to serialize with TreeView in .NET 2.0 I want to ask do you have a version of serialize a ListView in Visual C++ Below is my effort, I use a CSV file to save all the items and a conventional way of deleting the file, create a new one after the item in ListView is deleted, reading files and display it again to listView, but it also don't work. I was confused and don't know what to do to read and write a listView to a CSV file which is a very long and time wasting process. I have read the code of serialize with TreeView but I also need to serialize with listView. Here is the ...Show All
Visual C++ CRT functions met with IntelliSense Problem
Hi all, Recently I met with some IntelliSense problem with Visual Studio C++ 2005. When I type function name, ie, _beginthreadex, Visual Studio cannot provide parameter list, and the following message are shown in status bar: IntelliSense: 'Could not resolve identifier'. Is that mean CRT is not supported by IntelliSense please help. Well, I see the same thing in a newly generated app-wizard Win32 console app. This looks like a bug in intellisense to me and I have reported it to development. Here is a way to observe the problem - it need not be process.h, just any header file for which there is a #ifde ...Show All
Visual Basic e.Graphics.FillElipse and "Beginning VB.NET 2nd Edition" by Blair, Crossland, Reynolds and Willis
Good evening folks: As you probably know, I'm sort of a tinkerer-student developer, and I was working on creating a project where, if you select a radio button, the corresponding text box's background color will change to either red, yellow or green. Therefore, I was wondering if it was possible to change the shape of a textbox from rectangular to circular. Is it possible Thank you. IGFET909 Hello again, CGraus, and thank you for responding: I did some research within a book I had purchased in 2004 when I had begun study of Visual Basic .NET 2003 and came across Chapter 14, "Programming Custom Graphics", which to ...Show All
Windows Forms Message Box Displays Blank without a Message and Caption in the Control Name.
I developed a window application and i displayed a message box it was not working properly. It displays in blank manner not showing the message and caption of controls in it is not displayed. Help me......... I used the following code: Msgbox("text to dispay",title) MessageBox.Show("text to display",title) ...Show All
Windows Forms add unbound data to combo box
Hi guys! I bound my combo box data using data source and I want to add an item at the top of my combo box. Is this possible Please help! I just tried it in 2005 beta and it appears to be not possible. Calls to comboBox.Items.Add or Insert result in "Items collection cannot be modified when the DataSource property is set." Perhaps the item could be added to the underlying dataset, but you would have to consider implications of this being updated back to the underlying database. Good luck... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How does hardware fail? Silently?
A basic test pixel shader outputs solid red, but when rendering in hardware the color of the model is solid white. I use ps_1_1 for this and have no errors except the wrong color. I thought the compiler would complain if it could not implament the shader on the currently selected graphics card, and not simply skip the shader step. If this wrong The only error is that the pixelshader is aparently not run. instead every pixel defaults to white. The models I render are as they should be. just wrong color. Perhaps my problem sounds familiar In advance thanks for any help I can get. My card is an ancient Geforce 2 mx 400 I create my device like ...Show All
SQL Server HOWTO: Script object as execute?
(Didn't know in wich group this question belongs....) Hi group, In QA there is an option called 'Script object as....' Were developing a lot of sp's. When I use this option the 'skeleton' of a sp is created. Eg Create proc uspMySP @Message varchar(10) AS SELECT @Message The mention option would generate the following: DECLARE @RC int DECLARE @Message varchar(10) -- Set parameter values EXEC @RC = [EMGLSP3].[EM3_OWN].[uspMySP] @Message The question: Is it possible to customize this I would like to *** SET statements... Is this possible Regards Sander It is possible to add/modify the QA templates. Her ...Show All
SQL Server Errors reported by uninstall tool for SQL Server 2005 (Tools) Express Edition CTP
Over time I've updated VSTS through a couple of versions and finally want to uninstall the RC1 to install VS 2005 Pro (RTM). Ran the uninstall tool a few times (reboot included), but I keep getting a failure only on two items-- any ideas Microsoft SQL Server 2005 Express Edition CTP The setup has encountered an unexpected error in datastore. The action is RestoreSetupParams. The error is :Failed to read property "InstallIds" {"MachineConfiguration", "", "MANPC004513"} from cache Unable to write property into cache: IsClustered Unable to write property into cache: "IsClustered" XmlRW Error: Failure ...Show All
Smart Device Development Excel support?
Does the compact framework have support for Excel XMl formats I am trying to export a XMl file to a valid Excel format in a Pocket PC 2003 Application, does anyone know how to do so ...Show All
Smart Device Development Emulator softkeys
I recently upgraded to VS 2005 FC1 and now I have a problem. For some reason, the Windows Mobile 5 Emulator's softkeys are mapped to numeric keys. For example, pressing the left softkey while in the home view will result in a '1' being entered instead of display the start menu. Pressing the right softkey will result in a '2'. Pressing the home and back buttons work. Pressing the Green phone button will result in a '3' and the red phone button in a '4'. All the other real numeric buttons appear to be ok. This only happens with the WM5 emulators (all of them) but the 2003 emulators work fine. Has anyone seen this and have any idea how to resol ...Show All
Visual C# Trackpad Location Peek
I want to track the locations where I touch the trackpad (or touchpad in my laptop) not necessarily the cursor movement or the screen positions. I just want to seek the positions or locations of the touch points with relative to the trackpad itself. What can of APIs do I use to retrieve this information Example: -------------------------------------------- | & ...Show All
Visual Studio Tools for Office Outlook 2003 Addin doesn't work on Windows 2003 Terminal Server
Hello all, I 've develop and deployed an Outlook 2003 Addin using VSTO 2005. The project runs succesfully on Windows 2000 and Windows XP I setup the project with no errors on a Windows 2003 Server which runs as a Terminal Server, but the AddIn does not loaded when Outlook starts. Also there is no Addin in COM AddIn s dialog. I also did this : http://support.microsoft.com/kb/908004/ but nothing seems to work. Any ideas Many Thanks.. The addin will be installed for the currently logged in user. Did you install the addin logged in as the user who will be using it Thanks, Pa ...Show All
Windows Forms Dynamic webbrowser creation on form
I am trying to dynamically add a webbrowser control to a tabpage. The application traverses a file structure which has multiple folders, subfolders and files. When a root folder is found I create a new tab page, if a file is found in that folder I add a browser control and set the navigate property to point to the file which it should then display. If a subfolder is found I create a new tabcontrol, tabpage and then add a browser control. Again I set the navigate property to point to the file it should display. This works fine if I hardcode the form. In other words, If I drag the tabcontrol onto the form, create the tab pages and then d ...Show All
Visual Studio Import settings as Visual Studio closes throws COMException
My addin sometimes makes adjustments to the user preferences in Visual Studio. Before doing so, it backs up the current settings. I tried restoring the original settings in SolutionEvents.BeforeClosing and SolutionEvents.AfterClosing (2 separate tries). Both methods worked if the solution was closed via file->close. However, both methods ended up throwing a COMException if Visual Studio was closed without explicitly closing the solution first. I can catch the exception, but it's unacceptable action on the part of my addin to not restore the original settings when the solution closes. Edit: I'm using DTE2.ExecuteCommand with Tools.Im ...Show All
SQL Server Issues on Decimal Type
Dear All, The SQL server supports 38-digit deciaml numbers. Is there any known issues, error reported or penalties if all 38 digit places are declared in DECIMAL type columns My server version is 2005. Thanks for all... Gabriel All know issues supposed to be fixed. Considering the size, don't use 38 digit wide types unless you have to. Look at bigint datatype, which takes only 8 storage bytes instead of 17 for decimal(38,0) ...Show All
