DQM's Q&A profile
Visual Studio 2008 (Pre-release) Hyperlink and navigation
Hi, How can I create a Hyperlink in XAML that navigates the Frame back and forward I know how to do it with code behind, but I'm curious to know whether there is a clean way to specify that behavior in XAML only. Thanks, - Imad <TextBlock> <Hyperlink Command="{x:Static NavigationCommands.BrowseBack}">Go back</Hyperlink> </TextBlock> ...Show All
Visual Studio Team System TFS Broken after installing Service Pack 1
I am having some rather distressing issues after updating to the newly released service packs. Symptoms: 1. after install of TFS and VS SP1 on TFS server, Cannot open TFS from Team Explorer. Error message: TF31001: Team Foundaction canot retrieve the list of team projects from Team Foundation Server XXXX. The Team Foundation Server returned the following error: The request failed with HTTP status 503: Service Unavailable. 2. Browsing to: http://localhost:8080/services/v1.0/Registration.asmx on TFS server returns "Service Unavailable" 3 . In System Event Log this message appears: A failure was encountered while launching the process serving application pool 'TFS AppPool'. The application pool has ...Show All
Visual C# how to find out which data fields were change on winform
Hi, I have a winform with many fields, I want to find out which data fields where changed once user click on SAVE bottom. Could some body give me a hand, Thanks, i guess you would store the values of the existing fields into an array for example, then compare them after words, or perhaps set a boolean flag per field so when the text has been changed (implement the textchanged event), set the boolean flag to true for "changed" then compare after words - why would you want to do this if you need to save, just resave everything as is instead of making it a bit more complicated than it has to be, such as going through each field, checking to see which field was changed then save that ...Show All
.NET Development filter question
Hello I've a access database on a site and I like to use a filter on that. But this filter must have 6 values. I try this in web developer express but then it doesn't show any output. Even I change the select statement from and to or. Is there an other solution for this, maybe with self written select statement Ok that is not the problem. When I use that I don't get any result in my grid. I have 6 textboxen what I use for runtime filtering but when I put them all six in the where statement I have a problem with the parameters in web developer. Must I write this in ASP code and how then to use my textbox with a like statement ...Show All
Visual C++ Access to Members of Top Level Class
If an object is declared as top level (^) how can you access its members For example: public ref struct DictionaryPath { public: DictionaryPath() {} ~DictionaryPath(){} String^ dictName; String^ dictPath; }; DictionaryPath myPath; // members can be accessed. DictionaryPath^ myPath; // now it is an "undefined object" whoose contents cannot be seen. This means, instead of ref class use value class. In other .NET languages ref class is called class, and value class is called structure. If you create array of value class instances, it is filled with instances and not null references. However, filling array is not reason to use value class instead of ref ...Show All
Windows Forms Have DataGridView skip a column (remove its tabstop?)
Hello All: I have been trying to find a way to keep a column from getting focus during data entry (I do not want to hide it, just skip over it). Does anyone know if that can be done ...Show All
Visual Basic ListBox & StreamWriter & StreamReader
I have a "Form" with: 1- List Box 1- TextBox 3- Button 1- OpenFileDialog 1- SaveFileDialog I want that clicking the btn1 it shows the OpenFileDialog and read file that it has got this structure: SKI1 0 1 7 1 0 0 18 10 1 19 0 29 10 1 30 0 40 10 1 41 0 50 10 1 51 0 62 10 1 63 0 81 10 1 82 0 95 10 1 2 0 0 95 16 5 3 0 1072 0 1 4 2 1 93 15 I want that it reads all Line of the File and it add an Item in ListBox for line. For example the first Item of the ListBox in this case is SKI1 And the 2th Item is in this case. 0 1 7 I want using the StreamReader classes. And i want that when i click an Item of the ListBox it shows the Text in the TextBox and I can edit the Line and that clicking antoher but ...Show All
Visual Studio Team System granular permissions - add iterations
Is it possible to allow a role to have the ability to only add iterations I don't want to give them the "Edit Project Level Information" right because that's a little too powerful. Take a look at the following post: http://www.holliday.com.au/blog/tfs-listprojectareas-and-area-uris.html Also I recommend going to the Team Foundation Server Admin Tool project on CodePlex and requesting this is an addition if it is not listed already. http://www.codeplex.com/Wiki/View.aspx ProjectName=TFSAdmin ...Show All
SQL Server Connect to SQL-Databas over TCP/IP
Hi.. I am really new in C# Programming witf h Database. My problem is: I have a SQL Database (in an other country) and My Application has to connect it for data transfer. How can I do that Which alternatives do i have. Should I use a Web Service Thanks... Hi, You could use the following connection string; Provider = sqloledb ; Data Source = 190.190.200.100,1433 ; Network Library = DBMSSOC ; Initial Catalog = myDataBas ; User ID = myUsername ; Password = myPasswor d; Obviously you will have to change the IP address to that of the server where SQL resides... also make sure you have the correct port which is the value after the comma (,) on the IP address ...Show All
Visual C# Dots and Commas
Calling Float.ToString() will generate a string where the decimal part is separated by a comma (on my Swedish comp). I'd like it to be a dot instead, mainly for compatibility reasons (file outputs etc...). Is there some easy way to change this, like some locale setting somewhere I'd prefer not to call String.Replace() every time I call ToString(). Using C#.NET on MSVC2005.NET One of the ToString overloads take a IFormatProvider parameter so you can do something like: System.Globalization.NumberFormatInfo format = new System.Globalization.NumberFormatInfo(); format.NumberDecimalSeparator = "."; format.NumberGroupSeparator = ","; s = f.ToString(format); In your specif ...Show All
Visual Basic Reusing Forms
Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB I think you got it buddy! you are pretty much right on about the whole creating the instance of the form etc... yes, you can use Me.Close() to close the form and dispose of the ob ...Show All
Windows Forms Count Gridview rows...
How can I get a count of the rows within a gridview I do not have a "View Code" when I right click the Label or anywhere on the aspx page. Do I add this code into the Default.vb file even thought the page is page2.aspx and not the default.aspx page Is there another way to point the label to the code ...Show All
Smart Device Development How to manage phone calls without using TAPI on Windows Mobile 2003 SE Phone edition
When I'm using TAPI to manage the phone functionality of my device MDA III (Windows Mobile 2003 SE Phone Edition) I have a problem with GPRS reconnection. When I remove the code, which uses TAPI the reconnection works, but I can't use my phone. One solution is to use the default device’s phone application, but in this case I must invoke it, when I want to make a phone call, show it on the screen and transfer the phone number. The other problem is the case with incoming calls. I don’t know whether is possible to catch these calls without TAPI. I read some articles about RIL, but I don’t know how to use it ! Best Regards Tihomir Ignatov You don't want to use RIL. It is not designed for applications to use it directly, so ...Show All
.NET Development System.Diagnostics.PerformanceCounter() question
Hello all, I'm wondering how to get the total amount of memory installed on a machine. I know how to get the available memory, but this is only half of what I need to build my graph. I'm using: RamCounter = new PerformanceCounter ( "Memory" , "Available MBytes" ); and, RemCounter.NextValue() , to get the available Ram. I'm guessing that I need to change "Available MBytes" to something, but I don't know what that counter name should be. Help please Thanks. Use WMI: using System; using System.Management; using System.Windows.Forms; namespace WMISample { public class MyWMIQuery { public static void Main() { try { ManagementObjectSearcher searcher = ...Show All
Visual Studio 2008 (Pre-release) List View with repeat columns much like an asp:datalist
I am new to WPF and come from a strong web back ground. I am currently trying to figure out how to get a Listview (or any control) to repeat a data template for a specified number of rows. I am not sure if this helps but here is a web equivalent of what I am trying to do: <asp:datalist runat="server" RepeatColumns="3"> Any help on this is much appreciated. If it is not clear on what I am looking for please let me know. Thanks Justin No it doesn't. If you want item selection in WPF, you want to use a class which implements Selector (which itself implements ItemsControl). ItemsControl allows you bind to a list of items and repeat them, whilst Selector adds selection capability to the ...Show All
