Cyresse's Q&A profile
Windows Forms Copy Datagrid data to clipboard
I can open a form - populating the datagrid with the required data, select the upper left corner (which highlights the entire datagrid), then ctrl-c to copy the data to the clipboard. Does anyone know how I can make these last two events happen programtically (the Mouse click and the ctrl-c to the clipboard) Thanks, bob Mark, I am trying to do the same thing ie. copy grid to clipboard so that I can pste it in excel. My problem is I am doing it in a Web Application in which the grid.SelectAll() methos is not availbale. How can I select my grid and then c ...Show All
Visual Basic Wich array type???
Hi I would like to make an array of some sort, with these things: key(int),Name(String),adress(string),amount(int) ... What kind of array can i use to make this type of data collection It should have some of the same qualities of the dictionary array where you search by the key. Unfortunately the dictionary can only store two values.. You can create a small class to hold the individual items: Public Class Person Public Key As Integer Public Name As String Public Address As String Public Amount As Decimal End Class Then create a ...Show All
SQL Server Using variables of Connection Manager, Connectionstring
Hello, I'll spare everyone my diatribe about MS and Booksonline... I considered myself pretty good at Server 2000 DTS. It certainly has it's shortcomings, but there are a couple books on the market that helped a lot. I'm now trying to learn Integration Services, and not getting very far. There are two books out so far. one is poor, the other worthless. What I want to do seems very simple. That is to loop through a series of .txt files, and extract the information into a three table database. So far, I'm unable to figure out how to use a variable in the ConnectionString property of a connection manager. I see how to use variables ...Show All
Smart Device Development Using SqlCeDataReader
Hey Everyone, I've got a datagrid that I am using to select a record to populate another screen. I'm able to create a SqlCeDataReader object using the value of the first column of the selected record in the datagrid, however, when I try to populate the contents of a label field, I get an error stating that there is no data in the selected column. Here is the code: btnView.Enabled = False Dim cnWorkOrders As SqlCeConnection ...Show All
Visual Studio Creating Custom Editor
Hi I have the following requirement: 1) Provide custom editor - with intellisense support 2) Customize property Grid - which will list custom objects etc... 3) Provide custom tool window - which will enable user for data entry 4) Any data entered by user either using property grid or in custom tool window should be parsed and displayed in custom editor I have following queries, I would be glad if you'll could help me with this 1) Should I create custom project types or just support custom editor/custom files in existing project types (supported by .NET) 2) Can I host custom editor, property grid and custom tool wi ...Show All
Visual Studio Team System Enterprise Templates
Hi, I have installed Visual Studio 2005 Team System (Beta 2). I'm wondering if the "Enterprise Templates" are included in this version If so, how do I access them Thanks. Regards, Mikael 1. Since the Wizard you create with the current implementation of Visual Studio Templates and Policy is a class, it should be possible to inherit from this class to create a new wizard with aspects of the old. You will still have to incorporate it into a deployment project, however, and ensure that the project tempaltes are correctly hooked up. 2. You would have to write this code yourself, but I don't see wh ...Show All
Visual Studio Tools for Office Merge Field Collection devoid of merge fields in Header/Footer
If I add mail merge data fields into a header on a document and then iterate the merge field collection, the collection does not contain the merge fields I placed in the document header. Why and where/how can I "get to them" ... You need to give us a bit more information. The code you're trying to use would help. Also - version of Word - does the document contain more than one section - what is the mail merge document type (letter, directory, labels...) ...Show All
Visual Studio Debugging
When trying to debug, I'm getting an error message "The binding Handle is invalid. This VB Express 2005 (not a beta) I downloaded last night. What should I do If you want all the details -- http://blogs.msdn.com/greggm/archive/2006/01/04/509243.aspx ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, ...Show All
Visual Studio Team System Startup error
Can you tell me what the following error means. This error has only started to come up this morning during Team Foundation startup. And I found that the Work Items are no longer accessible. There is plenty of space on my local hard disk and my user account should ahve appropriate permission as I have been work in Team Foundation for several days now. What else can I do to resolve the problem TF30330: Team Explorer cannot write to the project list configuration file. Free up space on the local hard disk. If the problem persists, contact the administrator for your computer to confirm that your user account has appropriate permissions to ...Show All
Visual Studio Team System Two Errors during setup: can't add user and open port
I have two problems during setup of Team Foundation Server RC: One is that the installer can't add a user to the group: Adding the user "MYCOMPUTER\TFSSERVICE" to the IIS worker process group failed. Well, my user TFSService is a user in a Active directory domain called ADDC\TFSService, and I'm not surprised the above command fails, because there is no local user TFSService. But the question is: why is the installer trying to use that user I've done all according to the installation file, except one thing: all but the last step were done using a local user account (maybe a NT-domain user, I'm not sure; the original domain is a NT-domain, but ...Show All
Microsoft ISV Community Center Forums Excel edit mode
How can i detect "edit mode" in excel macros Thank's for idea(s) Hi, The support engineer needs some additional information before he can research this for you. *** After reviewing the post, I understand that you want to write VBA code to detect if an Excel cell is in "edit mode". We cannot find related property in Excel object model. The Excel object model reference is in the following link: http://msdn.microsoft.com/library/en-us/vbaxl11/html/Welcome_HV01134775.asp Could you let me know the detailed scenario in which you want to implement this functionality *** th ...Show All
.NET Development Unclosed Literal String
I have an XML with an attribute called Text="Procedures & Practices" in the XML, I replace the & with & and send it to a web service. On the web service side, when I attempt to load the xml, I get the following error: There is an unclosed literal string. line 2, position 762 Any ideas Either way this should not happen. The XML Serializer used to transmit web requests should properly encode whatever data you are trying to send. Can you provide more details The web method declaration, and the snippet of code you are using to call it and the parameter data so we can debug it. ...Show All
.NET Development Creating DSN to SQL Server in the code.
Hi. Can somebody tell me how to create a system DSN for SQL Server programmatically in vb .net The following code always fails to create the DSN. What am i missing Private Sub Build_SystemDSN_SQL() Dim ret%, Driver$, Attributes$ Driver = "SQL Server" & Chr(0) Attributes = "DSN=" & mstrDSNName & Chr(0) Attributes = Attributes & "Server=" & mstrServerName & Chr(0) Attributes = Attributes & "Database=" & mstrDBName & Chr(0) Attributes = Attributes & "Uid=" & mstrUser & Chr(0) & "pwd=" & mstrPwd & C ...Show All
Smart Device Development Localization in VS2005
I'm working on a project that i started with VS 2005 Beta2 few months ago, the target platform is a Windows Mobile 5.0. Now i have changed to Visual Studio 2005 Team edition, and i have a strange problem with string resources. Well, i yet don't have a actual device to test this, but i don't think that's an issue... some info: I have created a basic string localization, using a resource manager which loaded a resource file, lets say "MyResources.resx". That is added to project root. There is added additional resource files for different languages, "MyResources.fi.resx", "MyResources.sv.resx"... Th ...Show All
