AnthoDesigns's Q&A profile
Visual Studio Express Editions SImple Calculator problems
can anyone help me on how to make decimal point and to also perform the order of operations .. doing more then one problem at once such as 2+3*4 thank you SCott Rewrite your button code to concatenate the digit to the current Textbox display. For example: Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click Txt1.Text = Txt1.Text & "1" End Sub You can do the same for the Decimal button, but you will have to check that the Textbox doesn't already contain a decimal point. ...Show All
Software Development for Windows Vista Rehosting Designer and name change through properties grid
I have rehosted the designer and attached a property grid to it. I use the Name of the root activity as the name of the assembly when I compile. However, when changing the name of the root activity through the properties grid, the Metadata value for Name does not get updated. So when I compile, it compiles under the old name. The workflow does however get serialized with the correct name Is there something I missing with this or is this just a bug in WWF Original Name - CustomWorkflow New Name - SampleWorkflow Compile - Assembly Name = CustomWorkflow.dll Serialize to xoml. Deserialize xoml and Compile - Assembly Name = SampleWorkflow.dll Hi Nate, Are you still having this issue on t ...Show All
Visual C# Does 'foreach' contain an accessable index?
Hello, Just to understand C#. Can I use the 'foreach' loop to get an index back from an array //Example foreach ( Citizen citizen in MyTown ) { if ( citizen.firstName == mySearchedFirstName ) { return citizen.lastName; //<=== here I would like to get the index back === } return null; } regards, Henk Just so you know: The reason "foreach" cannot give you an index is because it can be used to iterate over collections that do not provide and indexing operator. For example, the elements of a Linked List cannot be accessed via an index, but it can be iterated over via "foreach". ...Show All
Visual Studio Express Editions Event procedure changes name when I cut and paste control to different area
If I cut and paste the control I get a number added to the event procedure: First it was: Private Sub btnGetList_Click( ByVal sender.. If I cut and paste once, it is: Private Sub btnGetList_Click_1( ByVal sender... And again: Private Sub btnGetList_Click_2( ByVal sender... But all my code remains in the first instance of the procedure. Is this normal It sure seems annoying. Actually it's a good thing. The control you paste is a new control. If you desire the same code for each control: There will be a handles clause at the end Handles ControlName.Click This can be extended thusly: Handles ControlName.Click, ControlName2.Click, ControlName3.Click ...Show All
Visual Studio Team System Problem with source control (Data is Null. This method or property cannot be called on Null values)
Hi, VS hangs up during project loading. Re-getting the project from source control does not help. VS installation does not help either :( The following error in the server's event log: Edit: it does not hang. After a few minutes in unfreezes and says 'look into your server event log'. the project is open as source-control ounbound. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6/26/2006 12:48:55 PM Machine: VSSERVER Application Domain: /LM/W3SVC/3/Root/VersionControl-1-127957963704837131 Assembly: Microsoft.TeamFoundation.Common, Version ...Show All
Visual Studio VSS Server 6.0 & 2005 Side By Side
Can I install VSS 2005 Server on a machine thats running the VSS 6.0 server process Will there be conflicts in the registry, databases etc What surprise!!! I was thinking VSS server was kind of service or so. But, looking closer, it's ok, there is no service under this, just a file structures. So.. If I install VSS 2005 client/server (I think this will be only the admi tools, there is not a Server product in VSS) on my server with VSS 6d client, my database will not be changed Is there no differences between database versions And my VSS 6 client, will be upgraded to 2005, or I will be with 2 versions Other question. I need to move to change my VSS 6 database to another server. I need all my pro ...Show All
SQL Server OK to use one stored procedure for inserts and updates?
I have seen a couple examples where the person used ONE stored procedure (call it SaveOrder ) was used for both Inserts and Updates. This would be opposed to having a InsertOrder and UpdateOrder . I'm assuming there was some branching code in there to determine whether the record already existed or not. My question is this: Is this a good practice It seems like it might save some duplicate coding. Just looking for some opinions- Thanks, Jim Hi, I would alway prefer a more granular solution rather than a monolithic approach. Otherwise procedure could get (depending on your code) hard to read and debug. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Tools for Office this is urgent!
Our current release is already about 1 week late and we still can't get VSTO deployment to work properly! we get the document running ok, locally & remotely.. and then we publish a new version to the same location, and security errors start to appear :( another problem we r facing is when attempting to publish the word document to a remote site on a local server (url: http://testsrv/Alpha3/Templates ) we get the following error: Failed to connect to http://testsrv/Alpha3/Templates with the following error: unable to create the web http://testsrv/Alpha3/Templates . Server error: the URL http://testsrv/Alpha3/Templates is invalid. It may contain Illegal characters or be too long. by the way, the directory i am attempting to ...Show All
Visual Studio Team System How to generate code in c# for a webtest
Hi, I have recorded a webtest in VSTS and generated code for it. Unfortunately, it generated code in VB but I am only familiar with c#. Is there any setting that I need to change to generate code in c#. Thanks. Thanks Christine and Slumley for your replies. Now I can play around . Thanks a ton. ...Show All
SharePoint Products and Technologies Sharepoint Services 3.0 - Language Packs - Roadmap
Hi, I don't know whether this forum is a right one to find an answer for my question. Anyway, I'll make a try... Where can I find a roadmap for language packs for Sharepoint Services 3.0 When specific language pack will be delivered To be more specific, I 'd like to know when east-european language packs will be available. Thank you, Mark No, sorry, we don't have the answer for that here. I'd recommend trying one of the SharePoint Services newsgroups: Windows SharePoint Services Development Windows SharePoint Services General ...Show All
Visual Studio Team System CTP5 - Error reopening DB-project
Hi Getting this error message(box) when reopening a project made with CTP5: "An entry with the same key already exist" Brumlemann Solution Architect Update: Made an update to a another posting of mine that turned out to be related to this. Hi Sachin I'm not experiencing this anymore. Actually not using the CTP5 acvtively anymore except from the odd schema compare and sync. Waiting for CTP6 since a couple of the other things I've reported is blocking us from any serious usage. These things have been aknowledge by u guys and scheduled for CTP6 so I am eagely awaiting that :-) You might check out my other posting mentioned above. Brumlemann Solution Architect ...Show All
Visual C++ How to configure runtime library in MSVC++ 8 (2005)
hi, We can configure the runtime library option in MSVC++ .net (2003) using a drop-down list in "Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library" . I don't see the link "C/C++" in the MSVC++ .net 8 (2005) "Project -> Properties -> Configuration Properties". Can you kindly guide me how to set the run time library for multi-threading in MSVC++8 (2005) Click on one of your .cpp files, then go to properties. Additionally, all VC++ 2005 crt libs are multi-threaded. Choices are static, dynamic, debug and release. The preferred method is dynamic for both debug and release (MD and MDd). ...Show All
SQL Server flow layout in rs2005
I have a report that needs to show postal addresses. The address is broken down into several fields. The problem I have is some of the address parts are optional. If they are empty, I'm left with nasty gaps in the address. I'd really like next label to reclaim the space of any empty labels. a quick example A full address would look like this.. customer name address line 1 address line 2 town county post code if address line 2 isnt given, I get: customer name address line 1 town county post code but I want: customer name address line 1 town county post code Can anyone help Many thanks, Paul Anyone know Even if the answer is "sorry, can't do that". Could really do wit ...Show All
SQL Server duplicate primary key error
Im gettig the error " checkout whick table has this primary key defined 'pk_employees' (if u r not aware , use the syskeys system table to get that info) . ur code may be adding (repeating)values to that table either directly or thru a trigger.....try to resolve it from there ...Show All
Visual C# Creating a new class that can be set to a value
Im trying to create a class or struct that can have a value, i'm basically trying to create my own kind of string or int. how do i do that ive got code, but it doesn't work public struct MyInt { } public void SetMyInt() { MyInt I = new MyInt(); I = 34; } I get a conversion exeption, cannot implicitly convert type MyInt to int public class MyInt : int { } public void SetMyInt() { MyInt I = new MyInt(); I = 34; } I get a int exeption, cannot derive from int Hi Greg You can't inherit from any value type (int, long, etc. or any other struct) or from sealed classes (like string). -- Paulo Morgado MCSD.NET - C# MVP https://mv ...Show All
