Mazzica's Q&A profile
Windows Forms Datagrid Question?
I want to use a datagrid to insert a new record into the database. But I can't get the datagrid to give me an empty row when it's empty. How can I get the grid to provide me with and empty row for input (the row where the row header shows a star) Thanks hi, Please go thru the below link and you have the answer. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=897746&SiteID=1 thank you, bhanu. ...Show All
Visual Studio Team System Test Properties
I have associated a workitem with test: [ Priority (1), Owner ( "domain\\user" ), CssProjectStructure ( "vstfs:///Classification/Node/d5a38289-8d22-4f49-a765-a29035d7558e" ), CssIteration ( "vstfs:///Classification/Node/3fe569cd-f84e-4375-a0f3-760ccb143bb7" ), WorkItem (301), TestMethod ] public void TestMethodWIT6() { Console .Write( "Does It works " ); } after Test is executed and TestResults are published, I can not find any related information about this work item and corresponding test results, How this WorkItem (301) property is working I can see test result associated with workitem when I add TestResult to WI from TestResult View or trough Links Tab, then data is stored in TFSWarehou ...Show All
SQL Server Energy Policy Act of 2005
Hello, Does the Energy Policy Act of 2005 affect SQL Server 2005 and SQL server 2000 running on windows 2003 sp1 and windows 2000 sp4 respectively... Thanks in advance. There are the products affected by DST Legislation. If you post your question on OS forum and keep your OS in compliance it should not affect your SQL, but please check with OS folks. Windows Client Windows Server Windows Mobile Windows SharePoint Services Microsoft Exchange Server Microsoft Office Outlook Microsoft Dynamics CRM Entourage ...Show All
Windows Forms Is is possible to disable the mouse right click?
Hi, I need to disable the mouse right click when a control (non microsoft) is clicked. This control is supposed to open a dialogue when is clicked but instead I need to perform other operations like closing and resizing etc Is this possible Thank you. You say the control isn't a microsoft one. I assume it is a .NET control right You should simply be able to Override the OnMouseDown() method to do what you want for the right mouse button. You could also just wire up and event to the MouseDown event for the control. The only problem here is that it might still do the default behaviour as well as what is in your event handler. Regards Jero ...Show All
Visual Studio 2008 (Pre-release) DropDown Menu Buttons
I've been trying for a while to develop a custom WPF control that acts as a dropdown menu button. I'd like the XAML to look like: <DropDownMenuButton> <MenuItem Header="First Item"/> <MenuItem Header="Second Item"/> </DropDownMenuButton> This should show a clickable region, that when clicked opens up a Popup containing the MenuItems. From then on it should act as a normal menu. My main problem is that for MenuItems to work correctly then they must be inside a Menu element (try putting some nested MenuItems in XamlPad without an enclosing Menu element). Therefore DropDownMenuButton must be derived from Menu, and contain a Popup that appears upon a MouseDown event. Sounds easy Well how do ...Show All
Windows Forms how we can icrease the speed of the listview
Hi all my code in vb.net i used a list view control to view my records. the problem is i'm filling the list view useing for loop but i have many records so the for loop take a time what can i do to solve this problem. thanks a lot Hi,Mffm I think there are several ways to improve the performance of listview. 1.you can show data by page 2.you can use set virtualmode property,which something like the same problem to datagridview. ...Show All
Visual C++ Problem with Filters of GetOpenFileName and GetSaveFileName.
When i am using filters of the form *.abc in GetOpenFileName & GetSaveFileName, a click on "My Computer" button hides all the drives but folders are getting shown properly. Can anybody throw some light on how to fix that I don't want to use *.* for a filter. Following the open-file name arguments. I am using WinXP SP2. Ofn.lStructSize = sizeof(OPENFILENAME); Ofn.hwndOwner = hWnd; Ofn.lpstrFilter = szOpenFilter; // TEXT("Abc Files (*.Abc\0*.Abc\0\0"); Ofn.lpstrFile= szFileName; Ofn.nMaxFile = sizeof(szFileName)/ sizeof(szFileName[0]); Ofn.lpstrInitialDir = (LPTSTR)NULL; Ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_EXPLORER | OFN_LONGNAMES | OFN_OVERWRITEPROMPT; Ofn.lpstrTitle = szDlgTi ...Show All
Visual Basic Project-Properties-Settings Question
My application connects to sql express with a connection string. Question is, in the settings connectionstring, There are 2 choices. 1. Use Windows Authentication. 2. Use SQL Server Authentication. If I use #2 (Use SQL Server Authentication), and enter a Username and Password....Does that mean that the login must always use the same Username and Password ...Are they hardcoded...Can I use a variable ..If so, how I'm not sure what item in list I should add the connection string to. I went to Properties-Data-(ApplicationSetting)-(PropertyBinding)..looked at list ...Show All
Visual Studio Team System Schema Compare --> Write Updates doesn't seem to be working.
Hi, I have a view defined in my DBPro project as: -- View CREATE VIEW [dbo].[vINJECTION_VOLUME] AS SELECT PDEN_ID, CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) TIME_ID, VOLUME FROM PDEN_VOL_SUMM_OTHER WHERE ACTIVITY_TYPE = 'INJECTION' AND VOLUME_METHOD = 'MEASURED' AND CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) >= 20050101 I compare this to one of my external databases (DPPro project is the target) and Schema Compare says that the object in the source looks like this: -- View CREATE VIEW [dbo].[vINJECTION_VOLUME] AS SELECT PDEN_ID, CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) TIME_ID, VOLUME FROM PDEN_VOL_SUMM_OTHER WHERE ACTIVITY_TYPE = 'INJECTION' AND ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why does my displayed mesh dim when rotating on an LCD TV?
Hi; I'm currently doing my programming on a 37 inch Sharp Aquos TV. My game is loading a moderately large mesh (64x64 triangles) and displaying it on screen in wire-frame mode. The strange thing is, when I rotate the mesh .....the mesh dims! At a rough guess, it's only 50% of the brightness it's displayed at when not being rotated. Because I run my apps at full speed for performance testing (about 459 FPS currently) at first I suspected that as I had synchronise with vertical retrace turned off, parts of the mesh were not being drawn in intermittent frames, therefore resulting in the overall apparent dimming. But when I set this.isfixedtimestep to true and turned on synchronise with vertical retrace ... the same thing happens! AT 60FPS ...Show All
Visual Studio Express Editions panel equivalent to form_load
When I call a form I have a number of datasets filled as part of the load procedure. If I call the panel on the form as opposed to the form these load procedures are not run. What is the equivalent declaration for a panel to add command for the openning of the panel. Your assistance is appreciated. Hi, I found the Panel_enter declaration whick I have moved all the form_load items to and all works fine. Thanks ...Show All
Visual C# microsoft robotics studio
Has anyone found any documentation for the libraries that robotics studio uses I have found myself getting lost pretty quickly if I try anything but the "copy and paste" precoded tutorials. Has anyone successfully created services that are all your own Can anyone point me to documentation other than these tutorials Thanks in advance. Microsoft Robotics has its own community and support pages. Try posting there... ...Show All
Visual Studio 2008 (Pre-release) AutoParse Equivalent on Cider SplitView?
Thanks to all concerned at Microsoft for the latest Cider CTP - I think SplitView is going to make life much easier. However, I've got a question: what's the most efficient way to tell Cider that I'd like it to parse what I've type in so far in the XAML and reflect that in the view Right now the simplest approach seems to be to click in the view - that causes it to update. But that requires me to take my hands off the keyboard and use the mouse, which is a real pain. (Particularly compared to XamlPad where I don't have to do anything to get it to parse.) The view doesn't seem to support the usual Ctrl-PgUp/Ctrl-PgDn keypresses for moving between views on a single tab. (This lets you flip between HTML and design mode on a web page, ...Show All
Visual C# the installer
So I've completed an application, it debugs fine, publishes fine, etc. But I want to know how to make the setup.exe file include all the files for installation instead of it requiring a folder with all the real files in it. You can check into creating a setup and deployment project. There are plenty of resources on the web on how to create such a project. ...Show All
Visual Studio Visual Studio Extensibility Forum FAQ
The following is being posted on behalf of Dr. eX. -Aaron Marten Hi Sean, I suspect the problem referenced in that KB article is specific to packages that rely on that protected storage service. I also suspect this has nothing to do with the PLK verification process. As I mentioned earlier, that PLFA utility was created to address the issues we see regularly from partners creating new packages for VS. It's probably not going to help much with the problem you describe above. Following the logs though, I know where these messages are generated in the shell sources. We have an internal service called IVsAppQueryLoad, and the error you see is because a call to IVsAppQueryLoad::QueryLoadPackage failed. This QueryLoadPackage functio ...Show All
