DannoCoy's Q&A profile
Windows Forms Version Number of ClickOnce application
I want to display the version number of a Click Once application in my About box. Any ideas on the easiest way to get this It appears to be in the MyApp.exe.manifest file, but I'm wondering if there is a better/easier way I'm guessing there's nothing directly in the framework, as the app doesn't know how it's deployed, but I could be wrong. TIA, Bill So this won't work when I'm debugging the application in the design environment, but will work once I have deployed with ClickOnce and the user is running the application thanks Dan ...Show All
SQL Server linked server: Error 17: SQL Server does not exist or access denied.
I have two sql server 2000 with mixed mode authetication. I stand at one server and setup a linked server to the other using the same user id and password. However when I click to the Tables icon of linked server in Enterprise manager, there is an error message: Error 17 SQL Server does not exist or access denied. And It does not show any table. I register remote sql server in Enterprise manager fine. Could any one help me Thanks. sp_addlinkedserver @server = N'QLNSParent', @srvproduct = N' ', @provider = N'SQLOLEDB', @datasrc = N'10.0.10.111', @catalog = N'qlns', @provstr = N'' GO sp_addlinkedsrvlogin @rmtsrvname = 'QLNSParent', @useself = false, @locallogin = 'sa', @rmtuser = 'sa', @r ...Show All
SQL Server Is there a way to bound a search within specific TOC items?
Is there a way to bound a search that I'm missing Can't figure out why major types don't appear in the search tab's drop down for content types (e.g "Full Text Search", "Tools and Utilities Reference", SQL Server Programming Reference"). Seems anything appearing in the TOC should be a candidate for bounding a search. Also, anyway to perform subsequent search that is bounded to a prior search result. Microsoft also has a site that allows customers to directly request features - this would be a great place for that. You can find the link here: http://connect.microsoft.com/SQLServer Buck Woody http://www.buckwoody.com ...Show All
Windows Forms How to access different forms controls properties...?
Hi… In my C# MDI application, I have a parent form & on click of some parent forms toolstripmenuitems & toolstripbuttons I am popping up some windows(Forms). All these popped forms are not child form of parent form. I want to access some controls & their properties of parent form from all these popped forms & also I want to access some controls & their properties of those popped forms from parent form. So where I should declare object of parent form & those popped forms for both my requirements. I have declared object of parent form in each of these popped forms load event & I have declared object of those popped form in parent forms form load event…but with this my applica ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
Windows Forms How to Add Event handlers to programmatically created components
Dim but1 As New Button() This lets me define a button but how can i assign a function to handle this programmatically created button's onclick event Dim withevents but1 As New Button() Sub but1_Click(..., ...) Handles but1.Click End Sub ...Show All
Windows Forms DataGridView Odd Behavior
I have been trying to track down an issue in an application that I am writing. I finally deteremined that it isn't some of my code directly creating the issue. I have created a small application to demonstrate this odd behavior. The odd behavior is that if the DataGridView is loaded with data, then that data is deleted, then another control is selected, then the user goes back and enters data into the DGV, instead of 2 rows (the row with data and the new row), you end up with 4 rows. To create the example project, create a new project with a form (Form1). Place on the form a DataGridView (DataGridView1) and a Button (Button1). Then, insert the code below into the form. Steps to reproduce - Run the application - Remove the word &qu ...Show All
Visual Basic Connect to Access Database
Please any one can help me to connect to the access database , that is in the web which i want to connect using a windows application. I did not understand the question front the beginning. I though we’re looking for standard ADO connection in Windows environment. I believe that the ADO OLEDB Provider supports remote connection to Access mdb file using the ASP code below. I’ll contact my Internet Provider to setup for me properly my virtual directory, NTFS and IIS permissions and IP exclusions configuration (if it’s required). Let you know! <% set conn = CreateObject("ADODB.Connection") conn.open "Provider=MS Remote;" &_ "Remote Server=http://<ip address or ...Show All
Software Development for Windows Vista SqlWorkflowPersistenceService - how does it work?
I'm going through one of the Hands-On Labs for Workflow Foundation, and am curious about the SqlWorkflowPersistenceService. The lab has me creating a workflow that outputs the time to the console, delays for 5 seconds, and outputs the time again. If I run this, the two times are 5 seconds apart, as expected. If I change the delay to one minute and 5 seconds, the two times are more than 1:05 apart (sometimes almost 30 seconds longer). Does the runtime periodically poll the database to see if there are any instances that need to be loaded from the database How often does this happen Thanks Yes - there is a timer that the SqlWorkflowPersistence runs periodically to see if any timers need to "awaken&qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. For DX10, will there be a Managed API other than XNA?
There are several things missing from XNA that make it only useful for specific scenarios; I understand this is intentional, and I agree with the move to produce a x-platform game-dev api that keeps focused on specifically what it is meant to do. But it looks like XNA is meant to completely replace MDX in the long run. Does that mean that any developer looking to work outside of the box a little, to explore new solutions, or to produce applications that don't belong under the typical 'game' umbrella, will be forced to use the low level DXSDK api's Currently, the only way to leverage certain kinds of functionality (for example, real-time audio data generation and manipulation) in managed code, is to use MDX. XNA will not provide access ...Show All
Visual Studio Team System Credentials of the SubscribeEvent WebService
I'm using the WorkItemChangedEvent and subscribe the Event to a WebService. The Credential of this WebService is the credentials of the tfsservice account. Normally you can change the Credentials of a WebService: service.Credentials = System.Net. CredentialCache .DefaultCredentials; But how can I change the Credentials of the WebService which is subscribed on the Event It is interesting to see that tfsservice account does not have access to the cache folder. Are you able to log into the server box using tfsservice account and access that folder Sometimes I have noticed just logging into the server box with those credentials fixes some problems. You might also want to try moving cache folde ...Show All
Visual Studio Tools for Office powerpoint saveas
Hi. I have a question regarding powerpiont: My application shall override the save function in all office programs. I manage to do this in word and excel with the document/workbook saveas method. But I can't find any method for this in powerpoint.... I highly appreciate any help :) Best Regards, neoret Hi neoret Since this forum is specific for the VSTO technology, and VSTO doesn't use Powerpoint, chances of finding anyone here who can help you are very slim (to say nothing of the fact that this is "off-topic"). Try asking in the the Powerpoint newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.powerpoint&lang=en&cr=US Be sure ...Show All
Software Development for Windows Vista XOML Custom Activity
Hi There, Is it possible to have a Xoml custom activity And have the dependency property and execute method calls in xoml [without using the xmol.cs file] Any work arounds and pointers with samples will be helpfull. Thanks!! No, this is not possible in WF V1. We're working on improving this story for our future releases. Here's another post on the same issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=996072&SiteID=1 ...Show All
SQL Server Strange SQL CLR error
Hello, I am running the code below that simply adds a row with two values to a Table. When it is run, it gives me the following error: A .NET Framework error occurred during execution of user defined routine or aggregate 'InsertCurrency': System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_Sales.Currency'. Cannot insert duplicate key in object 'dbo.SalesCurrency'. This seems to indicate I am adding a duplicate key, however I have confirmed several times that I am not adding a duplicate key. Here is the code. Thanks for any suggestions about why this error is occuring. <SqlProcedure()> _ Public Shared Sub InsertCurrency( ByVal currencyCode As SqlString, ByVal name As SqlSt ...Show All
SQL Server AS2005 Slow initial cube opening
Hi We are having a problem in our AS2005 cubes that the initial openeing of the cubes is exceptionally slow. When the user connects though ProClarity, or I open the cube in the designer, the first report or first display of data takes about 2 minutes to return. Once it is open, the next query that you run is fine. If you exit the application, and go back in, you have to wait again for the first report. This is very annoying to the users and frustrating for me as I cannot see anything that could be causing this. We are running Windows Server 2003 x64 edition SP1 with SQL AS2005 x64 SP1. Has anyone seen this before or can point me in the right direction where to look to solve this issue. Thanks Michael It c ...Show All
