winapp

How to delete a file used by other process

Here's the deal. My WinApp is running, right? in let's say process 'A'.It creates a file and keeps the handle (keeps the file open for writing, this is a must). Then it starts other msbuild process, let's call it 'B'. This process is started with the System.Diagnostic.Process class. At some point, my WinApp (A) needs to delete the pre...

Uri.AbsolutePath messes up path with spaces

In a WinApp I am simply trying to get the absolute path from a Uri object: Uri myUri = new Uri(myPath); //myPath is a string //somewhere else in the code string path = myUri.AbsolutePath; This works fine if no spaces in my original path. If spaces are in there the string gets mangled; for example 'Documents and settings' becomes 'Docu...

can a Flash app running in browser connect to localhost to get data from another app?

it seems that Flash was supposed to run in a sandbox in the browser. But, if Flash can get data from a remote server, can it similarly get data from localhost IP on the same machine? In other words, can I use a Windows app that provides a TCP socket on localhost to feed data into a Flash app? EDITED: ok, the answer is yes at least for ...

high DPI problems...

Hi, I have a problem with the display of our .NET Windows application under high dpi settings. All forms are set to AutoScaleMode = DPI, but this does not solve all the problems. Basically labels end up expanding in size to cope woth the font being bigger, but the location of other controls does not change and we end up with lables ob...

DataGridview repaints very slowly

I'm using datagridview in windows application developed in C# VS2005 .net 2.0. Datagridview is provided a list of business objects. It take annoying delay of 2-3 seconds before starting displaying the rows in datagridview in falling-curtain fashion. When I switch back to my application from any other window it start repaint process in t...

Windows App spellcheck

Hi... I was wondering if there is another way to spell check a Windows app instead what I've been of using: "Microsoft.Office.Interop.Word". I can't buy a spell checking add-on. I also cannot use open source and would like the spell check to be dynamic..any suggestions? EDIT: I have seen several similar questions, the problem is they ...

Should I do Win Application ?

Hi , It's a question comes to my mind all the time and So i would like to share , And know you mature programmers opinion's . Unfortunately i spent some years of my life doing Graphic (web) and suddenly i quite and start Web Programming ( because i found myself more interested in programming and because i had a base knowledge about ...