VoiceOfExperience's Q&A profile
Visual Basic Should I use a List, Arraylist or something else?
I am writing a scientific datalogging program and have created a class which stores and handles all the actual data as it arrives from the various instruments. On a timer_tick I want to take a snap shot of the data. I have tried this using Public Class DataSet Public DataTime As Date Public ElapsedTime As Double = 0.0 Public Temp_T0 As String , Temp_T0_dbl As Double etc... Public CurrentData As New DataSet Public Shared LoggedData As New List( Of DataSet) however on the timer_tick I use LoggedData.Add(CurrentData) the whole list is overwritten by the CurrentData values. The LoggedData.Count increases but all the items become the same as CurrentData ...Show All
Windows Forms Multiple selection checkbox
Is there a control that list checkbox and support multiple selection I checked CheckedListBox and it doesn't support the multiple selection. How can i do to support it Is there any article out there for it I'd prolly need to check for Ctrl+shift everytime the user check an item. Thanks, Thanks, I guess the only way is to have a handler to do it. I thought maybe a control in .net supports it .. cuz it is a pretty standard behavior in many applications. ...Show All
Visual Studio 2008 (Pre-release) XPath relative binding causes StackOverflowException
Lee d has been helping me with some relative binding problems I'm having. Basically I'm using an XML file for the test data and the relative binding is causing a StackOverflowException. All the binding is defined in XAML: Parent StackPanel defined as < StackPanel.DataContext > < Binding Mode = " Default " Source = " {StaticResource CatalogDS} " XPath = " /Objects/Instances/Instance " /> </ StackPanel.DataContext > Relative that causes the exception: < StackPanel DockPanel.Dock = " Left " Margin = " 0,0,0,0 " x:Name = " BillToStackPanel " Orientation = " Horizontal " DataContext = " {Binding XPath=BillTo} &quo ...Show All
Visual Studio Upgrading VS6.0 Add-in to VS2005
Hi, I have a Add-in (written in VC++) that works fine with VS6.0 We are now upgrading to VS2005 IDE and this Add-in does not work. It does not even build well. There used to be a directory "Objmodel" in the VS6.0 installation. The Add-in uses this directory. This directory is no longer present in VS2005 installation. How should one upgrade 6.0 Addin to work in 2005 I thought merely opening 6.0 project in 2005 would do the needful, apparently it is not all that easy. I can share my code if someone is willing to help, it is just 15 classes. Thanks in advance, -Shrikant Thanks Carlos. At this moment I am going through your site. Does VS2005 allow using MFC I think it will have to be unmanaged code ...Show All
Visual Studio Team System TFS Migration to a new server
Has anyone been successful in migrating a TFS server to a new machine with a new name We are currently still using the RC, but I was surprised at some of the problems I had during a migration. Specifically Sharepoint, I don't know if its been improved with the RTM, but the restore procedures I saw were just wrong. The 1st trial I did had Sharepoint completely messed up. I finally fixed it, but it took my own understanding of Sharepoint, not the backup\restore procedures provided on msdn. Has anyone else had these issues http://msdn2.microsoft.com/en-us/library/ms404883.aspx :) ...Show All
Windows Forms Extracting System.Windows.Forms.MessageBoxButtons from MsgBox type bitmask in C#
Hello, I have the following code that i use in VB.NET with the MsgBox command and it works perfectly. retDblVal = MsgBox(msgStr, CType(msgTypeMask, Microsoft.VisualBasic.MsgBoxStyle)) My msgTypeMask contains the mask for showing both the proper buttons (yes/no, okonly, ect...) as well as the proper icon (question, critical, ect). The problem im having is converting this code to C#. As we know, there is no MsgBox command in C#; you have to use MessageBox.Show(). Using this method, there is no way to simply pass a mask with both the button style and icon style information into it. You have to pass a value for the type of buttons, as well as the type of icons. And this is where im having difficulities. How do i mask out the button style and ...Show All
Visual Basic File Server in VB?
How can I set up a File Server in Visual Basic, so that when I navigate to 'http://<my ip>/files/example.txt' it corresponds to a file on my disk Sorry, my initial question was not specific enough. Basically what I wanted was a web server program that can serve files other than just HTML files. I've figured it out myself anywho. ...Show All
Visual Studio Tools for Office Actions Pane in Word 2003 (VSTO SE - Beta) - newbie question.
Hi. I've been developing Office solutions int .Net for about a year now. My company had some proprietary code that was letting us place user controls in Word (Document Map) but it's time to phase that hack out with Office 2007 coming. So I downloaded VSTO (the version currently distributed) and installed it. Then I started looking around for code samples how to attach a custom Actions Pane. It appears that if I start an Word 2007 project in VS2005 there is ActionsPane but if the project is for Word 2003 - there is no such property and no obvious way of getting a public property that would do. I'm not sure if I'm doing something incorrectly and it seems more and more frustrating after 3 days of digging around. After initial atte ...Show All
Visual C# System.Collections.Generic.List
Hi, I have a web method that that retrieves an 'Type[]' array. Next, it create a List<MyType> and then loops through the array and copy a data from it into List<MyType>. Here is example; [Webmethod] public MyType[] SomeWebmethod(Paratmers someParameters) { Type[] typeArray = retrieveData(someParameters); List<MyType> mytypeList = new List<MyType>(); for (int i = 0; i < typeArray.Length; i++) { MyType mytype = new MyType(); // copy data into mytype converting data to MyType mytypeList.Add(mytype); } return mytypeList.ToArray(); } I read up on public List<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter) and thought that I could perhaps use it. But I have an issue with ...Show All
SQL Server Grouping issue....Long
This is going to sound SO silly but I am serioulsy baffled and I was wondering if anybody on here has ever experienced this ....or perhaps I am just missing somehting. I am fairly new to reporting services and have been getting reports done on a wing and a prayer so far. I have a puzzling issue: I created a summary report that had only one group (person type) ...unfortunately I need to add 3 more groups which are Div, Reg, Area.....I figured this would be simple I could just go in to the report and add them by right clicking the table and adding group. They DO get added to the report but they do not "group" per say. However, I can go through the report and see the same division repeated several times and not kept together. ...Show All
Visual C++ performance Comparison between C++, C# and COBOL
Hi everyone, Currently our company is in the process of converting from a mainframe environment to PCs. As a pilot we took an application that processses about 5 million rows with about a record length of 7000 bytes the stats were amazing C# it took 3 minutes 17 seconds, C++ (native and not .net) 1 minute 28 seconds and believe it or not the COBOL program took only 45 seconds. The program has a simple read of a record, process few business rules and replace certain bytes in the string and write back to a new file. I expected C++ to perform better. does anyone has any idea why the COBOL program performed better than the C++ program. The data files were the same, the logic were the same, the machine it was executed was t ...Show All
.NET Development timestamp
Hello, I was hopeing if someone might be able to tell me what the datatype should be if I want to set hold the value of "timestamp" from a data record from a SQL Server 2005 database. I'm using VB.net. I want to use the field in a "update .. where timestamp = <old timestamp>" type of update statement. Thank you Hi, Thank you for your quick response. I was trying to find out how to define the field in VB.net. Such as you would define a string field as "dim x as string". How would you "dim" a timestamp field Thank you. Dave ...Show All
Smart Device Development Debugging very slow
I have recently converted an application from VS.NET 2003 to VS.NET 2005. In VS.NET 2005, when I set a breakpoint and try to Step Into (F11) or Step Over (F10) lines of code the response time to get to the next line is about 4-5 seconds. This occurs with even very basic lines of code (such as x += 1). Debugging the same project in VS.NET 2003 had no noticeable lag time for Stepping Into simple lines of code. The application also runs normally on the device (in VS.NET 2005 debugger) when no breakpoints are set. I am debugging on a Dell Axim X51v Windows Mobile 5 device (not emulator), using wireless connection and static IP address. Can anyone tell me what the problem may be or what I should look at in my environment to fix the issue ...Show All
Visual Basic New projects won't run, no errror messages
I'm using Visual Basic under Visual Studio 2005. I have older projects that work just fine. But now if I build a new project, the executable doesn't display the first form, and terminates immediately. There are no logs showing anything is wrong. I don't see anything useful in the Application Event log viewer. I get "Build Successful" when I click Build from under Projects. If I hit F5 or the green arrow under debug, I get something similar. The screen flickers and shows "Ready". I'm expecting Form1 to show. I'm carefully comparing new projects to old ones that work, but don't see any obvious differences. This is driving me up a freaking wall. interesting. What happens if you try ...Show All
Visual Studio Team System Customize Build Summary
Hello All, I have customized my build to execute several task. I also use the Message task to add some trace in the log file. Note that all my tasks are executed in the AfterComplete task but I can move them. Is it possible to add some new lines in the existing Build Summary so I can directly see some output without having to open the log file Thanks, Swaha is correct that the GUI itself cannot be customized. You can add your own custom build steps from a custom msbuild task. Aaron shows how to do that in http://blogs.msdn.com/aaronhallberg/archive/2006/08/29/730447.aspx . Buck ...Show All
