Ocaliptoos's Q&A profile
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks well anything can go wrong during that but should be kept as an absolute last resort :-) I am sure there is a better way of finding out why the developer (original poster) needs to alter the selected index at start up of the application (onload) I could post some examples but best not until we find out whats happening during onload, with some code :) ...Show All
Visual Studio Help disabling Just-In-Debugging
I installed .net 2.0 yesterday and now Just-In-Time Debugging has taken over my apps I work on outside of VS.net. I have followed all steps I have found to disable JIT with no results. So then I uninstalled 2.0 and reverted back to 1.1. Still, the JIT dialogue pops up. The pages I am working on are classic asp pages and the last thing I need is these JIT popups. I have been unable to find any information beyond the checkboxes in VS.net. Could anyone shed some light on this If it matters, I am on XP Pro and run VS.Net 2003. Thanks. Well, we got through four hours today with MS Support and still no solution. We did check the registry values you reference. They are: Auto = 1 Debugger = "C:\W ...Show All
Visual C++ How to calculate the accurate time of a section of program in VC?
How to calculate the accurate time of a section of program in VC Thanks How accurate You can use The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter. and The QueryPerformanceFrequency function retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running. To calculate and deal with standard time you can use COleDateTime and COleDateTimeSpan from the ATL classes. ...Show All
Visual Studio 2008 (Pre-release) Buttons inside a FlowDocument in a RichTextBox
Hello. I'd like to have a button inside a flowdocument in a richtextbox. This button should be enabled but, when I insert it in the flowdocument, it is always disabled. < RichTextBox > < FlowDocument > < Paragraph > < Button > Click me! </ Button > </ Paragraph > </ FlowDocument > </ RichTextBox > What's wrong Thanks. It is not supported http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=345053&SiteID=1 ...Show All
Visual Studio Tools for Office Registry Access denied from Outlook Addin
Windows Vista VSTO (not SE) my domain account is in the administrators group on the box I have an Outlook addin that attempts to write to the registry under "HKLM\Software\companyname\companyproduct". Add-in developed in VB .NET The addin adds a button to a new mail message. When the button is clicked the application atempts to read/write from the above hive. If it isn't there is attempts to create it. When I run Outlook, click the new mail button, and click the Addin button, I get an Access is denied to "HKLM/sofware/companyname/companyproduct" error. However, when I right click outlook and select "run as administrator" it runs fine and writes to the registry no problem. Another test i ran is to put ...Show All
Visual C++ OleDbCommand needs reference to connection?
I have created an OleDbConnection object in a function using OleDbConnection connection; instead of using a reference like OleDbConnection^ connection = gcnew OleDbConnection(); because I want it disposed of as soon as it goes out of scope (the function ends). When I create an OleDbCommand object or reference and try to insert my connection, I am informed that command requires a reference to the connection object and wont accept the object itself in the parameter list. How can I go about using the objective connection with a command Thanks :-) These things should work much like in the native world (and some or at least me would prefer the managed world would follow the existing rules even more closely) ...Show All
Visual Studio 2008 (Pre-release) XPS document sequence and Application.GetContent/Resource/RemoteStream
How to load XPS document sequence from application resources I use this: Stream stream = ApplicationStreamHelper .GetStream(source); if (stream != null ) { Package package = Package .Open(stream); XpsDocument xps = new XpsDocument (package ); document = xps.GetFixedDocumentSequence(); } public static class ApplicationStreamHelper { public static Stream GetStream( Uri uri) { if (uri == null ) throw new ArgumentNullException ( "uri" ); StreamResourceInfo streamInfo = null ; if (uri.Authority.StartsWith( "siteoforigin:" )) { streamInfo = Application .GetRemoteStream(uri); } else { streamInfo = Application .GetCont ...Show All
SQL Server Flatten out an XML Document (Currently using OPENXML)
I am attempting to take a column with an XML datatype and make it available for reporting with as little code as possible. Specifically, we are storing credit report info in a column that has an XML datatype. We are using the OPENXML command to navigate the XML structure: DECLARE @idoc int DECLARE @doc xml SET @doc = 'GET THE XML COLUMN HERE EXEC sp_xml_preparedocument @idoc OUTPUT, @doc SELECT * FROM OPENXML (@idoc, '/XML_INTERFACE/CREDITREPORT/OBJECTS/DBCOMMCREDITSCORE',2) WITH ( Rating varchar(10) 'DBRATING', OverFlow xml '@mp:xmltext') EXEC sp_xml_removedocument @idoc The result will be a column that shows the Rating field and an Overflow column that shows the XML string. I can take the above code ...Show All
Windows Forms create a "masterpage" in winforms
Hi, When you create a website you can use masterpages with contentpanes. Now I want to create that on a winform application. So let us say that you've got on the left and top a navigationpane and that the contentpanes are the forms. Is this possible Grtz Annihil8 Hi Annihil8 I'm not sure if this is what you're after but it may serve as a nice starting point. Try creating just a basic form with navigationpanes setting on panels on the top and left. Once you have the form exactly as you like it you can save it as your own master form and then create new forms which inherit from it using visual inheritance. It won't provide any automatic navigation capabilities but it should help to give you a ...Show All
Visual Studio Express Editions create dll in visual studio express
Hi everybody, I have a c file and a h file i have written, which compile successfully. I want to make this into a dll. I know this is kind of a newbie question, but how would I go about doing this in Visual C++ 2005 Express Edition I am not too proficient with using Visual Studio yet, so a step by step guide woudl be extremely helpful. Thanks a lot! Kiran Take a look at using the /LD option. For more information and hot to set that through the IDE, please take a look at http://msdn2.microsoft.com/en-US/library/2kzt1wy3.aspx Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server Dimension design question
Hi, what is the best practice for design of large dimension, such as Order In my scenario users want to analyze order intake using order status, issuer name and couple of other attributes, possibly even order number. We use fact dimension to accomplish that. Everything works, but I'm a bit concerned about performance. There are more than 10mil members in that dimension (and there is also invoicing dim as well, about the same size). Is this the best design for this scenario What if I create separate dimensions Issuer, Order Status ... and link them directly to the fact Will the performance (though it's not bad now, I'm just thinking ahead) improve, and, most importantly, WHY :) Thanks. Radim What are your ...Show All
Visual Studio Team System How to get data From TFS Work Item field!
Hello, I am working with TFS using ASP.NET, c#. I would like to get Data from TFS for those work item depend on workitem type is bug, Scenario, task, ... State ( Active, Closed...), Type (API, High level Requirement, Security...), Triage (Approved, Investigate..), Priority(1,2...), Severity(Critical, high,...), discipline (Architecture, development...). Is there any API to do this or is there a way to do this at all Please help! Any answer would be greatly appreciated. Thanks in advance. Ddee Hi Vic, To be more specific, I try to do this: wiTypeLB.DataSource = m_store.Projects["Projectname" ].WorkItemTypes[ "Requirement" ].FieldDefini ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I load a 3d mesh (.x file)?
How do I load a .x mesh into my scene The space game seems to use its own format (which it names .swm), and there's nothing in the help. I've been scanning through through the classes in the Framework namespace, but I can't see anything obvious! Is .x the recommended format for objects like this (If not, I change my question to be about the recommended format :D) If anyone knows anywhere that has some nice .x meshes I can play with, that'd be cool too. The only one I have lying around is a chair, and that's going to look a bit funny running around my game :D The Content Manager is part of the framework so it exsists in the Beta. However all the stuff you need to get you data in the Model format is n ...Show All
Visual Studio Team System Project to TFS sync problem
I have a TFS project that I have synced with MS Project. I have noticed that some of my tasks in Project seem to have their start dates "fixed" at the project start date. If I create a start-to-finish link between another task (as the predecessor) and one of these tasks the link is created but the start date remains as the project's start date, making the link loop back to the left from the predecessor's end date to the successor's start date. Can anyone tell me why this is happening and how to fix it TIA Ron L Hello Ron, Can you check if your Scheduling is set to "Automatic" in MS Project. You can check it from Tools->Options->Calculation->Calculation Mode. If not please set it automatic an ...Show All
SQL Server Generate script of ALL database objects
I need to be able to programatically generate the CREATE scripts for all objects for a given database. Basically, I need the same results as if I generated the script using SSMS and choosing to script all objects in the selected database. I'm hoping I could do this using the Scripter w/in the SMO Utility Classes. Can anyone help me out Thanks in advance! There is a property in the Transfer object named 'FileName'. When you supply this property with a file path the generated script is output to a text file and the 'GO' statements are in the text file. ...Show All
