Subhas's Q&A profile
Visual Studio Team System Unit Testing Change
In CTP3 I can create a unit test for a stored procedure by right click on the sproc in the list of Schema Objects. In CTP4 this functionallity is missing (at least on my install). Should I be able to see the 'Create Unit Tests...' menu option on the context menu for a sproc One other thing I've noticed (that may be related) is that in CTP3 the sprocs show as dbo.SprocName while in CTP4 they show as SprocName.sproc.sql (i.e. the file name is shown rather than the name of the stored procedure) To make this work in CTP4 do the following: 1) Select your database project in the Solution Explorer. 2) Select View | Other Windows | Schema View 3) Expand the nodes until your find a stored procedure, right-click and there is Create ...Show All
Visual C++ <windows.h> Interferes with System::IO::Directory::GetCurrentDirectory();
Including windows.h in a managed project overrides System::IO::Directory::GetCurrentDirectory();, which is very annoying: rootFolder = System::IO::Directory::GetCurrentDirectory(); //'GetCurrentDirectoryW' : is not a member of 'System::IO::Directory' How can this be prevented This seems to be the only function in wondows.h that gets confused with System::... If you do not need the GetCurrentDirectory function from windows.h , maybe you can just un-define it: #include <windows.h> #undef GetCurrentDirectory I hope this makes sense. ...Show All
Smart Device Development FileStream Write Timeout Read Exception
It appears from the help file that the FileStream class has an accessible "WriteTimeout" property. The write path for the file is the flash (SD) card on the device. I wrote some test code using standard FileStream and Binary Writer objects to check what the default timeout was and came up with the exception listed at the foot of this message in response to the code below. The code is for a Pocket PC under the .Net Compact Framework 2.0. Why are timeouts not supported on this stream Do I need to override the "CanTimeout" property to work around this Is it because the target device is a flash memory card Note that there does seem to be some kind of inherent timeout occurring (I haven't measured it exactly but its over ...Show All
Visual Basic Max form size
is there a way to set a form to the max screen size, it gets old going back and forwards making sure it fits. I have been using table layout panels to help make my forms, if I am right, those do scale to the form, requardless of the size of the form, I think Davids Learning Me . WindowState = FormWindowState . Maximized and/or Me . MaximumSize = New System . Drawing . Size ( My . Computer . Screen . Bounds . Width , My . Computer . Screen . Bounds . Height ) ...Show All
Visual Basic Multiple fonts in the same richtext box
How do I change the font of only specific words in a richtextbox, for example: Soposed that there are two text boxes called: Box1 and Box2, and a Richtext box called RBox RBox.text = (box1.text + Box2.text) And I want to display the box1.text in bold, and the box2.text in Italics. How do I do this Well Dave, after some strange errors occured, I was able to find again my post and read your reccomendation, It did work, so many thanks Dave! (If again somebody writes in my post and I dont respond, It's probably because I'm unable to find my posts.) ...Show All
Windows Forms Create an appbar in visualbasic.net
hello can anybody help me with how to create an appbar in visualbasic .net i can't find information about how to create it in vb.net only 1 milion samples for C or C++ hope anybody can help me. Did you able to find one If yes, please help me out! Am also looking out for "Creating a AppBar in VB.net". Thank you! ...Show All
Software Development for Windows Vista Power management and network applications
Hello, I am trying to understand the affect on socket based network applications when the system moves into S3 state. Would the transition in and out of S3 be seamless for these applications (assuming ofcourse that the wake on LAN/wake on wlan driver/firmware keeps the "other end" happy. As an extension to this question: Are network interfaces brought down before the system is taken to S3 Any reading material/white papers that discuss this Are there any tools that I may be able to run to check the behavior Preliminary investigation on my end indicates that messenger type applications are happy (as long as the Wake on interface keeps the other end happy). But I wanted to know if this is by design on Windows. Is this be ...Show All
Visual Studio Tools for Office BMP for Licensing Add-Ins?
If I am a VSTO solution developer, how do I ensure that my customers do not deploy more copies of the add-in I have sold to them Thanks, Tad There is no direct support and as such the only way would be to use a kit like suggested and or write a simple security mechanism that validates a license such as through a webservice call, remembering the privacy and or network access. As it is a vsto template you are able to get access to the local machine if needed to ask for validation of the license key as such. I can hear your cry for a standard to help on this though. Regards ...Show All
Visual Studio Generate C# 2005 project files
Hello, I am looking forward to manage some C# projects programatically. Precisely, I am generating C# files and I want them to be added and removed from their projects on-the-fly. It would be very useful to add VSS checkin and checkout compatibility in the process. To achieve this, I think have to be able to at least generate C# projects as well. What is the most efficient way to write these files Is VS 2005 SDK suitable for that task It would be very nice if I could use a method that offers maximal compatibility with future versions of Visual Studio. Thanks! Marc Lacoursiere RooSoft Computing The imported project "[...]\VisualStudioCustomTool\bin\Debug\Microsoft.CSharp.tar ...Show All
Smart Device Development Import Xml to SQL database
Hello I know I have been asking abut this befor do not want to be rude but now I have a more spefic question. How can I, in the easiest way, import an SQL-Exported XML-file to the SQL Database again Is there a automized way of doing this, or do I need to identify each element and then import this to the database, or is there a more generic way of doing this Thank you for all your help and tips. You can load XML into DataSet then put DataSet's content into any ADO.Net compatible database using respective DataAdaper. If you XML is big you probably should parse XML yourself and put it in record by record. By the way, that was discussed quite a few times before: http://groups.google.com/group/microsoft.p ...Show All
Visual Basic connection to FTP server
I am trying to connect to a FTP server using the FtpWebRequest class in visual basic 2005. Right now, I am merely trying to get a list of files on the server. I have the IP address, the username and password to the server. I also had to install a certificate in my browser. I get a "The specified network password is not correct" - error when trying to test the code. I get it after the Client certificates statement. Public Shared Function ListFilesOnServerSsl(ByVal serverUri As Uri) As String Dim username As String = "username" Dim password As String = "password" Dim retStr As String = "" ' The serverUri should start with the ftp:// scheme. If Not (serverUri.Scheme = Uri.UriSch ...Show All
Visual Studio 2008 (Pre-release) System.ServiceModel not showing up in the GAC
Hi All! When I try to add the System.ServiceModel as a reference, it is not visible in the ".NET" tab of the "Add Reference" dialog. I have tried reinstalling WCF (by running install and repair of the install.exe in the WCF directory and the setup.exe in the v3.0 directory I can add the assemblies by browsing to the WCF directories and chosing them from the "Browse" tab. Any idea why this would be I believe this is causing other issues such as "Could not find schema information" for several elements. Help! thanks, Jas On the third reinstall, now GettingStarted it working.... Although I am still getting the "Schema Information not found" messages. Phew! Now onto real work. ...Show All
Visual Basic How to open new form and disable the parent form (until the child is open)
I know it works like this.. Dim form1 = New Form form1.Visible = True but i want to disable the parent window while the child window is open. how to do it Not sure if this is what you are looking for, but the ShowDialog method will make the form "modal" and so the parent form is not active until the dialog form is closed. ...Show All
Visual Studio Express Editions why cant i create a new project?
hi im new but not to programming, now the problem i have is when i try to create a project, it tells me "project creation failed" why is this also is microsoft visual c++ express edition suitable for writing my own code to create mods/ addons (half life 2 ect.) and why cant i open dll file asociated with games (for example, mp.dll, tfc.dll) please help!! my email is dr.grumbles99@hotmail.com , please contact my email if unable to on this forum thank you Did you download your copy from MSDN I strongly recommend doing so if you didn't, getting it from a third-party website often leads to viruses and other nasties, and maybe even your arrest if the software's bein ...Show All
Software Development for Windows Vista dynamic application of rules according to the user
Hi , Iam not very well expericed with work flow. I want to do the dynamic application of rules according to the user who is placing the request and drive the workflow on the basis of applied rules. if somebody may suggest any solution or may refer any helpful link. thanks in anticipation. Sobia Meghani. thanks kavita for the guidance. I want to clear one thing as u wrote " you dont need to have a WF to use rules", but i want to decide or set the next state from the current state on the basis of rules i.e, if line item total amount >10000 let suppose, so call the event 'SubmitforReview' otherwise 'Approved'. I have define both of the events in my "CreateReuest" state and on the basis of rule(which i hav ...Show All
