ManishaPatil's Q&A profile
SQL Server How to truncate the log file
How do I truncate the log file using TSQL My client's log file is 44 gig and there isn't enough HD space. Thanks I have found that the following will work in the "out of disk space" scenario: BACKUP LOG database_name WITH TRUNCATE_ONLY Then, after you run that command, shrink the database using: DBCC SHRINKDATABASE ( database_name ) Hope that helps. Darren ...Show All
Windows Forms Orientation of TabPage when TabControl.Alignment = Bottom?
Hi, I have a TabControl with some TabPages. I have set TabControl.Alignment= Bottom. But then my TabPages look silly, as they do not rotate 180 degrees when Alignment = Bottom. Also, I can't find any Orientation-property on the TabPage. Any idea how I can rotate the TabPage to make this look better (If I can't, then what is the idea of the Alignment-property... ) Thanks! PS! It is the tab "tip" I want to rotate, not the contents of the TabPage. The Windows XP visual themes implementation for tab controls doesn't work well. Check this thread for a workaround. ...Show All
Windows Forms How to select a control within a control in design-time?
Hi, I am building a custom control that mimics the MS's outlook bar. It consisits of a panel, which has bands and each band has a button that serves as a caption of the band and a container panel within the band. My question is: In design-time, how can I select that container panel, which lies within the band panel I read all about the ParentContr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. directx as math library
Was wondering if anyone knows of any problems with using the directx library as a math library since there seems to be a lack of a complete math library included in visual studio c#. This is for an engineering app so precision is needed. Nick Waanders wrote: The only thing I am missing is an indexer in the vector class. (I hope somebody of microsoft reads this). So for example: myvector[0] = 1.0f; // x-axis I use this a lot in algorithms where you select one axis, and perform actions on the other 2 axes. You can simply select an index and use (index+1)%3 and (index+2)%3 as the next two indices.. ...Show All
Visual Studio Error When Deploying Application
Hi, When I deploy my win app which includes a reportViewer control I get the following message. Unable to install or run this application. The application requires your system to be updated to Microsoft.ReportViewer.WinForms Version 8.0.0.0. Any idea what this error means Terry, that didn't work for my problem of using a ReportViewer in a webform in local mode at a hosted website. By the way, your previous article, "Visual Studio 2005 Beta2 and Reporting Services - The Most Interesting New Feature for Me", was VERY helpful to me. Many thanks for that. ...Show All
Visual Studio 2008 (Pre-release) listview/gridview binding question
how do I bind, say a datatable to gridview when columns in the datatable are not known at desgin time. I tried to loop through all the columns in the datatable in code and dynamically create the gridview, but it always displays the values from the first row only, for all the items Yes, you would have to build the columns dynamically as you say. It just sounds like your bindings aren't being created correctly. Can you share your logic for building the columns Cheers, Drew ...Show All
Visual Studio Tools for Office Big Trouble with Encrypted Emails in VSTO 2005
HI, How can I work with encrypted e-mails in VSTO when I try to get email object from MAPI folder I get this: "Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ItemsClass' to interface type 'Microsoft.Office.Interop.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID" I installed encrypted certificate into OUTLOOK and can open and see these e-mails in outlook but can not do it from my program! I tried to save e-mails and after deincrypt them using System.Security.Cryptography library but I can not get object !!!! PLEASE HELP !!! &nbs ...Show All
Visual Studio Express Editions Create A Link
How do I create a button that links to a certain webpage. I have been trying and haven't quite figured out. Please help! ...Show All
Visual C++ Migrating a VC 6 Project to VC 8 (aka VC 2005)
Dev Environment: VC 8 version 8.0.50727.26 (RTM.050727-2600) OS: Win XP Pro I am migrating a VC6 project to VC8 and I'm getting an error that doesn't make a lot of sense. First of all, the project builds fine in VC6 - no errors, but of course, some warnings. The project uses STL heavily so that some of it (not all of it) can be built on different OSes. After fixing 700+ errors from the initial attempt to build (mostly due to new and better C++ conformity and MFC changes in VC 8) I am now down to one error(!) and I'm stumped. Here it is: c:\program files\microsoft visual studio 8\vc\include\istream(842) : error C224 ...Show All
Windows Forms Binding A comboBox
I'm trying to bind to a comboBox but I keep getting an error of "input string was not in correct format" When the form loads it runs this sub first private void GetBuildings() { DataSet DSBuildings = new DataSet(); DSBuildings = DataAccess.GetBuildings(); this .cboBuildingNames.DataSource = DSBuildings.Tables[0]; this .cboBuildingNames.DisplayMember = "BuildingName"; this .cboBuildingNames.ValueMember = "BuildingID"; } I then try to do this sub second private void GetAccountData() { DataSet DSGetAccountDetail = ne ...Show All
SQL Server Tricky Grand Total on Column Needed
OK, I've created this query so far: Select Distinct CustomerName, CustomerNumber, FGoal AS FG, FSched, (cast(FeeGoal as numeric(30,10)) / FeeSched) * 100 AS gt from DR WHERE e='001' group by CustomerName, ...Show All
.NET Development WSE 3.0 "Could not load file or assembly"
I've built a VS2005 webservice using WSE 3.0. I'm trying to deploy it on a local development server which has .net 2.0 framework installed and the administration version of the wse 3.0 runtime. I get the following message when viewing the asmx file in a browser: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 ...Show All
Visual Studio Express Editions Slow screen redraw
I am in inexperienced programmer who has an application that displays many (50-60) controls on a form. The application is a production planning system, that requires many controls displayed on screen (1 for each job qued on individual machines) Whenever the form is re-draw, it is painfully slow, I have set the doublebuffer ControlStyles etc, but are unable to fix the issue. This issue is running on a P4 2.8GHZ / 500MB PC. Can anyone assist I have attached an example of my problem (not my actual application, but the samle gives the same issue). The sample simply displays many controls onto a form. When you force a redraw ie ALT ...Show All
Windows Forms Style question
I'm new to .NET Windows Forms development. I'm developing an MDI app (let's call the main MDI parent MyForm) with the standard kind of controls: MainMenu, ToolBar, StatusBar, TreeView, etc. I add all of these controls through Visual Studio to MyForm. Now if I add event handlers to all of the MenuItem clicks and ToolBarButton clicks, etc., MyFo ...Show All
Visual Basic Regions bug
Every day after I’ve been working in the IDE for a while, the collapsed #regions will not open with a single click on the plus sign anymore. Instead it takes 5 to 10 clicks to open them. Actually in different source code files it takes a different number of clicks in order to un-collapse a #region . (but always the same number of clicks within the same source code file) I sure hope this will be fixed soon. It's been doing this all along since I switched in February. Any idea what's causing this Which versions on VB are you using.... VS Studio, VB Express Has it been doing this f ...Show All
