Sandy Wood's Q&A profile
Visual Studio 2008 (Pre-release) XAML and DataBinding for a CLR Object
i want to programm an avalon-xaml based application. there in i wrote an own clr-class like counter (value, countup(), and countdown()) ... so far very simple. so how can i: 1. instanciate an object in the XAML file for: a. binding the value to a textblock.text property in the XAML file b. actualizing this binding realtime by changing the value in this object 2. access this object (defined in XAML) from the codebehind file by something like ticker.countup() ; the scenario is to make changes to the object in the codebehind and to actualize it in an XAML object like <textblock/>. the binding to this value should be realtime and defined in the XAML. so how to do please help me! thanks so far for your answer .. ...Show All
Visual C# DateTimepicker problem
Hello... How can i insert a datetime from DateTimepicker into SQL 2000 database I have a field in the database in format datetime and i want to insert on it a datetime that i choose on a DateTimepicker. Can anyone help me Filipe DateTimePicker has a property Value of type DateTime. So to be able to use this value and store in database or use in database manipulation functions you should use as it is, like DataTime value. For example, let's say i want to execute a command that will return all Orders from some table Orders that are between two dates. Date column for storing Order date is with name OrderDate. So the command for selecting all orders between two dates will be something like this: ...Show All
SQL Server SSIS Port
Hi: Just wanted to find out what port does SSIS utilizes when communicated with a remote SQL Server. Is it 1434, 1433 or something I have a SSIS Package on Server 1, which which does inserts on SQL DB on Server 2. I think between Server 1 and Server 2, some ports are being blocked because the 2 servers are separated by a firewall. When SSIS makes connection to Server 2 (SQL), what ports does it use Also, any other tips would also help. Here is the error I am getting: Cannot connect to 10.xx.xx.xx. =================================== An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not al ...Show All
.NET Development SqlDependency and which rows actually changed?
I have a question about SqlDependency. When using the SqlDependency class to get a notification of a change to a table, what is the best way to actually find out what data has changed Is this even possible We are working on a stock trading system in which stocks are valued based upon notifications in the changes of the price, quantity, etc. Any light that you could shed would be helpful! Thanks a ton! Ryan Heaney rheaney@sgfallc.com Hi rheaney, You got any solutions of your problems. I am very crezzy to find out solutions because my project is also related to Stock Trading and i also faced that problem,but i couldn't find solutions so i removed that logic and bind my tradin ...Show All
Visual Studio Build RollBack
Hi, i’m trying to generate a kind of rollback, I use the beforebuild to checkout from sourcesafe the assemblyinfo file and change the file version. And the afterbuild to chek in that file. But i need to do a undocheckout if build fails, someone have any idea of how to do that , because after the fail i can’t catch any target to run the rollback Any crazy idea will by appreciated. Thanks ok, thanks for the answer. I was searching for an option that dosen’t make me modify the common.targets. But aparently there’s no other option. Thanks, I will take your idea. ...Show All
Visual Basic Allowing Only 1 Decimal "." in Textbox
I am having trouble making it where if the user types more than one "." decimal they get a error msg or whatever. Mainly having problems coding the Character "." Thanks I don't know, I prefer to write my own code to control this sort of thing, but I've learned it's easier to point people to the built in control. I'm just using google to bring up the MaskedTextBox docs on MSDN. http://windowssdk.msdn.microsoft.com/en-us/library/kkx4h3az.aspx Looks like the Mask property is what you want, I'd guess that "0000.00" allows up to four digits before and two after the only decimal point in the number. ...Show All
Visual Studio Team System Offline Process Template Validation
I'm currently doing some extensive customizations of a process template and was wondering if there was a way of validating a process template without having to try and upload it. Essentially I would like to write some unit tests that test whether a process template is valid on the local machine (the local machine could contact a server if that was what is required) before I spend the time trundling through the UI to upload the process template. Is this currently possible via some part of the TFS API. Am I not looking hard enough :) All the upload process does is validate the xml for you. Beyond that there is nothing in place that will verify that it will actually create a project or even work if in fact i ...Show All
Visual Studio Express Editions Live webcam viewer
It might be a big job, but I'd like to know the (basic) code for a program that displays my webcam video (live), and what control to display the webcam video. code { ... code } must be some tag to format code on a webpage somewhere. The stuff inside IS vb.net. The problem is with the line: SendMessage(hWnd, WM_CAP_DLG_VIDEOFORMAT, 0&, 0&) When you use an ampersand: 0& , it makes it a long. In vb.net a long is 64 bits long. SendMessage expects an Integer which is 32bits. Just remove the ampersand. The code was originally vb6. Regarding constant definitions, these api functions are written in c/c++. The constants are defined in the header files. You can usually google for the ...Show All
Software Development for Windows Vista SequentialWorkflowRootDesigner in inherited workflow
Dear all, I've created a base sequential workflow and added a new designer like this: [Designer(typeof(NewDesigner), typeof(IDesigner))] [Designer(typeof(NewDesigner), typeof(IRootDesigner))] public class BaseWorkflow: SequentialWorkflowActivity { public BaseWorkflow() { } } public class NewDesigner : SequentialWorkflowRootDesigner { protected override SequentialWorkflowHeaderFooter Header { get { base.Header.Text = "Custom header"; return base.Header; } } protected override bool ShowSmartTag { get { return false; } } } In this base workflow i'll add some properties and if i'm not using any activities (white box model) i think it's possible to inherit from. That's exactly what i' ...Show All
Software Development for Windows Vista Where to post questions not related to transactions
Where to post questions not related to transactions This forum is dedicated to transactions technologies. If you have a question not related to transactions, please use the guide below to find a more suitable place where you can find an answer: For COM+ related questions use: microsoft.public.platformsdk.complus_mts newsgroup also available at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.platformsdk.complus_mts&lang=en&cr=US For System.EnterpriseServices related questions use: microsoft.public.dotnet.framework.component_services newsgroup also available at http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=microsoft.public.dotnet.framework.componen ...Show All
Visual Studio Team System Error when creating coverage info: Module App_Code.dll version mismatch
Hi all, I have a solution that contains multiple webservices. I have code coverage turned on and everything works great when building local. When building with team build we get the following error. The Code Coverage Analysis Service could not analyze the code coverage data for build IBS 1.1 Master Build_1.1.0.34 (Mixed Platforms/Debug). This is frequently caused by publishing different versions of the same binary to a particular build. Processing of code coverage data from run tfsservice@CTSHELNT04 2007-01-05 10:59:47_Mixed Platforms_Debug caused the following exception to be thrown: Error when creating coverage info: Module App_Code.dll version mismatch when aggregating coverage data. Check for out of date copies of this ...Show All
Visual Studio Express Editions Listbox Help (continued)
nobugz wrote: Here's a completely different approach: Public Class Form1 Private Class MyListItem Public mText, mUrl As String Public Sub New(ByVal txt As String, ByVal url As String) mText = txt mUrl = url End Sub Public Overrides Function ToString() As String Return mText End Function End Class Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.Items.Add(New MyListItem("Radio 1", "www.bbcradio1.com")) End Sub Private Sub ListBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.Click Dim itm As MyListItem = CType(ListBox1.SelectedItem, MyListItem) WebBrowser1.Navigate(itm.mUrl) End Sub End Clas ...Show All
Windows Forms Is there any property to keep a form on top but within an application?
Top Most property of the form keeps the form on top of everything that's running. I want to keep a form on top but only within my application. Is there any easy way to that I know if a form got the focus from form_actiavted event. How can i know if my applciation got the focus. Regards Mani Hello, Is it so hard for you to understand this. Let me requote my original post "Top Most property of the form keeps the form on top of everything that's running. I want to keep a form on top but only within my application . Is there any easy way to that " Did you read "only within my application". ( Top most property keeps the form on top not only for my application , but for the entire desktop) Now do yo ...Show All
Smart Device Development How do I wrap text in a label when I don't know what the text is??
Hi I got a problem with my development for PDAs. I'm developing a Questionnaire wizard and the Questions are defined in another system and stored in a database. The information is transferred to my PDA but I have absolutely no idea what they are. I have a label on my Questionnaire to display the question to the user and I need to know two things: 1. How do I get the Label to AutoSize (no AutoSize functionality on the Compact Framework) to the text so that it doesn't run off the screen - scrolling is not an option. 2. I need to know the exact height of the label afterwards so that I can dynamically place the controls for answering the question beneath. - If the answer to 1 leaves me with a static label that I can just get the he ...Show All
SQL Server Cal Measure % against total
How to define calculated member whose value should be the row value divided by total of all rows. Example, sales of 2005 was 50k and sales for 2006 was 100k. The % 2005 sales is 33% of total (150k) and 2006 is 67%. Thank Hans This problem is solved. Please guide me to get the same result with multiple dimensions. Also, i have a variance calculated member, which is on the date time diminsion [Sale of 2005] - [Sale of 2006] = [Variance 2005]. I would like to see three measures, [Year 2005 Sale], [Year 2006 Sale] and variance. But i get Sales and variance figure under Year 2005 and same under Year 2006. How to get the desired result. Thanks Shekhar ...Show All
