windows-7

Listview selection rectangle [duplicate]

半世苍凉 提交于 2019-12-12 10:21:47
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How can I remove the selection border on a ListViewItem I'm using the following code to make a Listview to use windows 7 native look and to prevent flickering. Windows 7 Native Look for .NET ListView http://geekswithblogs.net/CPound/archive/2006/02/27/70834.aspx But I'm still getting a black dotted selection rectangle. The question will be... How can I achieve the explorer selection rectangle? Thank you so much

Taskbar icon will not change once binary is installed

China☆狼群 提交于 2019-12-12 10:20:01
问题 I have a WPF application in .net 3.5 sp1 where I change the main window icon periodically. I am seeing the taskbar icon change when running under the vs hosting process, when running directly from the bin/Debug or bin/Release folders, but not when the binary is installed and running from \Program Files! The titlebar icon of the window still changes correctly... I'm setting the icon like this: Uri imageSource = new Uri("pack://application:,,,/MyProject;component/Images/test.ico"); this.Icon =

error of calling a Sub() in EXCEL 2010 in VBA on Win7

∥☆過路亽.° 提交于 2019-12-12 10:19:54
问题 i need to call a sub from WEXCEL 2010 VBAon win7. find_max rng1:=rng // error !!! ByRef argu mismatch Sub find_max(ByRef rng1 As Range) Dim dblM As Double dblM = -9E+307 Dim maxCellAddress As String For Each Cell In rng If IsNumeric(c) Then If dblMax < CDbl(Cell.Value) And Cell.Value <> "" Then dblM = CDbl(Cell.Value) maxCellAddress = (Cell.Address) End If End If Next Cell End Sub Any help would be appreciate ! 回答1: To summarize all of the comments try this: Option Explicit Sub test() Dim rng

How to make QDoc shipped with Qt 5.11.2 work under Windows 7?

牧云@^-^@ 提交于 2019-12-12 09:26:03
问题 I have recently moved to Qt 5.11.2. When I try to run qdoc.exe as an external tool from Qt Creator: %{CurrentProject:QT_INSTALL_BINS}\qdoc.exe with the following arguments: %{CurrentProject:Path}/%{CurrentProject:Name}.qdocconf in the General Message panel it is reported that the program is executed and has ended. There is no error, but the documentation is not generated. When I try to run qdoc.exe from the command prompt, I get the following error: The program can't start, because api-ms-win

Python script (reindent.py) not working as executable in Windows7 from powershell/cmd

本秂侑毒 提交于 2019-12-12 09:20:12
问题 I want to reindent a big python source file, and using windows 7 64-bit , powershell , and pip . I installed reindent with pip install reindent . I can see reindnet in pip freeze , and I suppose the package should work fine. But, when I do - reindent -n \path\to\file.py , I am always prompted to open a file, and the content of the file is always as follows - #!c:\python27\python.exe from reindent import main main() I am bit clueless and curious about this behavior. What exactly is happening

How do I avoid this SecurityException when writing to the Event Log?

限于喜欢 提交于 2019-12-12 08:49:02
问题 I can't seem to write to the event log in .NET. I get the following exception: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. I don't want to access the Security log. How do I get around this error? Thanks! 回答1: You can try to create an event log in your application like Lachlan suggests but realize that this will require administrator privs. Instead I reccomend that you take care of this in your

Visual Studio 2010 Project on shared folder: fatal error C1033: cannot open program database

房东的猫 提交于 2019-12-12 08:38:51
问题 I am running Windows 7 inside VMWare on a Mac as I am working on a cross plattform project. I want to keep all my plattform independent files in the same folder - that's why I want to organize everything in a folder on the mac and share it with windows that's running in the VM. When I try to compile the project in the shared folder, I get fatal error C1033: cannot open program database '\vmware-host\shared folders\audio\vst3 sdk\base\win\win32\debug.base_vc9\base_vc9.pdb' I am able to write

How to install PEAR with EasyPHP 5.3.8?

倖福魔咒の 提交于 2019-12-12 08:14:52
问题 I'm learning Yii and following ebook written by Jeffrey Winesett, the application is built upon TDD. So I need to install PHPUnit to write unit test, which leads me to posts help installing PEAR for my Windows 7 (ref. link 1, link 2). And in those above sites, the author keep telling to use go-pear.bat which doesn't exists in my EasyPHP 5.3.8 which also be the latest version at the time of speaking. Even in this EasyPHP forum post we cannot find the answer. So the question is: How to install

How to create process mini dump on crash without running AdPlus explicitly on Windows 7?

青春壹個敷衍的年華 提交于 2019-12-12 08:12:50
问题 I have a .NET process that sometimes fails with AccessViolationException in the native code of some 3rd party library. I wish to have full memory mini dump when that happens. I have read this page - http://support.microsoft.com/kb/931673, the section "To collect user-mode dumps" and configured the registry as the article explains. However, when the crash occurrs, a really small report is created - no *.mdmp file is in sight. Now, I know how to run the process from within ADPLus or how to make

How to develop an application UI like Metro for Windows Vista/7

旧街凉风 提交于 2019-12-12 07:59:55
问题 How to develop an application UI like Metro for Windows Vista/7 github recently released their official client for windows and is very similar to Metro http://windows.github.com/ 回答1: You can do it in WPF by retemplating all the controls you use. There seem to be libraries that already do it to make apps look like the Zune Software or the GitHub client. http://elysium.codeplex.com/ http://mahapps.com/MahApps.Metro/ 回答2: You can also use Telerik Rad Controls to create WinForms application in