Chris P.'s Q&A profile
Visual C# Syntax highlighting/bracket mathcing missing when using break statement.
Hi, In previous versions of VS 2005, entering a break statement in C# within a loop or block of code resulted in highlighting of the block in question, e.g: .... 1. foreach(int i in indexes) 2. { 3. if (i < SomeValue) 4. { 5. doSomething(i); 6. break; 7. } 8. else 9. { 10. doSomethingElse(i); 11. } 12. } ..... When I typed the break in line 6 above in the VS2005 C# IDE, the block affected by this break, the foreach-loop ...Show All
SQL Server Parameters in Client Report Builder
Hello, Is there a way for a regular user of the client report builder to add parameters to their reports Right now you can only add them by creating a report from visual studio and publishing to the report server, which regular users can't do. Please let me know if I'm missing something here... Thanks, Edward hey, I am also looking for drop down in report parameter. If you are having any kind of solution for displaying a dropdown list to choose a specific filter criteria on the fly will be a great help! At present, I am using report parameter with free text which is not the exact solution need to be provided. By selection of any ...Show All
Windows Forms Repositioning ToolStrip at runtime
I'm creating a form that has two ToolStrip controls. When the application is running, I'd like to be able to reposition the ToolStrips by dragging them by their grips, including (I believe the term is) "rafting" the ToolStrips into a single row. This seems like it ought to be an easy thing but I'm stumped -- the ToolStrips are fixed in place. The cursor doesn't change to the four-way arrow over the grips either. I've tried putting the ToolStrips in a ToolStripContainer, but that hasn't seemed to help. Here's a code fragment showing one of the ToolStrips, if that's helpful. // // planToolStrip // this .planToolStrip.A ...Show All
Microsoft ISV Community Center Forums Is there a way to select..
Lets say every 15 entries and get them to display on a chart without having to select them by hand. For example I have 30 cells of data going down a column and I want something that will select the 1st, 15th, and 30th pieces of data. Then have those points displayed on a chart. I am currently using Defined names to get information and auto update my charts but there is so much information that the chart is too squished to see any useable data (we are talking about ohhhhhhh 10 years worth of data each one being a single day so that is what 365*10...). Is there a way to used Defined names or is there a way in VB that i can accomplish ...Show All
.NET Development drill-down reports
Greetings, In using the .Net 2.0 controls, can someone help me figure out what the best method is to output a web report that is outputing multi-level roll-up data We have reports that output data for campuses, buildings, and floors, and would like to see all this information in one report that looks something like this: CAMPUS HEADER campus1 info BUILDING HEADER building1 info FLOOR HEADER floor1 info &n ...Show All
Visual Studio Team System Unit testing classes inside a website project?
I've tried for hours, (including reading a lot of promising posts on these forums), unsuccessfully, to be able to test a class I have that resides in the App_Code folder of my web application. The class in question is just an ordinary class, and I'm just trying to test its logic (no web test, ASP.NET test -- just a few lines of code unrelated to anything web, except that the .cs file resides in the App_Code directory). First, I found out I have to manually checkout the web.config. Same for the bin folder, that needs to be manually checked out. No problem. Testing using IIS as the webserver, using these attributes on the test method (Becaus ...Show All
Visual Studio VS .NET 2003 Prereq problem
Context: WinXP SP2 MSDN Disc 2431.4 (May 2005) Problem: I install prerequisites (IIS, FPSE 2000). When I restart the VS .NET 2003 Setup, still says I need to do prerequisites. OK, select item "1", and it then gives me a dialog box in Spanish and executes a "Dell Chipset Utility" application which installs something-god-knows-what in two seconds then exits. Has anyone seen this What the heck is going on This might be related. I'm going to go ahead and post it since this is almost certainly the problem and I have the link in my cut buffer. http://support.microsoft.com/ scid=kb;en-us;891398&spid=3039&s ...Show All
SQL Server DateTime parameter format
Hi everybody A quick question - is it possible to present DateTime report parameters with specified format. Let's say instead of '9/3/2005 12:00 AM' i'd like to show '9/3/2005' only. Plus maybe it's possible to plug in some sort of a popup calendar. Thanks for response, Konstantin At least in RS 2000 if you define the parameter as string (instead of datetime) then it'll be shown in the format that you want. And I don't know if the datepicker can be used in RS (maybe someone else could help us) ...Show All
Windows Forms Reading Excel Spreadsheets
I need to create a VB.NET Windows Forms application that can read the data within an Excel spreadsheet. But, I'm not sure where to get started. So far, I've found some articles how creating Excel macros, but not about what I want to do. Do I need to download Visual Studio Tools for Office I just want to be able to open&nbs ...Show All
Visual Basic Adding databese on sql server from code
A can create database on sql server from command line with: osql.exe -i -e script.sql (I have script for my database) How to do that from code Gosovic wrote: A can create database on sql server from command line with: osql.exe -i -e script.sql (I have script for my database) How to do that from code Dim MyProcess As New System . Diagnostics . Process With MyProcess . StartInfo . Arguments = "-i -e script.sql" . FileName = "osql.exe" . Ver ...Show All
Visual C++ WORKABLE VERSION OF VC++
Can anyone direct me to the lastest workable version of vc++. Obviously Microsoft Visual Studio 2005 is useless. Even their hello world has build problems. Converting older versions always gives some error & When one generates a new program it doesn't even see it! I'm going back to my old disk version of Visual C++ from years ago but maybe someone knows of a more contemporary version which works. Is 2003 valid 2002 Any comments would be appreciated -Thank you Hi; Martin: I just download VS 2005 C++ and tried a provided sample project "GAME", I got a BUILD error: Project : error PRJ0003 ...Show All
.NET Development Join 2 tables from 2 different databases in ADO.net
I am tying to build a COMMAND that joins two tables from two different databases, one database is stored in SQL Server, the other one is stored in MS Access, the problem is I can not make the SQL statement in one command, since the connections are different. Example : Dim MyCommand As New SQLCommand(" SELECT T1 .Col1, T2 .Col4 FROM T1,T2 WHERE T1 .Col1 = T2 .Col2",SQLConnection) T1 is a table in MS Access Database ( Database1 ) T2 is a table in SQL Server database ( Database2 ) In addition, I have two connections: MSAccessConnection SQLConnection I tried to load the two tables into a dataset and select the data, but my ta ...Show All
.NET Development Increasing the runtime heap?
Hi I've got an issue with OutOfMemory exceptions occuring in an application. I know the gen 0 heap size is based on the L2 cache of the CPU running the system, but even when I try to run my process on a system that has a megabyte of it, it gets the exception not even halfway in. Normally, I'd just take it for granted that I was wasting too much memory too quickly, but the problem is - I need all of the memory I'm trying to allocate, and I need it all right away. Even if I insert GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect() and a Thread.Sleep(500); into my allocation loop, not enough is being collected for me to continue on. S ...Show All
Visual Basic Dll Hell
Hello, I used to write my programs in vb6, Now our company has bought vbnet 2005 with my blessing. I was glad I could experement with my new toy. But still I have to write a dll to use on a client PC with a vb6 program . Ok I made a com class and implemented classid,interfaceId and EventsId and I used Interface to make the properties visible in my vb6 project. I haven made a snk file (why I stil don't understand), I registered the dll and tlb file with regasm. And everthing works great on my develop PC. But now I want to use the vb6 exe on a client PC how do I do that Greats John An snk fi ...Show All
Smart Device Development TRACE problem when bring in MFC code
I tried to pull forward some code from the MFC library so that I can use one of the deprecated classes under Mobile 5.0. I have been fairly successful so far, but it would appear that TRACE is confused. I am getting .\winsplit.cpp(82) : error C2664: 'void::ATL::CTraceFileAndLineInfo::operator {} (const wchat_t *,...) const' : cannot convert parameter 1 from 'ATL::CTraceCategory' to 'const whcat_t *' The line of code looks like TRACE(traceAppMessage, 0, "Warning: CSplitterWnd assumes 1 pixel border.\n"); (It is in Winsplit.cpp) Hi, I think you can do away with this problem by using the macros TRACE0, TRACE1 ...Show All
