Answer Questions
daraneko formating columns of a datagridview
does anyone know how to format especific columns of a datagridview in windows forms with values already in it for example, I wanna format the first row to #.## but it doesn’t do anything (instead of 5.45444 I wanna show only 5.45 in a existing cell DataGridview1.Columns.Add( "value" , "value" ); DataGridview1.Columns.Add( "name" , "name" ); String [] row = new String [2]; row[0] = "5.45444" ; row[1] = "test" ; DataGridview1.Rows.Add(row); DataGridview1. Columns[0].DefaultCellStyle.Format = "N2" ; dtgAcao.Refresh(); So, the final solution which works should be like this, when you are adding a new row: this .theDataGridView.Rows.Add(5.321, "hi" ...Show All
William Bartholomew Add users from a trusted NT domain
Hi, We have installed TFS on a single server that is a member of an active directory domain (Win2k3). This AD domain has a two-way trust relashionship with a NT domain. The problem is that we can't add users from the NT domain to the "Team Foundation Administrators" group (or to any other TFS group). Do we have to mirror the TFSService account on the NT domain Other solutions Thanks. Not very likely - there are specific issues we have with supporting domains before Win2000 (we did consider it, but there are non-trivial problems there), and the customer demand has been relatively low for it. Also, given that NT is no longer supported, it made the most sense for us not to support ...Show All
BobP - BIM what is the problem? that program!!!
class PointF { public PointF() { } public PointF(float x, float y) { m_x = x; m_y = y; } public static float GetLength(PointF pF1, PointF pF2) { return System.Math.Sqrt(System.Math.Pow(pF1.m_x - pF2.m_x, 2) + System.Math.Pow(pF1.m_y - pF2.m_y, 2)); // what is the problem!!! } public static PointF operator +(PointF pF, SizeF sF) { return new PointF(pF.m_x + (float)sF.Width, pF.m_y + (float)sF.Height); } public static PointF operator +(SizeF sF, PointF pF) { return new PointF(pF.m_x + (float)sF.Width, pF.m_y + (float)sF.Height); } public static PointF operator -(PointF pF, SizeF sF) { return new PointF(pF.m_x - (float)sF.Width, pF.m_y - (float)sF.Height); } public static PointF ...Show All
Shyam Sundar Point me in the right direction
I am wondering where i can get more specific information on the use of Me.Text = Filename. I can get it to work but it gives me the full path of the file. I am sure that there is some factor that I can attach to the above to only display the filename without seeing the whole path and show only the name of the file. The problem is I don't know if it is a Me issue or a FileName. issue. I have scoured (at least in my mind) several books, and the MSDN and I am not finding what I am looking for. I am sure it is also very, very basic. Anyone LDavis 501 Well, what is the value of "Filename" if the value if filename is something like: C:\ ...Show All
michael447887 Still a bit slow opening projects
Hello, As mentioned before, the import schema process is extremely fast now, which was pleasantly surprising, however opening an existing project with lots (>5,000) of objects still takes a long time. This is also without using source control and so I'm guessing it would take up to 10 minutes to open if I put my project into TFS / VSS. Is there any way to speed up the opening process, e.g. by disabling particular schema checks when first opening the project Hmm, seems to be pretty level. It first does both of: Deserializing design-time validation database Deserializing Database Object Relationships Which table about the same length of time each (~1.5 mins), then the status bar is cleared and ...Show All
MellRose Compiler error
Hello, i want write my vb application by text editor instead of VisualStudio. Such as in Visual studio help online, i've wrote this in textfile named form1.vb Imports System Imports System.ComponentModel Imports System.Drawing Imports System.Windows.Forms Public Class form1 Inherits Form public sub new() end sub 'new <STAThread()> _ Public Shared Sub Main() Application.EnableVisualStyles() Application.Run(New form1()) End Sub End Class Then i've launched .net framework prompt and i've typed vbc form1.vb /r:system.dll,system.drawing.dll,system.windows.forms.dll but the compiler give me some error C:\form1.vb(6) : error BC30205: Previewed instruction end Public Class form1 Inherits Form C:\form1.vb(6) : ...Show All
Reena33 sourcesafe
During the process of loading a VS 2003 project - VS posted a dialog that sourcesafe was not installed for server (words to that effect), Is Sourcesafe now run only on Team foundataion server which I have to connect to or can I hook into the existing database. Sourcesafem itself reads the database fine, I just can't get VS 2005 to connect to it. VS 2005 should be able to use existing SourceSafe databases. If you go to Tools->Options->Source Control is "Microsoft Visual SourceSafe" one of the options available in the Source Control Plugin dropdown If so, then VS should have the necessary SCCI components installed to interface with SourceSafe. Thanks, Ben I am ...Show All
lm089 "TFS WorkItem Tracking" service does not match the trusted performance library information
Hi I have been receiving the following message in my application event log "The configuration information of the performance library "C:\WINDOWS\system32\netfxperf.dll" for the "TFS WorkItem Tracking" service does not match the trusted performance library information stored in the registry. The functions in this library will not be treated as trusted." Does anyone know how to resolve this It might actually need extensive troubleshooting to find the cause, and you might want to contact CSS by calling 800/936-5800 if from US (see <http://support.microsoft.com/> for calling from other countries) - They can help by spending a lot more time with various troubleshoo ...Show All
daverage Communication Between Multi Forms
Hi. I'm a beginner in VC++ and I've a big problem to make possible change the controls appeariance belong to one Form from another Form.For example I've got 2 Forms: Form1 (with button & TextBox) and Form2 (also with button & TextBox), when I clicked button from Form1, the text in TextBox on Form2 should change, and when I clicked button from Form2 the text in TextBox on Form1 should change. I was trying evrything, and only what I done is changing from Form1 the TextBox on Form2. So Please Help Me. Here I Show You The code: File: Form1.h >>>-----------------------START--- Form1.h ----------------------------> #pragma once namespace Delete9 { using namespace System; us ...Show All
Ted. error 28002 or 32000, i’m desperate
Installing VSTFS if I am in port 8080 I have error 28002 but if change the port I obtain error 32000, somebody can say to me, like avoiding these errors. I am desperate Microsoft Visual Studio 2005 Team Foundation Server - ENU: [2] ERROR:Error 28002 .Error unknown. TfsGSSInit - Irrecoverable error: TF50626: Maximum users (5) in License group. Unable to add Administrador. 11/21/06 18:28:15 DDSet_Status: Process returned 6130 11/21/06 18:28:15 DDSet_Status: Found the matching error code for return value '6130' and it is: '28002' But this was a clean install or an upgrade Hi Silvix, try using Team Explorer when that error occurs and remove some users from the Licensed User Group. Then o ...Show All
Lisa Shipley class from a class
is it possible to call a class from a class. i have created two forms Public Class MAINVIEW Dim ANS As String Public Sub BTNSEARCH_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNSEARCH.Click If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then MsgBox(OpenFileDialog1.FileName) CONTROL() End If End ...Show All
GAG1 Somthing missing
Hello All I have some kind of homework ...the good news: i did it but the problem is that the drawing never completes. I have to build a recursive sub to draw nested circles, but the program is that it only draws on a spesific part of the form. I need an advise how to solve the problem, to complete my HW and send it to my totur. the code is : Dim graph As System.Drawing.Graphics = Me .CreateGraphics Sub circle( ByVal x As Integer , ByVal y As Integer , ByVal rads As Integer ) Dim x1, y1, x2, y2 As Integer x1 = Math.Cos(4 * Math.PI / 180) * rads y1 = Math.Sin(4 * Math.PI / 180) * rads For t As Integer = 4 To 360 Step 4 x2 = Math.Cos(t * Math.PI / 180) * rads y2 = ...Show All
Louis_T Can't install KB919156
Error: Product: Microsoft Visual Studio 2005 Team Foundation Server - ENU -- The application pool identity required by Team Foundation Server (TFSWSS) for the content virtual server is not using the Team Foundation Server service account. To proceed, you must exit setup, set the application pool identity (TFSWSS) to use the Team Foundation Server service account, and then run setup again. 1. In my case the TFSWSS-pool is running as: SE\TfsService 2. SE\TfsService is a member of the "Service Accounts" group in TFS 3. SE\TfsService is local admin om the server 4. The TFS-installation is working fine 5. When the server was installed a while ago the domain was FYLKE ( now changed to SE) -> can that have anyth ...Show All
holzer Convert DayOfYear to Date
Hello All I am seeking guidance in converting a DateTimePicker.Value.DayOfYear to Date. Outline 1). On a windows form enter the day number (production day) into a textbox and return the production Date in probably another textbox( ) If anyone could offer guidance that would be great! Mark Thanks very much for help - excellent Dim DayOfYear As Integer = Me . DateTimePicker1 . Value . DayOfYear Dim StartOfYear As Date = "#1/1/2006#" Dim MyDate As Date = StartOfYear . AddDays ( DayOfYear - 1) ...Show All
nephsbirth2021 Problem with linking GridView to DetailsView
im linking a GridView to a DetailsView , the GridView has Paging Enabled but when I go to the second page of the GridView and select a record it doesnt update the DetailsView with the selection. when i make a selection on page 1 it works fine but for some reason doesnt work when i click page 2 of the records. heres the syntax i used: Protected Sub GridView1_SelectedIndexChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged DetailsView1.PageIndex = GridView1.SelectedIndex End Sub This is perfect for Paging, How about when I sort, I'm running in to the same issue there i found the answer: Pro ...Show All
