QiSheng's Q&A profile
Visual Studio Team System where can i see all the team projects i created
besides team explorer can list all the team project that i created, where can i find them on team foundation server or can i access them not only though team explorer thank you for help jiajia The Source Control Explorer will also list the projects on a TFS server. If you are looking for something else, you could create a custom solution to list them all outside of the TFS environment. -paul ...Show All
.NET Development No coherence with the number of weeks per year. GetWeekOfYear()
The number of weeks per year depends of the year, the result is either 52 or 53 To get the number of weeks in a year, I use the Calendar.GetWeekOfYear() method. Here is the code I wrote thanks to a MSDN article: // Gets the Calendar instance associated with a CultureInfo. CultureInfo myCI = new CultureInfo ( "fr-FR" ); Calendar myCal = myCI.Calendar; // Gets the DTFI properties required by GetWeekOfYear. CalendarWeekRule myCWR = CalendarWeekRule .FirstFullWeek; DayOfWeek myFirstDOW = myCI.DateTimeFormat.FirstDayOfWeek; DateTime LastDay = new System. DateTime (year, 12, 31); return myCal.GetWeekOfYear(LastDay, myCWR, myFirstDOW); He ...Show All
Visual Studio Express Editions Modyfying the state of system registry
I am comfortable with understanding the architecture of registry but do not know how to obtain and change the values in the system registry with WMI i.e Win32_Registry. How to modify the system registry using WMI in VB.NET. Also want to know how to create Keys and subkeys in the system registry. dim reg as microsoft.win32.registry = microsoft.win32.registry.hkey_ etc. etc Use the Microsoft.Win32.Registry and RegistryKey class ;) It's quite simple :> ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiuser games?
Just curious... but has anyone used XNA/C# to develop MOG's or even MMOG's Nick Darnell wrote: Edit: Managed vs. Unmanaged (Not even outperformed, but even came close to the same performance.) I mean we can play Theory-Development all day long, but until I see some real world applications that match or come within that (1..2% slower claim) in terms of performance with an unmanaged version. I can't help but maintain my position. Nick, Good to see you have a healthy degree of scepticism as well! I can't show you the stuff I have, but it's physics engine code and runs just as fast in Java - this isn't the case in .NET by the way. I also suspect you overestimate the degree of optimisation of games and middleware code ...Show All
Visual Studio Express Editions Win Form + SQL database
can anyone make me a simple win form and one table in SQL, and make buttons and textboxes in form to show the functions of the following: INSERT, UPDATE, DELETE....... i just want to clear the code and see if the data saves to the original database, i hope u can take 5 mins of ur time and help in making this in MS VISUAL STUDIO 2005, and mail me the compressed project file at any of this address: m_umair_85@hotmail.com m_umair_85@yahoo.com m.umair.85@gmail.com thankyou... there are MANY examples on these forums on how to do what you are wanting to do. SqlCommand: http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx SqlDataReader: http://msdn2.microsoft.com/en-us/libr ...Show All
SQL Server Problem printing reports
Hello, When print reports in Reporting Services 2005, the default paper is "A4", but our reports have letter size, or even "A3" or "legal". Could we set a default paper for printing for each report thanks, Pablo Orte Try to change the paper size in Report > Report Properties. Then Click on the LayOut tab. There you can just indicate the Page Width and Page Height of your report. Hope this helps.. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fixed Function Pipeline
Removing the fixed function pipeline is simply a bad idea. Lets face it, as an indie-developer, we are targeting 3 year old intel on-board chipsets... maybe the fixed pipeline is available via effects files I have a nice little terrain engine in C++ - using DX8 - most users don't even have the big nine installed - that I would like to port over to XNA... it uses the fixed function pipeline and can blend 2 textures per patch via a coverage factor and modulate this with a shadowmap (if there are 4 blend stages)... and runs with high framerates even on intel on-board. For older hardware with only two stages, it simply do two passes. So for indie-developers, wo loose 95% of our target audience due to the removal of the fixed function pipeline ...Show All
Visual C# Is Form Loaded
How do I know when a windows Form is loaded.. For example.. If i wanted to run a function one the form loads.. how would I do this P.S: Sorry If Im not clear.. but If Im not please let me know. first you can click double in the Form then, you write in this formload event: { callmyfunction(); } out of this formload event you write: private void callmyfunction() { MessageBox.Show("this is my function"); } hope that it helps you ...Show All
Visual C# Is it possible to "synchronize" 2 clients?
I have absolutely no idea where to post this, so just tell me if I did it wrong. After going through half the internet...okay that's an overstatement, but you get the point. I couldn't find the answer to this...maybe odd ...question. Okay so here's the problem. what I want to do is have 1 server (ASP.NET) and two client browsers. These two clients need to display the same page. And then (for the sake of an example) this page would have like a button or something. Would it be possible to have it so that if you click that button on client A it would also happen on client B I need to know in the first place if it is even possible. If not, just say so and I'm already happy :) If it is, I need some basic info on how to go ab ...Show All
Visual Studio Team System Offline Process Template Validation
I'm currently doing some extensive customizations of a process template and was wondering if there was a way of validating a process template without having to try and upload it. Essentially I would like to write some unit tests that test whether a process template is valid on the local machine (the local machine could contact a server if that was what is required) before I spend the time trundling through the UI to upload the process template. Is this currently possible via some part of the TFS API. Am I not looking hard enough :) Sorry I did not mean in anyway to insult your intelligence or capabilities. I see where you are going now. I am not aware of any API that will do that for you. Someone else may ...Show All
Visual Studio Team System Can't install CTP6 "requires one of those editions of Visual Studio 2005 be installed before you "
Hi, I'm trying to install the CTP6 in my machine to start working, but I have the following error during the installation of CTP6 Required: Visual Studio 2005 Visual Studio 2005 Team Edition for Database Professionals requires Visual Studio 2005 Professional Edition, Visual Studio 2005 Team Edition for Developers, Visual Studio 2005 Team Edition for Testers, Visual Studio 2005 Team Edition for Architects, or Visual Studio 2005 Team Suite. Visual Studio 2005 Team Edition for Database Professionals requires one of those editions of Visual Studio 2005 be installed before you install Visual Studio 2005 Team Edition for Database Professionals. I already have installed VS2005, and I'm running Windows Vista RC1, an ...Show All
Windows Forms Exception has been thrown by the target of an invocation. While using DesignerHost
Hi All I am getting this error while using Idesigner for custom form Designer. Any ideas.. Any help would be great, Thanks. System.Reflection.TargetInvocationException was caught Message="Exception has been thrown by the target of an invocation." Source="mscorlib" StackTrace: at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.ConstructorInfo.Invoke(Object[] p ...Show All
Microsoft ISV Community Center Forums vlookup for a range of cells
Hi In Sheet 1 i have columns (A,b,c,d) "Names", "Marks", "Age" and "Location" i have thrity rows of data for these columns in sheet 2 i have one column showing the names (thirty rows) - Column A . i would like to populate in column B the data relating to "marks" or "age". The column reference in the vlookup formula should be picked from the list box placed in the excel sheet. The Listbox has been placed from the Control Toolbox. List box contains values 1,2,3,4. If i pick 2 from the list box column B should populate with Data of Marks, if 3 is selected then Age data should be populated for these thirty rows Please Help Thanks in advance Ranjit ...Show All
Visual C++ Explicit Specialization of member functions.Help !
I have written a Stack class as shown below. Can anybody tell me how to specialize the Sum function for const char * #include <iostream> #include <cassert> #include <string> using namespace std ; template < typename T, int size = 5> class Stack { T arr[size] ; int m_Top ; public : Stack() ; void Push(T val) ; void Pop() ; T & Peek() ; T Sum() ; } ; template < typename T, int size> T Stack<T, size>::Sum() { T temp = T() ; for ( int i = 0 ; i < size ; i++) temp+=arr ; return temp ; } template < typename T, int size> Stack<T,size>::Stack() : m_Top(-1) { } template < ...Show All
Visual Basic Adding a default excel file to project
Hello. I'd like to add a default Excel file to my project. How should i go about doing this I can add a file to resources, but cant figuere out how to open or save from code. I can also add it to solution but same problem. What is an effiecient way of adding and distributing files with your project. Any help appreaciated. zargblatt, According to your description on this problem, I cannot understand your demand as well. What is your added excel file works for in the prooject I wonder why you would like to add the excel file but not other files There is an article titled Create an Automation Add-In for Excel using .NET in the link below, however, I don't know whether it is exactly what you nee ...Show All
