Hello,
I would like to access some text selection properties of a listview item while editing the item.
Background:
The item contains a file name. When starting to edit the item text, the whole text is pre-selected. Now I would like to change the pre-selection so that only the file name...
Hello,
I'm facing a strange problem which seems to be caused by some project settings within Visual Studio 2010. If I run into an unhandled exception, I used to get a standard window that shows the exception message plus some details (call chain, ...). For some reason this is missing in one of...
Hello,
since a while (can't say exactly since when) my "SendTo" menu contains just the standard entries (like "Desktop", "Mail recipient", "Floppy", ...). All additional shortcuts I placed into the "SendTo" folder are gone from the menu. This effect is independent from the user logged on, so it...
Hello,
I would like to flip the rows and columns of a DataGridView without losing all the possibilities and strategies of this control (regarding the column data types, data binding and so on).
I found nothing in this direction, does anybody have an idea how to make it work?
Udo
Hello,
I have 2 users set up, one administrator and one power user. Then I created a task to run at system startup with the administrator account entered in the "Run as" box, because the program started needs administrative rights.
After a while the "Run as" user has automatically changed to...
Hello,
I have the following problem with the window focus: I have 2 applications running, where one starts the other. After a couple of seconds the focus returns the first application, and whenever I set it back to the second manually it will return to the first after a short while.
When...
Hi,
I would like to make my application always use the same decimal separator, regardless which localization is configured in the control panel. I have played around with the System.Globalization.CultureInfo-class, but the problem is that I can change it only thread-wise.
Is there a way to...
There's still a problem remaining:
I'm trying to reboot using the WMI method "Win32Shutdown". This works pretty fine as administrator, but in combination with the technique described above I get an exception "Class not registered".
How to get around this?
Udo
Thanks, that did it!
A note for other people trying to work with this function: The user currently logged on needs to have the right "Act as part of the operating system" in the local security settings in order to execute the function "LogonUser".
Hello,
I'm want to have my application run with non-admin users logged on. But sometimes I need administrative rights, e.g. to access write-protected registry areas.
Assuming that the software knew about a local administrator's account info, is there a way to execute a process or function "as...
Hi,
I have the following problem: I created a remote server that (beneath lots of other things) raises events to the connected clients. These events should make the client window being activated. Therefore I use the following line:
AppActivate(Process.GetCurrentProcess.Id())
But it doesn't...
public shared" doesn't help.
The AppDomain class sounds interesting, but I'm absolutely not familiar with it. Could anybody give some more precise instruction how to make App1 share a class variable with App2? (i can make sure that App2 is started by App1)
Udo
Hello,
I want to create a variable within a class which is shared by all instances created by any process in the system. The declaration
Private Shared mySharedVar As Integer
creates a variable that is only shared between instances of one and the same process. Is there a way???
Udo
This article is quite interesting.
But honestly - I didn't want to spend the next 2 years in understanding and trying to implement an export function myself. Isn't there any further support available somewhere?
Hi,
I want to create files in Excel format from a VB application. Of course I read all the threads treating this issue, but I need something different.
I'm looking for a technique that works without Microsoft Excel being installed on the target system. My application should be able to generate...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.