beshaghy's Q&A profile
Visual Studio Team System Past VSTS Web Webcasts not availible for "On-Demand playback"
Hi! Why aren't all past VSTS Webcasts available in form of a recording I am especially interested in following Webcasts: Change Management With Visual Studio Team System Unit Testing, Code Coverage, and Policy with Visual Studio Team System Thanks, Ana This can happen for any number of reasons (recording quality, recording success, etc.), but I don't know why those two aren't availabl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how do you alighn text when using DirectDraw DrawText() function?
how do you alighn text when using DirectDraw DrawText() function Hi, DrawText has a parameter that is the format of the text where you can specify the alignment. Example: RECT fontRect; SetRect(&fontRect, 0, 0, 100, 100); font->DrawText(NULL, "Test String", -1, &fontRect, DT_LEFT | DT_TOP, 0xFFFFFFFF); Draws the text "Test String" in the rectangle with 100 pixels of width and ...Show All
Visual Studio Team System Team Explorer Source Control Branches have Red "X"
Hi, I am running a new deployment of TFS Beta3 Refresh in a single server installation. Occasionaly the source control branches in team explorer show at the top of the tree with a red X icon instead of the usual spot at the bottom of the tree. On the client side I am running the VS 2005 team suite trial on 64 bit XP. What are possible causes of the red X Dean ...Show All
SQL Server List all your connection managers
Hello, I'm building a custom task which has a property ConnectionManager which obviously allows you to select which connection manager you're goinng to use. I know how to get the list of connection managers but how do I make them appear in a combo-box in the properties pane Anyone got some code for that Hopefully this is fairly trivial for you developer types out there. Thanks Jamie I believe that the key is the TypeConverter property of p ...Show All
Visual Studio Express Editions Random Numbers again!!!
Hi there, i think i have gotten into a bit of a fix... here is the problem: i have used the random obj to generate random numbers between 1 to 90. some times when the application runs, it picks a number twice. for example an output would be 2,8,34,2,67.... is it possible to make sure all numbers picked are only selected once that is if i request for 10 ranadom numbers, each 10 digits would be unique... this is driving me nutts!! ...Show All
SQL Server How to automatically create a partition monthly using xmla with partition name formed by program?
Now we use SQL Server 2005 to develop a DSS for a Telecommucation Cor.We want to create cube partition automatically.Now we find some techniques to do this,including using job in sql server agent in SSMS and to execute xmla as SSAS command.But How to genereate partition name automatically in the xmla that is like 'partition-200603' according to the system date Thank you in advance! I haven't tried this myself, but you should be able ...Show All
Smart Device Development Pocket Access
Hello guys, i need to create new Access tables on PPC2003SE then read from and write to them, of course programmaticaly. Does anyine has an idea on how this is possible thanks a lot in advance To be more clear, i have an Access file on my desktop that contains tables that has the .mdb extension, when i transfer it to my PPC 2003 SE emulator with ActiveSync, it gets the .cdb extension. Once on my PPC 2003 SE i need to ...Show All
Windows Forms Use DataGrid to display simple Excel Table?
Hi everyone, I'm starting to use VB.NET i figured it wouldn't be such a bad transition after all the VBA in Excel and a some in Access i've been doing. But i'm getting stuck with all these components available. Two questions: 1) To display&nb ...Show All
Visual Basic OO Pattern for batch processing
I am on this project that will necessarily have to do a batch processing of some transactions. Are there any design patterns that you are aware of regarding batch process implementations in an object oriented fashion. The features required are: => Paralled processing of mutually exclusive calculations => A multi-step process wherein after all the parallel calculations in step1 is done then run all parallel calculations in step2. I a ...Show All
Visual Studio Team System Error when trying to compare files
Hi everyone My team is have a problem with just two files in our project, currently under source control. Whenever we attempt to check in or compare these files to the latest version in the repository, the error message we recieve is always a variation of: An error occurred during difference operation. This method or property cannot be called on Null Values. Data is Null. If anyone has had this problem and solved it or has any advice, it would ...Show All
Visual C++ Migrating legacy code from BC5
Hi, My work is currently in the process of migrating a lot of code written in BC5 to VS 2005. We have hit one stumbling block. What I need is a way to concatenate strings in my resource editor. BC5 supported this and our resource files contain a lot of code which do things like: MENUITEM "About " BASEAPPNAME //BASEAPPNAME is #defined elsewhere In BC5 this creates a menu item with the text "About MyApp". In VC2005 ...Show All
.NET Development .NET SQL Client and T-SQL "PRINT" Commands
Is there any way to retrieve the output of T-SQL "PRINT" commands from .NET -Ryan This works fine, but in my case, not only I need to get the print outputs, but the rows affected by SQL commands too... I can get the number of rows returned by parsing the resultsets from an ExecuteReader, but if the batch also contains UPDATE or DELETE commands, I'd like to get the number of rows affected by thes ...Show All
Visual Basic ByVal variable passing
didnt know where to post this, so i decided here was a suitable spot. anyways lets say i have an OCX that has variables defined. the OCX, we will call "HMM" example given: Private Sub HMM_NAMEHERE(ByVal Latency As Long) now "Latency" is already declaired in the OCX as a changing variable that depends on the user that is connceted to a server. so its not set. now im trying to pass that variable to a "Private Sub ListView_MouseMov ...Show All
Visual Basic PropertyGrid problems
Hi, I am currently using the propertygrid control to browse an object containing many properties of different types, some being structures which contain properties of their own. The first problem is that when I create a class inheriting from ExpandableTypeConverter, and use this class as the type converter for a property in my base class, I cannot find a way to unbold the display text using the DefaultValue attribute... The second (mor ...Show All
SQL Server If-structure
Hi folks, I want a solution for my problem. In my sql-query in the WHERE-clausule i want to do the following thing: - If I enter 'All' in my parameter, i don't want a WHERE for this - if I enter 'Nothing', i will do this: ISNULL(stuff,'-1')= CASE WHEN @parameter ='Nothing' THEN '-1' ELSE @erkenning How do I combine those two Thanks anyway BYE Be a bit creative ;) where (x=y and bla=blubb ...Show All
