TonyCapps's Q&A profile
Software Development for Windows Vista Bind the CurrentItem property of the ForEach activty
Hi everybody, I'm trying to use the ForEach activity provided on http://wf.netfx3.com/files/folders/control_flow/entry93.aspx. I have an array of "User" an I want to print the name of each User in a messagebox. I want to use my "MessageBox" Activty that have a property "Text" Here is my problem: I want to bind the text Property to the field "Name" of the CurrentItem. But CurrentItem doesn't appear on the binding list. The CurrentItem is of type "Object", maybe this is the problem.. Someone can help me Yep, you won't be able to bind it directly because the CurrentItem property is of type Object: types don't match, so no binding is allowed, plus since you don ...Show All
Visual Studio Express Editions Publish Prerequisite Problem
My application says it needs the following prerequisites for publishing: .NET Framework 2.0 Windows Installer 3.1 SQL Server 2005 Express edition Microsoft.JSharp.2.0 All fine but the JSharp (Warning triangle on icon and message "prerequisite could not be found for bootstrapping") I've searched the web high and low and can't find any info on this. Any feedback would be welcome. Regards Jan Konijnenberg jankonijnenberg@blueyonder.co.uk Hi. Try this link. http://www.microsoft.com/downloads/details.aspx familyid=F72C74B3-ED0E-4AF8-AE63-2F0E42501BE1&displaylang=en Best regards. dp ( www.webhostservices.biz ) ...Show All
Visual Studio 2008 (Pre-release) How to set up WCF Service on IIS
I have written a WCF Service. It works well, and is a CLR .exe file I want to use this service on IIS. How do I do that Also, I dont see a configuration file on WCF, would that be the .application file Thanks Please take a look at: http://windowssdk.msdn.microsoft.com/en-us/library/b044b1c9-c1e5-4c9f-84d8-0f02f4537f8b.aspx Thanks James ...Show All
Windows Search Technologies Where is Microsofts form fill and password tool?
Where is the form fill tool by Microsoft If anyone has upgraded to the latest version of Windows Desktop Search tool you will notice that the form fill and password saver tool is GONE! Don’t get me wrong this is the best desktop search I have ever seen but I need a good password saver. I don’t want any of the tools suggested on the IE7 add-ons page. All of the suggestions are either overkill or just plain weak. Microsoft - Please build a tool for Desktop search, you have sold us all on the new sexy look of the LIVE user interface don’t make us settle for some 3rd party cheesy apps. Loyal Microsoft fan & Director of IT for Mid sized a company SgtMauler if you are still using Googles search tool check this out! ...Show All
Windows Forms open HTML file in IE browser
hiii if i have an HTML file on a specific path .... how can i open it IE (internet explorer ) using c# .. in windows forms Hi there, You can simply open any document by using a Proccess class (If the required application for opening has been installed). As you know we already have an IE installed in our windows for opening HTML documents So, you can use this : System.Diagnostics. Process p = new System.Diagnostics. Process (); p.StartInfo.FileName = "test.html" ; // Set your HTML file path p.Start(); Your HTML file can be replace with *.doc, *.ppt , etc. then this code will open MS Word, MS PowerPoint , etc. ______________________________________ May the g ...Show All
Visual Studio Express Editions Rich text box text formating problem
I have developed a C# user control. This user control contains a Rich text box. We are using this user control in an ASP .NET site for rich text editing. The problem is losting test formatting. First we have changed some formatting displayed texts (formatting means BOLD, Underline, font size change, font change, etc), Then lost these formatting after minimizing and maximizing the internet explorer. How to solve this problem One more thing is this problem not there when use this control in a desktop application.. pls help me...... Jefy Well, you can deliver it to asp.net forum , there you may find satisfactory answers. Thank you ...Show All
.NET Development String.Remove Method
Hi, I am having a bit of a problem with the String.Remove method. The code I am using is as follows: int intNumberCharsToRem = intTotalLength -100; strTest = strTest.Remove(5, intNumberCharsToRem) (The length of strTest is approx 70 to 100 chars and intNumberCharsToRem is approx 25 chars) The error I keep getting is: "Index and count must refer to a location within the string. \r\nParameter name: count" Any help as to what I am doing wrong or what the error could be would be much appreciated. Thanks in advance. Jen Hi, Thanks for your reply. I have found a way around this by using the String.Substring method, which works great Thanks again, Jen ...Show All
.NET Development Large payloads and memory allocation
I have a web service method that returns a fairly large payload - around 70MB of xml. The client application break on receive with the OutOfMemory exception. Now, I understand that even though my workstation has 2 gigs of RAM it doesn't mean that all of that is available to my application. But how do I know how much memory IS available How is the memory allocated How can I calculate the hardware requirements for my scenario I'm glad that you found it helpful. I realize that I said "OutOfMemoryException" and then sent you the SocketException. The truth is that half the time the error is on the server and then I get the "out of memory" when I try to load the XmlDocument from large file a ...Show All
Windows Forms Format Text for PhoneNumber
If i have a text field and i want to enter a phone number like 12345678190...but i want it inserted in my db like 123-456-7890 how would i go about doing that Split your text box up into 3 textboxes: textBox1 would be area code textBox2 would be the first 3 digits textBox3 would be the last 4 digits Then do: string phoneNumber = this.textBox1.Text + " - " + this.textBox2.Text + " - " + this.textBox3.Text; The output would be: ### - ### - #### Then for each textBox set the maximum allowed characters for each one. This, to me, is the best way to go about it instead of trying to figure out a way to format it. ...Show All
Silverlight (formerly WPF/E) Inline XAML
Been trying to follow the CTP SDK documents I can't seem to get "inline" XAML going in a HTML page e.g. have the XAML tags in a HTML page and not in a seperate .xaml source file. Anyone have better luck or have a simple example cheers Cool thanks, that worked. The agHost construction example in the SDK is different. ...Show All
Visual Studio 2008 (Pre-release) Session data or how to implement a client side transaction
I've got a three-tier-setup: 1) Client tier. Using WCF to communicate to tier 2 2) Middle tier. Listens to WCF and uses TSQL to communicate to tier 3 3) SQL Server 2005 as database tier. A client opens a client proxy, sends a command to the middle tier, and closes the client proxy after use. The middle tier, when called, opens a SqlConnection to the SQL Server, does its stuff, closes the SqlConnection and reply to the client using WCF. This is working nicely, transactions in the middle tier work nicely, but how do I start a transaction initiated from the client, across more than one WCF call For this I would need to keep the SqlConnection open and reuse it, but where do I store it How do I recognise the client aga ...Show All
Visual C# ApplySortCore for BindingList
I have used the SortableBindingList in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnforms/html/winforms02182005.asp to implment the sorting and would like to know how to find out the sorting status ascending or descending from this class. Because it seems that whenever I click on a header it calls the method ApplySortCore with the parameters PropertyDescriptor property and ListSortDirection direction with the direction always set as Ascending. Thus how do I check the status of previous sorting so that I can do an alternate sort direction each time a header is clicked. There is a ListSortDirection SortDirection { get; } to find out the status but not sure how to use it.Thanks Regards Alu When determin ...Show All
Windows Live Developer Forums Custom domain and mailboxes
Hello, I like the idea for the custom domains and the mailboxes you can add. But the thing I'm missing is support for multiple mail addresses for 1 box. Now my question is.. did I overlook an option (or is it in the SDK) for this Is this option to be implemented I did find the "send as" part, but not the recieve part (the most important one imho). DJM You are referring to a mail alias feature. For example, having mail to sales@mydomain.com end up in john@mydomain.com 's mailbox. This is a popular request and we're working on this feature to release in a later version. Brian ...Show All
Windows Forms How to Wrap text in a text box column of datagrid in windows application.
I have a datagrid column in which I want to wrap the text in one column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wraped text only when I manually increase the size of the row and click in the cell containing value. Anybody has any idea how to wrap text in a text box column of datagrid Regards Hemant You have to create a custom column style for that. You will find an example on the VB-Tips website . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Processing Keyframe Animation Data
Hey all, I'm trying to write a Processor to extract the relevant keyframe animation data from the NodeContent data imported from the .x files, and am having trouble figuring out exactly what data i am given. Since i iterate through all the meshes to draw the model i was looking to store the keyframes as the corresponding Absolute transformations for each mesh, hence when animating i can just pick the appropriate keyframe transformation and set that as the World transformation matrix for the effect. Each NodeContent object has a dictionary of AnimationContents which in turn have a dictionary of AnimationChannels which in turn contain a list of KeyFrames, each containing the time index for the frame and a matrix transformation. Can anyone ex ...Show All
