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

Software Development Network >> enric vives's Q&A profile

enric vives

Member List

dakota367
Andy Ho
LightWalker
Mr_White
Oleg63
bri5
ranasrule
Mark Macumber
Lisurc
C#noob
Karma Patrol
Philippe Cand
tackett
Virgil Rucsandescu
re infecta
RJGibson
MrZap
mackenzie 2480
Netmaster0000
james_cline_
Only Title

enric vives's Q&A profile

  • .NET Development Loading words from text file in an array

    Hi, How do i load a bunch of words from a text file into an array. And how can i randomly show them in a label with a sleep thread of 3000 milliseconds This is how the words in the document look like: test; west; coast; east; I tried using the for and foreach statement. Without luck! Hope you guys could help me out. Thanks in advance! Try this: FileStream theFile = File.Open (@"pathtofile", FileMode.Open, FileAccess.Read ); StreamReader rdr = new StreamReader(theFile); string sDocument = rdr.ReadToEnd(); rdr.Close(); theFile.Close(); string[] sArray= sDocument.Replace('\r','').Replace('\n','').Split(';'); foreach(string s in sArray) { label1.Text = s; Thread.Sleep(300 ...Show All

  • Visual Studio Team System Code analysis check-in policy.

    Hi, 1. Do I need VSTS for Software Developers for the code analysis check-in policy to work 2. If not then how do I enable the built-in code analysis 3. I noticed I've got the fxcop folder and rules under "C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools" - does this help me regards, Av Yes..sure you can have your own custom rules dll...like FXcop ..rules...and the same you can copy the dll in the mentioned path by you.....once this is done...when you will be getting those rules displayed in the PRoject properties dialog box under the section of "Code Analysis" .....you can enable or disable the rules according to your need by unchecking or c ...Show All

  • .NET Development Convert.Toxx vs DataType.Parse

    Whats is the best practice between using Convert .ToInt16 ("stringVar") short.Parse("stringVar") what is more aproppiate for performance and memory space use thnks   Convert.ToInt16("string")   calls Short.Parse("string") ...Show All

  • Visual Studio 2008 (Pre-release) Querying xml file without loading it into memory?

    Hello, I am new to Linq and was wondering if it can be used to query an xml file without loading its contents into memory. I have a big xml file (~100MB) and would like to perform queries on it such as counting the nodes that have some attributes set, etc... If I use the XElement.Load method the whole contents of the file is loaded into the process memory. So is there a method that can be used to achieve this I would appreciate any suggestions. Thanks. Unfortunately, no. There is no such technology for querying xml files without loading them. I suspect you are looking for something that would load only relevant portions of the file, or some kind of moving window that would enable you to query the whole fil ...Show All

  • Visual Studio 2008 (Pre-release) How Large Can A WPF XAML Browser Application Be?

    We are looking at ASP.NET 2.0, WPF installed applications and WPF XAML Browser Application for developing our new product. This product can easily have 500 forms. Can the WPF XAML Browser Application technology be used for this type of application Is it realistic With ASP.NET this is no problem. Load the page, fill in and post. I was concerned how long this application would take to load. Have I missed something Thank you and have a great day, Karl Sure, an XBAP can be used. I don't believe we put in a size limit on XBAPs. I think for a large app as you mention (any flavor, not just XBAP), you may need to architect the app such that the size does not impose an unnecessarily long wait during activation. ...Show All

  • Visual C++ What does this Error means...? How do we fix the problem...?

    Hi, ...   ...   ...   Allah Is Here... I use the Visual Studio 2005 Standard Edition, with Visual C+++ and DirectX 8... I get this kind of error from the compiler, as below...   1>------ Build started: Project: Chapter 9_Project, Configuration: Debug Win32 ------ 1>Compiling... 1>Crap___1.cpp 1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(116) : warning C4005: 'D3DFVF_SIMPLEVERTEX' : macro redefinition 1> c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(64) : see previous definition of 'D3DFVF_SIMPLEVERTEX' 1>c:\documents and settings\ly he ...Show All

  • Windows Forms Another publishing problem

    Hello, II have written my first VB 2005 Express Edition program and want to put it on a CD so that it can be installed on other computers that may or may not have and internet connection and may or may not be running the same Windows version. I'm running VB 2005 Exress under Win 2000 Pro SP4 and my test destination computer is running Win98. My first attempt at publishing it failed. The install hung trying to download files with no internet connection. I came here and read all the threads (at least I think I found them all) related to publishing. I went back to the Publish section of the project properties window then clicked the Prerequisites button. "Create setup program to install prerequisite components is checked". The ...Show All

  • Visual Studio crystal reports dont work after deploying my web application on another computer?

    Hi, im developing a web application using vs.net 2003 that use crystal reports generated from SQL server 2000 database then exported to pdf format, to this point i dont have any problems and the reports generated successfully, but after deploying the web application and installing it on another computer and try to open a report i got a pop up message box that tell me to open or save the current aspx page or to cancel, i read an article about deploying web application with crystal reports and do everything, i add a reference for all the required merge modules and specify the licence key for the crystal_regwiz2003.msm merge module, but still not working. knowing that i run windows xp sp2 operating system and as i said vs.net 2003 can y ...Show All

  • Visual C# How to find a System Tray Process

    Hi, I'm trying to retrieve a process from the System Tray programmatically. My program starts the process and then saves the Process object. Later, the program tries to locate the process and bring it to the front (in focus). For all processes that do not reside in the system tray, I can do this with no problems. When I call AppActivate on a process that is in the SystemTray, the ArgumentException is raised. Does anyone know how to retrieve a process from the system tray Here is the code that brings the process in focus. The Process.Id is non-zero, but the Process.MainWindowTitle and Process.MainWindowHandle are undefined. if (( null != sender) && (sender is Control ) && ( null != (( Control )sender ...Show All

  • SQL Server PDF: overlap of tablecolumns

    We have build a report (rs 2000 sp2) with a table in a list. The list is group by location and the table is grouped by a breakdownfield. The table has three columns. When we view the report in preview mode everything renders fine. But when we export to PDF something strange happens. On some pages the tables renders fine, and on some pages the columns of the table overlap Someone else has expierenced this behavior And who knowns why this could be happening ...Show All

  • SQL Server Multicolumn Report

    Hello, I have a report that has 2 fields only and takes about 4 pages. I want to create a multicolumn report so, it would not take more the 2 pages. I went to report properties, layout, changed number of columns to 2 and it does not work. Am I missing something here Could anyone help me, please Thank you. Igor, Your total width of your 2 columns can not exceed 8.5 it you're using a 8in X 11in display. You can make the width of each column about 3.5 with a .5 in Margin in your report layout should get you what you want. Ham ...Show All

  • SQL Server package with a custom component (log provider) runs in BIDS, but doesn't run where deployed.

    Hi, I have a package with a custom log provider, which runs in BIDS. However when I deploy the package onto SQL Server and run it on the deployed machine , if fails: "failed to decrypt protected XML node DTS:Password...key not valid for use in specified state..." Now this is definately to do with the custom log, as if I take it out & redeploy, I can run it on the deplyed server + also run it within a job. I have entered the custom log provider library (+ other required DLLs) in the GAC on the deployed machine, but I'm clearly missing something. Any ideas pls I'm really stuck. Many thanks in advance, Tamim. Thanks for the quick reply Phil, but that didn't work. Is there anything extra I need ...Show All

  • Windows Forms DataGridView problem: Painting takes 1/4 of a second.

    Hello I have some problems with DataGridView . I have one TabControl with two tabs. The first one contains a DataGridView and the second one contains other controls. The DataGridView has its DataSource property connected to a DataTable . This table is set up with 20 columns and has 100 rows. The problem is, when I select tab 1, the DataGridView needs 1/4 of a second to finish its painting. This is really annoying. (Reducing the number of rows does not solve the problem) Is it possible to come around this delay somehow Kind Regards Hi Yes, I see the delay. If I resize the width the delay gets event larger. If I make a full-screen (1280x1024), it takes 0.6 seconds to finish. (Then I have 42 rows and 12 c ...Show All

  • .NET Development GUID attribute in DTD

    Hello all! Is it possible to add to DTD an attribute that contains a GUID. This GUID must be unique as ID typed attributes in DTD. However ID typed attributes must begin with a letter, which is a slight problem for GUIDs. Thank you beforehand. Some options you may want to consider: Use only GUIDs starting with a letter (A–F) Prepend all GUIDs with some letter Do not rely on DTD: declare that attribute as CDATA, and check for uniqueness yourself Use XML Schema as an alternative Hope it helps, Anton ...Show All

  • .NET Development System.Configuration

    The System.Configuration is a namespace that is contained both in System Assembly and in System.Configuration Assembly. This is odd to begin with. When i'm trying to load config settings using the SingleTagSectionHandler type there is a TypeLoadException on this type, because the system.configuration assembly is loaded and it does not containg the type. However, in my C# project references only the System assembly is referenced. So, whats the catch Anyone, any ideas (.Net Framework 2.0, Compact .Net Framework 2.0) Example: < section name = " C2View.BLL.NMEACommunicationAdapter.DeviceInitialization " type = " System.Configuration.SingleTagSectionHandler " /> ...Show All

©2008 Software Development Network