Arnar Vilhjálmsson's Q&A profile
Visual C# Whats the most Efficient way of retrieving the information about all the files and folders on a System
Hi there !! I have just started working in C# few days back .... I have got a problem but unfortuanately got no time.. My problem is .. I want to get all the folders and files present on all the logical drives on a system and then Populate a Tree view object with them. I have done it and my application is running but it takes long to gather all this information .. Can any one plz tell me whats the most effeicent way of doing this task.. (should I use FAT if yes how to access it or find it ) plz help me out as soon as possible.. I just need some valid and proven idea..thnx Regards Imran .... ...Show All
.NET Development Student needs help
Hello out there. I am a new student at the local college and i'm having a problem with this code. The debugger says that BillingCycle is not defined. Can someone help me Public Class WorkDay Private mdteDayWorked As Date Private msngHoursWorked As Single Private msngHoursBilled As Single Private mintProjectNumber As Integer 'Default constructor Public Sub New () mdteDayWorked = Today () msngHoursWorked = 0 msngHoursBilled = 0 mintProjectNumber = 0 End Sub 'Constr ...Show All
Architecture Access to Stdregprov
I am running into what I believe is a security problem trying to access the registry via WMI using stdregprov. I am trying to access the HKEY_CURRENT_USER\Control Panel\International key, specifically the value sDecimal. The following is the javascript snippet I am using: var ls_regKey = "Control Panel\\International"; var HKCU = 0x80000001; refRegistry = GetObject("winMgmts:{impersonationLevel=impersonate}!root\\fit1cd666\default:StdRegProv"); // determine if we can access the registry var numAccessMask = 1; var boolAllowed; if ( refRegistry.CheckAccess(HKCU, ls_regKey, numAccessMask, boolAllowed) == 0 ) { S ...Show All
Software Development for Windows Vista WWF - Sequential workflow
Hello, I have an sequential workflow. Within this I use the while activity.Inside this I have an sequence activity which host 3 own developed activities. The own developed activity has a member that is not serializable and is declared on activity instance level. When the workflow gets initialized each of the activities Initialize method gets called. I detected that when running within the while loop of my while activity and one of my own activities is called via 'code execute' that each time a new instance of my activity is created and the non serializable memebr is null. Question: Is this by design Because adding the activities in a simple ...Show All
Windows Forms Internet Video Problems
sometimes when i try to view videos off of my internet explorer everything freezes and the only way to shut it down is for ctrl-alt delete it. i have the 6.0 update and this still happens from time to time what can i do This forum is for Windows Forms related questions only. Try posting your question to the Microsoft Newsgroups. See the link below for more information. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=8343 ...Show All
Visual Studio Passing Parameters to a report or report viewer
Hello Everyone I look on the boards for an answer to this question but didnt see one that answered my question so here goes. I have a ReportViewer control that is part of a composite control. At runtime I dynamically bind reports to this viewer. Now in many instances I should be able to pass parameters to the "report" to save the users from having to type it all in. However I dont know how to do this. I found a tutorial on the web and tried it but havet been able to get it working. Here is some sample code. What it should do is display my "WorkOrder" report in the viewer with the "OrderID' parameter assigned a ...Show All
SQL Server Problem with non-standard dimension
I am very new to Analysis Services and have a problem that I don't have any idea on the direction to go or where to look for the answer. I have included a very simple example of the tables to hopefully explain what I am trying to do. I have a WIP billing table that is used as my Fact Table. I am using the Adjustment column for my measure. I have three dimensions "Region by Employee", "Region by Client", "Service Code". The different region dimensions are because the work may have been done by an employee in a different office or region than what the client is assigned to. Everything is fine when filtered by the "Region by Client" d ...Show All
SQL Server Connection To SQL Server 2005 / 2000
Hi everybody, I got a bit of a problem with my connection. I wrote a programm in VB.Net wich connects to a sql-server 2005. On my local Computer everything works great, but on another Computer in the Network, I just receving timeouts. I allready check, if the sever allows remote connection. My connectionstring for the SQL connection looks like this: "Initial Catalog=Bauvorhaben;Data Source=P4-2400\SQLEXPRESS;Password= ;Persist Security Info=True;User ID=Lars" I allready tried to get an connection to SQL-Server 2000. But the same here. Does somebody have a clue, why I can't connect Thanks, Lars B ...Show All
Smart Device Development Pocket Access
Hello guys, i need to create new Access tables on PPC2003SE then read from and write to them, of course programmaticaly. Does anyine has an idea on how this is possible thanks a lot in advance To be more clear, i have an Access file on my desktop that contains tables that has the .mdb extension, when i transfer it to my PPC 2003 SE emulator with ActiveSync, it gets the .cdb extension. Once on my PPC 2003 SE i need to edit the tables, add data to the existing tables and fields, create new tables and fields if necessary, and read all the info from these tables. Anone has any idea on how to make it any tip woul ...Show All
Visual C# Refactoring: Encapsulate field.
Hi All, Just started to look at VS2005 beta 2 - I don't seem to be able to use the encapsulate field refactoring function. I select a private class level variable and click encapsulate field. The IDE then prompts for the property name and displays a code preview window which has the original field renamed to that of the property (highlighted) and no get/set type code. Am I doing something wrong here Cheers, JW. I guess not supporting most of the refactoring options in Express is by design, It's one way to add value to Visual Studio. In VS2003 I used a plug-in that provided ...Show All
Visual Studio Team System Visual Studio 2005 Team System RC VPC
Hi! I download Visual Studio 2005 Team System RC VPC from MSDN Subscripbers dowloads site. When I try to start the VPC and login with: User: Administrator Password: pass@word1 the system deny this account. What wrong This account present in MSDN Subscription downloads site and in Readme.txt file dowloaded with VPC. Thanks. I should point out that the readme file that came with the MSDN download lists the password as pass@word1 , with the lowercase "p". That is unless the readme has been updated within the past three days, in which case please disregard this message! ...Show All
Visual Studio Express Editions Display RSS Feed
I have a very basic bit of code which displays the contents of an RSS feed in a datagridview. Currently it displays everything in the feed (category, title, description, link) There are three ways I would like to edit this: 1. Only display the Title, Description and Link columns 2. The link is currently only displayed as text, I would like to make at an actual hyperlink to the article. 3. Currently the feeds will display in new columns in the DataGridView, I would like them to display in columns I have created with the headings I have made. My current code is shown below: Private Sub Form1_Load( ByVal sender As Syste ...Show All
Visual Studio Team System Looking for a sample LLD
Hello, I have been reading MS VSTS and am getting a little confused on the LLD. If someone could provide a quick sample I would greatly appreciate it. I have two scenarios: Scenario 1: We have two physical boxes. 1) Database Server w2k3 2) IIS server w2k3. The IIS box has both the webservices as well as the web site application on the same box. What endpoints do I add How can I represent this on an LLD Scenario 2: On a client we have w2k machine. It has sql express as well as a vb.net windows application. Sql express will replicate via websync which is fired off from the vb.net windows application. What endpoints do I add How ...Show All
SQL Server "Package Failed Validation" error
I'm trying to have a parent package derive the filename for the appropriate child package to execute. The parent package logic manipulates a Filename variable that is then used in the connection string of the Execute Package task: "c:\\Packages\\" + @[User::Filename] The error I'm getting is Error 0xC0012050 while loading package file "c:\Packages\test.dtsx". Package failed validation from the ParentPackage task. The package cannot run . How can I resolve this security/authentication problem Why I'm trying to do this I'm importing dozens of different flat files. Some of the files share a gene ...Show All
Visual Studio Tools for Office Publishing Issue VSTO Word Project
I can run this project fine in Visual Studio. When I publish the project the Word document can be opened from the shared network drive but it isn’t populated with data and the action pane is not visible. Any ideas This is my experiance, with an Excel VSTO excel file on a client box and the assemblies on a remote computer. Client needed to be updated to 2003 SP1 of office. Client needed the download update from office update on the web which targetted VSTO on open issues on remote machines. Had to install Office 2003 Interops and VSTO runtime from the VSTO developers install and not ...Show All
