donkaiser's Q&A profile
Windows Forms Trying to get GUI to appear for logged in user, from a service running as System.....
I've got a service that runs from system, and it needs to reboot the client, but I can't get any gui to be displayed to the current user. Has anyone got any suggestions on how I can get some kind of popup to give the user warning the machine is about to reboot and wait for user input before the reboot takes place Thanks, Eric- You also need to ensure that the service has the property "Allow service to interact with desktop" set in the Logon properties otherwise no matter what you do, and despite the fact that your code is trying to display one,no message box will appear and your service will hang as it is waiting for a response from the dialog box. ...Show All
Windows Live Developer Forums Existing app for synchronizing between Hotmail/Live Mail and Outlook?
Hi there! Not a developer question but maybe it becomes one... Exists there an application which is able to synchronize Contacts, Calender, Tasks and Notes between Hotmail / Windows Live Mail <==> Outlook So if I create a contact in my Hotmail or my Windows Live Mail accound I can then sync it with my local Outlook and then I can sync it from Outlook to Pocket PC, Smartphone... So a user needs to create a contact only once and can it use in Hotmail, mobile phone etc. If there is no such application available can you give me a starting point how to do (C#.NET) How does MSN Messenger (Windows Live Messenger) Kind Regards, hfrmobile I'm also interested in this functionality. At the very least something that can expo ...Show All
SQL Server cross table
Sir, My query is select convert(datetime,task_date) as date, sum(Case status_id when 1000 Then 7 else 0 end) as Programming, sum(Case status_id when 1016 Then 5 else 0 end) as Design, sum(Case status_id when 1752 Then 4 else 0 end) as Upload, sum(Case status_id when 1032 Then 2 else 0 end) as Testing, sum(Case status_id when 1128 Then 1 else 0 end) as Meeting, sum(Case status_id when 1272 Then 1 else 0 end) as Others from task_table where user_id='EMP10028' and task_date='9/11/2006' group by task_date union select convert(datetime,task_date) as date, sum(Case status_id when 1000 Then 7 else 0 end) as Programming, sum(Case status_id when 1016 Then 5 else 0 end) as Design, sum(Case status_id when 1 ...Show All
Visual Basic Secure Connection String? is there such a thing?
Hi Everyone, Im developing a VS.net application which connects to a SQL server over the internet, i have a SSL certificate running on this server and data between the application and the server is encrypted. which makes me rather happy. However using .net Reflector i just opend up my code and low and behold there is my conenction String in full sight!!!! which essentially means that anyone can have fun with my database :( i have read a lot of help pages but nearly everything is in C# which doesnt help me a lot, is there any way to A) not show the connect string at all (without using winows authentication as i have lots of users) Or to encrypt it so that evn if the program was decompiled or memory sniffed that they could not get t ...Show All
SQL Server SQLAgent2005 not starting
I installed SQL 2005 successfully but sqlagent is not starting, giving the following error: SQLServerAgent could not be started (reason: Error creating a new session). And in the agent log I see the following error. Message [298] SQLServer Error: 208, Invalid object name 'msdb.dbo.syssessions'. [SQLSTATE 42S02] Can anybody give any ideas how to solve this Thanks... If you fisrt stop the SQL Server (MSSQLSERVER) service and then start SQL Server Agent (MSSQLSERVER) service it will work just fine. ...Show All
SQL Server Event Notifications don't fire when raised by Activated procedure
I have an activated SP that is issuing PRINT statements. These are raised as ErrorLog and EventLog events when using SQLProfiler However if you attach an event notification for ERRORLOG and EVENTLOG, nothing appears in the queue. Any other ERRORLOG or EVENTLOG event caught by profiler is caught by the event notification as expected. Done including a repro https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=230910 ...Show All
Software Development for Windows Vista ConditionalActivityGroup
Hi there, i have a question about a simple project. I have a CAG and 2 Code Activities. The first checks for the ip adress and the second gives an error message if the ip adress is changed. The CAD is running till the ip is 0.0.0.0 the check activity checks ifs a static ipadress matchs with the read out adress and the warning activity write an error if the static != current. my problem is: if i let this thing run, i have 100% of cpu usage... i hope u have some hint how i could optimize this little tool. Regards mArcus Marcus, I'm not sure about business requirements for you project, but see if this could help: Create an [IP;Status;TimeStamp] structure and check the coming IPs again ...Show All
Visual Studio 2008 (Pre-release) Getting errors when creating xaml control
I am trying to create a SecureStringTextBox object in 3.0 using xaml. I created a control that looks like this: xaml code <TextBox x:Class="PP.Controls.SecureStringTextBox" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "> </TextBox> code behind namespace PP.Controls { public partial class SecureStringTextBox : System.Windows.Controls.TextBox { public SecureStringTextBox() { InitializeComponent(); } } } The above code compiles just fine. Now I create my test app which looks like this: <Window x:Class="TestControl.Window1" xmlns:g="clr-namespace:PP.Controls;assembly=PP.Controls" xmlns=" http:/ ...Show All
Windows Forms Excel in the WebBrowser control
Hello, I am using .NET 2.0 Windows Forms. There is a form with a webbrowser control. I navigate to an Excel spreadsheet and the webbrowser control opens the spreadsheet "inline". All is good until I try to close the form. The Excel process appears in the Task Manager for sometime after I close the form, so it's not possible to clean up the Excel file that I viewed in the webbrowser -- when I try to delete the file, I get The File is Used By Another Process error. Here are my questions: Is it possible to issue a Close command to the Excel instance that is hosted in the webbrowser control Something along the lines of ExecWB that was available in the ActiveX version of the WebBrowser control. Is it possible to get the ...Show All
Visual C# Querying multiple Active Directory samaccounts and retrieveing properties
Hi I'm trying to write C# code that queries an AD container full of users. I would like to retrieve property information of all users within a CN. I have tried using DirectoryEntry but I can only seem to get information based on the values passed for authentication... I have tried using DirectorySearcher to search for the accounts but I cannot retrieve the properties heres some code to retrieve the DisplayName property for just 1 user.... public string GetUserData( string UserID) { string path = " LDAP://server /OU=USERS,OU=HR,DC=organisation,DC= com "; string aduser = "testaccount" ; string adpw = "password"; DirectoryEntry entry = new DirectoryEntry (path, aduser, adpw); DirectoryS ...Show All
Visual Studio Team System Report to get Files checked-in without any comments
I am currently generating a report which has all the filename which has been checked-in without any comments. The problem is that I need to directly query the TFSVersionControl database to get this information but it is not possible to give read access to this database to all users. Another approach I tried is to get this report using APIs in VersionControlServer class but I am unable to find the methods that will get the files which has been check-in without any comments Is there any API/method that can do this operation Is there any other approach to get this report Here's a checkin policy to require that the changeset comment contains at least something: http://blogs.msdn.com/jmanning/archive/2 ...Show All
Visual C# C#.net or C# 2005
Hello everyone, I have some intermediate knowledge on C programming and wish to learn C#. Searching through the bookshop, found there are two difference thing: C#.net or C# 2005. What is the difference between these two And in term of syntax level, is there any difference In general C# is C#. The only major differences are some changes to the language (and the framework it targets) in different versions of Visual Studio. With the latest release of Visual Studio 2005 the C# language is in its 2.0 revision and a book such as C# 2005 is almost certainly to cover this version. You’d have to check on a book that calls it C#.NET to see if it is referring to the 2002/2003 version of C# or the 2005 on ...Show All
Visual Studio Project Properties Not Allowing Signing for Particular Configuration
Is there any way to enable a particular configuration under: Project Properties -> Signing The Configuration section is greyed out for the Signing, Reference Paths I am trying to have the developers for the Debug Configuration have the "Choose a strong name key file" point to the public key and enable delay-signing. Then when building for release the deployment build computer can use the Release Configuration to use the private key with delay-signing disabled. thanks, Steve I suffer the same feelings regarding the fact that there is no support for Configuration or Platform Dependencies OR signing values. I especially hate the lack of platform configuration level ...Show All
SQL Server Deploying to subfolders from VS
I've got a report project with a few reports in I want in the root target directory. I also want to create several folders and put reports in those. The problem is I don't see any way to create a report folder in VS. I also don't see any way to pick the deployment path of a single reprot in VS. This makes me think I'll have to create a different Report Project in VS for each folder!! (this sucks). Does anyone have an idea or suggestion here This is highly unfortunate. It makes deploying reports a real pain because of the manual nature of having to organize and overwrite older reports (after deployment) that are existing in sub-folders. Can anyone provide some sources on where to get started if one were to try to write a custom ...Show All
Visual Studio Tools for Office Unable to install Visual Studio 2005 Tools for Office.
When trying to install VSTO 2005, I get the following error message; Office 2003 Service Pack 1 Microsoft Office 2003 with Service Pack 1 (SP1) is not installed on this computer. You must install an edition of Office 2003 that supports Micorosft Visual Studio Tools for the Microsoft Office System before you can continue with installation. This on a machine that has XP Professional SP2, MS Office Pro SP2 installed and activated. It occurs whether or not I install it on top of Nothing, Visual Studio Pro 2005 or Visual Studio Standard 2005 or Visual Studio Standard 2003. Does anyone have an idea why this is happening, despite the system meeting the requirements Ofcourse the VSTO may depend on frozen SP1, but I can't see ...Show All
