Aidy's Q&A profile
Visual Studio Team System Unit Test Wizard doesn't let me select certain projects.
When adding a new unit test to my test project, the Unit Test Wizard jumps back to the "Add New Test" dialog when I select certain projects. If I try to click either the '+' sign for the tree structure of the project or try to click on the project's CheckBox, the dialog returns to "Add New Test". Is this because test units cannot be auto-generated for this project, and if so why do I not see some form of message dialog --Edit-- I also attempted to create a test unit directly from the class that is to be tested. I received the error: "The source code cannot be sufficiently parsed for Code Generation. Please ...Show All
Visual C++ CRT functions met with IntelliSense Problem
Hi all, Recently I met with some IntelliSense problem with Visual Studio C++ 2005. When I type function name, ie, _beginthreadex, Visual Studio cannot provide parameter list, and the following message are shown in status bar: IntelliSense: 'Could not resolve identifier'. Is that mean CRT is not supported by IntelliSense please help. Well, I see the same thing in a newly generated app-wizard Win32 console app. This looks like a bug in intellisense to me and I have reported it to development. Here is a way to observe the problem - it need not be process.h, just any header file for which there is a #ifde ...Show All
Visual Studio Reportviewer Paper size
Is there any way to set the paper size for the Reportviewer control other than at runtime using the Page Setup button. It always defaults to "Letter" which is not really suitable for all countries. I am using Visual Studio RC1 on Windows Forms application. Thanks for the Information. Come Service Pack Come Come Come .... ...Show All
.NET Development SoapExtension generation fails in ws proxy
Yes it has, I have referenced library which implements it to client. --Niko here. using System; using System.Text; using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Services.Description; using System.Web.Services.Configuration; using System.CodeDom; using System.IO; using System.Net; using System.Xml.Serialization; using ICSharpCode.SharpZipLib.GZip; using System.ComponentModel; namespace foo.Compression { public class CompressExtension : SoapExtension { Stream netStream; MemoryStream tempStream; int minLength; publ ...Show All
SQL Server User Instance=True causes invalid connection string
Whenever I use "User Instance=True" as in the connection string below, I get an invalid connection string error. If I take it out, the connection string generates other errors. "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;User Instance=True;AttachDBFileName=|DataDirectory|\DbName.mdf;Data Source=.\\sqlexpress;" Removing User Instance=True always eliminates the invalid connection string message. BTW, I tried both Data Source=.\\sqlexpress and Data Source=.\sqlexpress. i would disagree with this. There are many use this feature of sql server express ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Never say never, my friend! I ran into the same program you're having. The EXACT same problem.... Well.... I didn't have a pink panda.... But still.... The SHORT answer to your question is that you can't have transparency in a picturebox control without doing some pretty complex coding. If you want the contents of a picturebox to be transferred into an image object, you can just go: Dim I as new Image I = Picturebox1.image or something... But, when I had your problem, I learned ...Show All
Visual C# How to dynamically check if a type supports the "+" operator
All, Has anybody any idea on how we can query a type to check whether it supports the "+" operator Correct me if I'm wrong, it seems to me that we can only query those methods which are named methods, like "Add" instead of "+". Thanks. Noli Operator+ is a named method; if you inspect CIL code that is produced, you'll notice a method called op_Addition. ...Show All
.NET Development VS 2005 trying to dial-up an internet connection.
I have just installed Visual Studio 2005 Professional Edition on my machine. I have also created a simple web service, I have successfully built the web service, however when I go to start the web service, my machine keeps trying to dial-up an internet connection. How can I stop it trying to dial-up, I never experienced this problem with the previous version. Mike55. Hello Mike, Now that is a weird symptom. What operating system are you developing on What type of network connection do you have I'm not sure why this is needed, but one thing you could do is try to review your Internet Explorer ...Show All
Smart Device Development reading xml file on pocket pc
Hi, I am using visual studio2005 to write vb to pocket pc 2003. I do not seem to be able to open any files from my code. When i open an xmltextreader no file is found and i get a directory not found error message. I have read an article saying that devices do not use drive letters but taking the drive letter out does not help. Dim events As New XmlTextReader( "C:\events.xml" ) any ideas cheers nubie you would do use the path: \pathToFile\file.ext you could also fine the startup location of the application using Assembly so... Assembly.GetExecutingAssembly().GetName().CodeBase.Substrin ...Show All
Windows Forms Icons and images
Hi all, I was hoping that someone might be able to point me toward a website/product that sells a bunch of icons/images for me to plug into my app (and also my website). I have come across some but they are slightly too expensive and not comprehensive enough. I appreciate anyones help, thanks. I don't know what you consider too expensive b ...Show All
Visual Studio 2008 (Pre-release) Getting data into existing objects on client
Sorry if this is a trivial question. I have a CLR-object on the client witch have WPF controls bound to it. The problem is that when I get new data from the server, all the controls seems to bind to the old object and is not updated Is there a way to get data into the existing object Im using: myObj = GetData(id); … public MyObj GetData(string id) I have tried: GetData(id, ref myObj) … Public void GetData(string id, ref MyObj myObj) But that doesn’t seem to work. Is it possible that the controls are bound to the old instance If you think in pointers terms, the DataSource property of the c ...Show All
Visual Studio Express Editions CDate function returns 'IndexOutOfRange' error - also in VB.Net 2005 Beta2
Hi folks, I have already reported this error in the VS 2005 Beta2 forum, but was told that it was not reproducible (VbCity and VBug, and your UK Launch team were also unable to reproduce the problem). I think I now have a lead on the issue! It also looks similar to a problem reported yesterday on the VB Express forum - 'I keep getting the out of range exception'. I have condensed the problem to two lines of code: Dim myDate as DateTime myDate = CDate("01/01/2005") The above error is reported on execution of the second line. This has now occurred on 6 different ...Show All
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Windows.Forms.MessageBox.Show("MyCOMAddin Add-in is unloading."); MyButton.Delete(omissing); MyButton = null; } Can anyone let me know what am I missing I've even tried using oCommand ...Show All
SQL Server Error of Microsoft OLE DB Provider for SQL Server
Hi All: I have a ASP page which use external DLL load data from SQL 2000 server, but it keeps give me error as following: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services Microsoft OLE DB Provider for SQL Server (0x8004000) the line cause the error is as: <% dim newRS dim visiter = Server.CreateObject("ExternalDLL.visit") newRS = visiter.enews.getENews %> visit and enews are all class file inside ExternalDLL. any body can help me out what's wrong with my page the external DLL and sqloledb.dll are both registed on the machine. Your help is great apprecia ...Show All
.NET Development Windows Event Viewer
HI, I developed an application in C# and would like to display the errors of my application into Windows Event Viewer. Can anyone help me out. Thanks This can achieved using the System.Diagnostics.EventLog.WriteEntry() method. More information at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdiagnosticseventlogclasstopic.asp ...Show All
