charlie_mtz's Q&A profile
Visual C# How to update a combobox that contains objects ?
Hello, I have a class that look like (simplified) : public class Profile { private String _name; public String Name { get { return _name; } set { _name = value; } } public override ToString() { return Name; } } Then, on a form I have a combobox that contains Profile objetcts : Profile profile1 = new Profile(); profile1.Name = "John"; comboBox1.Items.Add(profile1); My problem is when I up ...Show All
.NET Development Exception: "...The connection was closed unexpectedly." (sometimes)
RE: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=209544&SiteID=1 I have a windows app connecting to a webservice. In some situation(s) (haven't narrowed it down enough), I get the following exception: The underlying connection was closed: The connection was closed unexpectedly. When this exception is thrown, it is calling a method of a web reference. The SOAP data transfer fails. Now the situation that we experience this is on a laptop in the field that is using a WWAN connection in at least one location. It works fine in the lab at the office. Anyone have any ideas what could be causing this Wrapping the method c ...Show All
Visual Basic Dll Hell
Hello, I used to write my programs in vb6, Now our company has bought vbnet 2005 with my blessing. I was glad I could experement with my new toy. But still I have to write a dll to use on a client PC with a vb6 program . Ok I made a com class and implemented classid,interfaceId and EventsId and I used Interface to make the properties visible in my vb6 project. I haven made a snk file (why I stil don't understand), I registered the dll and tlb file with regasm. And everthing works great on my develop PC. But now I want to use the vb6 exe on a client PC how do I do that Greats John An snk fi ...Show All
Visual Studio VSS Add-in Missing after Installation
I have installed Visual Studio 2005 RC1 and VSS 2005 RC1 on a machine that has never had a previous beta. The VSS add-in is not available from within VS2005. I did it on another machine and it worked fine. I also uninstalled and re-installed VSS with no effect. VSS works fine except that it is not integrated with VS2005. Has anyone seen this problem How can I install the Add-in manually Thanks, Steve Wright Hi, I have read through the entire thread and I seemed to have followed all instructions and suggestions, evene reviewed my registry keys... but there appears to be one critical thing missing that I c ...Show All
SQL Server XML Source (File From Variable) not getting full path
I am using a XML source component and pasing a file name from variable, however it doesn't get the UNC from the file path from the variableFile. For instance, say I have a file at: \\192.168.1.1\D$\indir\file_a.xml. and I set this as a variableFile and get the variableFile int my XML Source, it will try to get indir\file_a.xml and leave off the \\192.168.1.1\d$ . Does the source not like $ What can be done to fix or work around this Nevermind my last question, I found the problem, a part of the path wasn't getting set properly in my parent pack vars. It looks like it didn't get set because another v ...Show All
Windows Forms How many projects should I use for my solution?
I am working on a custom software for a local private school. The application has four distinct functions. 1) A calendar function similar to Microsoft Works Calendar. - The user can add appointments, workdays, days off, etc. and the event and time will be display on the specified date 2) A address book feature - The user can input a variety ...Show All
Visual C# What's the difference between += and =+?
Is there a difference between the valid += and the mysterious =+ They both compile, is this correct As mentioned, the unary plus operator is the complement of the unary minus operator. For unary minus: n = 42; n = -n; // n is now -42 For unary plus: n = 42; n = +n; // n is still 42 The unary plus operator is a NOP, but included for mathematical completeness, as far as I understand. ...Show All
SQL Server Trying to do too much in a view... I think?
Hello all, I have a table that contains a whole bunch of clinical statistics. There are some other fields I would like to add, but they are best created on the fly, so I thought I would do this with a view. I can create some of my dynamic fields (like BMI below), but when I try to use them again in the view it doesn't work. (ie, I get an error when I try and include the case statement bit). Does anyone know what I can do Kitty. CREATE VIEW dbo.vAAA AS SELECT BMI = (WEIGHT / POWER((HEIGHT/100), 2)), BMI_GROUP = CASE WHEN BMI < 26 THEN 0 WHEN BMI >= 26 THEN 1 ELSE NULL END -- other bits removed ...Show All
Visual Studio Visual Studio .net 2003 Help does not work
Hi! I have found yet another problem. I am trying to read through the tutorials that came with this progam and sadly, it does not work either. I get a server not found error in what looks like a browser incorporated in the software. Another thing that was interesting, the registration for this software does not appear to work either. Is this why I am seein visual studio .net 2005 There is so many bugs in 2003 that they decided to release a new version as a cleanup 2 years later It doesn't give you a nice warm feeling. I am new to programming with the visual studio tools so if anyone could point me ...Show All
Visual Studio Stepping thru code the debugger moves afer several F11
Not sure what caused this problem, When i debug and step into code i need to press F11 several times for the debugger to move to next statement. No clues on how to fix this ! Removed Team Edition for Software Developers VS2005 and I reinstalled Team Edition for Software Architects. But the problem does not seem to go. The debugger does not move to next statement without 5-6 key strokes (F11 or F10) ...Show All
Windows Forms Some problem about columns of DataGrid
who know How to add/insert a column to datagrid How to lock a column in datagrid like MS Excel How to hide/show a column please Visit this resource for a bunch of info on the datagrid. http://www.syncfusion.com/FAQ/WinForms/default.asp#44 ...Show All
Smart Device Development resource or assembly not found when catching exceptions
Hi. I swear I've been able to do this before. Using .NET CF 2.0, WM5 smartphone. Anytime there is an exception being caught, I want to see the inner exception message or just the general exception message but everytime I look at it, no matter what type of exception, i always get the message that a resource or assembly could not be found. The proper namespaces have been declared, what am I doing wrong Please see this: http://blogs.msdn.com/netcfteam/archive/2004/08/06/210232.aspx ...Show All
Visual Studio Installation Requirements
I have built an app that references Microsoft.ReportViewer.Winforms to use an instantiation of LocalReport. What is necessary in order to migrate my app to another machine that doesn't have VS 2005 installed I have already installed the .NET Framework 2.0. Is there anything I have to do with that ReportViewer assembly since it isn't one of the standard System assemblies Thanks. Thank you both for the responses. Although I couldn't copy the files using Windows Explorer, I was able to do so by drilling down through the directory structure using the Windows Command Prompt. I copied the three .dlls via a fileshare to the ...Show All
SQL Server Calculate Median Value
I am converting a report created using Crystal Reports 10 to Reporting Services. The report contains a list of items with dollar values. The original report displays both the Average and Median value. I can easily ( using avg(Field1.Value!) ) determine the average but cannot find a function to determine the median. How can I add the Median to the report Thanks in advance, Greg Median is not currently supported, and is on our wishlist for future releases. For now, you can use custom code to calculate median: 1. define a array in custom code and a function that takes ...Show All
Microsoft ISV Community Center Forums Help required.....
Can someone help me please I am trying to create a VBA User form to open up individual Spreadsheets rather than having to have all the sheets open (as with a workspace). I have designed the user form and now need to code the command_buttons. However I am stuck with what code I need to use. If it helps, I need to program 7 buttons, 6 will open spreadsheets and one will open a MS Project file. This is fairly urgent as I have to have ready for this afternoon. I know that I am cutting it fine but you are my last hope. I can use the workspace method if I need to but as I am only using a laptop with limited memory, it slows it down to a s ...Show All
