Justin-Josef Angel's Q&A profile
Visual Studio Express Editions Alternately Change Colours
How can I make control colours change alternately I’ve used the property window to set the colour for a button, but then thought it would be fun to have the colour keep changing every second (or whatever time period I choose), but I can’t figure it out. How can I do this Thanks for your advice. Regards, Steve AliQ - it sort of worksed. I put the timer on the form, selected1 second etc etc - but what happens is the button changes colour after one second and stays at that colour. I'd like the button to keep changing between 2 (or more) colours. Dave - thanks for that, I'll give it a try and let you know tomorrow if it works. Steve ...Show All
Visual Studio 2008 (Pre-release) Databinding to CLR objects
I have seen many examples of Databinding with validation and source updating, where the CLR object being bound to has both getters and setters for each of it properties. For example: public class Foo { public string Bar { get... set... } . . . } What I have not seen is any example of Databinding with validation and source updating, where the object being bound to has a readonly property and a seperate method for setting the value. For example. public class Foo { public string Bar { get... } public void SaveBar(string bar) { // Code to update the value of bar on a server, database, remote object, etc. } } Are there examples of this anywhere Is it possible This seems like a very common scenario, to hav ...Show All
Visual Studio VS 2005 Beta 2 with .new Framework 2 (release) and VS 2005 SDK (October)
I had VS 2005 Beta 2 installed and working with .net Framework 2 Beta 2. This morning I decided to try out the DSL tools. This required replacing the .net Framework 2 Beta 2 with the released version. Then installing VS 2005 SDK. Eventually I got everything installed. But now VS 2005 won't load. I get the splash screen with the note about the VSIP Licence Required (I read the threads indicating that this didn't mean anything). So will the DSL tools work with Beta 2 of VS 2005 Thanks Chris. Visual Studio is bound to a specific version of the .NET framework, and by rules of the .NET framework only one version of the framework can be loaded into any one process at a time. If the DSL tools require one version of .NET, and VS nee ...Show All
Visual Studio Team System Merging Labels
I have a label that touches several files in two different changesets. I want to use that label for a merge. The VS IDE gives me an error message "No items match $<path> in the label myLabel@$/<path >". So then I figured this could only be handled with the command line merge. I tried this: tf merge /recursive /version:LmyLabel /preview /noprompt $<frompath> $<topath> And it gives me essentially the same error. If I ask TFS about the label "myLabel," it gives me a nice description of the files that are in it. Then I decided to try the command line merge using a changeset spec that is synonimous with that label (e.g. C305~C306). This worked. So is the final conclusion that TFS can't ...Show All
Visual Basic Command output from a Windows Application
Hi, I have a application created in VB.NET which can be run as a regular GUI app or run from the command line (with command arguments). If the application is run in GUI mode it will give some messages to the user via MsgBox. The problem is that I want to give the same messages to the user if the application is run in command mode, however Console.WriteLine does not work if the application is compiled as a Windows Application. I can not convert the application to a Console Application as there are other functionality that will break. Is there a way of redirecting the output to the console window from a Windows Application ....or any other way of writing text output to the console windows that the application was started from (when run in ...Show All
SQL Server Couldn't connect to reports
Hi, I'm not able to browse through http://localhost/reports . When I'm trying to connect it gives me "Server Error in '/Reports' Application."At the same time I'm able to view Reportserver.At the same time I'm able to view Reportserver.(i.e)http://localhost/reportserver please can anyone suggest me some solution to this problem.. Server Error in '/Reports' Application. Hi, What are the security settings in IIS for both sites Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Windows Live Developer Forums Account lockout
Hi everyone, I know when you have a few failed request to the MSN Spaces API that you are locked out for 24 hours, but I just wanted to complain about it some more. 24 hours of no development is a real strain when you have deadlines to meet. I would ask the MSN Spaces developers of the world to join with me in the crusade to get one or both of the following: 1) A different message when you are locked out (something other than 'Access Denied') 2) Get the lockout time down to an hour or two. If we could get both, that would be awesome. So, who's with me And who from MSN can make these very simple changes ...Show All
Visual Studio Team System Merging: How is the target branch determined (or: how to merge)
Hi, I am trying to merge a changeset into another branch. I'd like to know how Team Foundation Source Control determines what target branches are possible to choose. Let me explain by examplifying. My branch setup is this The root is branched into 2 separate branches, A and B A is later branched once more, so we have A and A.a. Now, I'd like to merge a changeset from the branch A.a directly into B without merging the change into branch A. Is this possible The target branches I get when I choose the A.a source tree is only A, not B. For the simple case this is true but I am going to write a blog post that shows how this fails for a lot of the complex scenarios and why we decided not to do it. Now that does ...Show All
Windows Forms is there a limit on Controls contained in VS 2005 .NET Form ? handle creation exception
I get a Error creating a window handle upon trying to create the 9937'th control. The number of controls when the exception occurs is dependent upon the mixture of controls created, InkEdit controls produce the exception much earlier. I was attempting to reproduce the incosistent behavior of ToolTip in my "real" application which currently has 9,216 controls (previous post that has no solution yet!). This has the feeling of running out of memory OS: Windows XP professional (32bit), patches as of 9/12/2006 CPU: Dual Core Opteron, 2GB Ram Attached is the exception detail and the files that make up the VS 2005 test program. ================================================================== System.ComponentModel ...Show All
Windows Forms FormClosing Issue in VS2005
In VS2005 VB.Net, it appears that the Me.Closed and Me.Closing events have been replaced with Me.FormClosed and Me.FormClosing events. The problem I'm having is that the Me.FormClosing event only takes a System.EventArgs as the parameter. This does not proved any way to Cancel the form closing event if needed. Actually I just found this issue. If you select the Events from the event dropdown for the Form you are created under you get the following: Private Sub frmCurveAnal_FormClosing( ByVal Sender As Object , ByVal e As System.EventArgs ) Handles Me .FormClosing But if you change the "Me" to "MyBase" you can then change it to a FormClosingEventArgs. Private Sub frmCurveAnal_FormClos ...Show All
Smart Device Development CImage::GetBits() leads to segfault with CImage::LoadFromResource()
The following code doesn't work: CImage *image = new CImage(); if (!image) return -1; HINSTANCE inst = GetModuleHandle(NULL); image->LoadFromResource(inst, IDB_BITMAP1); if (image->GetBPP() != 24) return -1; LPBYTE UNALIGNED bits = (LPBYTE) image->GetBits(); if (!bits) return -1; *bits = 0; Last operation causes a segmentation fault. The bitmap was succesfully loaded and image->Draw() works fine. Value of bits was 128. This code works: image->Create(32, 32, 24, 0); LPBYTE UNALIGNED bits = (LPBYTE) image->GetBits(); *bits = 0; Any ideas You seem to know a lot more about it all than me, I guess you've been on it for a while now haha. I know you said 1 ...Show All
SQL Server Error: Transaction context in use by another session
I am programming in ASP and SQL server. I am using this tag <% Transaction =Required %> to do the transaction. And it woks well, but the problem is that sometimes I get this error: "transaction context in use by another session" ... It's really weird because it only happens in the same row. If choose this row to be shown I get that message, but if choose another row I get result with no error. And if take out the tag <%Transaction... I don't get any error. I've searched in other forums about this error, and one guy claims that there is a bug in the MTS and there is no way to solve the problem. Actually, the transaction is done only by using this tag <% @ Language ...Show All
Windows Forms System.Data.ConstraintException
In my first ADO.Net 2.0 project I'm trying to create a Windows Forms application that allows updating customer records. These records are in an SQL Server 2003 database, and I am using the VS.Net 2005 DataSet Designer to create a typed DataSet and Customer TableAdapter. To start, I just output the internal IDs of fields to TextBoxes on a form. So far, so good. One of the fields is for Language (English, French, Spanish, etc.), and there is a database table with language names and IDs. So I add a new Language TableAdapter and Relation to the DataSet Designer. The Relation is: Parent table: Language Child table: Customer Key Column: Language.languageID Foreign Key Column: Customer.languageID Both Relation and Foreign Key ...Show All
Visual Studio Team System Request per second and total requests
scenario: i done a loadtest for a webpage (ie.homepage). i have run the loadtest for 3 users. when i see the total requests it is showing the details as Total tests :3 ( i.e 3 users has completed their request sucessfully) total request :9 avg.request/test : 2 I have a clarification that, when 1 vuser has completed the test, the requests for home page will be 2( ie. loading the homepage and redirecting to the same). For 3 users it is showing total requests= 9. If you have a constant load of 3, then the user load will stay at 3 throughout the duration of the load test. Each vuser will start another test after it completes a test. My guess is that each of the 3 vusers completed their first test ...Show All
Visual Studio Port placement manipulation with myPortShape.AbsoluteBounds
Hello - I am trying to write an application that will generate a .diagram file if one does not exist using some arbitrary set of rules. I can get all of my GeometryShape derived classes where I want them, but I am having trouble placing my PortShape derived classes on my GeometryShapes. Setting the AbsoluteBounds and Bounds properties on my PortShape do not behave as I expect. I would expect setting the AbsoluteBounds property on a port would place it at the location specified, relative to the Diagram. [i.e. a 1 by 1 PortShape at a location of (4.5, 5.5) on a GeometryShape located at (4, 5) would appear with half of the top of the port appearing off the top of the GeometryShape]. It appears to be placing it relative to the bott ...Show All
