C# - Get An Utility That Can Monitor Open Windows/ In .net Winforms?

Apr 13, 2010

I want to find the framework class that enables one to choose an image at design-time. I can find the editor that is used at run-time - its the Drawing.Design.ImageEditor. At design time, however, a different editor pops up which allows one to choose an image from resources.I'm guessing I could run some kind of program, then open up the image editor, from the property grid, and see what new windows/classes have been created?

View 2 Replies


ADVERTISEMENT

Open Source Code / Utility For Maintain Calendar In SQL Server DB?

Sep 3, 2009

I am looking for some (preferable vb.net) code to use in an asp.net application that will allow me/my users to setup calendars (that I store in SQL server db).

I am looking for something that will make it easy to schedule recurring appts (i.e. every monday, every other week on thursday at 9AM, every month,1st and 3rd tuesday, every year etc) with as many possible scenarios as possible.

I can automate most of the easy ones via a few screens, but inevitably my users come up with scenarios that require me to code and execute some custom scripts in SQL to make the entries, and I'd really like to offload this to the users.

View 1 Replies

VS 2008 : Zip, Rar, And 7z - Decompress All These Files Using The Windows Utility?

Sep 3, 2010

Background: I have read a bunch of techniques to handle compression. I don't think SmartZipLib handles 7z. System.OS.compression does not seem to handle rar or 7z. I am trying to find one approach for all.The tools within Windows XP seem to handle them all from inside the file manager (at least on my computer).Question: how can I decompress all these files using the windows utility? I am guessing it is some sort of Shell command. Alternatively, is there another option?

View 2 Replies

Create A Zip File Though .net And Move Files Into It Using The Builtin Windows Zip Utility?

Oct 25, 2006

I'm trying to create a zip file though vb.net and move files into it using the built in windows zip utlity. so far I can create the zip, but not able to move any files to it.Here's my code:

Dim emptyZip As Byte() = {80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}'Dim oApp As Object
File.WriteAllBytes("c:x.zip", emptyZip)
'The following code I found somewhere but doesn't work'oApp = CreateObject("Shell.Application")'oApp.Namespace("c:x.zip").CopyHere("c:Book1.xls")

View 7 Replies

Starting Up A Thread That Runs The Standard Windows Defrag Utility?

Apr 8, 2009

I have a app that is starting up a thread that runs the standard windows defrag utility. It also gives the user the option to cancel the defrag if they want to. Problem is if the thread defrag is running on is canceled is there any data loss or does it just do the last operation and then exit. For example the code goes something like this:

[Code]...

Code works exactly as it should, runs the defrag on a separate thread so my UI remains responsive. I'm just worried about the effect of the cancel on it, when you call a thread abort does the program running in the thread know it's being canceled and "cleanly" close? I don't want to abort a file move operation when it's defraging and end up with a corrupt file.

View 11 Replies

Monitor Folder - Open And Edit Files

Feb 24, 2011

