71EFBB98-D1FE-4eff-BAC5-F94AC74's Q&A profile
Visual C# ArrayList copying a class
I am reading a .csv file and loading each record that I read into a class then populating the class into an array list. The issue I have is that the class contains strings and seems to be copied by reference in the array list. Therefore causing an issue when adding additional records the reference is just being written multiple times in the arraylist with the same pointer. A friend suggested I use a dataset instead of an arraylist. I have to do sorting and filtering in which I would need to write functions for. I am not sure how to clone the class into the arraylist so that each entry is unique by value and not by reference point. Any help o ...Show All
Windows Forms how to populate a datagridview?
how can i populate a datagridview without a database i'd like to use it as a list. Here where some pretty good references I used to populate datagrid... http://msdn2.microsoft.com/en-us/library/ms171600(VS.80).aspx There are some examples on different ways to create bound/unbound and display data to the grid Walkthrough: Creating an Unbound Windows Forms DataGridView Control Describes how to manually populate the control with data. How to: Bind Data to the Windows Forms DataGridView Control Describes how to populate the control with data by binding it to a BindingSource that contains information pulled fro ...Show All
Visual Basic Question about Interop.Excel.dll
Hello. I originally wrote an app in VB6. This application processes a text file, converts it to a *.csv file, and then loads the CSV file into Excel and formats it all nice and neat, etc. When in VB6, when I distributed my *.exe, I needed to distribute or ensure that the Excel.dll was available to the end user. I have now updated the application to VB2005. I currently need to Interop assemblies to execute the program : Interop.Excel.dll and Interop.Scripting.dll -- these files need to be in the same directory as the executable assembly I produce. If I rename or hide one or either of the assemblies, I get an exception mor ...Show All
Visual Studio Tools for Office Microsoft Office 2003 Save My Settings Wizard
How I can save the add-in settings with 'Microsoft Office 2003 Save My Settings Wizard' What I should do for this Hi Sergey I think you are asking for the Com-Addin Settings to be saved as these are applications that are installed on the machine these will not be saved by the My Settings Wizard. The registry key for Com-Addins normally only refers to the COM Object to construct and whether to load behaviour. The reg key for the Com-Addins is HKEY_CURRENT_USER\Software\Microsoft\Office\appname\Addins\xxx where appname is Word/Excel/Outlook and xxx is the com object constructed. On later versions of office there is the option of havin ...Show All
Visual Basic How to detect CANCEL with the FolderBrowserDialog
I need to know if the user chooses cancel when the dialog appears other than saying, if Old Selected path <> new Selected Path. Thanks. The FolderBrowserDialog should have a method ShowDialog that returns a DialogResult. You can use this return value to see what button was pressed. ...Show All
Visual Studio Team System How does sequential databinding work on load test.
Yes, I've read the help here: http://msdn2.microsoft.com/en-us/library/ms182546 It says: When your Web tests are assembled in a load test and run on a remote rig, you must consider how the individual agent computers use the bound data. For example, when you are using four agents, each agent, not each virtual user, gets a complete copy of the data set and that data set is shared by all virtual users created on that agent when the access method is sequential or random . But what does 'gets a complete copy of the data set and that data set is shared by all virtual users ' that actually mean Say you have two virtual users. Will both users, in ...Show All
SQL Server Script component to send email
Is there a way I can on any exception, call my .NET code using System.Mail in SSIS 2005 and use my custom code to send emails rather than the Mail component The mail component sucks, you can't change the look & feel of the email being sent using CSS but if I can fire off my own code to send the email, then that would work great. To ensure your script task fails on any error, you would create an On Error event handler and add the task in there. The script task can use just about any .Net component but the system stuff is there already. Try System.Net.Mail for a start and see if that does what ...Show All
Windows Forms Using Access in a VB Project
I am using the Access Application object in a VB project. I'm using the function DoCmd.OutputTo of the Application class to output a snapshot file to a particular directory. However, I constantly receive an error stating that I must install a printer (error 2202). The code I'm using looks very similar to this:.OutputTo acOutputReport, "", "Snapshot Format&q ...Show All
SQL Server Generating scripts in SQL 2005
In SQL 2000 EM you were able to generate a script that only contained GRANT statements, (by unchecking the CREATE & DROP commands on the 2nd tab, and selecting Object Permissions on the 3rd tab). From what I can see in SQL 2005 MS you can't do this. All that you can seem to do is generate a sciprt containing all the CREATE statements with the GRANT statement(s) after each object. This is a bit of a pain as I want to script all the object permissions, without having to wade through hundreds of CREATE TABLE and CREATE PROCEDURE statements. How can get just a script of GRANT statements Thanks. It is not possib ...Show All
Visual C# Visual C# Communities
Does anyone know of active Visual C# communities, whether they be a forum, irc, or news group Also check out: http://channel9.msdn.com/ While not C# specific, there is some great content here. One other that has some occasionally good info is: http://forums.apress.com/ HTH. ...Show All
SQL Server Does anyone knows how to FTP a report from Reporting Services?
Does anyone knows how to FTP a report from Reporting Services I have several FTP sites I need to send reports to, but I cannot find a way to do it. I have tried to search the net for the answer, but I keep reading that you can FTP a report. But It does not say how. Help! thank you drey Hey Drey -- Unfortunately, there is no direct support for this "built in" to SSRS. If you are willing to invest a little time, you can implement this functionlity yourself, however. You'll need to build something called a custom delivery extension (just like we have an email delivery extension and a fileshare delivery extension "built in"). The "FTP ext ...Show All
Windows Forms MainMenu Designer - Microsoft.VisualStudio.dll in VS2005
Hi I would like to continue with the MainMenu class in .NET 2.0 and VS2005, but the Designer doesn't work anymore. If you use the menu designer it now suports the MenuStrip instead. If I look in the assembly references for the tools that VS2005 uses the Microsoft.VisualStudio.dll (which hosted the Designer for MainMenu in VS2003) is still included, but I can't seem to use the Designer anyway. Any ideas The reason, by the way, that I would like to continue with the old MainMenu is that it is based on Win32 HMENUs and I need to exchange it between managed and unmanaged code. Thanks ///Jorn We looked for the s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. storing of directx sample
How does directx stores it's samples I have a 22KHz WAV file , with 8 bit's per sample . I load the wav into a buffer. I want to create a pointer to go over a locked portion of the buffer , sample by sample . What cast should the pointer be is it double byte or what A general theme in DirectX is that it will give you a pointer to the raw block of binary data - it doesn't tend to format it nicely so that your language/program can easily walk through it. As such, if you've got 8 bits per sample, you'll want a pointer to an 8bit quantity. You don't mention your language/IDE, but if you're us ...Show All
.NET Development unable to connect to SQL server
hi everybody! I am just a beginner in asp.net. i am trying to connect to the sql server and getting an error: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. the code line for connection is : cn.ConnectionString = "Data Source=DENVER; Initial catalog=pubs; user id=sa ; Pwd=" right click on the server name - properties gives a message saying only sysadmin can access this feature. do i need to change something in code please help. Hey, sa is the system account; do you have access to that account and is it a blank password Also, if logging ...Show All
Visual Basic Macros on powerpoint
I am trying to write a role over button in powerpoint for a kiosk presentation but can not get the macros to work. Has any one got any tips or help for me ...Show All
