jayaraja's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Using AudioVideoPlayback in c#
Hello I try to display the FileCopy.avi file that comes with VisualStudio (in the graphics library). I did some searching and found that the (only) way to display avi files in c# is to use the Video class in the AudioVideoPlayback namespace that comes in the DirectX 9.0 sdk. ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_m/directx/audiovideoplayback/audiovideoplayback.asp ) The problem is that FileCopy.avi file (and all the rest of the AVIs that comes with VS) has a background color that needs to be transparent (a purple color in the FileCopy.avi). In VisualBasic 6 there is an AnimationControl that display AVI files and its have the BackStyle property for the transparent option (if transparent i ...Show All
Smart Device Development How to register COM object on Windows Mobile device?
Ok so I know on the desktop you can create a COM component and register it so it's in the registry and sorta globally visible to all applications - but how would one do it on Windows Mobile I got Platform Builder and Visual Studio 2005 if anyone wants to know what I'm working with here. I need to access the COM component remotely, so I'd need to do this for that to work. If you have platform builder, there is a tool called regsvrce. See item 13. here http://msdn.microsoft.com/library/default.asp url=/library/en-us/dncenet/html/buildxml.asp That assumes that your com DLL implements DllRegisterServer(). Any ATL project will have this done for you. If you have a vanilla Win32 project check out the Dvo ...Show All
Visual Studio Tools for Office auto_close addin unload
I have addin which unload on "auto_close". but i noticed that if user has modified the Excel sheet and try to quite excel, Excel is showing dialog to confirm to save changes. If user click "Cancel" for it ,still auto_close is invoking. So what is best way to verify user have clicked "Cancel" button and don't unload the add-in No this addin is in VBA . Which loads when excel launche and unload when user quit excel. After load of Addin I create my custmized menu. which I delete during "auto_close" macro. But when user try to quit excel ,excel show message "There are unsaved changes. Do you want to save it " with "Yes","No" and &q ...Show All
Windows Forms Hyperlink as a treenode?
Is it possible to have a tree sub-node as a hyperlink, or at least to make the treenode behave like one (change the cursor to a hand etc). Try using the MouseMove event. You can find out what node it is pointing at with the GetNodeAt() method, change the cursor accordingly. A simple example that uses the Hand cursor at nested nodes: Private Sub TreeView1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TreeView1.MouseMove Dim node As TreeNode = TreeView1.GetNodeAt(e.Location) If node IsNot Nothing AndAlso node.Level > 0 Then TreeView1.Cursor = Cursors.Hand Else TreeView1.Cursor = Cursors.Default End If End Sub ...Show All
.NET Development data reader already open error occuring
Hi , I'm writing an application in which i'm using a datareader to reader the data of the table after reading each row i have to update that records into another table.I'm using the same connection for both datereader and the execute nonquery. Is there any other way to do this without using a second connection to open.Please respond ,any little help is appreciated. -regards GRK The best thing to do is to perform all of the updates in a single sql statement or stored procedure. i.e. UPDATE tablename SET field = 0 WHERE field2 = 1 If the logic requires many complicated checks you can set up a cursor in a stored procedure, loop through each record and perform the updates in the stored procedure. This reduces the number of ...Show All
SharePoint Products and Technologies Users NOT listed in portal site are able to login (after upgrade)
Hi there, Some time ago I upgraded our SPS portal site to MOSS 2007. In the old version, our customers were able to login to some of our subsites for sharing information in projects and so on (but they only had access to that specific site of course). After the upgrade, when a customer logs in to the same site - they are able to go all the way back up to the top web site and surf on!! I have not the user listed under "Site permissions" on my top site but STILL the user is able to login there! Anyone who knows what I have missed Thank you, ...Show All
Visual Studio Team System Query
I am very exicted to learn this fantastic tool and i have just few day back started off with learning the tool and so far with the help of this forum i have got many of my doubts cleared..now i am familliar with the usage of this tool...i would like to tell that currently i am doing web and load testing on an intranet application...module by module i still have one major doubt!!! 1)How do i decide upon the values,goals to be set ....i mean what are the ideal conditions in which one can consider that an intranet application is giving good performance ..becoz right now i am just giving random values....i need to know some set of standards...is there any tutorial,link that can help me with this specially for intranet applications as i am c ...Show All
SQL Server Logging dynamic SQL variable when EvaluateAsExpression=TRUE
I am trying to use the idea as mentioned by Jamie at: http://blogs.conchango.com/jamiethomson/archive/2005/12/09/2480.aspx which is to build dynamic SQL using a variable evaluated as an expression. Set Expression= "SELECT * FROM MyTable WHERE MyColumn = " + @[VariableContainingFilterValue] Everything works fine. The entire package works. My next step is to log the variable so that I know, after package execution, exactly what SQL statement the package is executing. I tried to do it by a couple of ways in a Script task: 1) Dts.Events.FireInformation(0, String .Empty, String .Format( "SQL: {0}" , Dts.Variables( "SourceSQL" ).Expression), String .Empty, 0, False ) ...Show All
.NET Development Do I need to Upgrade to .Net Framework 2.0
Hello!, We are using Visual Studio.NET 2003 with .Net Framework 1.1. The server is windows 2003 server SP1. I want to know If we have to upgrade to VS.NET 2005 and .Net Framework 2.0/3.0. If yes, how do I do it. VS.NET 2003 works fine with our needs, but I don't see much of VS.NET 2003 nowadays. Please suggest. Thanks, Krishna. the second question of how to migrate to VS 2005 is a valid question. Please post a similar question in Visual Studio Setup and Installation forum. I would move this thread but I see value to creating a new one. ...Show All
Visual Basic Saving ListViewItemCollection
Connection.Open() Dim cmd As New OleDbCommand cmd.CommandText = "INSERT INTO PANELDETAIL (PanelID,PanelName,ExamName) VALUES (@PanelID,@PanelName,@ExamName)" cmd.Parameters.AddWithValue("@PanelID", tboxID.Text) cmd.Parameters.AddWithValue("@PanelName", tboxName.Text) cmd.Parameters.AddWithValue("@ExamName", lviewIncluded.Text) cmd.Connection = Connection cmd.ExecuteNonQuery() Connection.Close() Basically, this code just inserted a certain record on my database...All seems fine but the one with the question mark, I don't know how to insert but I am certain that it's wrong.I just want to ask how can I ...Show All
Windows Forms Clock component
I have to use a clock(analog) component on my form. Where can I find a clock component that look nice there isn't one in .NET. you would have to create one yourself. There is a timer even however which you can set an interval and it will tick on the interval set. You can then use this value to set the values or change the appearance of the UI control you have made to reflect the changes from the timer event ...Show All
Windows Forms String to int, Visual C# 2005
Hey, How do you make the value of this: pictureBox1.Width = (maskedTextBox1.Text); pictureBox1.Height = (maskedTextBox2.Text); an integer becuase I get an error saying can not convert string to int... Thanks :) Hi, If you missed the first chance(one tick) to write the number in the two mask text box, you'll have to check the radiobutton5(throws format exception), input the number in mask text box and re-check the radiobutton5. ...Show All
Visual Studio 2008 (Pre-release) Who can tell me how I can update my version 8 solution file and its projects files to version 9?
thanks It turns out the problem was that I was using a shared folder under Virtual PC and that seems to be either very slow or buggy. The translation worked as soon as I used another folder. ...Show All
Visual C# Time validation
hi all, is there anyway that i can validated user's time input data i am using textbox for the user input as i have to bind the original time from the database. i am doing a form which enable customer to change their reservation time. however, i would like to validate the time so that it is between 11am till 10.30pm. well you can get the current System time using DateTime.Now, which brings back the current date and time. I guess from this, you can check to see if its within your range of hours (its in 24 hour format) then according to the current time, you can accept/decline the change from the client application. is this what you are asking ...Show All
Visual Studio "Entering break mode failed for the following reason: Source File XXX does not belong to the project being debugged
I get this modal message box if I copy a solution with multiple projects from one folder to another and try to run it. This never happened with the previous version. I have tried everything I can think of: rebuilding, deleting all the dlls/pdbs to force them to be recreated, editing the csproj & sln files with notepad looking for references to the old folder structure... Somewhere vs.net is picking up the old folder path because it appears in the message box but I can't discern where this information is stored. We used to have an option "Rebuild All" would this not correct this problem How do I force the IDE to rebuild the pdb's and point them at the right place Thanks in advance I had this problem as wel ...Show All
