Jeff Weber's Q&A profile
Software Development for Windows Vista UAC elevation dialog minimized
Our application launches a separate executable that requires elevation. Everything works fine except that the UAC elevation dialog always comes up minimized, blinking in the taskbar (users tend to miss the blinking taskbar and think the operation failed). I believe this is a problem with Vista, as I have seen the same behavior in the Windows Explorer (Computer) when right-clicking on a hard drive and selecting "Format...". Is there a way to force this UAC dialog to gain focus immediately Or is this a bug that will be fixed in future Vista builds Running Vista build 5472 Hey Fergar, Thanks for the post, am having the same issue and the problem is i need to specify the handle as NULL ...Show All
.NET Development Getting processes by window caption
I just want to know how to find instances of programs with a certain window caption, something similar to the system.diagnostics.process.getprocessesbyname command except to find processes by their window caption instead of process name. How would this be done Cheers will give that a go in the Morning.. I think it's the API call, mine is long yours is return, is this some kind of .NET mod coz the GetProcessThreadID has long and intPtr options. Will look in to global hooks as this was my original plan but found you couldn;t do it easily unless in C and it's kinda frowned upon and only mouse and keyboard events are supported... I like to follow the KISS model which should be taught.. Keep It Simple Stupid... ...Show All
Visual Studio 2008 (Pre-release) Successive Async Call problem
Hello all, Just a question about best practices. I'm developping a Windows Application that discuss with some services. I have a method that can take a long. So i put this method OneWay. The problem is when the user on Windows application call more that one times this method (multi click on button) the server doesn't reponse to me. I think it lost the call and don't notify via callback mechanisme my client. What is the solution to don't have this problem Do i pool the client demand Thanks a lot for your help, Nicolas Yes am am also woundering this. When i choose Add services reference in Visual studio 2005(with orcas) how can a costumize this so i get a proxy that can handle async calls, will it also gene ...Show All
SQL Server dts & mail
hi guys... how is do for when finished dts ,sending mail by sql server..also i am using sql server 2000... can i do thanx,,, Try asking this in the DTS forum: http://groups.google.com/group/microsoft.public.sqlserver.dts lnk=srg This is for SQL Server Integration Services on SQL Server 2005 ...Show All
Visual Studio Express Editions Using DataGridView
I want to create a grid that get data from user and save it to a database columns are "item name,quantity,discount,rate,total" now problem is how can i calculate quantity*rate ... and give it to total column IIM In the properties of your datagrid u need to change "virtual mode" to True. Insert an unbound column for total. Then use the DutyDataGridView CellValueNeeded Event and do your calculation there. The calculation being something like "e.value = quantity*rate". Hope this helps some. ...Show All
SharePoint Products and Technologies Enabling the 'Modify Item-Level Security' Link for Document Libraries
I have a user group who desires Item level security for a form library (our farm is SPS/WSS ver 2.0) They refernce this blog http://sharingpoint.blogspot.com/2005/12/enabling-modify-item-level-security.html It appear that implementing this feature would provide this itme level capability throughout the portal. It also appears to be an unsupported feature. Anyone have expereince in making this change to the SHROPT.ASPX file Thanks ...Show All
Visual Studio SubreportProcessing not firing
I have a WinForms solution that displays a report in the ReportViewer. I like what I've been able to do with this new control. I have had a problem with the LocalReport.SubreportProcessing event not firing. Another post in this forum discussed this problem and suggested it occurs when the main report and subreport are found in a project that's not the executable. Is this a known issue, and if not, do you have a suggestion Thank You, Nate I just had the same issue, and after a days work I found out that a subreport must have the following criteria: - the subreport must be in the same directory as the main report - the subreport must have the rdlc extension, rdl won't work - the reportname par ...Show All
Microsoft ISV Community Center Forums VBA Editor fails to start from Access 2003
I get the following dialog when I try to start the VBA editor from within Access 2003. *********** Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files\Microsoft Office\OFFICE11\MSACCWSS.EXE This application has requested the Runtime to terminate if in an unusual way. Please contact the applications support team for more information. ***************** This modal dialog pops up in front of the editor and when I press the OK button, which is the only one available, it shuts down that instance of Access along with the editor window. This dialog pops up whenever I try to start the VBA editor from within Access 2003. It does not matter if it is a new file I just created or an existing mdb file th ...Show All
Visual Studio How to add verbs for VS 2005 Windows Mobile
Hi, I have a project where I need to add 'Add Tab' and 'Remove Tab' to the context menu in the IDE of a custom tab control for Windows Mobile. There are many examples out there for adding verbs with the full framework, but cannot find anything for the Compact Framework Any feedback would be greatly recieved. Thanks, BillForShort You can find an example of how to enable "Tap-and-hold" support at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/tapnhold_support.asp . ...Show All
.NET Development Upload files to Http server using Webclient
I'm using webclient to upload files, but it does not do anything, does not even throw an exception. Dim wc as webclient= new webclient wc.upload(httppath, localpath) Please can somebody help, do u guys think maybe upload method has a bug Did you check the permission If you are using the IUSER_XXX "where XXX is the Server Name" i think you have to check that you have the right permission to write on the server for this user. ...Show All
Windows Live Developer Forums Looking at Menus trough HWND
I'm trying to check the status of the "Show &Emoticons" menu item in the tools menu of the Conversation Windows. I'm using the following code: #define MENUID 40020 HWND hWnd; (this variable is set elsewere in the code) // Get's Window Menu Handle HMENU hMenu = GetMenu(hWnd); // Check Menu state UINT mState = GetMenuState(hMenu, MENUID, MF_BYCOMMAND); if (!(mState & MF_CHECKED)) { return 0; } else { return 1; } I know i'm checking the right menu because GetMenuString works fine but GetMenuState never seems to work properly, it returns 0 or 8, I can't make sence out of it. Can anyone help Officially we do not support the use of hooking our HWND's. Currently to produce your desired resu ...Show All
Windows Forms databinding and custom controls
hi all! I'm wanting to make my own windows forms control that inherits from ContextMenuStrip because I want it to support databinding to a datatable. i figure this is a pretty complex beast, but I can't even find any pointers on where to start. is there a really good tutorial on how to add databinding to a custom control something that shows you how to add the "datasource" to the control so that it can be bound to a dataset I'm having trouble getting started, thanks! -SelArom http://msdn2.microsoft.com/en-us/library/ms171926(VS.80).aspx http://msdn2.microsoft.com/en-us/library/ms233813(VS.80).aspx http://msdn2.microsoft.com/en-us/library/ms233787(VS.80).aspx ...Show All
Software Development for Windows Vista Problem to install software in Vista (windows/system32 folder)
Hello, I have an VB6 application who use hhctrl.ocx to the help file and use msmapi32.ocx to prepare email, etc.. I have test this software with Vista but I can install these activeX ! I find that a securite ! But how can I do All system (XP, 2000, NT) haven't by default hhctrl.ocx or msmapi32.ocx ! I Do install it.. Please help me, thanks christof Hello toss, It sounds like you are trying to install a file to C:\Windows\System32, if you are running as a standard user, the file write will be virtualized to C:\Users\<UserName\AppData\Local\VirtualStore\Windows\System32 . To install to the true C:\Windows\System32 directory you must copy the file there from an elevated process (Run As Administrator). I have written about the Vir ...Show All
Visual Studio 2008 (Pre-release) Paint the region between different Paths
Hi guys, Is it possible to paint all the region between the different Paths. If I put Fill property to the Path which is ArcSegment in my case, only the Arc will be painted of course. <Canvas xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "> <Path Stroke="Black" Fill="AliceBlue" StrokeThickness="1" Data="M 10,300 A 180,10 0 0 0 400,300" /> <Path Stroke="Black" Fill="AliceBlue" StrokeThickness="1" Data="M 30,230 A 180,10 0 0 0 380,230" /> <Path Stroke="Black" Fill="AliceBlue" StrokeThickness=" ...Show All
Visual Studio Express Editions getting values in Excel
Hi everyone, I need help manipulating Excel, I opened a existing excel file, using c# but I can't get the values of specific cells. (I dont wanna use ODBC or conections, just get the values using it properties) does anyone know how to get the value of cell[4,9] (for example) and put it in a String and how to get a column1 ou column2 and put it in a arraylist AFAIK, you cannot process/execute any operations on the spreadsheet without using ODBC, ODBC is a connection required to communicate and process commands to the spreadsheet/database. you can get any value you wish by using the methods I have described in my last post, even if you specify the specific row and column you need the value for, wh ...Show All
