Leonard Lee's Q&A profile
Software Development for Windows Vista Problem with Windows Workflow Foundation RC2
Hi, I installed WF RC2 and tried running the SQLDatabase Activity Example. But i am not able to view the workflow designer.I get the error which i have mentioned below. "Error Loading Workflow An error occured while loading the workflow.Please correct the following error and try reloading the document to view the workflow. Theme properties can only be changed in the theme configuration dialog." I was able to view the same sample using WF Beta 2.2 version.But after installing the RC2 version i get this error.Kindly help me solve this issue. Thanks in advance. Karthick. Hi Craig, Thank you for your reply.But i am not able to find the code where they are setting the the ...Show All
Smart Device Development Context Sensitive Help
I ahev been able to generate a HTML file as described in the http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/wincehelp.asp and http://msdn.microsoft.com/library/default.asp url=/library/en-us/guide_ppc/html/ppc_pcconapplicationhelpforpocketpcs.asp however i do not know how to integrate it into my application.Please help On each form add a handler for HelpRequested event. Inside that event handler you can use Help.ShowHelp to display an appropriate help topic. Don't forget to set HelpEventArgs.Handled to true. This is for Compact Framework 2.0 only ...Show All
.NET Development Complex SELECT query
Hi All, I have a query regarding the optimisation of a "SELECT" query. The probem is that there is a table having 1,00,000 of records. I have to make a "SELECT" query on them and display them in a datagrid as a report. The problem here is that i am using simple "SELECT" (SELECT * from tablename) query. and it is taking too much time. is there any optimize way so that the query will execute in less time. Thanks in advance Select * is slower than using the column names. Sounds like you need to add or tweak your table indexes. Are you sure the lag is in sql It can take a long time to load that many rows in a grid. ...Show All
.NET Development Newbie: script runs on local but not networked drive??
Hi all, Newbie question - I want to create a script/executable to copy files from a subdirctory, and then update the copied ("local") versions with the current timestamp. The only way I could figure out the timestamp issue, was to actually write over the local copy's contents, then save it. See code at bottom of message. Now maybe there's a better way to do that - but that's not my question. (Note: code implies you have a subdirectory called "SubDir", and it contains a readable text file called "myfile.txt".) I can compile the code (using jsc), and run the executable on my C drive and everything's fine. Now I move the whole directory/subdirectory tree somewhere else on my C drive, and everything's still fine ' ...Show All
Visual Studio Team System Location to post small TFS Build gig?
Hi, I am not sure of the best location to post this. Please advise for the future, or move it to the correct forum. My company is looking for someone to setup an automated build using TFS Build to build/deploy a smart client application to both a staging and production server. The TFS server is already installed and the smart client application is finished and is currently being built from a developers local machine. Remote work is possible for the project. Thanks, Christian Hi Christian We might be able to help you out. Plesae email your contact details to tfs@3vium.com , and we will contact you for additional information. Matan Holtzer ...Show All
Architecture Typed Dataset or Custom Classes
Hey friends, I am a VB developer, soon I am going to start a new project. It will be a client application, I will use a SQL server database. I am used to use custom classes, I create my onw variables properties, events and methods. I am aware of the Typed Data Set and thinking about using it on my new project. The problem is that I have never used it, I do not know the minuses and plusses of the Typed dataset. Now, my boss and me on the desicion phase, we want to implement the most efficient and easy maintainable one. If you ask me , I'm quite happy with custom classes :)) My opinion is that the custom class is better for performance purposses, because I create properties and meth ...Show All
Visual Studio ZipItem and ZipProject, Zip project contents at build time
I'm attempting to zip some contents of a project in order to create a Project Template (I've already created the template, I wish to rebuild it with each build). How can I use ZipItem and ZipProject, I cannot find documentation on their usage I've been looking at an IronPython example which generates Zip files using VSProject content with <Import Project="C:\Program Files\Visual Studio 2005 SDK\2006.07\VisualStudioIntegration\Tools\Build\Microsoft.VsSDK.targets" /> .... <ItemGroup> <ZipItem Include="Templates\ProjectItems\Entity\Entity.gmf" /> <ZipItem Include="Templates\ProjectItems\Entity\__TemplateIcon.ico" /> <ZipItem Include="Templates\ProjectItems\Entity\MyTempla ...Show All
Microsoft ISV Community Center Forums How to use data from inputbox
I am using the following macro in MS Word to get data from the user via an InputBox. How can I tehn deposit the contents of the variable "fname" into a form field on the parent document <code> Sub Getinput() Dim fname fname = InputBox(Enter your name" End Sub </code> I tried using the name of the form field (text10) and adding this line: text10=fname and text10.text=fname to no avail. I'm sure this must be something simple but alas I am a novice. Help ! This should do it: Sub addData() ThisDocument.FormFields("Text1").Result = InputBox("Enter Name") End Sub ChasAA ...Show All
Visual Basic Class Question
I am tryin to create a login in Form when a user enters his name in a textbox it shows a message box saying that this name is in the database....I am not sure how i should access the property that is assigned to the SqlDataReader.GetValue(2).toString() here is my class Imports System Imports System.Data.SqlClient Public Class DataForm Private fname As String Private lname As String Public Property d_fname() As String Get Return fname End Get Set ( ByVal value As String ) fname = value End Set End Property Public Property d_lname() As String Get Return lname End Get Set ( ByVal value As String ) lname = value ...Show All
SQL Server Error message running a SSIS package in a Job
Hello, I'm having problems when I try to run a package from a job in SQL Server Agent. I have the same package in a server and it works fine,but when I try to install it in a different server I keep getting this error: Microsoft (R) SQL Server Execute Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 01:19:10 p.m. Progress: 2007-01-30 13:19:10.40 Source: Delete scripts Execute Process Task Operation Complete: 0% complete End Progress Error: 2007-01-30 13:19:10.57 Code: 0xC0029151 Source: Delete scripts Execute Process Task Description: In Executing "C:\Project_SSIS\Delete_Items.bat" "" at "", The process exit code was "1&quo ...Show All
Visual Basic MAKING .NET CONTROLS - OCX VB6 COMPLIANT
Hi all, I have to create a .NET control. It have to run in a vb6 app. I'd like to use it like a standard OCX control. I've found in the net that it's possible. there's anyone who can tell me in which way I can do it It's simple: have a .net control and import it in a VB6 controls list by "add control". and have it working right. Dario TIA for any suggestion! This link provides some good material for getting started: http://blogs.msdn.com/calvin_hsia/archive/2006/07/14/665830.aspx ...Show All
SQL Server Disk activity
We are about to go to SQL 2005 and that means getting some new Servers and i am wondering if our SAN is adequate. I like to measure over the next few weeks the amount of data that is sent to the SAN and how long its taking to come back....i.e if someone is running a large report how much data is sent and how long it takes to return. This is for 2000 SQL (i like to get all these results to build my migration plan and hardware configuration). I like to see...........18 mb of data , date time and how much read / write etc if possible the sql. Any ideas Look at Performance Monitor (perfmon). It's under Administrative tools on the Start/Programs menu. Check out the LogicalDisk and System Performance Objects and the counters ...Show All
.NET Development Memory Issues
Hello all, I've been trying to profile my ASP.NET application on my application server. I set up 2 counters for aspnet_wp process namely '#bytes in all heaps' and 'process:private bytes'. According to a documentation that i read, '#bytes in all heaps' should be less that 'process: private bytes'. However the '#bytes in all heaps' was far greater than that of the 'process: private bytes'. I'm lead to believe that this indicates a memory leak somewhere. Now, the problem is that i've got 15 ASP.NET applications running on that server and i need to find which application(s) are causing the problem. Please i'll need help on which counters to set up that will enable me pin point the rouge application. Thanks Emeka. ...Show All
Visual C# Assign a bmp resource to a bitmap variable
I create a resource bitmap as bmp. I can not assign this resource bmp to a Bitmap variable. What I would like to do is change or swap between two bmps every second in a picturebox image. thanks in advance for your help and time, Edward ok the problem was that the image was not embedded as a resource. After changing it to be embedded as a resource, everything worked fine. Once embedded, the resource name will be in the format of, generally, : applicationName.filename.ext if its in a folder (1 folder deep): applicationName.folderName.fileName.ext remember, the folder name and filenames are case sensitive ...Show All
.NET Development Error 80070005
Hello, I developed for 4 month a web site with visual studio 2005. The site runs using VS2005. Mathematical computations have been done using EXCEL (Microsoft.Office.Interop.Excel). When running the site under IIS (XP pro), I get the message detailled under. I tried to give permissions on EXCEL to IUSR_MACHINENAME, then to everybody without results. It will be impossible to deploy the site until this error is solved. Thank you to help me. Server Error 80070005 in '/SiteOPCVM' Application. -------------------------------------------------------------------------------- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. Description: An unhandl ...Show All
