VS 2010 Detect When Form Has Stopped Being Moved
Jan 4, 2012
I know you have to use WM_EXITSIZEMOVE or whatever it is, but I'm just not really sure how to use messages properly...I've read a few things online but just can't get it to work properly.
I'm looking into making child forms dockable inside my parent form and want to know when to hide my dock labels again (after the child form has stopped being moved).
View 1 Replies
ADVERTISEMENT
Dec 21, 2011
We have made a service in vb2010, how can we detect that the service is stopped by hand?
We know the �Protected Overrides Sub OnStop()
View 3 Replies
Mar 27, 2011
I need to detect shift + arrow key in blank form. But it's not working. I also tried overriding IsInputKey method but it only detects single key press (like arrow key) but when multiple key are pressed it simply doesn't work.
View 5 Replies
May 25, 2009
How would i go about stopping a form from being moved. I have the form border style set as FixedSingle and would like to keep it this way because it looks good in vista :)
View 10 Replies
Jul 19, 2009
Pretending I have a class that inherits off Control, how would I handle the parent form's Resize and Move events within the control? I have a painting glitch that happens when the form is resized or moved. Right now in the form I just have:
vb.net Private Sub frmMain_ResizeMove(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles Me.Resize, Me.Move Me.Refresh()End Sub
But this can't be the proper way to do it, considering Refresh() invalidates all children (will be slow and flashing if the form has lots of controls). I want to basically do the above code inside the control.
Edit:This is the glitch after a resize of the parent form:
And this is what the button is supposed to look like:
Also, I experience this issue if something like a message box is dragged over top of it. How can I remedy these issues by forcing a repaint?
View 10 Replies
Sep 3, 2010
there is any event or way to detect activity in an form or project?in the form and all the child controls.
mainly mouse clicks (not mousemove) and key press.
for example, if the form have not activity in the lasts 10 minutes, do something.
View 7 Replies
Nov 20, 2011
my program connect to Access DataBase 2003 ! in my computer every thing be ok !but in other pc my program can not open on show this message :
my OS is 7!my VS version is 2010 and it is my connection string : "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + My.Application.Info.DirectoryPath + "my_db.mdb" where is my problem ?
View 2 Replies
Jul 25, 2011
All the tooltips in one of my apps stopped working. I checked the component; the settings are all the same as on another app that still works. what would cause tooltips to suddenly turn off?
View 9 Replies
Mar 13, 2012
All of the sudden none of the pre programmed buttons on my form work anymore. The only buttons that do work are those i create in runtime.
I allready replaced all my buttons with new buttons.Beacuse i thought maby i've changed something in their settings. I've put breakers on the Private Button_click subs to see if anything happens. Nothing absolutly nothing happens if i click my pre programmed buttons.
Update: Well i figured out what was wrong. VS2010 had removed all the "handles button.click" behind the subs. And it won't create them when i dubble click a button i program time.
View 3 Replies
Dec 11, 2010
I'm using the following code
' Visual Basic
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
[CODE]..........
Its straight off the Microsoft site found here: [URL]
When I add the required components and click on the button, my app simply disappears, closes, goes right back into a stopped state. No errors, No Warnings, No issues. Nothing. Its as-if there is a stray "END" just before the IF statement. (But there isn't) Its stopping right at the IF statement. My app (THEIR CODE) just makes it disappear and "Stop". The code was working about an hour ago, but now nothing, and thats the only code on the project.
View 39 Replies
Jan 7, 2010
I am trying to find out if anybody know if tab pages on a form can be programmed to be moved by the user. For example I have 3 tab pages on a form and I was wondering if the user wanted to move the first tab page to the last and so forth, is the way to allow the user to do this?
View 9 Replies
Jan 27, 2010
as part of my alevel course i had to learn Pascal and now moved on to VB.NET.in Pascal there was a data type called 'real' where a number could have floating point values) my question is this; what in VB.NET is the equivalent to the Pascal real??
View 3 Replies
Sep 29, 2010
[code] Why doesn't the Patching Code work? (It doesn't move "fs" to the right position) [code] The code is suppose to use a FileStream to write bytes to another file. The part where it's suppose to write bytes works fine, but the part where it moves the FileStreams position isn't.
View 6 Replies
Sep 5, 2011
I have a Game Os with a desktop including shortcuts.I want to save location of shortcuts if it are moved.How I can do this?For move shortcuts i used:
Static mousePosX As Single, mousePosY As Single
If e.Button = 0 Then
mousePosX = e.X
mousePosY = e.Y
Else
[Code]...
View 3 Replies
Aug 5, 2009
Basically what I want to do is create a program with a simple interface where you select one or more directories, and it'll look for files that are in the directory that aren't currently in a folder, and make a folder to house the file in, with the same name as the file. But if they're already in a folder, I want the program to ignore them.Videos folder, there's 3 videos that aren't currently in a folder, 1 that is.Video A, Video B, and Video C.I want 3 folders to be created, and I want each file moved into the corresponding folder.I want the Video D folder/file ignored.I know how to do this in DOS but I'm having trouble translating it to VB.In DOS you would navigate to the directory and enter:FOR %i IN (*.*) DO (IF NOT EXIST "%~ni" MD "%~ni") & (MOVE "%i" "%~ni").I have no clue as to where to start.
View 6 Replies
Feb 26, 2012
Anchor point for picture box when moved and resized
View 3 Replies
Feb 9, 2010
I want to know if there is any way to find out what distance vertical scrollbar on rtb has moved(in twips or inches)?
View 1 Replies
Mar 22, 2010
I'm using VS 2005 and .NET framework 2.0 SP2 to build an application with a datagridview in it. I'm using Microsoft Word 11.0 Object Library to do the spelling checker on one of the field in datagridview. When it detected a spelling and grammar window would pop-up open on top of the datagridview.
The problem I got was when I moved the pop-up window to the new location, there's still an image of the pop-up window left behind the previous location. The more I moved the more of those copied image would be created on screen.
View 1 Replies
Apr 15, 2009
Stop files from being moved to the wrong directory
View 3 Replies
Jan 22, 2009
any simple coding that uses 2 buttons, allowing the items in listbox to be moved either up or down?I have been finding complex codes rather than simple ones. can someone help me on this?
View 1 Replies
Nov 29, 2011
Why are my new (moved to) text files deleting after the move?
If TextBox1.Text = "* DISPLAY SCROLL 10 *" Then
Dim D10A As StreamReader = File.OpenText("LINE 3 UNITS.txt")
D10A.Close()
[code]....
the file "line 3 units.txt" contains 3 choices. what I need to do is write one of these selections to the new file "line 3 units new.txt" then recognize the contents of this file to control a boolean statement.
Dim W As String = (D10B)
If W.ToLower.Contains("load") Then
LIN3LD = True
[code]....
I end up with 2 known problems.
1) The new text files delete
2) if the file doesn't delete (for whatever reason) the CONTAIN statement doesn't recognize either "load" or "speed"
View 2 Replies
May 31, 2009
I guess no need for further description... here's my other post for app that i'm makeing
View 1 Replies
May 12, 2011
I have a Windows vb.net project that does an occasional "auto refresh" based on a 20 minute timer. I want to avoid any type of auto-refresh... if the user has manually had any interaction with the program (mouse move, click, keystroke, anything) in the past 5 minutes.
I added a global variable "Dim g_LastActivity As Date" so the timer can detect that 5 minute mark.
Is there some place to put my "g_LastActivity = NOW" line that will ensure it will happen during ANY user activity? All mouse clicks, on all buttons, all mouse moves, anywhere, all keystrokes, basically EVERYTHING.
View 1 Replies
Oct 5, 2010
I am having a problem where I am on a text box and try to click a button that will bring up some reports. Since my cursor is still on the text box it doesn't go through the "Leave" and so what I entered into the text box is not saved (this happens in "Leave"). I have read previously not to use "Lost Focus" because it causes problems when you leave the form it triggers the "Lost Focus" on on the fields and just in general to use "Leave" rather than "Lost Focus". Is there a way to force my way through the "Leave"? I also don't know which field my cursor could be on (there are probably 20 text box or combo box fields on this form.
View 2 Replies
Sep 28, 2010
I created a visual basic express edition project and when completed pressed Save All. Then proceded to work on another version and saved that one as well, Now the project cannot find the original version which is the only working one. I have all of the projects backec up but they will not load. Where do I have to move the files so Visual basic can find them?
View 1 Replies
Jun 10, 2012
I have one form which stays open, and lots of other forms which can are opened and closed regularly how can i detect that a form has closed on the main form?
View 6 Replies
Feb 20, 2011
I am trying to discover how to detect that a form has been resized, or rather, that a form is being resized. I need to call a sub to handle the resizing of text in relation to the new size of a form or control. I have found that setting a minimum height and width works behind the scene so I figure there must be something watching the form size but can't find what or where it is.
View 3 Replies
Aug 26, 2011
I have created an app using Visual Studio 2010. This app wont work with Win XP or earlier. So how to detect the installed OS?
View 2 Replies
Dec 12, 2011
I want to detect if the mouse is down on the non-client area of a usercontrols parentform, from the usercontrol.
My first thought is to subclass, But how does a usercontrol get its parentforms window messages?
View 5 Replies
Aug 13, 2010
Any way to get the cursor style outside of the vb form?
View 1 Replies