Activating A Minimized Form?
Jun 21, 2010
I have small application which shows an alert in every 45 mins....( to take a break from work :) )..... It is a normal windows form with a timer in it and in every 45 mins I am invoking a message box. I am able to make it work but the problem is that when the application is minimized, the message box is not popping up, it stays with in the parent form (minimized). How can I bring it up to the user focus?
View 4 Replies
ADVERTISEMENT
Jun 20, 2011
im having a similar problem like the solution here Prevent main form from appearing when showing another form . but some of the suggestions were to minimize the main app so it doesnt show, which i cant do because my main app is supposed to be a desktop to be underneath all other apps to replace the windows desktop. And the second forms are supposed to be sticky notes. so i cant minimize the main window cause it has the user background and other controls. i tried making the parent of the notes a Nothing pointer, a pointer to the desktop, creating the form through a dll but i had no success.My main problem is that when i click a note (form2) form1 comes up, even with form1 having the WS_EX_NOACTIVATE in the createparams. form1 does the form2.show() but they shouldn't be attached.Another reason im having trouble with the solutions preseted in that post is that they are for delphi and im doing it in vb.net.
All i need is being able to click on the controls and write in the note without bringing the main form behind the note. either making them independent, or making the note not focusing the first form or being able to operate the note without it activating. i dont know. my last resource is to attach my main form to the desktop but i've heard is the worst thing you can do because it can cause problems hanging the system.
View 1 Replies
Jun 7, 2009
In the main form the user can choose to download information from a device.Since this request takes time, when "download information" is pressed I open new form in a separate thread: Private Sub RunDownload()
[Code]...
View 3 Replies
Feb 2, 2010
How to load a form that will restrict the form itself to be minimized?
View 11 Replies
Dec 15, 2011
i wanted to transfer control to a different form when one form is minimized..,how do i achieve this?
View 4 Replies
Oct 17, 2009
I have a 2nd form that is minimized to the taskbar, I can click on the tab and the form opens and shows all of the data fine, but
From the main form, I am maximizing the second form and trying to pass a value to a toolstrip textbox on the second form then press a button on the toolstrip from the second form, I can get this to work fine, but where I am having a problem is
The button searches through a treeview, when I step through my code, I can see the value that I am passing, my code does execute, but the treeview is showing no nodes(but they are really there). At the begining of the code, I put a message box to give me a count of the nodes in the treeview, it shows 0, but I can see all 10000+ nodes. What the textbox is on the toolstrip is a search box. When the form is maximized, I can enter whatever and it finds it with no problems, but if I pass a value it doesnt find anything because the treeview is saying there are no nodes when there is.
View 6 Replies
Sep 12, 2011
I've got this little 'Sticky Notes' type of application and the form I have is a borderless, taskbarless form and for Windows 2000 compatability I'm using VS 2008 and targeting the 2.0 framework. One of the hurdles I have is that in XP, Vista & 7 when you click the Show Desktop button all of my note's windows get minimized and without a taskbar icon, it's not easy to get them back (at least not for a normal user) & I'm looking for a way to either right after the windows minimize I just have them all show again or if I can skip the minimizing message in the wndproc altogether
I've put together a test app that'll show the messages in a listbox for the form, but I'm not sure how to go about skipping sending the message to the form's base class. Here's a snippet, listMessages is the listbox on the form[code]...
View 8 Replies
Sep 12, 2011
I've got this little 'Sticky Notes' type of application and the form I have is a borderless, taskbarless form and for Windows 2000 compatability I'm using VS 2008 and targeting the 2.0 framework. One of the hurdles I have is that in XP, Vista & 7 when you click the Show Desktop button all of my note's windows get minimized and without a taskbar icon, it's not easy to get them back (at least not for a normal user) & I'm looking for a way to either right after the windows minimize I just have them all show again or if I can skip the minimizing message in the wndproc altogether that'd be great.
I've put together a test app that'll show the messages in a listbox for the form, but I'm not sure how to go about skipping sending the message to the form's base class. Here's a snippet, listMessages is the listbox on the form:
Private Const WmSize As Integer = 5
Private Const SizeRestored As Integer = 0
Private Const SizeMinimized As Integer = 1
[code]....
View 14 Replies
Nov 19, 2011
I have made a drawing program. It draws a line when you click in the form, but if the form is minimized or another window is on top of it, the lines disappear partially.
Here is the
Dim FormMiddleX As Integer
Dim FormMiddleY As Integer
[Code]....
View 16 Replies
Feb 27, 2012
I was wondering if it is possible to perform a "mouse"-click without being in the form, like I got this program clicking on certain locations and I would like to use the computer to other stuff in the same time but the mouse keeps going to the location on the screen. I need way to perform a click without using the mouse cursor.
View 6 Replies
Mar 21, 2011
I am in the process of creating an all-in-one application for my own purposes. This application has panels with different "Mini-apps" inside of each. Timer, Notepad, Calculator, etc... The top of the application is a drop down menu and each of the drop downs has "Minimize" and "Maximize" for the appropriate application. When the minimize function for a "mini-app" is clicked, then that application is not visible. When maximize is clicked, the the application reappears.What I am attempting to accomplish is that when, for example, the two lower panels are minimized then the form resizes to only show the top two application.Basically, its like rows. If the two bottom are not visible, then the application should resize to fit nicer. An example of this type of application would be Windows Calculator (found in Windows 7 systems and probably other OS).[code]
View 2 Replies
Aug 12, 2011
I want to use e.KeyCode while form is minimized, I'm working on a screenshot-taker if you know what I mean. So Form1 is minimized > User presses F9 (Let's say the key is F9) > An event happens.
View 4 Replies
Nov 21, 2009
Is there a way to control the size of a minimized MDI form. When I minimize a child form, it apprears at the bottom with the form buttons (minimize, restore and maximize) and just about 2 or 3 characters of the Title Text. I would like to have more of the title text showing so the user can figure out what window he wants to restore if he has a couple of them minimized. If not that, is there a way to have a "tooltip" popup when I move the mouse over the minimized form.
View 2 Replies
Sep 18, 2009
I have made a small program that reads the input of a joystick/GamePad and passes it on to a serial port. It works great I can see all the buttons pressed ect ( in a textbox). But When I minimize the form and press some buttons they are no longer passed on to the serial port and not shown into the textbox?
View 2 Replies
Jul 8, 2009
I have two forms, one called TTB_Main and the other TTB_BuildTasks. TTB_Main is the parent form and uses:[code]I am trying to get both forms to minimise when i click the minimise button on TTB_BuildTasks but at present, TTB_Main stays even though it is inaccessable.
View 1 Replies
Jun 9, 2011
I want the form to hide when I click on the minimize button, then the notify icon will show up on the system tray. I have this piece of code:
(ntfLibSMS is the name of my notify icon)
Private Sub LibSMS_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
[code].....
View 5 Replies
Mar 25, 2011
I have an application with a DataGridView and WebBrowser controls. In the DataGridView I load a DataTable using BindingSource. DataTable is just a list of URLs. I use SelectionChanged event on the DataGridView to load a selected URL in the WebBrowser control. The problem I have is that when I minimize form to the tray, it for some reason triggers SelectionChange event multiple times. What's really weird is that if I minimize to the taskbar SelectionChange event doesn't get triggered. It also doesn't get triggered if I load URLs directly to the DataGridView. What triggers SelectionChange and how to get rid of it?
Public Class Form1
Dim URLTable As DataTable = New DataTable("URLs")
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim URLColumn As DataColumn = URLTable.Columns.Add("URL", GetType(String))
[Code] .....
View 4 Replies
May 29, 2010
Imports System.Runtime.InteropServices
Imports System.Diagnostics
Private Const SW_HIDE As Integer = 0
[Code]....
The program is in foreground on click, but fails to maximize/restore.
View 1 Replies
Jul 18, 2012
I have designed a windows form(to act as a messagebox) with Label and OK, Cancel buttons. I'm on form1 and call this messagebox form in the closing event. If I debug the showdialog of the messagebox form the custom text is displayed on the Label, however if the application is minimized and when i right click on the application in taskbar and select close window then the messagebox form is poped up however the label doesn't show the custom text.
View 2 Replies
Oct 17, 2009
I'm having problems with my Startup Form appearing minimized in the taskbar on some machines (i.e. it does not popup on the screen as a normal window).The WindowState property is set to normal on the form.I'm programming in VB.NET 2008.
View 4 Replies
Mar 22, 2011
sometimes (not everytimes), when I call the Me.Hide() in a form, which I called with .ShowDialog(), the main form, which called this dialog minimized.
View 2 Replies
Dec 2, 2009
I have created an app which has a timer control which, when activated and meets a certain criteria, launches a second form with an alert for the user to review and action. this works just fine. Except.... when the main app is minimised and has lost focus, instead of launching the second form to a normal windows state it opens and sits in a minimized state itself and just flashes. How can I get the the second form to restore to a normal windows state?I have tried form2.focus and tried the windowsstate=normal etc but I'm still barking up the wrong tree.
View 2 Replies
Aug 7, 2009
I would like to find out how can I start an application when a certain process is active? for example. say I have an application and i want it to start when explorer.exe is active (witch is always). this is for testing purposes only at the moment...
the simple way I would have thought would be
Process.GetProcessesByName()
but, that is all i could figure out. I dont suppose i could use Process.Start () propriety since that will only work to call and open a process...
View 2 Replies
Oct 25, 2011
I want to activate the built-in web camera on a laptop for my application using .NET
View 3 Replies
Aug 24, 2009
I'm trying to figure out a way to prevent F10 from activating the window menu (same function as pressing 'alt') and fire keydown/previewkeydown instead. I know there are ways to do it using window.forms, but I'm using WPF on VB.net and I can't seem to find a method that would apply.
View 1 Replies
Apr 27, 2011
I'm trying to figure out a way to prevent F10 from activating the window menu (same function as pressing 'alt') and fire keydown/previewkeydown instead. I know there are ways to do it using window.forms, but I'm using WPF on VB.net and I can't seem to find a metho
View 13 Replies
Jan 14, 2011
I have to move the Cursor to certain X and Y position. I can locate the X,Y Position but the only problem I have is to activate the mouse click. I cannot do it.
Here is the code:
</Private Sub btnBrowseFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowseFile.Click
Call MseMove()
Call MseClick()
[Code] .....
View 1 Replies
Apr 28, 2010
I have a short program to try to capture keystrokes. The KeyPress Event does not activate?
Dim Hold As New TextBox
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
[code].....
View 8 Replies
Mar 19, 2009
I have most of this working, but there are some issues yet. Basically, it's a "History" form for patients There's a date field for each entry, and if that date doesn't match the date you're accessing the form I want it to disable all controls so you can't edit the form.So it would have to check the current date with the date that is on the form.The issues I'm having are this. It seems to work because when I click today's date nothing gets locked like it used to, but when I do click another date everything in that form gets locked, including the override button and the scrollbar. I don't want the scrollbar locked, and I want to have an override button so the user can edit the form if they truly wish. It also locks the DateTimePicker so I can't pick another date, I don't want that locked either.I tried enabling the DTP in the sub below but it must get ignored
[Code]...
View 6 Replies
Nov 2, 2006
it is possible to code to a call another application and activate its "Tool" menu click.I am enclosing sample exe (this is the application that has to be called; and its "Tool" menu has to be acitivated, which fires a messagebox event")
View 39 Replies