Vaish's Q&A profile
Software Development for Windows Vista Serious design flaw in HandleExternalEventActivity?
To set up the subscription for events from a custom service, CallExternalEventActivity registers with the CorrelationService, and calls the specified method on the custom service to create the event subscription. When an event is raised by the custom service, it is handled by the HandleExternalEventActivity. When this activity is unsubscribed, it cleans up its own subscription with the CorrelationService, but it provides no means for the subscription with the custom service to be cleaned up, as there are no overridable unsubscribe method. This means that subscriptions cannot be manually removed from custom services! I appreciate that for once only guaranteed events, such as the CorrelatedLocalService sample this isn't a problem as ...Show All
Visual Studio Express Editions Loading a form after login
Hi I'm using visual basic 2005 Express Edition and SQL Server 2005 Express Edition. I have create a login form which works fine by entering a username and password to connect to a sql database. The problem is when i try open the main form after login success, it opens up the form and then closes it. Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim sqlConn As New SqlConnection Dim sqlConnectionString As String sqlConnectionString = _ "server=" & My .Settings.HostAddress & "; Database=wellness clinic; User ID=" & txtUsername.Text & "; Password=" & txtPassword.Text & " ...Show All
Visual Studio 2008 (Pre-release) Capture Input Char
Hello! I need to capture user input char before it'll be displayed in TextBox. But the KeyDownEventArgs contain only Key value, and i have to get its char representation. The same control in Windows.Forms had KeyCode argument in KeyDown event, that returned exactly what i need. Is there any way to capture input char Or maybe to get char from Key value Thank you. I think that what you are looking for is the PreviewTextInput routed event... This will gives you access to a TextCompositionEventArgs... which in turns tells you what is the TextInput for the event... This will allow you pre-parsing, replacement, ... The TextInput contains actual text that goes into the TextBox... Therefore, hitting dead keys or ...Show All
Visual C# Interop.ShockwaveFlashObjects
Hello, I have a windows app that uses the shockwave component to display a flash movie. I now want to make it into a dll. I don't need to see the movie, but I do need to access the flash swf to get some info out of it. Here is my code in my windows app. axShockwaveFlash1.FlashCall += new _IShockwaveFlashEvents_FlashCallEventHandler (axShockwaveFlash1_FlashCall); private void axShockwaveFlash1_FlashCall( object sender, AxShockwaveFlashObjects. _IShockwaveFlashEvents_FlashCallEvent e) { //SOME CODE HERE } So my C# app makes a call into the swf and the swf returns some info. Anyhow, in the dll I can no longer use " AxShockwaveFlashObjects". I have been trying to use "ShockwaveFlashObjects". But ...Show All
Visual Studio Team System Changing Alias to Display Names in RTM
Hi, Is there any specific reason why this was done And is there way to change it back to aliases They actually become very long field as display names could be as big as First name Last Name (Contracting agency's name) for example.. Secondly there is chance that 2 people can have same display name... Thanks, Here is the reasoning for the change: http://blogs.msdn.com/buckh/archive/2005/11/28/497561.aspx "In beta 3 (including refresh) and earlier, work items have always been assigned to user names. For some organizations, that's a real problem, as the user names do not have any relationship to the user's real name. We have fixed this for RTM..." ...Show All
.NET Development Do you have anyidea to Call SQLLDR( SQL Loader in Oracle) from C#?
hi Guys, Do you have anyidea to Call SQLLDR( SQL Loader in Oracle) from C# Application Thanks, Senthil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DT_CALCRECT in .NET
I've been trying to make a function to measure text for a long time now, I simply keep giving up and saying I'll come back to it later. It just dawned on me why I was having trouble. There is no DT_CALCRECT equivalent in DrawTextFormat. Is this an oversight or purposeful exclusion If the latter, what is the replacement Edit: I should also mention that DrawText doesn't quite do what I want. If I specify the text string "The quick brown fox jumps over the lazy dog" and a Rectangle of (0, 0, 100, 0) using 8pt Verdana, DrawText reports I need a height of 12. So I give it 12, and it reports 24. So I give it 24 and it reports 36, so I give it 36, then it finally says 36 (still). Sure I can use this method to calc ...Show All
SQL Server is SSIS wonderful?
Hi guys, I'm using sql 2000 now but eventually will upgrade existing server to sql 2005. currently we only have OLTP dbs. I would like to set up data warehouse & OLAP functionality to drive reporting from the system, is SSIS the product I need can you please give me the suggestions regards Lawrence Parker wrote: The visual designer is very useful since you can easily see how the data is flowing while running the package. And data viewers are a terrific debugging tool since you can see the data at different points in the data pipeline (much easier than debugging raw SQL scripts). Sorry mate - Data Flow data view is no match to SQL solution with using TEMP table to Load ...Show All
Visual Studio 2008 (Pre-release) WCF client and UserName token, unsecured channel
When the service requires UserName token for authentication, is it not possible for a WCF client to do this over an unsecured channel or when the message is unsecured My client app.config looks like so: <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> and client code is: AddressFinderClient service = new AddressFinderClient(); service.ClientCredentials.UserName.UserName = "username"; service.ClientCredentials.UserName.Password = "passwordhash"; Location l = service.findLocationByAddress(. ...Show All
.NET Development Backup and Restore a sql database using vb.net
i'm trying to create a windows application with two buttons one to backup a database and the other is to restore it, can so me one assist me with this Thanks, Rama Hi, The best and easiest way to backup/restore database is sql. So you have ust to execute Backup/restore sql commands on the server. Backup command : "Backup database YourDataBaseName to disk = YourFilePath" Restore Command "Restore database YourDataBaseName from disk = YourFilePath" You must notice here that the YourFilePath is a path of a file on the database server. You cannot do Backup/restore to/from files that are physically not on the database server. To execute the command just connect to the m ...Show All
SQL Server Union Ordering
Hello, I'm attempting to run three separate queries and have them returned as one recordset. I need to show the top 10 customers based on the number of orders they placed for each of three months, then combine them to give a representation of which customers have been within the monthly top 10 for the overall period of three months. My problem is when I run a count on the number of orders they have placed and order by that count, it is in ascending order which in escence shows me the bottom 10, not the top 10. To resolve this issue, I can specify descending order. This works fine with one query, but when I run all three queries using union statements, I can only have one order by which returns incorrect results. Here is my query. In thi ...Show All
Visual Studio Team System Using VSS in VB6 After Installing MSSCCI for TFS
This afternoon I installed MSSCCI for TFS so that I could begin using Team Foundation Server with VB6. Now when I open an old project that is maintained using Visual SourceSafe VB6 seems to be trying to use TFS instead of VSS for that project's source control. Is there a way to have access to both in VB6 or at least can I get VSS back long enough to convert the old projects Thank you for your help in advance. Jeff Q Hi Jeff, In Microsoft products before VS 2005, changing source control providers required changing the registry and restarting the product (e.g., VS .NET 2003 or VB 6). Ed Hintz documented the specific settings in his blog: http://blogs.msdn.com/edhintz/archive/2006/04/10/572826.aspx . ...Show All
Visual Studio Express Editions Database question
Hello, I have created Access file with 1 table. Now when in VB 2005 I tried to get aceess t othis file I typed: Dim dt As New DataTable() Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0.;" & "Data Sourse=Grade.mdb" Dim sqlStr As String = "select*From Student" Dim dataAdapter As New OleDb.OleDbDataAdapter(sqlStr, connStr) dataAdapter.Fill(dt) dataAdapter.Dispose() UpdateTextBoxes() End Sub Student is the name of a table. When I run the programm, I got "Could not find installable ISAM." What is Wrong ...Show All
SQL Server I see where you are going...
I've got a reasonably efficient query that gives me a count of the top 20 daily values in my database. Now I'd like to figure out the daily total of top 20 values. Then analyze this information to work out the average, min, max and standard deviation of the daily total of top 20 values. My best effort is horribly slow - does anyone have a better idea how to do this Thanks! The schema of the database it accesses: create view eventView (timeStr, msec, host, process, dbName, point, description, rtu, groupName, message, type, sevInt, time) as select dateadd(second,time+60*offset,'01/01/70'), msec, host, process, dbName, ptName, description, rtuName, groupName, message, type, sevInt, time from summary CREATE TA ...Show All
Visual Studio Team System Marking Process Guidance as not reviewed yet
Is there a simple way of marking the process guidance as not yet reviewed/updated At the moment I am concentrating on customising the process template, work items, workflow, etc. Obviously I need to go back through the guidance updating as necessary to reflect our own processes. However, it is quite likely that the Team Project using the process template will be created before I am able to get around to doing this and certainly before a complete review can take place. What I would therefore like to do is to mark those areas (text) of the guidance with say a different font colour so that the development team can know which areas of the guidance have been reviewed and which are awaiting review. The easiest way I can see of doing this is to ...Show All