I want to be able to monitor a folder, and anytime a file is placed in it (in this case, a .jdf file) I want to edit a string within the file (it's just a text file), then save the file onto a network path and remove it from the hotfolder into a "done" folder.

View 1 Replies

Direct A Form In Program To Open And Maximize In Second Monitor?

Feb 23, 2012

Is there a way to direct a form in VB.NET to open and maximize in the second monitor. That is if there are two monitors displayed, to have the form load in the second window maximized by default?

Say a program was made with two forms and a computer has two monitors attached.

I want FormA to show in MonitorA by default and FormB to show in MonitorB maximized by default

View 1 Replies

Winforms - How To Load Binary To Windows Media Player In Windows Forms

Jul 24, 2011

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 Replies

How To Monitor Windows Process

Nov 4, 2009

Second, I have a question which I have been trying to find answer for a wile but without any success.How can I monitor Windows Process for any change (create/kill) after run my app ? the only way I have think about it is that used two lists, the first one load the process list on it and the second refresh each 1 sec to get the new one and compare the two to know the difference, but its useless because you cant know who killed or created the process and other information.

As I have been read before, I guess there is a need to implement windows API, hook to detect process changes ? Is there any idea or solution for this?

Note: I am using VB.NET (2010)

View 18 Replies

Minimize All Windows On One Monitor

Nov 17, 2010

I am trying to write some code that will minimize all windows on my main monitor only? I have two other monitors, one on each side, but I just want the windows on the middle monitor to be minimized.

View 3 Replies

Monitor A Database With A Windows Service?

May 26, 2008

I'm using VB.NET 2008 (framework 3.5). I would like to check permanently if a new entry (row) is added to a table in particular, (is there some equivalent of the FileWatcher for DB ?...)

View 4 Replies

VB To Monitor Running Windows Title?

Aug 10, 2010

I use following .vbs can let me know the Windows Title is running or not, however, I would like to do more

1. Running the program with VB

2. By changing Label.Backcolor to show the Windows Title exist or not.

3. Can I run that from my machine instead logon to each server to run locally.

Dim WshShell
set WshShell = CreateObject("wscript.Shell")
'Option Explicit

[Code].....

View 4 Replies

Windows Media Player With 2 Monitor?

Mar 8, 2009

I have a Graphics adapter with 2 ports and i connect 2 monitors into the graphic adapter.im currently develop a project which use 2 multimedia player (windows media player and lets say A_player)the problem is,when i play the video with windows media player, it will show full screen in the second monitor.i don't want windows media player show full screen in the second monitor...i only want the A_player show the full screen in the second monitorcan.

View 3 Replies

Best Way To Handle Resolution Monitor When Writing A Windows App

Apr 15, 2009

What is the best way to handle resolution issues on the monitor when writing a windows app from VB.Net.I developed an app on my laptop, it's widescreen and res is set to 1440 x 900. When I take my app and run it on a machine with an older Analog monitor and the res is 1024 x 768, all of the forms on the right and bottom are cut off.

View 2 Replies

C# - Monitor Install/Uninstall Of Fonts On Windows?

Sep 4, 2010

I'm kind of shooting in the dark here - searches don't seem to be productive on this. I want to create a .NET program to monitor the install and uninstall of fonts. If something is installed or uninstalled, I want to run a program to do something.

I thought maybe a Windows Service, but haven't gotten very far with figuring out how to monitor fonts. Is this the right way and if so, what am I overlooking? If not, is there a different way to do this?

View 3 Replies

Windows Service To Monitor Programs Starting

Jan 14, 2009

I am trying to create a windows service that sits in the background waiting for programs to be started. When the programs start I want to be able to check a unique bit of information for each program (I believe GUIDs may provide this) to see what the program is. If the program is not allowed, I aim to provide a warning to the user and possibly close the program. The aim of the application is to identify when users are attempting to install additional software on to the computer so simply monitoring for a certain executable wouldn't work as msiexec is called for all MSI's and as I only want to stop blacklisted programs...this wouldn't work.

View 4 Replies

Windows Installer Monitor - Include A Tool With Installation

Oct 6, 2009

I created a windows installer installation for my vb.net application. I want to include a tool with my installation that will run before the install begins and monitor the installation and send the log and errors to me (by email for example)

View 1 Replies

Winforms - Select A Particular Tabpage If Already Open In .NET?

Mar 4, 2010

I have created a tab control and few forms. Each form opens in a separate tab when a button is clicked

I have take care so that the form does not open again in a new tab if its already open. But I am having trouble bringing the tab to focus.I want to Select the From in the tab and bring it to focus if its already in the tab list.

[Code]...

View 1 Replies

Winforms - Unload All Open Forms ?

Feb 26, 2009

In the middle of converting VB6 code to VB.NET, I need to replace the following code that intends to close all open forms remaining in the application.

'close all sub forms
For i = My.Application.OpenForms.Count - 1 To 1 Step -1[code].....

I've replaced the Unload function with Close (as indicated by TFM), but the compiler complains that OpenForms is not a member of My.Application.Where can I access the open forms?

View 4 Replies

Make A Process Monitor Tool With WMI That Monitor The Processes Created Or Deleted - Code Will Not Work

Sep 9, 2010

I want to make a process monitor tool with WMI that monitor the processes created or deleted, but the code will not work. Note to reference System.Management,

CODE:

Code dowload:

CODE:

View 4 Replies

Monitor The Registry For Changes Similar To How Sysinternals Process Monitor ?

Jan 31, 2011

Can I monitor the registry for changes similar to how sysinternals process monitor does it in VB? I have checked many different articles and C# samples but not come any closer to getting an answer, I would like to know if there an easier way (a VB sample perhaps)that you folks can share. Ultimately I'd like to be able monitor other things too like file system, processes etc but wonder most about how the registry can be done in VB...Would using system.management be a start? Or WMI? if so is there a nice VB sample..

View 3 Replies

.net - Gotfocus() Mdi Child Windows Winforms?

Jul 13, 2010

I have a mdi and 3 child windows.The program start with an empty mdi.With a menu you can open each child window once.When i open for example 2 windows. And close the one on top. The one left(the window under the one i closed) should get focus. How can i manage this?

why i need this?each childwindow has a event gotFocus. Depending on the focus my menu should change.

Private Sub frmMain_gotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.GotFocus

View 2 Replies

.NET Winforms App Under Windows 2003 Server

Jun 29, 2009

.NET Winforms App Under Windows 2003 Server

View 4 Replies

.NET Winforms App Under Windows 2003 Server?

Mar 31, 2009

.NET Winforms App Under Windows 2003 Server

View 1 Replies

Windows - Rebind A Combobox In Winforms?

May 4, 2009

I have a Winforms application and a combobox has it's datasource set to a DataTable when the form loads. The data displays fine in the combobox. then after a user clicks a button I want to create a new DataTable and assign that datatable as the datasource for the combobox.

The problem is that after setting the datasource to be the new datatable the items in the combobox don't change. Here is the code I'm using.

[Code]...

Does anyone know how to make the correct data be displayed in the combobox the second time I assign the data source for it?

View 1 Replies

Winforms - Bring Window On Top Of All Windows?

Dec 17, 2011

I have a window which should stay on top of Power point slide shows. So it should be on top of all the windows. I did this easily using VB 6 using Lib "user32", but it seems to be difficut with VB.net.

Me.TopMost = True

This does not seem to work as it works only within the program.

Private Declare Function BringWindowToTop Lib "user32" Alias "BringWindowToTop" (ByVal hwnd As Long) As Long
Private Sub frmTmr_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated

[Code].....

View 1 Replies

Winforms - .net NUnit (2.5) Windows Forms Testing?

Oct 18, 2011

I am retrofitting unit testing into a fairly complex system designed and written by other developers in VB.net. I am trying to develop unit tests for the GUI forms using NUnit and the NUnit Forms extension. (I've been looking at c# examples that are fairly easy to port over if you have a solution but don't know VB syntax as long as it uses NUnit classes)

I will try and explain what I am doing but first a brief description of the program. It basically monitors server activity. You need to connect to a server via a modal form with IP and Port fields(amongst others). Once you have connected to a server other parts of the program unlock and become usable (such as configuration of the server).

Desired process: Load program > click connect button > modal connect form loads > enter details > click OK to connect > main form updates to logged-in state > other functionality

The problem is that I cannot test the functionality of the connect form and then the logged-in functionality of the program. I can test that it loads the modal connect form correctly; enters the details and clicks OK (all fine so-far) but it does not appear to logically progress the program. The modal form just closes again seemingly without running the connect code from the program back-end and I'm back at the main menu not logged in to anything.

I have a feeling that I've either missed something really obvious or that it's simply not doable in NUnit.I have trawled the internet in search of anything similar but the closest was another SO thread that was really generic. Without being able to actually test the logged-in version of the program, I'm at a major hurdle.Another issue is handling message boxes that don't have unique identifiers (e.g. "are you sure you want to exit?"); these also seem to be a major pain in the arse with NUnit (If it makes any difference, I'm running the tests as a stand-alone project using a reference to the executable file of the built project, not the actual source)

View 2 Replies

Winforms - NUnit (2.5) Windows Forms Testing ?

Jun 10, 2012

I am retrofitting unit testing into a fairly complex system designed and written by other developers in VB.net. I am trying to develop unit tests for the GUI forms using NUnit and the NUnit Forms extension. (I've been looking at c# examples that are fairly easy to port over if you have a solution but don't know VB syntax as long as it uses NUnit classes)I will try and explain what I am doing but first a brief description of the program. It basically monitors server activity. You need to connect to a server via a modal form with IP and Port fields(amongst others). Once you have connected to a server other parts of the program unlock and become usable (such as configuration of the server).Desired process: Load program > click connect button > modal connect form loads > enter details > click OK to connect > main form updates to logged-in state > other functionality

The problem is that I cannot test the functionality of the connect form and then the logged-in functionality of the program. I can test that it loads the modal connect form correctly; enters the details and clicks OK (all fine so-far) but it does not appear to logically progress the program. The modal form just closes again seemingly without running the connect code from the program back-end and I'm back at the main menu not logged in to anything. I have a feeling that I've either missed something really obvious or that it's simply not doable in NUnit. I have trawled the internet in search of anything similar but the closest was another SO thread that was really generic. Without being able to actually test the logged-in version of the program, I'm at a major hurdle.Another issue is handling message boxes that don't have unique identifiers (e.g. "are you sure you want to exit?"); these also seem to be a major pain in the arse with NUnit(If it makes any difference, I'm running the tests as a stand-alone project using a reference to the executable file of the built project, not the actual source)

View 1 Replies

Winforms - TextBox Validation In .NET And Windows Forms?

Mar 5, 2009

I'm using the following code to validate the text entered by user. It works perfectly fine. But I want to add the backspace feature so as to allow the user to delete the wrongly entered number.I have tried a couple of things and they worked but before last digit (after the decimal point) i.e. it does not allows to delete after the number has been completely entered.number is being entered in the format: 12313213.45

What shall I do?Private Sub TextBox5_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox5.KeyPress

[Code]...

View 7 Replies

Winforms - Word Wrap In Windows Forms (.net)?

Apr 25, 2009

how to do word wrap in drawstring in vb.net 2005.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved