soung's Q&A profile
Visual C# How to do a Debug Build?
Ok, its been a long week. I have a Window service and I click on Build and it builds it in Release mode. How do I change it to debug mode I've got the Configuration Manager dropdown on my toolbar but its grayed out. What am I missing here Thanks, Greg Greg, If the drop-down is greyed out it's probably because the Tools | Options | Project and Solutions | "Show advanced build configuration" option is unchecked. Try enabling it and see if you can change the configuration then. Anson ...Show All
Visual Studio Express Editions Bitmap font
hi guys! I am trying to open a bitmap font ( Extension .FON) which is already installed in my PC , using the Font Dialog option of VB.NET . I could able to see all the installed fonts other than the Bitmap font in the Font dailog window . Any idea how i can use the same font in the programe Thanks in Advance Regards Sumod Hi Sumod, Sounds like you need to install the font into Windows. Once that is done, it should appear in the font dialog window. Check out this article about installing fonts into windows. http://support.microsoft.com/default.aspx/kb/314960 Hope this helps, Bort ...Show All
Visual Studio Team System Another MS Project Integration Question
I have a project that we have "imported" into TFS over the last month or so. It is an ongoing project which was underway before we got TFS. As part of the change over, I tried to import the tasks from Project into TFS. At the time I didn't have the "comma issue" fix, so I exported my Project file as an Excel file, and imported the Excel file into TFS. Recently I have gotten the fix from MS for the "comma issue" (KB 919232) and can now connect Project to TFS and transfer data between them. One issue that I have noticed, however, is a problem with rollup tasks. If I change the start or end date on one of the subtasks in a rollup task, the rollup's start and/or end dates do not change. (Note that to be able to ch ...Show All
Visual Studio Embedding shapes in v1
Hi, First of all congratulations on getting v1 out. It's looking pretty cool! I have been trying to migrate a DSL I developed in the June CTP version, but I have run into some errors. A couple of examples are.. Error 23 A GeometryShape may not be parented on a GeometryShape. In the ShapeMap mapping State to StateShape, the parent element path leads to StateManager, whose mapped shape is StateManagerShape. Error 26 A ImageShape may not be parented on a GeometryShape. In the ShapeMap mapping EnterCommand to EnterCommandShape, the parent element path leads to State, whose mapped shape is StateShape. Basically my DSL is similar to UML statechart notation, but I want to be able to nest states inside one another hierarchically in ...Show All
Windows Live Developer Forums More efficient way to draw a circle then this...?
I got this code form the VIAEarth website... it works great but it pretty slow to use. Does anyone know or have code that can produce the same effect but more efficiently this.circle = function(id, latin, lonin, radius, polygon) { // ref: http://viavirtualearth.com/Wiki/Draw+a+filled+Circle.ashx // returns polygon (if polygon != null) and polyline if not var locs = new Array(); var lat1 = latin * Math.PI/180.0; var lon1 = lonin * Math.PI/180.0; var d = radius/3956; var x; for (x = 0; x <= 360; x++) { var tc = (x / 90)* Math.PI / 2; var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc)); lat = 180.0 * lat / Math.PI; var lon; if (Math.cos(lat1)==0) { lon=lonin; // endpoint a pole ...Show All
Visual Studio Express Editions chat
Hi. I am using this code for a chat application but the part that is bold and underlined comes up with an error saying "Not declared". Option Explicit On Public Class frmMain Private Sub AddText( ByVal text As String , ByRef Box As TextBox) Box.Text = Box.Text & text & vbCrLf Box.SelectionStart = Len(Box.Text) End Sub Private Sub cmdConnect_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdConnect.Click If txtIP.Text = "" Or txtName.Text = "" Then MsgBox( "You must enter both an IP and alias first!" , vbCritical, "Error!" ) txtName.Focus() Exit Sub End If On Error Resume Ne ...Show All
Visual Studio Tools for Office Using Interior.Color
Hi, I have the following code which sets the color of a cell to green. worksheet1.get_Range("B3", missing).Interior.Color = 0xc33b; Is there a better way to specify colors such as green than using something like 0xc33b Thanks. Ben. Hi, You can use the XlRgbColor value constants: worksheet1 .get_Range( "B3" , missing).Interior.Color = Excel. XlRgbColor .rgbBlue; Keep in mind that the colors you can use are limited by Excel's color palette. If the color you choose doesn't exist in the palette, Excel will give you the closest match. If you need to change the colors in the palette programatically, refer to the following link for instructions: http://msdn2.microsoft.com/libr ...Show All
Visual Studio Express Editions Save RadioButton Settings "vb Express"
hi how can i save settings of RadioButton For example: If i have 3 RadioButtons, when i'm select one of them, in the next time when I run my application, the checked RadioButton must be the same that was checked at the last time. Thanks I have tried the code you provided but when I write the lines where .rbtn1 rbtn2 and rbtn3 are mentioned a blue line underlines them. what are rbtn1 ..... Do i have to do something before ...Show All
SQL Server Top-Variable-Case
Hi, I have something like the following in a stored procedure. SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC The @rowcount value is passed in by the user to the SP. It can be 0 or >0. Do I need to write two queries - one using the TOP keyword as above and another with no TOP as follows: IF @rowcount>0 SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC ELSE SELECT DISTINCT a,b,c FROM tblA ORDER BY c DESC Or...is there some other construct (such as CASE - which I tried but couldn't get to work) that can handle this condition-check from within the query Thanks much. I'm actually using the new top syntax (with ()) since the SELECT statement IN ...Show All
SQL Server FK Constraint question
I have two tables GroupUsers and Alias GroupUsers -GroupId -AliasId -UserId Alias -AliasId -UserId When a user joins a Group he selects a default Alias for his group, so I have put a foreign key constraint from the groupusers table to the alias table. Now, if an alias is delete, is there any way through a foreign key constraint to set the value to null because all I've seen is Cascade and No Action A better solution I'm looking for would be a way to run a script that would use the value in the UserId column from the GroupUsers table to select the top alias from the Alias table with a corresponding UserId (if exists) and set it to that. I'm unsure as to if this solution is even possible. SQL Server doesn't ...Show All
Visual C# System.TimeZone/TimeZone resource
I am creating an application that will use timezones, both nationally and internationally. Are there any resources on the net that I can get a list of time zones, or development insight I don't know if you are familiar with SimpleTimeZone, but that is what I am using for this project. However, it requires the Abbreviation and Daylight Abbreviations. Is there somewhere I can get this information I can't find information on half the Time Zone's listed in the registry. ...Show All
Microsoft ISV Community Center Forums Adding table in Word Doc over writes previous lines
Please excuse what is probably a simple answer - I am very new at VBA. I am using VBA in Excel and attempting to write to a Word document. The document is to have a few lines of text followed by a 6x6 table. When I do a: Set tableNew = .Tables.Add(.Range, 6, 6) it overwrites the previous lines I wrote. I'm sure there's a way to place this table in the appropriate spot in the document, but I've been unable to find any documentation on this. Can you offer any help with this Thanks, kgkidd This was my first question using this forum. Doesn't seem to be much assistance here - not a single response. Unfortunately I still haven't found the answer. Possibly the question was more dif ...Show All
Visual Basic possible to automate ms word if Ms word is not installed?
Is it possible to automate a Ms word file using vb.net while there is no Ms Word installed on tat pc It means you need to provide some other way to generate a report that does not require word. Then, you can fall back on that lesser quality report if Word is not present, as you can't use it if it is not there. ...Show All
Visual Basic panels with subpanels
if i have a mainpanel and lots of subpanels. The downarrow has disappeard off the screen and the scroll button has varying sizes sometimes being so big it prevents the bottom subpanel from being shown completely. how do i force the size of the scroll button to be small and force the downarrow to appear i have looked at the functions/properties of the main panel but i dont see any way to control it... Thanks, Dan ...Show All
Visual Studio What is the benefit of using GAT versus implementing patterns
This might sound like a newbie question to you and it is. But what is the the advantage of using the GAT package if you are already implementing the patterns in your projects. Plus if you have a project layered out and already in development what kind of benefit I can expect by switching to GAT also how to implement GAT to a mature project As we all know, first rule for any business is profit. So my question is what is the profit of using the GAT I am just interested. Maybe you know about a webcast that will go over the benefits of GAT. You can use GAT for things as guide the developer through the development process and doing things as producing code that already uses a given pattern, enforcing a given pattern is used in pre-exis ...Show All
