Jess Chan's Q&A profile
Visual Studio 2008 (Pre-release) Drag and drop ListViewItems to another UIElement(Canvas).
Does anyone have a good example on how to accomplish this I have a tried an fews things with no success and haven't been able to find any good examples. Duh, I think I just realized the difference I am binding to an XMLDataProvider for my list items instead of your example were you specify the listviewitems. Can you try this <ListView local:DragDropManager.DragSourceAdvisor="{StaticResource sourceAdvisor1}" ItemsSource="{Binding Source={StaticResource DataRows}, XPath=row}"> IE... Set up an XMLDataProvider with something like... < XmlDataProvider x:Key = " DataRows " XPath = " / " > < x:Data > < root > < row > t ...Show All
Software Development for Windows Vista Service started very late in Vista?
I have a service program with OWN_PROCESS, AUTO_START, no any dependency. This service works on Vista as well as w2k/wxp, except the Vista start it in a very late statement. In w2k/wxp, my service program can start before user logon. But in Vista, even the user has logon, it takes about 40 or more seconds before my service program start running. My PC is Celeron 3.0GHz, with 1GB RAM, I don't think it's the hardware's problem. Since my service is one part of the drivers for an input device, this is very important for me to load the service ASAP. Does any one know how to boost the load order for this type of services I have the same problem in Vista. My service is sometimes started after my process, that actually depends on m ...Show All
Gadgets Image PReview
Hi, I need to know how to use an image preview script in the settings.html part of my gadget, because i added the ability to change backgrounds of the gadget it would be nice if i could use an image preview script to show the background before applying it to the gadget. please let me know guys!! TIA for all your help. here is my settings.html (perhaps you could modify your code for me and you will recieve credit where due) <html> <head> <style> body{ width:250; height:120; } </style> <script> function init() { var strbackgroundcolor = System.Gadget.Settings.read("ba ...Show All
Visual Studio Tools for Office Question regarding VSTO Excel Worksheet
Hi all, My question is this. Is there a way to disable the default context menu when you right click on a cell on a worksheet. I want to disable the default context menu and have my own custom one. I was able to create a custom context menu, but I cannot control the location where the context menu is displayed. What property in the Target(the argument in the event handler) will allow me to know what cell was selected. Thanks ahead for the help, David To disable the default context menu, In the BeforeRightClick event handler for the NamedRange, set "Cancel= true" Target.Cells.Column, Target.Cells.Row should contain the cell that was right clicked on. Hope this helps, -Devin ...Show All
Software Development for Windows Vista pass paramters to InvokeWorkflow Activity
I am invoking a workflow from within a workflow. How can i pass in parameters Angel, I would like to extend your example in 2 ways: a) Can I add your InvokeWorkflowActivity sample code to a CodeActivity Execute method ...i.e. is there a way to not only programmatically create and configure the InvokeWorkflowActivty but to also directly execute it from, say, a CodeActivity If so, now b) If the workflow I'm invoking is a StateMachineWorkflow, can I use the ParameterBindings to override the InitialStateName for the new instance of the state machine workflow Thanks, Michael. ...Show All
SQL Server My Query is broken and I don't know how to fix it...
I am trying to set up a filtered paging ObjectDataSource for a gridvoew control. My code works, my query doesn't... This is OK: Get all rows of data: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCodes " Returns all records as expected This is OK: Getting rows of data with no Filter: "SELECT UCO, country_code, country_name, enabled, concurrency FROM (SELECT ROW_NUMBER() OVER (ORDER BY country_name ) As Row, UCO, country_code, country_name, enabled, concurrency FROM CountryCodes ) As TempRowTable WHERE Row >= 0 AND Row <= 10" Returns expected data This is OK: Making sure my WHERE filter works: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCode ...Show All
Visual Studio Tools for Office Add-In problem
I have developed an add-in for Outlook 2003 with VSTO. I have deployed it on my laptop and it works fine with the exchange server at my company. I have also installed it at my customer, on their network on a computer with a new account in my name. The Add-in works fine and I can read and create new items. I use Cached Exchange Mode. When the Add-In is installed on the sales force's computers the Add-in loads. The problem is that it can't read any items. I still can create new items. If I turn off the Cached Exchange Mode I can read the items but that causes other problems and is not an alternative for my client. They use the same exchange server as I do when the Add-In works using my account on the customer network. Possible causes t ...Show All
Software Development for Windows Vista CallExternalMethod in Code-Only and Code-Beside Workflows
I have created two identical workflows that use a CallExternalMethod activity. I'm using .NET 3.0. One workflow is code-only and the other is code-beside. When I configure the CallExternalMethod activity, I see that the Data field in the Properties pane works differently for the two workflows. On the code-only workflow I can specify a member of my workflow class as the data to be passed. I see "Name" and "Path" sub-fields in the Properties pane. On the code-beside workflow I cannot seem to specify a member of my workflow class as the Data to be sent. Also, I do not see the Name and Path sub-fields in the Properties pane. I have checked the help and searched the forums and I can't find any documentation fo ...Show All
SQL Server SQL Server 2K client do not connect to DB server with IP addresses added to same NIC
I am setting up a lab on a Windows server 2003 Standard Edition that works as a Database Server. Some clients connct to this database server; clients are on different subnet. Routing is ruled with Windows server 2003 RRAS. The differents subnets are created adding IP addresses to the network interface (I mean: TCP/IP Properties - General - Advanced - IP Settings - IP Addresses - Add) Clients ping without problem with server, I access to folders. Then I connected the first client SQL using SQL Server Client, I run registration, Everything works. I can see SQLServer, I managed everything as usual. In this case IP client is 192.168.1.50 and IP for server is 192.168.1.1 (his IP is in the "general" page of TCP/IP Proper ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Engines that are compatibility with the XNA Framework?
Hi there, I got some questions about the compatibility of the XNA Framework with 3d or game Engines. By now where are a Team of 7 Student of the Games Academy producing our game with the trinigy Vision Engine and the Standard Visual Studio 05. -> www.project-barcode.com My main questions is if its possible to combine the trinigy vision engine and the XNA Framework Our Programmers got experiece with c# are are not used to create games on it. Whats the overall state of campatibility with engines and the XNA Framework Thanks a lot, Greez. I'm not familiar with that engine, but if you consulted the MDX -> XNA migration guide, you should be able to port most, if not all, of the engine over ...Show All
SQL Server Designing SSIS package to Cater to SQL Queries invloving multiple joins
I have a query that works fine in SQL Server, SELECT TC.[TestId] ,TS.[NameId] ,[regressionLevel] ,Mstr.[MethodId] ,users.[UserId] FROM [db_db].[dbo].[TEST] TC join [NEW_DB].[dbo].[Users]users on users.FirstName=TC.Username join [New_DB]..[Method_Master] Mstr on Mstr.Description=TC.Method join [New_DB]..[TestSource] TS on TS.Name = TC.TestName basically there is a join between three tables to repalce all the varchars to the corresponding ID. Please guide me in how should I go about in designing my SSIS package to achieve this requirement. thanks in Advance Jamie Thomson wrote: Why do you want to do somethign else This is the correct thing to do. ...Show All
.NET Development XSD causes the transformation to fail?
I'm new at XSLT and I have a problem: I'm trying to create a stylesheet with, as input: <Events> <Event datetime=" 2006-10-13T11:20:00 "> <Title>blabla</Title> <Text>blabla</Text> </Event> <Event .... </Events> as parameters: $date ; $num as output: an XHTML showing the first $num elements whose date is > than $date In my mind the approach will be to order the elements and do a foreach with a if statement to query the elements with a suitable date ... but I need a variable to store the num of elements selected and exit the cycle... It isn't the case, I know. Can anyone tell me a more clever approach Thank you. .utaal ...Show All
SQL Server what is maximum no. of concurrent Logins Possible on a SQL server 2005 Database?
what is maximum no. of concurrent Logins Possible on a SQL server 2005 Database If this is a classroom based question then refer as Hemant's post, if not in the real world there is no issues in allowing as many number of connections as long as the database is optimized with good hardware configuration. ...Show All
.NET Development Sending Email using System.net.mail
hi everyone, I have trouble to send email using system.net.mail in ASP.NET 2.0 with VB here is my code.... any body tell me what is going wrong with the code. Code for SendEmail.vb Imports Microsoft.VisualBasic Imports System.Net.Mail Public Class SendEmail Public Sub SendEmailMessage( ByVal fromMail As String , ByVal toMail _ As String , ByVal subjectMail As String , ByVal messageMail As String ) 'This procedure takes four string parameters for sending the mail Try 'address create a mail message Dim MailMsg As New MailMessage( New MailAddress(fromMail.Trim()), New MailAddress(toMail)) MailMsg.BodyEncoding = Encoding.Default MailMsg.Subject = subjectMai ...Show All
Smart Device Development iphlpapi.dll is missing.
What i discovered is, that the function that i need to use is: GetAdaptersAddresses, and it is contained in iphlpapi.dll library. What would you recommend doing, when I can not find iphlpapi.dll on my device, as well as in: C:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\Target\wce400\armv4i. I chbecked system and hidden files as well. Could you send me this dll for XScale processor please, or give me some hint were to look for it My email: zedzik at gmail dot com (This is reposted from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=532111&SiteID=1 so everybody can see it on the main forum page) I've checked if such a file exists on the device, by manual browsing, i could not find it. Then I ...Show All
