tonyso's Q&A profile
Visual Studio Reportviewer/Sql Server 2005 Reporting Services Parameter passing problems - Help!
I'm trying to pass two parms to a (remote) report using the reportviewer control (from a windows form or webform) but when the report is displayed it ignores what i've passed and just displays the report with the parm drop-downs. If I use an incorrect parameter name, it throws an exception so it seems to recognise the parm names... Any suggestions gratefully received! Parameter definition in the RDL: <ReportParameters> <ReportParameter Name="FlightRouteDestinationCountry"> <DataType>String</DataType> <Pro ...Show All
Visual C++ C++.NET to C++ 2005 Beta2, don't work!
Hi i'm an italian developer and until now i used VisualC++.Net 2003 I 'm trying Visual Studio 2005 Beta 2 and converting my solution there are errors all around! How can i convert a Sln in VS 2005 what should i do Errors like : c:\programmi\microsoft visual studio 8\vc\include\atlcomcli.h(300) : error C2299: 'ATL::CComPtr<T>::operator =' : behavior change: an explicit specialization cannot be a copy constructor or copy assignment operator Thanks. OK, now i found the explanation of the error in the file atlcomcli.h But what should i do Change the code of the file or find a new file with upgraded code ...Show All
Windows Forms How to load a datagrid from stored procedure with cusror
Hi, I am using ASP.NET/C#. I am trying to load a datagrid/datalist or even a repeater! with data returned from a Stored Procedure that uses a cursor. If I have a simle select in the SP, everything is fine and I do get all of the data using a datasource and databinding. But I use a cursor because data needs to be manipulated ...Show All
Windows Forms How do you move from one child form to the other?
Need to know how to move from one child form to the other. form1 = parent form , form2 is open and form3 is open need to focus is now at the form2 and need to go to the form3. Also would like to reference form2 drop down list from form3. Any idea's. thanks Try to declare three friend form variables in a modul ...Show All
Visual C++ Platform SDK for Windows Server 2003 R2 March 2006.
I just noticed, a new edition of the Platform SDK been released. Web Install Full Install ISO Install According to the download page: "The Windows Server 2003 R2 PSDK is a minor upgrade that adds a few features targeted for the Windows Server 2003 R2 release. Therefore issues you might have encountered with the Windows Server 2003 SP1 SDK and Visual Studio 2005 are for the most part unchanged with this release." Oh great ! We're still gonna have people complaining that they can't make DirectShow work or windows.h cannot be found! Yes, too bad, but the Vista SDK has to ship in December when Vista ships so this is ...Show All
Windows Search Technologies Running as a service
Is it possible to have Windows Desktop Search index when the user is logged out ie. have it run as a service Will the desktop search be written to run as a service for XP at some time in the future, please Thank you, Jace ...Show All
Visual C# Timers
Hi, I need a timer so that it keep going and doesn't stop. How do I do that Should I set the interval of the timer to inifinity Also how can I make the timer return the number of seconds counted so far Thanks for the help, Bruce A timer doesn't stop until you call Timer.Stop(). The interval is a mechanism for triggering timed events, but it won't actually stop the timer. To keep track of how long has elapsed, set the interval to a reasonable division of how long you expect the timer to run for, and keep the multiple stored. Then simply perform the maths on the multiple, and the interval - an ...Show All
Visual C# source code for .NET classes
Is it possible to obtain the source code for built in classes in .NET More specifically, I would like to see the source code for the PictureBox class, preferably written in C#. Is it possible to get this piece of source code Yes, here are some articles about it and links: Shared Source Common Language Infrastructure 2.0 Release Microsoft Shared Source Initiative Encourages Academic Innovation Microsoft Releases Shared Source CLI and C# Implementation If you just want to browse and search through the BCL is suggest a reflector, the best one is: Lutz Roeder's .NET Reflector , this will generate sourc ...Show All
SQL Server System.Security.SecurityException when opening a connection
What I am trying to do is in fact the most simple tutorial example of accessing data in SQL Server from embedded .NET code: [Microsoft.SqlServer.Server.SqlProcedure(Name="FillTimeDimension")] public static void FillTimeDimension(DateTime startDate, DateTime endDate) { // Guarantee that we have a valid connection while we run using (SqlConnection conn = new SqlConnection("context connection=true")) { conn.Open();// open the connection ....   ...Show All
Visual Basic conversion
when iam trying to change textbox caret i got this error messege : Conversion from string "System.Drawing.Bitmap" to type 'Long' is not valid. my code : CreateCaret(TextBox1.Handle, PictureBox1.Image, 10, 10) ShowCaret(TextBox1.Handle) any idea about converting (system.drawing.bitmap) or (picturebox1.image) to long or integer You need to pass the pointer to the Bitmap instead of the actual Bitmap to CreateCaret function. Pointer in 32-bit machines are 32-bit unsigned integers (It is called as "Long" in VB6): Private Declare Function CreateCaret Lib "user32.dll" ( ByVal hwnd ...Show All
Windows Forms C# qu's
hi all, sorry to be a pain in the ass, but i though there was no better person to ask than the master of c#; I have two quick questions: * Is it worth checking if each stream parameter of a method is null for an id3 library; or is this just over kill or good practice * Does it cost more to force inhe ...Show All
Windows Forms How do I change datagridview datasource and refresh screen
I've got an Access database with 50 state rate tables, named AKRate, ALRate, ARRate, AZRate... I have a listbox that displays AK, AL, AR, AZ... I need to be able to fill a datagridview with the rates from each table when the user selects a state and redisplay the page. I believe I need to change the datasource and refill the grid. How do I do this the following code blows up in the page load function on this line: me .ListBox1.SelectedItem & "RateTableAdapter" .Fill( me .StatesDataSet.Merge.list1.selecteditem & "Rate" ) TIA, Bill Public Class Form1 Private Sub Form1_Load( ByVal sender As ...Show All
.NET Development how do i compile an xml based language
Does anyone know how to write an Xml compiler I want to use an XML format for my own language instead of writing a traditional language and its compiler. Now I want to compile it and turn it into a binary- does anyone have experience of this and know how to start I think this fits into the way Microsoft of doing things so do they provide any guidance Let me explain... Here is an example of incrementing a counter <operation assembly="MyOperations.Addition"> <input> <parameter><variable name="MyCounter"/></parameter> <parameter>1</parameter> </input> ...Show All
Visual Basic Queue Class question
I have multiple queues of data: Queue0 Queue1 Queue2, etc. is there a simple way to refer to these queues like you would with an array Queue(0) Queue(1) Queue(2) , etc. Thanks Yes, there is. Define a array of Queue's like: Dim numberOfQueues As Integer = 4 Dim queues(numberOfQueues) As Queue For i As Integer = 0 To queues.Length queues(i) = New Queue Next ...Show All
Smart Device Development #Define Replacement (C++) in C#/NETCF
I'm used to the world of C++/C where i had access to #define. This was great, as I could define a keyword during development, and this keyword would be overwritten with an actual value at compile time. I notice c# doesn't have this (for obvious reasons), however, what is the recommended replacement I understand that I can use a constant (within a single file), however I'm working in multiple files. Should I use a constant within a singleton so each of the seperate classes can be set to the same value... There has to be a better way Thanks! ...Show All
