rwerner's Q&A profile
.NET Development WSE2.0 with VS2005
HI I have code the runs with WSE2.0 and VS2003. I need to port the code over to VS2005 How can I still use WSE2.0 Regards ...Show All
.NET Development Inner join selects and returned results with a datareader
Hi, I'm writing my application in C# and it sends and retrieves masses of data from many SQL server databases (using one as a master database). As the databases all vary in shapes and sizes, I have to make the C# program create all my columns and populate the database by sending commands to SQL server. I have an INNER JOIN statement I am executing to return some rows of data from the same table which looks a little like this (self joins I think you call this): SELECT F1.*, F2.* FROM MyDataBase INNER JOIN MyDataBase F2 ON F1.LineIndex < F2.LineIndex AND ...etc...etc... rest of my select statement Now, because I am returning two selections, labelled with F1 and F2, I have to be able to read the columns of data returned in my D ...Show All
Windows Forms list box and datasets
hey, how do you make it so that a list box shows the items on a dataset Thanks :) Hey, ok after tying to figure it out, I took a break on doing that part of the program, I came back to it, but, I still can get it to do it from the form to the dataset, but I just realized that I should not do it thrue a dataset... becuase then how are you supposed to backup your bookmarks if you are going to do somthing that involves uninstalling the browser or doing somthing to your computer And that I need to make it a .html file like Netscape and Internet explorer do. I learned how to add column inside of a datesaet thoe :) So that helped a bit on somthing... But now the new problem: How do I make it so it stores it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Clearing a Windows Forms panel containing a DirectX movie
To Whom It May Concern I am finalizing an application that uses .NET 1.1 and DirectX with a mpeg or avi movie displaying a video of a particular road and section. When I navigate to another road section the panel is not cleared unless another movie is selected. I have tried the dispose method without any luck. My current code is as follows: // dispose of the old video to clean up resources if (video!= null ) { video.Dispose(); //video = null; //videoPanel.Refresh(); videoPanel.Controls.Clear(); //videoPanel.Dispose(); //videoPanel.Update(); } // open a new video video = new Video(file); // assign the win form control that will contain the video video.Owner = videoPanel; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My XNA Game 'iFACTOR'
Believe it or not, this time it's not a question :) I appreciate all the help I've been getting on this forum and I'd like to share some media of my first game. The media was taken from a Windows build but the game is designed for Xbox360. http://www.vector2games.com/ Thanks, Dave I looked at the video but couldn't figure it out. I guess if I played the game it might be different. ...Show All
Visual Basic Array of Arrays
Hi, I'm having a problem with my arrays of arrays: here is my code: Public Class GridArrayBased Implements Grid Private GridArray As Object()() Public Sub New(ByVal rows As Integer, ByVal cols As Integer) If rows <= 0 Or cols <= 0 Then Throw New GridException("Invalid parameters") End If GridArray = New Object(rows) {}(cols) When i try to make GridArray into a new object with the two sizes it doesn't work. GridArray will stay nothing while it has to be a new object. Does somebody knows how i have to fix this thnx in advance Daan Poron If you want to create an array of array's then here is a simple example. Public Class Form1 Private GridArray(10) ...Show All
.NET Development passing credentials for file copy
Hello, In my quest to find a workaround for the lack of support for FTP to an AS400, I have set up a hiddin share on my AS400. My thought behind this is to do a simple file copy from a Windows based machine to an AS400. Problem is the AS400 is going to require credentials to allow the connection. How can I pass a user/password or change my current credetials to allow the connection I have looked into the System.Threading.Thread.CurrentPrincipal, but I cant seem to get it right. Anyone have any ideas on this regards, Bill ...Show All
Visual Basic How to check the status of Dataset?
When I clicked the Add button in the BindingNavigator, how do I know what status in the dataset I try to caught the code like : Me .DBDataSet.table.DataSet.HasChanges() But I only get same result by no change and actually I clicked the Add button already. Because I try to differentiate the status to perform some other function or sub. Anyone have any idea on it. No, that function is not working. Another question is the data pull to data grid and that is a query which combine 2 table, how to save the modified data back to database Because the Adapter not generate the update or insert method. Any idea thank ...Show All
SQL Server StreamNotFoundException in reports with drill and images
Hi, I always have this exception: w3wp!library!1!02/28/2007-13:50:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database. When i try to drill in a report that have images. The weird is that i only have this error when i view this report in ReportViewer in a .aspx page. When i try to enter in this report directly by using the ReportServer ( http://s ...Show All
Visual Studio Team System ClickOnce Version Number as Team Build number
I want to create a Team Build that does a ClickOnce publish for my testers that creates a build number that includes the ClickOnce version number. We are showing the ApplicationDeployment.CurrentDeployment.CurrentVersion to the testers as part of the test application. When they enter bugs into TFS, we want them to be able to easily pick a build (on the Details tab of the Bug work item) that correlates to that ClickOnce version. If have several of the pieces to do this figured out: 1) Change SolutionToBuild to SolutionToPublish in the build proj file. 2) Override the BuildNumberOverrideTarget to create my custom build number. I could use some pointers on these questions: 1) If I want to append to the standard Team Build bu ...Show All
Visual Studio Team System TFS Usage at Microsoft
Would it be possible to find out which teams at Microsoft have gotten on board with TFS for source control and work items If so, how extensively have they customized the work items functionality -Larry Larry, Hopefully someone from Microsoft will comment more explicitly on this, however the following articles may be of interest:- http://blogs.msdn.com/robcaron/archive/2006/01/25/517525.aspx http://blogs.msdn.com/jeffbe/archive/2006/10/17/managing-work-for-team-system.aspx http://blogs.msdn.com/bharry/archive/2007/01/11/january-devdiv-tfs-dogfood-statistics.aspx While I know that Team System has a wider adoption internally than is mentioned here, I don't know of any figures to say how many divis ...Show All
Visual C++ A bug in C++ compiler? (full constructor definition is required before it can be called)
Hi, The following code sample does not compile in VS .NET 2005: class Base { public: Base (int i) : b (i) {} private: int b; Base (); // private default ctor }; class Derived : virtual public Base { public: Derived (int i); private: Derived (); // private default ctor }; void main () { Derived d (5); } Derived::Derived (int i) : Base (i) {} The compiler complains about inability to access Base::Base() (default constructor). But why does it need to access this constructor A way to compile it is to put definition of Derived's constructor (the last line) either into class declaration (inlined), or before main(). Also the problem goes away if I get rid of virtual inheritance. This code sample compiles just fine on Sun. Any ideas ...Show All
SQL Server Send XML data to Procedure
Can anyone point me to a good article, or examples of how I would capture data from an xml string I build and send to a stored procedure I have a form that has multiple updates and inserts and I want to put all the record data into one xml string, send that to a SP. Parse the string and update the dbase. I am searching for the information. If you could help, please do. Thanks. Hi Buddy, Copy the Following and execute in a SQL Query Analyser. It works fine with SQL Server 2000 and Upper versions. DECLARE @idoc int declare @int int DECLARE @doc varchar(1000) SET @doc =' <root> <element code="ABC" permit="0" /> <element code="DEF" permit="0&qu ...Show All
Windows Forms how to make a control display things outside its boundaries
I am trying to make something similar to a combobox. When you click on the drop down button on a combobox, a list drops down outside the boundaries of the control or form. Could someone point me in the general direction of how to do this A ComboBox actually does this by creating several controls. It uses an edit control, a button, and a dynamic list box. If you want to "display outside its boundaries" the only way to do this is to create another control where you want something displayed. ...Show All
Visual Basic Adding C++ code to existing VB.NET project
Hi, I have an existing vb.net project. The development team would like to add new features using C++. I am looking for resources to help me learn how to integrate new C++ (.NET) source into the VB project. Steve Yes...I'm trying to learn how. Resources, howto's, examples, etc are surprisingly hard for me to find. If there are suggestions on learning how, please share them. Steve ...Show All
