BruceM's Q&A profile
Visual Studio 2008 (Pre-release) How to show a calender in xaml
I'm having a trouble with how showing calender in xaml. I'm looking for windows sdk but no answer. Please give me some suggestion. Thanks a lot. If I got the question right you are searching for a calendar control in WPF. we do not ship the calendar control as part of V1. However we are hoping to make public some equivalent samples before the release. HTH ...Show All
Windows Forms Refreshing a Listbox
Hello, I have a listbox that has its datasource property set to a custom collection I created. The value and display members are assigned to properties that belong to the object contained in the custom collection. I want the additions and deletions I make to the custom collection (listbox's datasource) to appear in the listbox. How do I refresh the d ...Show All
SQL Server Execute Integration Package from a C# Solution
Hi all Does somebody know how I can execute a SSIS Package on a SQL 2005 Server I need to execute from a C# Solution which is running on a client. Thanks for any comments Best regards Frank Uray On the server, configure an unscheduled SQL Agent job. On the client, use ADO.NET to invoke the sp_startjob system stored procedure. It would also be possible to create a simple CLR stored procedure that uses the Integration Services API to launch a package on the server. I am working on the sample code for this today. -Doug ...Show All
SQL Server Generate XSD from XML
Hi, I'm new to SQL2005 and even newer to .XML. I've been using SSIS to bring in some .XML files using the XML datasource in SSIS. I use the "generate XSD" button to read the XML file and build the XSD for me. This works great but it seems that the "generate" button always ends up normalizing out every table attribute into seperate tables, even 1:1 attributes. A 3 table schema with 10 attributes per table ends up coming in as a 30 table schema. In my case it ended up as a 104 table schema. Not knowing a whole lot about .XML I'm wondering if there are tools out there that can be used to gen an XSD off of an XML file but ...Show All
SQL Server Script Task TimeOut
Anybody knows how to change the TimeOut of a Script Task Thanks! The task call one asp page that makes some updates in a remote sql server. If I call the asp page without SSIS the proces finish ok, but if I call the asp page with Script Task, the task returns a TimeOut error. I need that the Script Task wait until the asp work finish. ...Show All
Windows Forms Obsolete properties from forms designer
Just installed Beta 2 of VB Express, having been using beta 1. Now getting warning messages about obsolete property AutoScaleBaseSize. But this is in the Designer part of the VB - which (in theory) I shouldn't mess about with. How can I get it to put in the correct property (which the error message says is AutoScaleDimensions) The code inserted is: Me .AutoScaleBaseSize = New System.Drawing.Size(5, 13) Is source control available in VB Express I can't find it in the help system. Peter ...Show All
Smart Device Development Mobile 5.0 Emulator to SQL 2005 Mobile Problem
I have been developing mobile applications in VS 2003 with "0" problems with the 2003 emulators. We have upgraded to VS 2005 and setup the Mobile 5.0 Emulators last December. They seamed a little buggy compared to the Mobile 2003 Emulators at first, but work great on everything except Connecting and synching via SQL Server Merge/Pub via IIS. The Problem: Our mobile software developed for windows mobile 5.0 connects great on the mobile devices; however they do not connect on the emulators. (Connect via IIS to sqlcesa30.dll to synch with the SQL server and SQL mobile 2005) The devices synch up great, however as a developer I wo ...Show All
Visual Studio Express Editions How to Connect to a REMOTE MySQL
Hi It's my first post. I've read and tried http://www.vbmysql.com/ but no success. Can someone post a sample code or give me a hand on how to do that. Thanks a lot folks One way would be to install the ODBC driver for mysql, under Drivers and Connectos section http://dev.mysql.com/downloads/ Then you use an OdbcConnection class to connect to it http://msdn2.microsoft.com/en-US/library/system.data.odbc.odbcconnection(VS.80).aspx You can get how to write the connection string here http://www.connectionstrings.com/ ...Show All
.NET Development Should the SmtpMail class have a port property?
We are using the SmtpMail class to send email. There is a property named SmtpServer. Should there not also be a property to allow setting the port number The default of 25 works ok, but in situations where a non-standard port number is used, the SmtpMail class will not support it. Using a non-standard port is a good means of increasing security so that viruses, worms, etc. will not be able to find a SMTP server to use just by scanning for port 25. Is there a reason this is not included as a property in the SmtpMail class Will this be the same in version 2.0 I did find how to make it work using the MailM ...Show All
Windows Forms Tooltip on ListView Item
Is there any way how to set a tooltip on the specific ListView Item Thanks a lot. You could try handling the ListView.MouseHover event and then using the GetItemAt method with the mouse coordinates. Then change the tooltip based on the Item returned. Tony ...Show All
SQL Server Passing Parameters to the ReportView
Here is the problem. I have a report that accepts multiple parameters. Two of them are "hidden" from the user. I don't want them prompted for these values. I set up the parameters so that it says Hidden but I get the following message. The report parameter 'CustomerID' is read-only and cannot be modified. (rsReadOnlyReportParameter) Here is the source in my ASPX page: ReportParameter [] parameters = new ReportParameter [2]; parameters[0] = new ReportParameter ( "CustomerID" , CustomerID.ToString()); parameters[1] = new ReportParameter ( "UserID" , UserID.ToString()); parameters[ ...Show All
Visual C++ help for Visual Studio 2005 and ddraw
Hi, guys, I got a project with existing source code where ddraw is used. But now I am using visual studio 2005 to compile and build the existing solution. I have some problems as follows: 1. Shall I install directX SDK again after the installation of PSDK 2. There are always some compiling problems in the existing solution when using the VC 2005. Although I did not try VC6, are there any version problems to compile an existing VC6 project using VC 2005 express Thanks a lot. Damon Thank you for your reply. Another question is why I cannot find the file ddraw.h in SDK ...Show All
Smart Device Development About MainMenu
I've created a MainMenu object, added buttons, events etc. But this menu isn't showed while running on my HP Ipaq h2210. In form designer it is showed under the form. I've found no methods for showing or smth like this. How can I access it P.S. ContextMenu is clear: it is binded to Control and Point... Usage of MainMenu is incomprehensible for me. Help please and Thanks :) I've found out this problem. May be it's a bug, but I've done this: 1) First I've created a ToolBar on the form. 2) Then I've created a MainMenu and filled it with some buttons. 3) Finally I've deleted the ToolBar and MainMenu has remaine ...Show All
Visual C++ VC++ 2005: Release Version crashes
Hello together, i migrated a bigger project (400000 lines) to VC8. The debug version works fine the release version crashes. I switched all available project settings for the release version to the settings of the debug version. Still the program crashes before it enters InitInstance. Debugger says it crashes in WinMain calling OpenDocumentFile with FileName pointer NULL. I use the static library. Any ideas Christoph We woon't be able to help you without a sample reproducing the issue. Please log a bug with a reproducible sample so that the responsible folks can take a look. Use ...Show All
SQL Server Open Report Builder and Link to Report Directly?
Hi, I've created a simple webpart that lists all the reports that a user has created using the Report Builder and next to each line item is an "Edit" link. What I would like to do is open up the Report Builder application and pass a parameter of the report path or something like that so that report builder opens up the report automatically. Is this possible Thanks Tristian http://blogs.msdn.com/bobmeyers/archive/2006/01/24/517083.aspx ...Show All
