Answer Questions
AndrewVos RichTextBox: Change Bold, Italic, Size etc. in a selection
I want to create a text editor using a RichTextBox and the user should be allowed to make parts of the text bold, italic, change font face and size and so on. The problem is: How can I change these properties in a selected piece of text without affecting the other properties Let's say the user typed in: This sentence has both bold and italic words in it. Now let's say the user selects the part " both bold and italic words " and clicks on the button for bold which in this case should change the selection to bold. I cannot use: RichTextBox1.SelectionFont.Bold = True as it is read-only, and I cannot use: RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold) either, because the se ...Show All
Eric van Feggelen Same Transition but different Users
Hello, I am currently customizing a work Item and I would like to have the reason, for a transition, to be dependant of the user group. I.e. The transition from state "A" to "B" is available for MyGroupA with reason "reasonA" and "reasonB". The same transition is available for the remaning user with reason "reasonC". I have tried the following solution : <TRANSITION from="A" to="B" for="[project]\MyGroupA"> <REASONS> <DEFAULTREASON value="reasonA"/> <REASON value="reasonB"/> </REASONS> ... </TRANSITION> <TRANSITION from="A" to="B"> <REASONS> ...Show All
Maria G. Valdes Save
How do I Save a file with out calling the dialog box, at the moment I can SaveAs the file(with dialog box) but what I'm after is when you click just save it just saves the file that is opened in its original format with any alterations that have been made. The program is a cut down version of a text editor. If i could mark this post as answer i would! Your code works a charm dave. (: Though there are few programming errors here and there when i debug the program(Not referring to your code,but mine). I will post as soon as i list them all down. On the other hand,I want to know this.. Does the program retains the filename even after the program closes Thanx again dave, you have been helpful! ...Show All
b0bd0gz XSD Schema Designer in a VS Database Project
I have a Visual Studio Database project (SQL Server 2005) that contains a script to create an XML SCHEMA COLLECTION. Fine so far. However, this XML schema is to be used in application code too and so I wanted to create an XSD file and use it for both the application AND the DB script (i.e. I dont want the schema defined in two places). I changed my script to use my new XSD file instead of a string literal and that works fine too. However, my problems started when I decided to keep the XSD file in the DB project together with the script. Firstly, when I right-click the XSD file, I don't get the usual "View Code" option and secondly, when I double click the file, the designer opens and contains an error message:- The XM ...Show All
ClemensT Can I Stop the Playback automatically if Test fails
Hi, I have recorded a web application using webtest. On playing back, due to server error, a page shows "sorry for inconvienience, Please try again later". But schoked to see the test has PASS status and continue to run the next request. Kindly clarify what could have been Thanks - Vijay. Hi, Got it. Thanks a Ton. - Vijay. That's just a redirect occuring during the playback process, which is usually perfectly normal. As long as everything is running fine and the redirect appears to be doing the right thing (the next page that comes up looks correct) you shouldn't need to do anything with it. If your site is redirecting to a friendly error pag ...Show All
lushdog Any issues using MS Virtual Server to roll out Team System Foundation Server?
Hello All, I am contemplating the use of MS virtual server as a means for us to initially use the eval copy of Team Foundation Server in order to provide a low impact on our server. The tentative plan is to allocate 1 GB of RAM, 20 GB HD space and a seperate network card for this virtual server instance. I would appreciate any feedback (good or bad) regarding this :) Thanks in advance I agree with Martin, also check about the version you are installing, and remember workgroup edition allows only 5 users If your evaluation will take less than 180 days and you have more than 5 folks in your development organisation then I would encourage you to go to the Trial version. I have spoken with a number of people that install ...Show All
Sammy32 Bugs in 2005 express edition
I was wondering whether other people were running into similar bugs using this version of visual studio. Issue 1: I create a gradient background for a form, then overlay the form with a picturebox containing a gif image with the backcolor of the picturebox set to color.transparent. In the editor before compiling the form looks correct (image with gradient background). When I load the form I get a grayish background for the form. Issue 2: Catching keyboard clicks with this version. Using visual studio 2003 I had no issues using the keypress events. I attempted to catch keyup or keydown (then to use the e.keychar property to access the key that was pressed) yet only the keypress event registers as an event upon pressing the key. (Even ...Show All
NewbieDude Cannot imports Excel
When i paste this " Imports Excel = Microsoft.Office.Interop.Excel" to the class, that underline, how can i do it Project + Add Reference, COM tab, select "Microsoft Excel 11.0 Object Library". You do need to have the Office 2003 Primary Interop Assemblies installed on your PC to make this work. I didn't know you could use an alias in the Imports statement. Thanks for that! And just to note, I think your code is not working because you are trying to create a workbook before you have created an instance of the object Declare the following code at the top of your code (declarations bit) Dim objExcel As New Excel.Application then use this cod ...Show All
Mykhaylo Blishch TFSWarehouse shows data but reports come up empty
Hi, The built-in reports (e.g. remaining work, related work item, etc.) that come with the project template show 0 for number of work items. I checked the warehouse database tables and do see the changes to the existing tasks. I've enabled the security permissions in the Team project, the SQL Server reporting services and the Windows share point service admin, but still don't see improvement. The number of work items shown in the reports is 0 no matter if I use VS2005, the report site or the project portal to bring them up. What else can be missing What can I try Thanks. Hi, the project is created with the default CMMI template. What I mean is that the SQL reports try to look for work items that hav ...Show All
Stephen J.Vanterpool Garbage Collection problem in C#
Hi Guys I wrote a C# program which is used to query a database and based on the results of the query fills the combo boxes and datagridview. On testing the program's memory usage i found that it just went up, did not come down. Ultimately, going to about 1gb of ram before crashing. I checked online and found that C# implements the garbage collector itself and clears the ram. I tried using the System.GC.Collect() to free up ram but it did not work. Could someone provide suggestions to how i can fix this problem Thanks how are you connecting to the database could you show us some sample code ...Show All
Joel Martinez array finding
hi i need to find from in an array how many of each number there are eg array = 1,1,1,2,3,3 now how do i get it to find those and then determine how many one's there are and how many two's there are and how many three's there are Here is one cute way of doing it. And the explanation of how it works. We have a dictionary which basically can contain a key. Each key is used to lookup a value. In this case we are going to use the numbers found in our array (MyNumbers) as the key. The values that will be looked up will be the count. So we declare our variables and then we go through our for loop. For each number in MyNumbers we check to see if this number exists as a key in our Counter array. If it doesn' ...Show All
Benjj Server not referred to by the FQDN
I want the server to refer to itself ONLY by the FQDN. http://img116.imageshack.us/img116/2330/properties9sk.jpg if you have a look in the image - the server name is Fully Qualified, although the link that it will send the user to is not. how do i make them both be the same FQ thank you. We did not go the host header route for the standard TFS installation because it adds a dependency upon DNS admin/authoring. Ah, sorry, that was not what I meant. Why didn't you just put everything under one IIS web site Could you not have excluded some directory "tfswebservices" from the sharepoint namespace on the default web site, created ...Show All
Angry Coder Using an array with objects question.
I need to use but don't have to a company class, region class and a store class. There is one company, 3 regions and multiple stores per region. I was thinking of using an array for the stores like this: Store [] store1 = new Store [ size ]; EDIT: Ok, that part was wrong, I realized I was making an array of objects too soon with that line. It should be an array of type double. double [] store1 = new double[ size ]; And this array would only hold a sales figure for each store. I think the only thing my store class will need is a variable that holds the sale amount: double salesAmnt = 0; So then I am thinking I will need a region array that will hold the stores that belong to each ...Show All
John Oliver &#40;UK&#41;MSP, VSIP Project field mapping questions
All I am trying to use Project in conjunction with TFS for tracking both my project and the accuracy of my planning. To that end, I would like to have Project show me the dates I planned each task to go (based mainly on links with other tasks), and have the dates in TFS be the Actual dates. To support this, I am thinking that I need to remove the mappings between TFS StartDate and Project pjTaskStart as well as TFS EndDate and Project pjTaskEnd. I also have to add mappings from TFS ActivatedDate to Project's Actual Start Date and TFS Resolved Date to Project's Actual End. Regarding this I have 2 questions: 1) What are the correct names of the project fields 2) Is there something that I am missing that makes this idea "out ...Show All
Porch263896 Whats Missing?
I have this code to save whats in the TextBox1 and then open it in IE. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click My.Computer.FileSystem.WriteAllText("C:\Documents and Settings\All Users\Desktop\index.html", TextBox1.Text, Flase) My.Computer.FileSystem.ReadAllText("C:\Documents and Settings\All Users\Desktop\index.html") End Sub Whats Missing or that yes, lol Second line: Process.Start("C:\Documents....\index.html") what exactly do you want to do open it in IE you need to kick a process off to open the file: imports System.Diagnostics .. .. Dim theProcessInfo as new ProcessStartInfo("ie ...Show All
