C# - Log All Windows That Are Closed In Windows?
Dec 27, 2011I want to make a shell extension or app in .NET that logs all windows that are closed. The log should contain the process name that created a window.
View 3 RepliesI want to make a shell extension or app in .NET that logs all windows that are closed. The log should contain the process name that created a window.
View 3 RepliesUsing vb.net. I've got a main form that displays when application is opened. A popup form can then be opened. If there are other windows opened on the desktop, for example windows explorer, then when the popup form is closed, the main form gets hidden behind windows explorer. You have to move windows explorer out of the way to get to the main form. Is there a way to keep this from happening?
View 2 RepliesI am using a Windows Dialog form in my VB 2008 project. I bring up the dialog form no problem with the following
Dim resultNewInc As DialogResult
resultNewInc = frmDialog.ShowDialog()
If resultNewInc = DialogResult.OK Then
...some code here ...
End If
And in the Dialog Form, the OK button has code
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
But there is one problem. If I call up the dialog form again, the form controls have the text values that were typed in during the previous instantiation and a class which is part of the form was not disposed. So it looks like the form is being "hidden" and not closed. I tried to use the code form.dispose but it didn't work.
I am implementing Drag & Drop in windows application. I have Main Form (Has a toolbar with Search, Open, Print etc) - MdiContainer On Search - Open a child - Search form. Drag and Drop a file to a Grid on this search form. In DragDrop event of the Grid - Call a Modal form. I am having trouble here.
[Code]...
I have a windows service I created that checks for data to post to an off site webservice over SSL. The service checks every 10 seconds for data to send, if there is data it opens a connection to the remote webservice, and closes the connection after 120 seconds (still checking for data to send during this time). The service works fine if a user is RDP'd into the server, but as soon as no one is logged on and the service attempts to push data, I receive the following error:"The underlying connection was closed: An unexpected error occurred on a send."I have tried running the service as a local service, network service, under my login, and under a service account, but nothing seems to work. The PC it is running on is a windows 2003 server (virtualized - vmware)
Protected Overrides Function GetWebRequest(ByVal Uri As Uri) As System.Net.WebRequest Dim oWebrequest As System.Net.HttpWebRequest = MyBase.GetWebRequest(Uri) oWebrequest.KeepAlive = False oWebrequest.ConnectionGroupName = Guid.NewGuid.ToString oWebrequest.ProtocolVersion =
[code]....
I have a form in a Windows form application that I want to display on top of a main form, close it, and then immediately show a dialog box using MessageBox.Show(). But the first form is still showing when the message box is shown, and it does not disappear until I click OK on the message box. I tried waiting to show the message box in an event handler for the form's VisibleChanged event and even calling Refresh() on both the form and the main form. Is there a way I can determine when the first form has fully disappeared before displaying the message box?
Edit:Here is some code that demonstrates how the forms are being shown.
static class Program
{
// The main form is shown like this:
static void Main()
[code]....
I am working on moving applications from Windows 2000 to new server Windows 2003 R2(64 Bit). I noticed that there are some VB programs and config files for those programs have been placed in Windows 2000 Registry. Some other applications are using them from different servers.Why do we use registry here? How can i move these to registry in windows 2003? Can I just move these or do I have to write VB programs to place them in 2003 registry?
View 1 RepliesCould anyone provide me with sample code for using a WAV file as the input to the Windows speech recognition software on my machine (Windows Vista)?
View 3 RepliesI have a .net Windows Service developed in VB.net. I have a settings file in the root directory called Connections.XML and I am setting the basedirectory [code]...
When I schedule the service this is working absolutely fine in my Windows XP machine. But when I installed the same service in our development server (Windows 2003 64 bit Server) for some reason it is not able to locate this file.
I am having a windows application. That downloads files from server and write into the local directory. It works fine. When we try the same appliication in Windows 7. IT shows an error Access to the path denied (While writing to the local directory).
View 1 RepliesHow can I change the background of my form to look like that of Windows Mobility Center in Windows Vista?
View 2 RepliesI have developed a VB 2010 express application that works on my windows 7 machine, but when I deploy it to other windows 7 machines the application will not run at all. I created an msi script to install the software on other machines and it includes the .NET 4.0 framework an all of my application dll's and such. Any idea what might be he problem?
View 2 RepliesIt is possible to create windows service using windows form control in vb.net. give me the url or links. The windows forms control such as, Timer control, list-box, notify-icon control etc.
View 1 Replieswill an program built on windows 7 using vs 2008 or 2005 have the compatibility with windows xp or vista
View 5 RepliesI have embedded the WMP control in my Visual Studio 2010 app which works on windows 7 (Framework 4.0), but installing the app on winXP, I get the following error:
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
[code]....
WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
I guess this is a reference issue, but I have added references to WMP libraries (axinterop.wmplib.dll and interop.wmplib.dll). The WMP works on the XP machine, but not when called from my application.I have searched the web now for 5 days and changed references, and reinstalled the media player on the XP machine, but nothing works.
I've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).
View 1 RepliesI have seen this happen before but am not sure how I resolved it in the past. On runtime the controls of my form change from the windows 7/vista format to an older version format as shown in the attached image.
How to display the controls in the format on the left (new windows format)
I am building a Setup project for a Web system using Visual Studio 2008. I upgraded my development machine from Windows Xp to Windows 7. The problem started with Windows 7. Whenever I try to build I get the above error. I ve tried several solutions given online but I ve failed to get a solution. When I transfer the system to a machine running Windows Xp or Windows 2003 Server it builds successfuly.
View 4 RepliesI'm attempting to use waveOutSetVolume from coredll.dll to gradually increase the audio volume from silent (or near silent) to maximum.
Most of the code examples I'm finding show some predefined set points for Off, Low, Normal, Medium, High, and Very High like this:
Public Enum Volumes As Integer
OFF = 0
LOW = 858993459
[Code]....
OK, and here's some API documentation which doesn't make a lot of sense to me in this particular context. What is low-order word and high-order word and how can they both exist in a single value?
· dwVolume New volume setting. The low-order word contains the left-channel volume setting, and the high-order word contains the right-channel setting. A value of 0xFFFF represents full volume, and a value of 0x0000 is silence. If a device does not support both left and right volume control, the low-order word of dwVolume specifies the volume level, and the high-order word is ignored.
i am doing project of Order Accepting system for five star hotels.Scenario is Waiter will accept order using Window Mobile which is Connected to WiFi present in hotel.I want to communicate to database(Sql Server) present on My Machine (Computer present in kitchen) through WiFi and Add order into table present inside database. This should notify my application present on Compter and should print order. After completion of Order Application from kitchen will notify to waiter about completion. My problem is How to Communicate with database present on Remote computer using WiFi from windows Mobile.
View 2 Repliesnothing
View 2 RepliesI'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service
View 7 RepliesIt is possible to create windows service using windows form control in vb.net.If yes then please give me the url or links.
View 1 RepliesI am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.
View 1 RepliesI have developed a Windows Service in VB.Net (VS2010) which is running on Windows7. I am trying to get "MainWindowTitle" for processes thru their process object but it returns empty.
[Code]...
I have a problem with scroll in a treeview in a Windows forms application (Framework version 3.5).
The strange thing about the problem is that on Windows XP, Windows 7 and Windows 2008 the scroll works as excepted, but in Windows Server 2003 SP2 the scrolling doesn't work. Enable/disable Visual Styles doesn't seem to make a difference on Server 2003.
Steps to reproduce the error:
1. Add a treeview to a form and add x nr of root items (and 1 sub item to each item).
2. Expand a number of nodes. The non-standard thing here is that we are changing the node integral height because we display a usercontrol with the treenode (See example of the code below).
3. When you scroll afterwards, you cannot scroll to the bottom node. The scrollbar is all the way down, but we are not seeing the last node.
Public Shared Sub SetNModeHeight(ByVal Node As TreeNode, ByVal IntegralHeight As Integer)
'Create instance of tvitemex structure.
[Code]....
i have created some shareware applications. I implemented the following mechanism for piracy protection. Before Windows Vista and Windows 7 i did write a dll file to the System32 folder with an encrypted license key. Also in the Registry under HKEY_LOCAL_MACHINE i inserted a registry key.
The problem is that with Windows Vista and Windows 7 due to the User Account Control (UAC) this is denied.
I want to ask : what other mechanism can be implemented ? Where should i store the encrypted key file and the registry key.
I want that the application can be installed for all users of a computer only once.
If i stored the key in the user's application data directory then another user could easily just install it under another user account. Also i do not want to put the key file in the application directory because that would be too obvious.
note that i create the registry key with my application and not with the installer.
I'm writing a windows service (MacTimeFix.exe) to fix the Windows time on a Macintosh (it's like this: i live in Moscow (GMT+03:00), and Mac OS thinks that the system time is GMT+00:00 and adds 03:00 to it< and Windows thinks that system time is the local time).I need to execute my code when my VB app is closed. (it happens with the shutdown of Windows) The form is invisible (hidden), and the user mustn't click anything except windws shutdown button. It is a service. When i write a Form1_FormClosing sub, it works only on Alt+F4 or CloseButton and doesn't work when the app is stopped from Windows Task Manager or whatever also.I need a way to execute sub when app is closed with taskkill (without /force) or a way to execute a several app on Winshutdown.
Here is my code:
Public Class Form1
Dim SystemMary As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
SystemMary = Mid(TimeString, 1, 2)
[code].....
So i am having a bit of a problem.. What i want is for my application to show the panel in the from to display a windows explorer selection.. Look here
You see the panel 2 in here... Well the panel 2 needs to display this...
Is this possible you know like with a library or an extension or something.. Or do i need to make my own System for viewing files..???
I noticed that adding a MenuStrip (from the Toolbox) to my form design doesn't yield a menu bar like many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar.Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.)
View 3 Replies