DarrenARBell's Q&A profile
Gadgets Localization of <title> string
Hi, I am trying to localize all the string for the preferences dialogue - However, while using ids and .document.getElementById("myID").innerHTML = LOCAL_SETTINGS_TEXT_STRING1 works for all the html within the <body> tag, for some reason, it does not work for the head <title> innerHTML. Any advice on how to change this using JS Many thanks in advance Thanks - I realised I was doing something daft - the title actually gets picked up from the Manifest, which is easily localisable. Thanks! ...Show All
Commerce Server Feedback: reorder CatalogCreate.sql
Just a bit of feedback here. When i execute \Program Files\Microsoft Commerce Server 2007\CatalogCreate.sql it throws a bunch of warnings along the lines of "Cannot add rows to sysdepends for the current object becuase it depends on the missing object 'dbo.ctlg_GrantPermissionIfExists'. The object will still be created." When I check the db after the script has completed, the missing object is there, it just needs to be moved to an early position in the script so these warnings aren't thrown. Michael. Max, This was on creating a new DB from scratch. The only command executed before this was CREATE DATABASE XYZ_productcatalog; Should I execute CatalogDrop.sql on a blank DB Michael. ...Show All
Windows Live Developer Forums disabling the disaapearing of the ero popup when mouse moves away from it
Does anyone know how to disable the vanishing of the ero popup when the mouse pointer moves AWAY from the ero popup Does anyone know how to OVERRIDE the popup over e pin in such a manner that when the mouse moves out it still DOES NOT HIDE. I think the implementation does ero.hide() on it. I need to make sure that once the baloon pops up it NEVER HIDEa again until the pushpin is destroyed. I have window.ero.setContent( "<div id='" + DivID + "'>" +tempTitle+popupEdit+ "</div>" ); window.ero.dockToElement(e); Now I already tried: VEPushpin.OnMouseOut=f; where f is a function also I tried window.ero.attachEvent("onmouseout",f); but all to n ...Show All
Visual Studio Express Editions Locking Mouse
Hi ive been looking for days to find the code that will lock "Block" the mouse move event from being processed... So far i've tried the code: actHook= new UserActivityHook (); actHook.OnMouseActivity+= new MouseEventHandler (MouseMoved); public void MouseMoved( object sender, MouseEventArgs e) { Cursor .Position = Ace; } where Ace is the point that the mouse was at last. This doesn't work unfortunatly as i can still move the mouse around... That event is hooked with a class called UserActivityHook (declared as actHook) (not my class) UserActivityHook public event MouseEventHandler OnMouseActivity; I'm thinking that Cursor .Position is only repainting the cursor and while the mouse ...Show All
SQL Server How to create a report using multiple databases
I have two database: FoxPro database - contains client info (name, address) SQL Server database - contains appointmetns, orders, jobs etc. How can I create reports using both databases Thank you Is there a way to have data from both databases in one dataset I need to provide reports like: weekly sales by consultant - it has to be a list of customers (names) and total $ amounts sold grouped by product category. I ...Show All
Visual Studio Changing databases in studio
I have two databases (SS1 and SS2). SS1 contains .Net 1.1 project and SS2 contains .Net 2.0 projects. When I open an instance of either studio, is there a quick way to change the database without having to open VSS05, open the correct database, then reopen studio and access it Thanks, Sam In VS you can just open the project from disk and it will be controlled using correct database automatically . No VSS needed here. In VSS File->Open Database will allow you to open another database without VSS restart. ...Show All
Visual Studio Express Editions How do I
Hi, How do I get a form that I have designed to do the following: Take the data from 5 seperate input boxes (5 seperate text boxes used for input) and output the largest and smallest number to seperate output boxes (2 seperate labels used for output). If the user inputs a number in each box for example 25, 15, 75, 45 and 67 and then clicks my button "Find" I want the largest number to go in the largest output label and I want the smallest of them to go in the smallest output label. How do I code my button to take these 5 input numbers regardless of their order and output only the largest and the smallest of the group of numbers I hope someone understands what I am asking. Thanks, DC here is all the coding ...Show All
.NET Development Error on using multiple data reader
Dear All, I have a multiple number of reading done so for the first one I have actually done the reading and close the the reader. Then upon reading the second one I also have close the datareader. But when I run my third reader is gives me this error "There is already an open DataReader accosicated with this Connection which must be closed first.". I have even check using the method IsClosed for the first and second and both shows that is true. What is the possible error. I dont think so that I must open and close my connection always rite. Thanks for your kind replies Dear Indian Ocean, After doing some debugging I got hold of the problem. My snippet of the code is as be ...Show All
Software Development for Windows Vista Cancelling Workflows Spawned From InvokeWorkflowActivity
It seems like there must be some way to cancel workflows spawned from an InvokeWorkflowActivity. I currently have two sequential workflows set up such that one workflow performs a set of intialization activities and then at some point, in a ReplicatorActivity, I execute an InvokeWorkflowActivity for a given number of times. The InvokeWorkflowActivity operates asynchronously such that as soon as it executes, it completes (does not wait for spawned workflow to complete). Once the ReplicatorActivity finishes, I have a WhileActivity with a HandleExternalEventActivity which receieves notifications from the spawned workflows that they've completed. In some scenarios, though, let's say only one of the spawned workflows needs to comple ...Show All
SQL Server How to Deploy .mdf Files
Hi Guys, I have a problam. I wanna deploy my application that it has data.mdf file. When I install and test it I get this message: --------------------------- Microsoft SQL Server Login --------------------------- Connection failed: SQLState: '42000' SQL Server Error: 5133 [Microsoft][SQL Native Client][SQL Server]Directory lookup for the file "C:\Program Files\MyDic\Database\Data.mdf" failed with the operating system error 5(Access is denied.). Connection failed: SQLState: '42000' SQL Server Error: 1832 [Microsoft][SQL Native Client][SQL Server]Could not attach file 'C:\Program Files\MyDic\Database\Data.mdf' as database 'MyDic'. --------------------------- OK --------------------------- I have to mention that: ...Show All
.NET Development Help for Storing Data From XML to Database
I have written the following Stored Procedure for Saving data from XML file to Database where the Database is SQL 2000 select Sp_CoCode, Sp_Year, Sp_DocType, Sp_DocNo, Sp_Prefix, Sp_PkNo, Sp_Location, Sp_AdNo, Sp_DocDate From Trn_SalePur order by Sp_pkno desc Update Trn_SalePur SET XmlCol =( SELECT * FROM OPENROWSET( BULK 'C:\Test25102006.Xml', SINGLE_BLOB ) AS x ) WHERE IntCol = 1 GO I am Gettting Error As while I am trying to execute the code: Server: Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'BULK'. Where My XML File contains following details: <Trn_SalePur> <Trn_SalePur Sp_CoCode="C05" Sp_Year="Y004" Sp_DocType="PU" Sp_DocNo="1418" Sp_Prefix ...Show All
Windows Forms FlowLayoutPanel FlowDirection not working when adding controls at runtime
I have a FlowLayout panel to which I am adding a label and linkview controls at runtime. The panel's FlowDirection property is set to TopDown. However, when I call Controls.Add on the panel at runtime, the controls are still added left to right. Why does this happen If I drag controls onto the panel at design-time, they are added top to bottom as required, it's only when adding at runtime that this happens. Hi, I can't reproduce that... The following code seems to work fine: private void Form1_Load( object sender, EventArgs e) { Label label = new Label (); label.Text = "Label 1" ; flowLayoutPanel1.FlowDirection = FlowDirect ...Show All
Visual Studio how can i use VS 2005 IDE to read existing Makefile and build the code...
Hi, We have a command line build system for our product. This is required as we support multiple platforms. Is it possible to use Visual Studio 2005 IDE to read the Make file (which we generate as per platform) and build it showing the output of the build on "Output" panel of IDE and generate a build log Hi Sanjith, At my company we had the same issues due to multiple platforms and in the end decided to use the same gnu Makefiles edited to work on all platforms. This worked on Windows using cygwin: http://www.cygwin.com/ . Then the only problem is generating vcproj/soln files for developers and 3rd party build products like Incredibuild. I believe (from some googling) that there are ...Show All
Visual Studio 2008 (Pre-release) Is there any EDM xml reference document?
This CTP does not contain the mapping tools, so I have to write some mapping mannually. Unforturnately, after searching for a while online, there is no such document which tell how to define the EDM xml, mapping file,etc. Can anyone give some instruction how to get the document The EDM spec noted above is a bit more conceptual than a concrete implementation I think you're wanting guidance on - especially one specifically related to the syntax of the metadata files in the CTP. We'll follow through on making sure we can publish our internal specs (for CSDL, SSDL, MSL) to help in authorting. We need to clean those before we can publish them. I'll respond when I have a date you should expect them. In the meantime, you should be able ...Show All
Visual C# A question of OO structure...
Hello All, I'll do my best to explain what I'm trying to accomplish and look forward to any and all suggestions you have for the "proper" way to do this (realizing there is no 100% correct way, but some methods are more optimal than others). I apologize in advance for my n00bness. For this example, I'll use football (american) players. I want my Player class to have a List<Stat> collection of my Stat class. Each Stat, which is an indicator of how well a player plays a particular position, should have a base value but be able to return a "true" value which is a calculation of the base value plus a percentage of one or more other stats. For example: a Player's Halfback stat might be base value plus 50% of the Fullba ...Show All
