Software Development Network Logo
  • IE Development
  • .NET Development
  • Visual C++
  • Audio and Video
  • SQL Server
  • Visual FoxPro
  • Microsoft ISV
  • Visual Basic
  • SharePoint Products
  • Windows Forms
  • VS Team System
  • Smart Devicet
  • Visual Studio
  • Visual C#
  • Game Technologies

Software Development Network >> modtran's Q&A profile

modtran

Member List

RHunter1
IamHuM
Mehdi Mahdloo
Modeller
Agrapha
Konstantin Kamanin
MJA73
akjal
LittleSettler
MikeMikeMike
JoshKorn
AndersL
Steve Jensen
bobygeorge
soh99
A kid
kymaita
Eli.weiwang
BRAD.Marsh
Forgon
Only Title

modtran's Q&A profile

  • Visual Basic Save text file with "ENTER" and "TAB"

    Hello, I am using the following codes to save data from a datagrid to a text file. I am a beginer in programming, so it may not be the best way of doing it. Dim DataRow As Integer = 0 Dim DataSaveString As String = "" While DataRow <= 27 DataSaveString = DataSaveString + Me .DataCache.Item(0, DataRow).Value + ChrW(10) DataSaveString = DataSaveString + Me .DataCache.Item(1, DataRow).Value + ChrW(10) + ChrW(13) DataRow = DataRow + 1 End While Me .TempSaveField.Text = DataSaveString Dim TextEncoding As Encoding = Encoding.ASCII File.WriteAllText( "TestFile.txt" , Me .TempSaveField.Text, TextEncoding) End Sub I manage to save the information but ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. TorqueXNA

    I had a look at the XNA version of the Torque 2d engine and noticed that it converted 4mb worth of png files into over 60mb of xna files; Is this a Torque issue or xna as its a massive increase and would make releasing any games online a virtual impossibility. The default processor for non-model (e.g. sprite) textures doesn't use DXT. I just converted my previously mentioned texture to DXT1 and got a 512KB dds file. The same file converted by the content processer to xnb is 4MB. ...Show All

  • Windows Forms Collection property in User Control

    Hello. I have a question about the user control. I'm making the user control which have a collection of another control. Even though I marked the attritube [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)], it doesn't write the property of the inner control in the "Form.Designer.cs". My codes are here. ------------------------------- public partial class UserControl1 : UserControl { private TestControlCollection mtxtValueColl; [Category("MyTest"), Editor(typeof(CollectionEditor), typeof(UITypeEditor)), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public TestControlCollection TestCollections { get { ...Show All

  • Visual Studio Team System Dual-server setup / Impossible to specify Database server name in Services Setup

    Hi All, I have been reading all installation readmes and help files and still, I could not manage to go through the setup of VSTS. Here is the situation : I try to install VSTS in dual-server mode, on two distinct Win2003 SE virtual machines, running on one single host. I have the domain users tfsSetup and tfsService, with correct credentials. Data tier has been installed ok. I have SQL Server 2005, hotfixes and TFS database part. Application tier has (so far) the SQL 2005 Report Services, hotfixes and Sharepoint Services installed. 1. When I restart the application tier after installing SharePoint Services, I get an error message stating that "one or more services have not been started...". It appears that Repo ...Show All

  • .NET Development Rounding to X Significant figures

    Is there a function in the class library that will round a decimal to a specified number of significant figures I've had a look a the System.Math object and it doesn't seem to have what I need. I've also seen other suggestions about using string formatting with the ToString method to get the number in scientific notation but I really don't want to go down the road of parsing the resulting string. e.g. 1,234,567 to 3sf = 1,230,000 0.123456789 to 3sf = 0.123 System.Math is all you need. Here's the floating point version: public static double SlideRule(double value, int sigdigits) { if (value == 0.0) return value; bool neg = value < 0; if (neg) value = -value; double m10 = Math.Log10(value); double scale ...Show All

  • SQL Server How to apply SQL Server 2005 Express SP1 to the version of SQL Server 2005 Express which installs with Visual Studio 2005?

    When I installed VS 2005, it installed the default version of SQL Server 2005 Express that ships with Visual Studio 2005 installer media. How can apply SQL Server 2005 Express SP1 to update this existing instance Currently, if I run this query: SELECT @@version I get the following: Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Express Edition on Windows NT 5.1 (Build 2600: Service Pack 2) After applying SP1, I should get 9.00.2047.00. Should I just go to this link and download & install the SQL Server 2005 Express Edition SP1: http://msdn.microsoft.com/vstudio/express/sql/download/ Thank you, Bashman ...Show All

  • .NET Development Interop layer throws System Exception (cast) when accessing unmanaged COM code

    I would appreciate help/comments on the following... I am trying to access a COM component written in Fujitsu NetCOBOL from C#. I have spent many hours (days...) reading the docs, trying various combinations, and looking at the samples but my attempts are failing miserably. The COM .dll is called "AVSCOMSVR" and the embedded TypeLib has been picked up and converted to an Interop Assembly by VS 2005. Here's a picture of the generated interfaces and Classes: http://homepages.ihug.co.nz/~dashwood/dashwood/AVSProject2.jpg I find this a little puzzling... VS2005 seems to have duplicated the interfaces, some above the Class entry and some subordinate to it, but that may be OK and just reflect my limited understandin ...Show All

  • .NET Development dispose method in a correct way

    Hi, Please help me with the following questions: 1. What is the difference between the managed resources and unmanaged resources Any examples 2. When i disposing an object, Do I have to set the object to nothing as well For example: Finally cmd.Dispose() cmd = nothing End Try 3. When disposing, do I have to set every instances to nothing For example: string, integer, etc 4. When disposing an object, do I have to check if the object is nothing For example: If not IsNothing(cmd) then cmd.Dispose() End If 4. If I create a new class, Do I need to implement the Dispose method 5. What should I do to properly clean up the resources 6. Sometimes I saw some object might have two ...Show All

  • Visual C# ds.ReaXml(); in portuguese ???

    Hi, I'm trying to read this XML( http://www.wunderground.com/auto/rss_full/global/stations/83780.xml units=both )in portuguese is there a way to do that (Web Application) When I open it in IE I read it in portuguese, but when I query it through .net it returns in english... Thanks And it get's the URL for you. Wow I did not know the DataSet would navigate the HTTP protocol. Well that is your problem then. You'll need to use something like the WebCient. Thankfully - this isn't too difficult. I will try to post some code in a bit hopeuflly. ...Show All

  • Visual Studio Team System TFS Warehouse Processing Error

    First up, I have deviated slightly from the stock TFS install because we prefer to use Kerberos rather than NTLM for authentication. To that end, all TFS services and app pools are running under a domain account and SPN's for the HTTP service (both NETBIOS and FQDN) have been registered under that account. C:\>setspn -L DOMAIN\TFSSERVICE Registered ServicePrincipalNames for CN=tfsservice,OU=Service,OU=Generic Accounts,OU=User Environment,DC=domain,DC=company,DC=com: HTTP/SERVER1 HTTP/server1.domain.company.com All was working well, until recently when the warehouse process packed up. Processing was generating this error in the Windows Application Log: Event Type: Error Event Source: TFS Warehouse Event Category: ...Show All

  • Visual Studio Team System Removing 'invalid rows' from query-result list

    I'm using the following code to get the number "developer hours by week" (slightly modified version of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=326021&SiteID=1 ) . WITH SET [ValidRows] AS ' { FILTER ( NONEMPTY ( ( [Assigned To].[Person].[Person], [Work Item].[System_Id].[System_Id], [Work Item].[System_WorkItemType].[System_WorkItemType], [ Work Item].[System_Title].[System_Title] ), {[Measures].[Current Work Item Count]} ), [Measures].[Completed_Work] <> 0 ) }' MEMBER [Measures].[Completed Work On Period Start] AS ( (STRTOMember(@prmStartDate)), [Measures].[Company_Common_ActualTime] ) MEMBER [Measur ...Show All

  • .NET Development implementing Iterator C#2.0

    I have added IEnumerable to my CacheManager class to be able to call foreach in classes that implement the CacheManager. public class CacheManager : IDisposable, IEnumerable { ………………… public IEnumerator GetEnumerator() { for (int i = 0; i < this.Count; i++) { yield return this[i.ToString()]; } } ………….. } In my Order class I am trying to use the foreach loop but I get the following error: Error 1 foreach statement cannot operate on variables of type 'Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager' because 'Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager' does not contain a public definition for 'GetEnumerator ...Show All

  • Software Development for Windows Vista Unpleasant surprise after installing Visual Studio SP1

    Dear all, Beware of installing Visual Studio SP1 if you have Workflow Foundation Extensions for Visual Studio installed. Everything looks ok until you try to create a new workflow. At this point, the binding of activity properties to dependency properties refuses to work. None of the dependency properties appear as valid choices for binding to. Also, the workflow snippets no longer work. There is a simple solution to these woes: Run the Visual Studio 2005 Extensions for Windows Workflow Foundation setup program and Repair your installation. This is not mentioned anywhere in the VS2005 SP1 release notes. Dear Kushal, I'm glad you can reproduce the issue with the workflow snippets. Having created a new Sequentia ...Show All

  • Visual Basic Getting Current Item of a ListView and Editing item on double click

    Hi Guys, Hope someone can help me on this question it's two part but here's the background -- I have a ListView and 5 text boxes with a Add Button --- I can add new items's fine as per the code below. What I just cant seem to figure out is the following --> 1) When I single click onto any of the rows within the ListView -- I just want to update a label, somthing like "record 3 of 15 selected" 2) When I double click onto any of the rows within the ListView I want to update the 5 text boxes with the contents (effectivily in an amend mode), let the user make changes and the Instead of "Adding" them the Add button will update the record it's on. Hope someone can help and you've understood my explainati ...Show All

  • Visual Studio Express Editions Profiles vs Sessions Best Practices

    I am currently migrating an application from ASP to C# 2.0. I have designed the c# site to use a session firstname session ID and session Email to reduce the number of hits to the database, and to manage the users state. I recently learned about profiles, and I have attempted to use a profile for the user instead of the session. I am a little confused in how a profile works compared to a session and could not seem to find an abandon or dispose method. Is using a profile instead of a session a bad idea In addtion, I am using a page base class that all pages are inheriting. This class includes a session check to control access to certain pages. I am wondering if it is possible good/bad to use a profile instead of the session, and I ...Show All

©2008 Software Development Network