I have a user resizable WPF Window that I want to constrain the resizing so the aspect ratio of the window stays constant.
Ideally I would like to constrain mouse location when the window is being resized by dragging a corner to positions that maintain the proper aspect ration. If an edge is resized with the mouse, the other dimensio...
I saw a similar question asked and answered for ASP.net here http://stackoverflow.com/questions/484327/how-do-i-prevent-visual-studio-from-renaming-my-controls
But I am trying to prevent this while writing a Windows forms app in VS 2008 using c#. I want to copy/paste a ton of controls without them being called Checkbox1 etc. I'd rathe...
Hello!
I have pop-up menu, for example:
"..."
"PopUp-menu"
"Menuitem1"
"Menuitem2"
"..."
How to popup "PopUp-menu" using SendMessage function? Is it possible? course Menuitem has ID, and POPUP menu - has not
...
Recently I was searching on how to secure svn repository, or otherwords how to enable ssl connection to svn repository for a windows server 2003. Does it make more sense to use Linux server instead?
...
I have a small header file of my own which declares a couple of functions, one of which has a return type of DWORD. I'm reluctant to drag in windows.h just to get the official definition of this type since that file is huge, and my header will be used in a number of source modules that don't otherwise need it.
Of course, in practice I ...
Are there any tools/libraries on Windows that can help me tarck down the culprit? This is a fairly large codebase, with multiple threads.
I code for Linux mostly; Windows is unfamiliar territory. Thanks for your input.
...
Is there a WMI namespace and a class that can be used to obtain the extended properties of a file, such as Owner, Author, Title, Subject, Category, Comments?
please suggest.
...
Hi
I am trying to create a reliable service on top of UDP.
Here i need to timeout receiveFrom function of window c++ if not packet arrives
in specified time.
In java i do this DatagramSocket.setSoTimeout but i dont know how to achieve this in windows c++.
thanks
...
Hi all,
My hardware has a problem, from time to time it's sending a "keydown" followed by a "keyup" event:
keydown: None LButton, OemClear 255
keyup: None LButton, OemClear 255
keydown: None LButton, OemClear 255
keyup: None LButton, OemClear 255
It goes like this, every 1 or 2 seconds, forever, in Windows.
In general it doesn't a...
I have a c# windows client app packaged using ClickOnce.
Using c# how can I programmatically get the registry entry for that application?
As I am wanting to write a registry entry for a child app NEAR the same location
...
I am trying to use pantheios file stock back end to log from my dll in c++. The file gets created but nothing gets written to the file.
Here is a snippet of my code
if (pantheios::pantheios_init() < 0)
{
MessageBox(NULL, "Init Failed", "fvm", MB_OK);
}else {
MessageBox(NULL, "Init Passed", "fvm", MB_OK);
pantheios::log_IN...
Fairly exotic it seems to me. We recently upgraded/migrated from Windows Server 2003 to 2008, and now it seems that images cannot be rendered when using Doc.AddImageUrl(). (when the pdf is saved, the images appear at the correct dimensions, but the IE8 missing image x shows up).
If I understand correctly, ABCpdf uses IE rendering intern...
Our team has recently been considering pushing out a minor registry fix to users to modify one particular problematic key. Pretty straightforward stuff, just needed to update 1 key/value inside the registry.
So at the moment, we are using Wix to build .msi installers for the product. While looking into Wix's support for generating .msp ...
I was wondering if there was anyway to use functions like ReadFileEx that require a pointer to a function in a class WITHOUT marking the function as static? Thanks in advance. SBP.
...
I was wondering (if possible) if there was a program/tool/utility that when I create a new file and provide it with an extension that it creates the appropriate tags automatically?
For example, a new file I create called index.php would have the appropriate tags auto-generated inside:
<?php
?>
I hope you get the idea.
Any infor...
in windows (using apache as server), my file path directory will be C:\xampp\htdocs\mysvn\PhpDocumentor\phpdoc.php. But what happen with other OS such as linux on APACHE, or IIS on windows, Or other OS i don't know and never use ?
i would like to know to make sure i wrote the bullet proof, file reading via PHP.
Care anyone give an exam...
How can I calculate CPU and disk utilization of another concurrent program? I.e. one program is running and other calculates the first's resource use.
I'm using C and C++ and running under Windows XP.
...
Hi all,
I work on linux. Iam writing a locking interface.
In linux the default locking is advisory locking where as in windows it is mandatory locking with LOCKFILE interface. I want a advisory locking interface in windows.
...
I have written a WPF 4.0 windows application that consumes a .net 3.5 WebService. This works fine when the web service in hosted to allow anonymous connections, however the WebService I need to consume when we go live will be held within a website that has Integrated Authentication enabled.
The person running the WPF application will b...
I have QT installed on disc D (on Windows). And I want to move it to disc C. Is it possible to do that?
If I just copy QT folder from C to D then I see lot of errors when I compile my applications that use QT.
Errors are because qmake.exe contains full paths to include, bin and libs folders inside. So, when I create solution for Visual...