NickNotYet's Q&A profile
Software Development for Windows Vista Disabling IMAPI in Vista
Is there a way to disable the IMAPI layer in Vista for a particular device Write-protected media, except for file system write protection, should indeed not be written by the shell integration of IMAPI. Drag'n'dropping file to such media, I get a prompt to insert a writable media and the read-only media is ejected. Exception is if you have already file(s) in the staging folder, then you can continue to edit the content of the staging folder. But again, this should be the shell integration of IMAPI and not IMAPI itself. Is this consistent with your observations ...Show All
Visual Studio Tools for Office How to change a received email into a task and add it into the task bar in outlook?
Hi, I want to ask how to change a received email into a task and add it into the task bar in outlook Do you know the steps Thanks. Hi, This is a great question but unfortuneatly is not VSTO specific. You could try the following newsgroups: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.forms&lang=en&cr=US http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.exchange2000.development&lang=en&cr=US Regards, Darryn Lavery [MSFT] ...Show All
Windows Forms Accessing toolstrip from child window
Hi, Could any one tell me if I can access the toolstip of MDI parent window from child window, and how Thanks in advance, With regards. Thanks Mr. Grant. What I need to do is to update the data in toolstrip based on the content available in the child form. If I don't access the parent MDIform(toolstrip) from child, is it possible to access the child form data from parent MDIform based on the event generated by child form (as you suggested). Note: I am a at beginner level in C#. With regards, ...Show All
SQL Server My "On Update" Trigger reacts also "on delete"
In SQL Server 2005 Express I created a trigger which should edit a value in another table when a special tupel column has been updated. The funny thing is, that it also fires on delete...of course not what I wanted. what did I do wrong Thanks in advance! ALTER TRIGGER dbo.update_history_users ON dbo.[user] AFTER UPDATE AS IF UPDATE ([name]) BEGIN DECLARE @old_value nvarchar ( MAX ), @new_value nvarchar ( MAX ); SELECT @old_value = name FROM DELETED ; SELECT @new_value = name FROM INSERTED ; UPDATE dbo.history SET user_name = @new_value WHERE user_name = @old_value; END The source could also be found in the data layer of your appli ...Show All
Visual Studio Controlling what is installed using Tools.InstallCommunityControls
I have been struggling with the VS toolbox now for quite some time whitout really finding any solution. This is what I want to do: Create two tabs in the toolbox Add selected controls to the tabs Exclude controls that are base classes. I know how to create tabs and got it working using the ToolboxTabs.Add api. But then I have found that adding individual managed controls using the ToolboxTab.Add(string, data, format) api has been deprecated in favour of the InstallCommunityControls command. With the InstallCommunityControls, I can not find any support for specifying what classes in an assembly should appear in the toolbox and on which tab. Is it possible to control this at all using this command Plan B is to have a ...Show All
Visual Basic Iconified app and problems with logging off
Hi, I created a small app which resides in the notification area and works well. Only when a user want to logg off, he is prohibited by this app. When i terminate it via task manager loggin off works well. My code for placing it in the notification area and hiding the form: Public TrayIcon As Icon = GetEmbeddedIcon( "MyApp.nice.ico" ) 'Function to retreive embedded icon Function GetEmbeddedIcon( ByVal strName As String ) As Icon Return New Icon(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(strName)) End Function 'Initial setup for the tray icon Private Sub Initializenotifyicon() 'Initial setup for the tray icon Private Sub Initializenotifyicon() NotifyIcon = New System.W ...Show All
SharePoint Products and Technologies Workflow task causing error with forms server.
I have a form published via forms server. Then I associate the approval workflow with the form. I fill out the form and submit it to the library. Once I finish this process my approver gets an email telling them to review the form and approve the task. They click on the link to review the form and they get this error message: The URL <library>/<filename>.xml is an unsupported relative URL. Use an absolute URL or prefix with '~sitecollection', for a site-collection-relative URL. Any ideas how to deal with this I am old to SharePoint but new to InfoPath and forms server. Thanks Shane - SharePoint Help I am experiencing the same error - and it is truly irritating, as the diffic ...Show All
SQL Server Get percentage with variation of field values (country names)
Any help here would be greatly appreciated... Unfortunately, data wasn't filtered prior to getting inserted into this table. Now I am stuck with cleaning it up. I have thought about writing a query to update all the values, but there are just too many variations, including spelling mistakes, so I've ruled that out as a possible solution. I have a table which has a Country field but the values per record vary. For example US, U.S., USA, United States, UK, United Kingdom, Canada, Can, etc. I'm trying to find the percent of records per country. Sample table data: mytable Id Name Country 1 John US 2 James UK 3 Jane United States 4 Mary & ...Show All
SQL Server Not Allowing Remote Connections
TITLE: Connect to Database Engine ------------------------------ Cannot connect to FRI-0503\SQLEXPRESS. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=10061&LinkId=20476 ------------------------------ BUTTONS: OK ----------------------- ...Show All
Visual Basic MsgBox always return "no" regardless of what the user click
I am using VS2005 and have a messagebox inside of an event that does not work properly. The code is below: If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If The problem is regardless of whether the user clicks Yes or No, it always returns No. If I add another MsgBox in the code immediately before the if statement, then the if statement will always work properly. (see code below) Microsoft.VisualBasic.MsgBox( "Dummy MsgBox" ) If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If I can't figure out what is wrong h ...Show All
Visual Studio How to force rebuild of Document explorer index manually
On my Visa machine I have installed VStudio Team Suite, Team Foundation Client, and VStudio DB professional. all upgraded to SP1 (took me 4 hours to update :-) After installing Windows Mobile 5 PPC SDK, the document explorer always crashes when trying to rebuild its documentation (it gets to 768 MB memory use and than crashes in HXDS.DLL; online error report never comes up). For this program worked befor install of WM5 SDK, I would like to clear the help index and remove all WM5 files from it. But I can't find any information about how to force a complete new build of the help index or how to build an index that excludes some help files. Is there such an information or what can I do to completely remove any information Document Ex ...Show All
Smart Device Development Menuitem visible property in windows mobile 5.0 for smart phone
I can't able to find menu item visible property. I have to show and hide [not enable and disable] my right and left menu on some conditions. What Can I do ...Show All
SQL Server Problem while using stored procedures with temporary tables in dataset
I am trying to generate a report using SQL Server Reporting Service. The dataset is passed the results from a stored procedure. The stored proc contains a temporary table. On exceuting of proc, it fetches the result but when I try to save dataset I get following error message Invalid object name '#AdditionalParams'. (.Net SqlClient Data Provider) And no colums are returned in the data set created. Any help on this would be appreciated. Thanks in advance I exceuted the proc as stored procedure. And latter I added a new field to same dataset, as it didnt had any field because it had thrown error. I refreshed the datset and I got all the dataset fields although initally it showed error and it wor ...Show All
Visual C# Why does 'String' not have a copy constructor?
Is there a reason that the 'System.String' type does not have a copy constructor A 'copy constructor' is a constructor that takes its own type as a parameter. I would have expected the string type to have copy constructor as it should permit strings to easily share the internal reference to the string data. This would both improve performance and reduce memory consumption as the internal string data object is shared, and not constructed, from the existing string to the new string. Am I missing something Thanks for the replies. The Copy constructor is the name for a specific type of constructor for a class and could have been used throughout the .NET Framework. I have since read that copy constructo ...Show All
Visual Studio 2008 (Pre-release) How does WCF 3.0 support WS-Eventing?
MSDN version of the WS-Eventing spec: http://msdn.microsoft.com/webservices/webservices/understanding/specs/default.aspx pull=/library/en-us/dnglobspec/html/ws-eventing.asp Does WCF 3.0 support WS-Eventing ...or are the patterns in the MSDN Mag article " What You Need To Know About One-Way Calls, Callbacks, And Events " ( http://msdn.microsoft.com/msdnmag/issues/06/10/WCFEssentials/ ) the best way to implement a publish/subscribe pattern using WCF 3.0 The article is clearly written and relatively easy to understand but I am suprised how complicated the overall patterns are. I would have expected WCF 3.0 to have something similar. Roman Kiss has an article on implementing WS-Eventing in WCF here: http://www.code ...Show All
