TerminusEst's Q&A profile
Windows Forms Changing text style of one word only within a label to bold or underline
How can I change the style of a word within a label E.g. if I have a label that says: Enter your user name and I want the word "Enter" to be displayed with an underline and in a blue color, how can I do this I tried using html : <u>Enter</u> . . . but this didn't work. There is a very simple solution-Use two labels next to each other :) For the first label,specify AutoSize = true and then set up the Font color,bold and underline.As for the second label,place it next to the label1 control by deternining the width and height and startposition of label1.Set up nornaml fonts fo ...Show All
Windows Forms adding controls to child and grand-child grids
I have a single datagrid which displays parent-child-grandchild data. The navigation between the entities works great, and I like the "compactness" of a single datagrid with the expanders and web-like links to get to the underlying data. My problem comes in adding controls. On the mousedown event on the parent table, I anchor and paint sucessfully a ...Show All
Visual Studio Express Editions GIFs as a pseudo-font
I have a specialized group of GIF images (Similar to some of those used on the 'print a banner' pages on the web). I am cooking up a project to do some printing with these guys. Soooo... Before I have to re-invent every wheel again, I thought I would ask here for some suggestions. I have already tested graphics positioning of images in the printpage event and have some confidence I can handle that, but pointers to examples or code samples would be welcome. I don't care about displaying the GIF 'characters' on the screen, I want to take regular textbox characters and do a 'lookup' of which GIF to use and build some sort of array or coll ...Show All
Visual Basic Zoom picture box sample code
hi all : any idea on how to zoom in / out picture box sample code in vb.net If you are using VS05 the picturebox control has a zoom property setting for the size mode property. me.picturebox1.sizemode = Zoom then Private Sub DoZOOM ( ByVal zoom As Integer ) Try Select Case zoom Case Is = 0 Me . PBX . Height = m_CurrentPic . OriginalHeight Me . PBX . Width = m_CurrentPic . OriginalWidth Case Is <> 0 Me . PBX . Height = m_CurrentPic . OriginalHeight + ( zoom ) Me . PBX . Width = m_CurrentPic . OriginalWid ...Show All
Visual Studio Team System Question about TFS folders
This might be somewhat of a weird question. The company that I'm writting my thesis for are using Documentum www.documentum.com to handle alle their document versioning, and are as such not really interested in letting alle the important development documents be handled by TFS. Now if, and I dont' know if this is even possible, I was able to write a documentum extension that would somehow let me interface to a specific folder in Documentum, would it be possible to write a TFS or VS IDE add-in that would let me add an extra folder to the project hirarchi in Team Explorer, which when opened could show the content of the Documentum folder So f ...Show All
Windows Forms Richtextbox help...
Hi... How do you set the cursor position in a RTB. Like if I want the cursor to move to the end of text, how do I achive this Raj Because the length of the RichText portion of the RichTextBox is variable (depending on the formatting in use), it is far easier to simply determine the length of the plane text and set the SelectionStart position to it (ie the end of the document) ala: richTextBox1.SelectionStart = richTextBox1.Text.Length; ...Show All
Windows Forms Clicking to open network drive opens the "open with" Box?????
Good morning.. I have been experiencing a random problem for over a year and finally its become a priority. On some machines, very few, when you click in my computer, or via a shortcut to open a mapped network drive, the "OPen With" box comes up;. You know, the one that asks if you want to open it with word, excel, notepad, whatever... I realize this is probably some sort of file association error, but I can not find out how to fix it. It happens on the same pcs, 100% of the time, and not at all on 90% of the machines we have... THe only way around it is to right click, and click explore. ANy help please Thanks in advance. Ryan ...Show All
Visual Studio 2008 (Pre-release) CombinedEntropy? The issuer must provide a computed key in key entropy mode
The issuer must provide a computed key in key entropy mode 'CombinedEntropy'. Annother exception that I'm not sure how to resolve. In the clientCredentials of my client application, I have defaultKeyEntropyMode ="ServerEntropy" but I get this error about CombinedEntropy. I assume the "issuer" is my STS, but I don't know how to configure it to match the client app setting or if the client app setting should be changed. The ex gets thrown in the generated proxy : @ return base.InnerProxy.MyOperation1(myValue1); Perhaps your STS requires CombinedEntropy but your client is assu ...Show All
Visual Studio Team System Comments for Work Items
Is it possible to have an ongoing discussion / comments / posting in a work item Sometimes we will send many emails back and forth about a single issue, or in our previous system we would add "bug notes". Is this possible Are there any fields that allow a "forum" style commenting on a work item The "Detailed Description and History" is meant for this purpose, you can click there and type whatever you need to... We internally use it to comment on a specific work item: I might for example close and postpone a bug but include a recommended fix so whenever it is reactivated the person who gets assign ...Show All
Visual C# How can I use the delegate to update the user interface from a thread?
hi:) I make a thread to do some work, here I want to see how the thread is going on. How can I use the thread to update the label text(used to display the message from the thread). I am a newer in c# , any advance will be helpfull! thanks in advace. coz you are working on another thread you cannot acess directly the label.. if the label wasnt created by that thared.. and howd you guess you need a delegate , and a methofd BeginInvoke delegate void MyDelegate(string s); // or some other paramters private void AMethodInYourThread(//... some paramters) { MyDelegate call=new MyDelegate(DoWork); // the begin ...Show All
Windows Forms Check box data binding, AddNew doesn't work
I am having problems with binding to a check box. It works fine until I attempt to add a new record to the dataset through the binding context object. The code that adds the new record to the dataset is listed below Me.BindingContext(dsDataSet, TableName).EndCurrentEdit() Me.BindingContext(dsDataSet, TableName).AddNew() The add new statement generates an error and a new record is not sh ...Show All
SQL Server How to group many details per master record
Assume there are a Project, Contractor, and ProjectContractor table where it represents a many to many relationship with the linking table. How can I manage the data to get it Basically converted from a multiple row output to a single line output project A contractor 1 Project A contractor 2 Project A contractor 3 into Project A contractor 1, contractor2, contractor 3 I believe I can do it in a SP, but I need it in a view so i can query from it, let's say from crystal reports Also, if you don't want to hard code, and are using crystal, lookup 'Crosstab' in the crystal ...Show All
Windows Forms shared SQLconnection accross all forms.
okay. I decided that making a connection to the database eachtime each forms opens up is a bad idea.... bad idea in the sense its slow.... is possible to share a sqlconnection from form to from by using a class. like this ---------------------------------------------- Public Class myFormlib Public Shared my_con As SqlClient.SqlConnection End Class then in any form m ...Show All
Visual C# Lego Interface Problem PLEASE HELP
Okay so I got the new LEGO .Net interface for C#. I was all excited to get started programming my nerdy robots, so I opened one of the samples. I spend awile examining the code and then I click debug and then bam it stops of the line I'm trying to figure out what went wrong for like the last 2 days. I got LEGO MINDSTORMS SDK 2.5 along with the GhostAPI.dll, but it still doesn't work. So let me give you the speks... THE SPEKS Windows XP Computer Pentium(R) 3.4 GHz Got an IR Tower RCX 2.0 with Firmware from 2.0 RIS THE ERROR DETAILS System.IO.FileLoadException {"Could not load file or assembly 'C4F.LegoRcx, Versio ...Show All
Windows Forms exporting datagridview data to excel
I want to export the data displayed in datagridview control to excel spreadsheet including the column header. Appreciate any help on how to do this. Thanks in advance. B ...Show All
