mackenzie 2480's Q&A profile
Windows Forms Working with GridViews
When I select on field ( a checkbox ) in the gridview I want to make that given row only readable, how do I do it Thanks JM Hi, This is quite confusing. If you can check a row and make it read-only then how would you uncheck it and make it editable again Since you can't uncheck the row coz the row would be then marked as readonly. Could you please explain a little bit further on what you are trying to accomplish here. :) Maybe we can offer a different approach to solve your problem. cheers, Paul June A. Domag ...Show All
.NET Development what is shim?
This term is new to me. What does it mean Thanks It is a generic term for any piece of code, usually in a DLL, that acts as an intermediary between two incompatible systems. A typical use for a shim is to make an unmanaged DLL usable to a .NET program. It would present a managed class interface to the .NET project and translate managed method calls to native method calls, marshaling the method arguments as needed. ...Show All
Visual Basic Multiple Language Support for VB Projects
vb.net 2003 I currently maintain an english and a spanish version of my vb projects. In the near future, I will also release a Portuguese version. Aside from help files which are document or html based in different lanuages, I am faced with needing to support error messages,help messages, button names, and menu names inside my actual vb code. I am starting to consider creating an Excel file that my program can read on startup which enables an array of string variabiles to be set to the appropriate text message in the proper language. I then use the variable names for all my Exception messages, etc. What confounds me however is how to work with main and context menues. How can I have individual selections in a main or context men ...Show All
Visual Basic Shared property works in VS2003, does not in VS2005
I'm moving an asp.net program made in Visual Studio 2003 over to VS2005. I'm just creating the pages in VS2005 and copying & pasting code. I'm finding my Shared variables are not working in VS2005, as I get the error "Name 'Errors' is not declared". In the example below, I have the Class "Errors" (a web page, "Errors.aspx") which sets the property. Then I show the Sub addFootnoteToPDF() which is on another page (open.aspx); this makes a reference to the property in Errors.aspx. Can you see why this works in VS2003 and not in VS2005 Thank you! Partial Class Errors Inherits System.Web.UI.Page Private Shared m_ReferringURL As String Public Shared Property ReferringURL() As String Get Return m_Referri ...Show All
Software Development for Windows Vista designerHost uses the wrong activity designer
I have the code shown below to assign a custom designer to my custom activity. The activity type shown is the type I use as the root activity type in my workflow. When I later look at the rootDesigner using the following code IRootDesigner rootDesigner = designerHost.GetDesigner(designerHost.RootComponent) as IRootDesigner ; then I can see that the RootComponent is of type SequentialWorkflowDesigner and NOT of my custom type WorkflowActivityDesigner. The constructor of WorkflowActivityDesigner is not being called. Why does the designerHost not use my custom designer or How can I change the designer used for the root component ----------------- [ Designer ( typeof ( WorkflowActivityDesigner ))] ...Show All
Visual Studio 2008 (Pre-release) 3d shape inside 3d shape
hi, it's amazing... can i (with the WPF) create a outer shape and inside it an inner shape that "move" inside the 3D space in the outer shap thanks, omri You can set the Transform property on any Model3DGroup to move any part of the scene you wish, whether it's the entire scene or just a small part. If you're using a Visual3D tree for your scene structure (which enables hit testing with more granularity, extensibility, etc), you can set Transform on ModelVisual3D. -Adam Smith [MS] ...Show All
Visual Studio Tools for Office MS office automation - (AppID for PowerPoint to automate..)
Hi, Server side automation of Office is not recommended but I have to deal with it. I got the solution at this link. http://support.microsoft.com/kb/288366/ and it provides the registry values to set for word, excel and access as [HKEY_CLASSES_ROOT\AppID\WINWORD.EXE] "AppID"="{00020906-0000-0000-C000-000000000046}" [HKEY_CLASSES_ROOT\AppID\EXCEL.EXE] "AppID"="{00020812-0000-0000-C000-000000000046}" [HKEY_CLASSES_ROOT\AppID\MSACCESS.EXE] "AppID"="{73A4C9C1-D68D-11D0-98BF-00A0C90DC8D9}" Word and Excel automation is working. Now,I need the appID for PowerPoint which is missing in the article found in the link. Please let me know what is the registry value I have ...Show All
SQL Server Replication: periodic initial snapshot not yet available
I have a push subscriprion (publisher sql2000, distributor 2005, subscriber sql2005) that periodically (twice per month) changes it's status to " ... initial snapshot not yet available ...". Then I need to mark it as for reinitialization and start the snapshot agent (starting the snapshot agent without marking it for reinitilization doesn't starts the subscription to initilize itself). There is nothing important in the logs. Any suggestion why this may happen The network connections between distributor and subscribers sometimes are broken (it's over VPN), but there is a couple of other replication that goes the same way and they are fine... Has anyone gotten anywhere with this one We're seeing the same issue with SQL 2k5 . ...Show All
SQL Server Query slow down after SP4
Hi, We migrated a production system to a new SQL server with SP4 and the developers have found strange behviour with their applications. Rolled out sp4 has hit big performance issues on some store procedures, had queries taking > 10 min that used to run in a number of seconds. The SQL server is running SQL2000 SP4 with hotfix 2040 (KB article 899761) which suppose to fix the AWE memory problem. Has anyone encountered such problem and are there any configuration settings that should be changed This is a more appropriate question for the " SQL Server Database Engine " forum, so I'm going to move it there. That should increase the chances that you will get an answer. ...Show All
Smart Device Development Windows Mobile 2003 Development & Quicklaunch Interface
I am developing a PocketPC App and have successfully installed it and am in the testing phase etc. On my device there is a "Today" embedded app called "Quicklaunch" that I can configure (add applications to display and run). My application displays as a possible application yet when I choose it as a "Quicklaunch" app, it does not appear on the Mobile Desktop (Today Screen). There is no Icon... Actually, when I select the application it in the settings/Today/Items area of my mobile device it does not show the small icon either (like other apps). This I think is my problem. I have defined an Icon in the properties of my project before compilation, compiled it, and installed the app... I seem to be able to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Selling Games on Xbox Live Arcade
Hello, I am currently putting a team together to create new Xbox Live Arcade games. They will be using the XNA development tool and the projects will be financed by myself. How long will it be untill Indy developers can sell their games online in order to re-coup some of the money and produce additional games Any help is appreciated. Regards Ian sarge mat wrote: Well first you need to make the game and talk to Microsoft about developing it for Xbox live arcade. That's a fairly steep first step. I think more clear information on how indie developers can get onto Xbox Live Arcade is definitely in order. I can't help but feel Microsoft is being purposefully tight lipped in this regard because they'd like people to hope for th ...Show All
Windows Forms Sending email in vb.net 2005(using vb) not with smtp but the users outlook (mapi)??
I have an application that I need to send mulitiple emails from. There are about 10 users who will have permission. However my IT Group has locked down the smtp server and will not allow "Applications" use the smtp method. I remember in vb6 I used mapi to send emails using outlook that was on the users computer thus giving my IT folks traceability of who is sending what and not having to set up 10 people on the smtp permissions. Can this still be done using outlook(mapi) they said no way, but I could put my email code on the server then have my desktop app pass the email address to the app on the server and email if from there. I have never had to "call" pass to another app ...Show All
Windows Forms CheckBoxList does not contain a public definition of 'GetEnumerator' error
Hi, I have a CheckboxList on a web form. I want to cycle through the checkboxes in the list to determine which boxes have been checked. Seems easy enough..but I'm getting an error that the "CheckBoxList does not contain a public definition of 'GetEnumerator'". Here's my code: foreach ( CheckBox cb in cbSRlist) { // get Sales Region the user has access privs for if (cb.Checked){ Response.Write(cb.Text + "<BR>" ); } } ...the error is actually caused by the foreach statement which can't operate on the checkboxlist because it doesn't have a public def of 'getEnumerator. The same error occurs if I replace 'CheckBox' with 'ListItem' in the above foreach stmt. what am I missing th ...Show All
Visual C++ fopen on the same file
Hi all, I compiled a dll with fopen and a few programs will call the dll at the same time. When this happened I believed that before the 1st program processed the fclose, the subsequent programs will not be able to fopen on the same file. Is there a way to fopen with write access on the same file by 2 or more programs Rgds The equivalent CRT function is _fsopen() . ...Show All
SQL Server Make date from several strings
Hello all Someone gave me this: Month Day Year Hour Min Sec 9 9 2006 15 9 36 And I need to make a descent date format out of it which looks like this: Sun Sept 09 15:09:36 CEST 2006 I can concatenate the whole thing but I'm stuck with the "sunday" part. I'm sure there are some experst out there who know how to do this is in 1 minute;) Regards Worf So far I have the following code but it gives me an error: Conversion failed when converting datetime from character string. set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo] . [MakeDate] ( @Month int , @Day int , @Year int , @Hour int , @Min int , @Sec int ) ...Show All
