Naresh Bhatia's Q&A profile
Visual Studio Team System Troubles re-playing a web test
Hi, I'm having a problem with re-playing web tests. If I record a web test on my local host, then it re-plays just fine without any problems. If I record a web test when accessing another server, then it won't replay. The very first step fails with the following error message: "Reqest failed: Index and length must refer to a location within the string. Parameter name: length". It's the same application running on both servers, but o ...Show All
Windows Forms BindingSource + Object + nulls = problems
Ok, so we have a business object, and there's a grid bound to the binding source that holds the objects. If you clear a string field and move to another row you get an error about not being able to convert DBNull.value to a string. First of all, why isn't the grid saving string.empty instead of null Second, I tried using string for the property but got this error message: Error 1 The type 'string' mu ...Show All
Visual C# Loading .pvk file
Dear all, I want to use digital certificate file and the correspoding private key file instead of using 'KeyContainer' things which all the sample code of MSDN for signing and veryfying data. There are some methods loading digital certificate (.cer, .der) file and make new instance of X509 object but, I didn't find the method for loading .PVK file for getting private key data. Does anyone ...Show All
Smart Device Development problem with dock fill
I am using Visual Studio 2005 Professional Edition Version 8.0.50727.42. In a PocketPC2003 project, I am having trouble seting up one of my forms. The first thing I did is create a panel and dock it to the top. Then I created a label and a few check boxes and put them inside the panel. I docked the label to the top of the panel. below the first panel I have a splitter, also with its' dock property set to top. This positions it just below the fir ...Show All
Smart Device Development Can I draw 3D objects by C# (cf 1.1)?
Hi everyone, I need to do a really simple and samll 3D universe in a pocket pc 2003 using c# in .net cf. I was searching on google for hours, but I couldn't find any related resouced about that, I have a reference book but all the drawing method are 2D, anyone can help me of that, really appreciate! Many thanks! Ray and I don't see I will develop other 3D app soon in ppc so I don't want to buy another pocketpc just for one program, and ...Show All
.NET Development Regex Problems
Hi guys, I've been trying to make a program using regex work, but .net simply will not allow it! For some reason, it won't let me declare the re as New Regexp, m as Match (for some reason, it always highlites the regexp and says "Regexp is not defined". I'm importing (thank to ReneeC for helping me get my importing straightened out) system.text.regular expressions. Any help is greatly appreciated here's the code: Dim re As New RegExp , m A ...Show All
Visual Studio Report View Problems in FireFox
I'm using VS2005 to develop a report using MS ReportViewer Control for my web application I have run into the following problems: 1. There ia 6px padding-left on the report body. I figured this out by looking at the source of the html page (see below). How can I get rid of this padding < div id = "ctl00_Main_ReportViewer1" style = "display:inline-block;border-color:Black;border-width:1px;border-style:Solid;height:1200px;wi ...Show All
Visual C++ API documentation
I've just downloaded Visual C++ Express Edition. I have a couple of questions. 1) what is the difference between ".h" files and "lib" files 2) How do I find reference for the various classes that come with VC++ Express (Like the Java API documentation for the classes that come with the language Thanks in advance. oh i found the answer for the 2nd question. All the reference that is required is found in the Online help feature of V ...Show All
SQL Server how to insert more than once when processing one row in script component
I am trying use call DirectRowToOutput0 more than once to achieve the goal, but it gives an error of calling COM. I can create more than one destination to achieve it, but I need create 8 destinations for my situation. Is there any easy way Thanks Is this any help to you: http://blogs.conchango.com/jamiethomson/archive/2005/09/05/2113.aspx -Jamie ...Show All
Windows Forms User who does not have folder redirection in the active directory gets error message when run the application.
I install the application on couples machine and they all went well. However, when I run the application from the Start Menu, I found out that user who does not have folder redirection get this error message. If I go to the network directly and run the setup.exe. It open up the application with NO issue. I think there is something to do in their profile as it is not on the network. It is on their local machine. How do I fixed that ...Show All
Windows Forms Print HTML
Hi, I got a very simple report formated in Html. Is there some simple solution for printing this in .Net Could someone please point me to some example implementations Thanks in advance for any pointers and help! Use the MSHTML object ...Show All
Windows Forms missing storage-class or type specifiers error
i have declared a child form in the parent form 'Form1' . ' public: static Form2* childform; ' but in the line of ' public: static Form2* childform; ' where i ve defined the pointer, i receive the error 'missing storage-class or type specifiers' . i ve already included Form2.h in Form1.h and i create an instance of Form2 in Form1's constructor with 'new' operator... so why i receive this error... regards. ...Show All
Windows Forms Default sizes and Windows Forms Guidelines
I am looking for the Windows Forms equivalent of the "Official Guidelines for User Interface Developers and Designers". Specifically information like: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwue/html/ch14e.asp I'm also perplexed by the fact the heights of the&n ...Show All
Windows Forms Menu Strip?
This might be dumb!!!! Is there not existing code or snippet somewhere that I can just past into each toolstrip and menue strip to do " common functions" Like Open, Close, New, Exit, Print Form. etc. I am still new and have looked for days. I have inserted "Common items" but the snippets I seem to have don't work. So far I have found only "me.Close()" Hey at least I can shut ur down when it all screws up.l ...Show All
SQL Server is it possible to have variant condition clause in procedure?
i want to use OLEDB to build a COM for my app in the case, i want to execute a select statement which the where-clause is variant. ex, select * from db1 where code='abc' select * from db1 where name='mike' As it's very difficult to change sql-command in oledb, i want to build a procedure like this, create procedure viewDB @filter CHAR(20) as select * from db1 where @filter go but failed! i tried EXEC( select ), ...Show All
