DLL's Q&A profile
Visual C# Windows Login Prompt
Hi, I am trying to write a WIndows GUI app that access a share on a remote systems and read the time and date stamp on when a file is created. All systems are in workgroups and do not know about each other. ie. PC1 to access \\PC2\Share\file.txt and read the time and date stamp In my Windows GUI App I have two fields for a user ID and password to be entered, a text label for the results and a "Go" button to start the process. each system should report back the details from the file and output this to the text label within the App. I have seen many examples of how to use the impersonate option in asp but I am look for ...Show All
Windows Forms Selectively making bound controls Read Only
I have bound a dataview to some controls (textbox, rtf, etc...) and some records need to be read only based on some of my own logic... now, whenever the position changes, I can determine if the row can be edited, but I need to block editing in the UI as well. My first thought was to toggle the "AllowEdit" property of the DataView,&n ...Show All
Windows Forms control isnt displaying data
Just a quick question. I am working on a windows forms application that manages ads on a web site. I am working in Visual C# 2005 Express. If I am binding to a database that is on a network/the internet, and there is latency, will the app wait for the data before trying to display it, or will i just get a blank control I have a control that is blank (sometimes) the first time the form that contains it is loaded, but it works everytime after that, and is not generating any errors. Thanks, Adam ...Show All
Windows Forms UserControl expose datagridview columns collection in design time
Hello, I have a user control containing a toolbar and a datagridview, I want to expose the datasource (all ok) and the columns collection (not so ok). I get a basic columns editor, complete different from the one you would expect, I end up having text columns only and I can't add any new columns. Anybody any idea, I just spend 2 hours googling, msning, ... Thanks, Peter The DataGridView column editor is a private designer, so there isn't any way to get it on your custom UserControl. You could create your own custom collection editor that provides the user with the ability to select different column types to add. -mark DataGridView Prog ...Show All
SQL Server problem with dtexec
Hi I have a SSIS package which pulls files from a network share and loads data into SQLServer Database. When I execute the application using DTExecUI , It runs fine without any issues , but where as when I run it using the command line arguments, It seems to go in sleep mode and nothing happens. I need to kill the package from Task manager. Following is the command I use to run my application Dtexec /FILE "N:\Temp\LoadFirewallData.dtsx" /CONFIGFILE "N:\Temp\LoadFirewallData.dtsConfig" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EWCDI /SET "\Package.Variables[User::RunID]"; ...Show All
Visual Studio Team System Problems/Issues interpreting "Test Results" for WebTest
What is the best way to see which requests actually caused a failure in a WebTest Is there some "view" I can use to see the requests that failed As of right now, I have access to the "Test Rsults", but only tells me how many requests failed. Other than trying to scroll down (potentially hundreds) of request in the WebTest/Requests list, how do I find out which requests have failed, and for what reason Something like a table with the failed requests and the reason is what I am looking for. Unfortunately there is no way to look at only failed requests. Unfortunately it is too late to add this for this relea ...Show All
Visual Studio Express Editions VC# 2005 Express - reg key
Hi, I downloaded the web version of VC# Express, installed and am now trying to register. Clicked on the Register product in help menu, ran through the steps, received "Welcome" email and then "thanks for registering" email. But I simply can not find a reg key. I login into Microsoft Connect, the bonus downloads are there, but there are no listings in the "Product Keys" area. Any help Thanks, Angus. The registration was given to me on a webpage directly after I was logged in with ms passport. It is not e-mailed to you. If you did not save it you can just go through the regi ...Show All
.NET Development TableAdapters and partial classes
Jay, that's an excellent idea... I tried that, and it's not working. I have a project named "NorthwindDataSetTableAdapters". I created a TableAdapter named "CustomersTableAdapter" The generated code has the following: <code> <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Private ReadOnly Property Adapter () As System.Data.SqlClient.SqlDataAdapter Get If (Me._adapter Is Nothing) Then Me.InitAdapter End If Return Me._adapter End Get End Property </code> I created a partial class hanging off the CustomersTableAdapt ...Show All
Windows Forms Scrollbars and Custom Border Painting
I've customized a panel to draw a custom border utilizing WndProc but I have a problem when the scrollbars are displayed, take a look at the lower right portion of my border. I have attached a snapshot of the problematic control and a .NET panel equivalent. I think the corner box is misplaced and not painted on the correct intersection of the two&nbs ...Show All
.NET Development Execution permission cannot be acquired
Has anyone come across the follow error message An unhandled exception of type 'System.Security.Policy.PolicyException' occurred in Unknown Module. Additional information: Execution permission cannot be acquired. No application created in VS.NET 7.1 will run, complain of this error. can anyone help Hello, If you have not yet found a solution to your problem, it sounds like the security policy on your machine may have been misconfigured. I would suggest resetting the security policy for the machine with caspol. MSDN documents CasPol at: http://msdn.microsoft.com/library/default.asp u ...Show All
Windows Forms Who should use ClickOnce?
I have been testing the ClickOnce technology for weeks now, and I am continually asking myself the question: "In what way is ClickOnce designed to be used " Using VS 2005, or the Mage SDK tools requires the developer to know the application URL ahead of time. This is not feasible if you normally vend your software to a business or organization that will then distribute it to their workstations via their choice of web servers, file servers, etc. This would include schools, hospitals, and large corportations. Is the purpose then to publish the software to your own web servers, for ASP model applications only Is it designed to make Windows form ...Show All
Visual Studio Tools for Office Position cursor after inserted nodes
I have a solution that import WordML document fragments into a document. For each document I insert, I would like to position the cursor after the inserted node. I suppose I can use the Selection object and the Move methods in some way, but I don't know how. I would also like to place the cursor just before the end of an element. How do I do this Regard! // Johan ...Show All
Visual Studio Tools for Office Does the client needs .net framework 2?
If I create word document to be filled with a sql server database, and I put a link on my page to that document, Does the User needs the framework installed Hi Luis, To open documents with a VSTO customization, the client machines need to have: - .NET 2.0 framework - VSTO runtime (VSTOR.exe) - Office Primary Interop assemblies - Trust must be granted to the customization assembly. In addition, if the document is on a file share or web server, it must be granted trust. For more details please see this link: http://msdn2.microsoft.com/library/2ac08ee2(en-us,vs.80).aspx Please let me know if you have any further quest ...Show All
SQL Server Trimming characters
I have a field called sku in a table... many of the sku fields have data as ep12345678. I need a sql statement that will update all data in that field from ep12345678 to 12345678. So I need to trim off the 'ep' Any one know how to do that select sku, CASE when len(sku)=8 then sku WHEN len(sku)>8 then right(sku,8) WHEN left(sku,2)='ep' then replace(sku, 'ep', '') else sku END AS cleanSKU from yourTable you can play with the CASE statement to find out the way to handle your data just for presentation. len, left right, replace are functions that help. ...Show All
Windows Forms Custom Fields per line Item
Hi, I am developing a ERP application, and part of this is Order processing / Shipping / Receiving. We have several customers, and some customers require a additional fields for each line item of a receipt and possibly a shipment. Currently the Receiving form collects the common fields that each customer would have, but im not sure how to include the c ...Show All
