Drokker's Q&A profile
Visual Studio Team System How to segregate multiple TeamBuild projects?
We are currently at a certain version (1.2) and have multiple solutions, all which need to be built separately. So I have a separate TeamBuild for each. But once we move to next version I will have to recreate the TeamBuild project files for each of these solutions. The TeamBuilds node in Team Explorer will be extremely cluttered with all these projects. Is there any way to create a folder beneath the 'Team Builds' node in Team Explorer so I can group my builds by version Also, how do I delete an existing TeamBuild project TIA! Steve, Thanks for the explaining how you go about it. I like the idea of having just two TeamBuilds - for dev and prod. I think we'll adopt that as well. In case any MS folks read this post - in a future ver ...Show All
Visual Studio 2008 (Pre-release) WPF apps slow for some reason
Everything is slow for some reason. I tried Max, and that ran decently (aside some weirdness I'll explain below), but I try running some of the sample code and other stuff I compile on Visual Studio, and it's unbelievably slow. I tried the samples here on XamlPad... I can click on a button at a rate of about 2-3 times a second, and my CPU usage will jolt up to 100%. Most other sample applications run just as slow. Max runs okay, except that it takes about 40% of my CPU time even when it's minimized. By the way, is there something I can do about text being blurry Here are some of my machine specs: Pentium 4c 2.4ghz HT 1gb DDR 400 dual channel RAM ATI Radeon 9600 128mb (full DX9 and PS2 support), recent drivers DirectX 9.0c September ...Show All
.NET Development How to return an HRESULT from C# com interface implementation?
Hi all, I am using c# com interop to implement an MS provided com interface but to enable a particular feature, it appears that I must return a specific HRESULT value but I cannot do this because interop hides the return value; instead always returning success or translating an exception. The specific com interface is IMailTransportSubmission::OnMessageSubmission for exchange server using c# interop. See the docs refer to 'return value' which I understand to be the HRESULT since there are no retval arguments. http://msdn.microsoft.com/library/default.asp url=/library/en-us/smtpevt/html/331c223b-1fe4-4442-9cdc-4f00086645e4.asp Interop definition with no return value: void IMailTransportSubmission.OnMessageSubmission( MailMsg messag ...Show All
Smart Device Development How to create a Service appliaction for windows mobile 5.0 smartphone
I have a application in for Windows Mobile 5.0 pocket PC. Now I have to Make it new one for Smart Phone From Client I have this feedback The essential difference between Pocket PC and SmartPhone is that instead of having the application implemented as a DLL (as with Pocket PC) it must be implemented as a service in SmartPhone . In the Pocket PC the application was implemented as a Today screen plug-in DLL; under that Operating System a Today screen plug-in is always available and running. In SmartPhone, the Home screen plug-ins work differently than the Today screen plug-ins; they're not always available in memory. If the user chooses to change the layout of his home screen by downloading a different theme ...Show All
.NET Development Web Services XSD Return Type
Hi, I'm trying to develop a web service that spits out xml data using an xmlwriter. It conforms to a schema so I was wondering if there was any way to do this easily in c#. I was thinking something like: [WebMethod returnType("sample.xsd")] public string MyMethod () { //create a string using an xmlwriter and return the string } or something like that. Is there anyway to do this The reason I'm trying to do this is so that I can iterate through a datareader from a database and create an xml document representing the results (basically converting a sql stored procedure into a webservice). If anyone knows of the best way to do this let me know. Thank you, dg You could use the XSD compiler (xs ...Show All
Visual Studio Error setting PagerOrientation on ReportDocument
I am getting an error [Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))] when trying to set the PagerOrientation on a ReportDocument after binding it to a dataset. My .rpt file has the maximum number of columns defined, but the number of columns in the dataset is variable. If the number is less than a predetermined number, I want the report to be portrait, other landscape. The code: Dim crReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument crReport.Load(Server.MapPath( "~\MyReport.rpt" ), OpenReportMethod.OpenReportByTempCopy) ' The next line works fine: crReport.PrintOptions.PaperOrientation = PaperOrientation.Landscape Dim ds as DataSet = GetMyDataSet() crReport ...Show All
Windows Forms Localize messageboxbuttons
Is there a way that i can localize messageboxbuttons meaning if my form is frensh: messageboxbuttons instead of "Yes" and "No" should be "Oui" and "Non" and so on Thank you .NET uses Windows to generate and display the message box. Windows localizes it to the installed language so all message boxes in every app use the same language. So, to get Oui or Non, you need to run the French version of Windows. If that's not good enough, you'll have to make your own. That's not as easy as it looks... ...Show All
Software Development for Windows Vista how to restart workflow runtime after IIS restart
My question is for workflow exposed as web service through webserviceinputactivty/webserviceoutputactivity. My impression is that workflow runtime is only started after the first web service call. My test workflow has 3 activities: webserviceinput, webserviceoutput, delay. SqlPersistence service is enabled. The workflow is activitied through a web call. When executing the delay activity, it's persisted to the database. Then I shut down the web server (ASP .NET development server). When the web server restarted, the timer already expired but the workflow was not resumed. Only after I made another call to the web service, the timer fired. I did an experiment in a winform application. When the application starts next time, the timer fir ...Show All
SQL Server VS2005 can't see the database in SQL Server !!?
hi I created 2 databases in "SQL Server 2005 Trial" Software, and when I try to add one of them to VS2005 windows form project the vs can see the SQL Server, but it can't see any of my databases!! pls help, If you've installed SQL on the same machine as the visual studio enter your machine name as the servername for the data source. If you have used different machines I suspect that the SQL Server installation is not configured for remote connections ...Show All
.NET Development Basic question
I have a very large list of objects in a list (over a million). I need to check the type of each of the objects and by the type of it do some actions. At the moment I compare to typeof(object).name == wantedType My question is , Would the vs be smart enough to cash this string or should I use hashtable in order to save the mapping If you have better implementation please share with me thanks Avi Thanks Ian I am using my own types and the check works but thanks for the fix . However, my problem is with performance. I am looking for the best\fastest way to do it. Of course, my way with mapping is the slowest . checking the type is better but is it the best way Avi ...Show All
Visual Basic bit addition with control: checked list box
this has been bugging me for awhile. ok. i have a checked list box with numerous (about 15) flags that need to be set in order for those things will work (or not work) in the game. the flags are arranged in bit order (1,2,4,8,16,etc). what is supposed to happen: if index0 is checked, it adds 1 to the bit sum [dmflags], if unchecked, it subtracts 1 from sum. if index1 is checked, it adds 2 to the bit sum [dmflags], if unchecked, it subtracts 2 from sum. etc.. what IS happening: if index0 is checked, it subtracts 1 to the bit sum [dmflags], if unchecked, it subtracts 2 from sum. if index1 is checked, it subtracts 2 to the bit sum [dmflags], if unchecked, it subtracts 3 from sum. if any other index is the same (in pairs) code: ...Show All
Smart Device Development Attach Windows CE 5.0 emulator to Visual Studio 2005
Hi, I would like if someone could help me out on this. I installed the Windows CE 5.0 emulator on my machine. But It is not recognised by the device emulator manager. So i cannot directly debug or run from Visual Studio. Is there a way to add this emulator to the Device emulator manager so that i can directly run my applications from Visual Studio 2005. Hi there, "- Get Platform Builder 5.0" - From where Is this a free download Can you provide the link where we can download it from Thanks & Regards George Papadopoulos ...Show All
Visual C# Vb.Net in C# application
hi all Is it possible that we can use vb.net Form in a c# application , i have a Vb form and i want to integrate in my c# desktop application i am using visual studio 2003 with Framewrok .1.1 Thanks Zubair Sure you can do it, Compile that VB code into dll (Class Library Project), add a reference to that created library in C#. And you can use that! Any further help needed Best Regards, Rizwan ...Show All
.NET Development BeginConnect/EndConnect + BeginReceive Exception
Hi There! I'm getting this strange behaviour when using async sockets with c# .Net 3.0 The problem goes like this: I start to connect to a tcp server with BeginConnect(), once the ConnectCallback is called, I finish the connection with EndConnect(). This then fires an event "OnConnected". A handler for OnConnected, receives the socket that I just performed EndConnect() on, and immediately starts BeginReceive() on it. Now the problem is that BeginReceive() throws me an exception: "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a send call) no address was supplied" But, EndConnect() finished without any exceptions So eh, what is the problem ...Show All
SQL Server InitCap Function in SSIS Expressions
How can you create the infamous INITCAP function to be used in my column transformation expressions You could use a script component. InitCap is equivalent to the ToTitleCase function of the TextInfo class. Here's the code to use. Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Imports System.Globalization Imports System.Threading Public Class ScriptMain Inherits UserComponent Public Overrides Sub Input0_ProcessInputRow( ByVal Row As Input0Buffer) Dim curCulture As CultureInfo = Thread.CurrentThread.CurrentCulture Dim tInfo As TextInfo = curCulture.TextInfo ...Show All
