Cursor At Top Of Screen?
Feb 10, 2012
I am making a program in Visual Basic 2010 Express, and i was wondering if there was a way if the form (form1/me) can be maximized by dragging form1 to the top of the screen. So far I have this code:
If Cursor.Position.Y = Screen.PrimaryScreen.WorkingArea.Height Then
Me.WindowState = FormWindowState.Maximized
End If
View 5 Replies
ADVERTISEMENT
Jul 2, 2009
How can I set the curosr to 'cursor.wait' for the whole display screen and not just for the application form? I have tried "Windows.Forms.Cursor.Current = Cursors.WaitCursor" And several variations but without success.
View 5 Replies
Jan 7, 2010
how to hide the cursor of the screen.If I use Me.cursor.hide() only hides in the form but I want to hide and show in full screen.
View 6 Replies
Feb 12, 2010
how can i add the cursor to my screen capt program
Public Class Form1
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
[Code].....
View 1 Replies
Oct 23, 2011
how would i take a screenshot like 100,100 around the cursor like taking a screenshot and the cursor positon is in the middle of it and its 100,100 around it
View 7 Replies
Oct 4, 2009
How do i find the cursor coordinates on the screen in VB 2005 code?
"label1.Text = e.Location.X" Only gives you the coordinates in the program window itself, i want it to be displayed in a label/textbox in relation to the whole screen.
View 12 Replies
Aug 14, 2009
I am currently trying to read out my absolute cursor position on the screen. I read some threads in the "Legacy Visual Basic (VB 4/5/6)" Forums but this is as far as I get:
[Code]...
View 11 Replies
Jan 6, 2011
How do I go about this? I know you can hide the regular typing cursor, but I would very much like to get rid of the mouse.
View 6 Replies
Sep 19, 2009
im using this code
Dim VideoSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim PIC As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim image As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(PIC)
[code]...
How do I include the cursor with this and save all the screenshots as one video file?instead of saving as 1000 pics?
View 2 Replies
Jan 14, 2010
how can i make my cursor to jump to the next textbox after i type the digit
View 3 Replies
Jun 29, 2011
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
View 11 Replies
Feb 16, 2011
This VS010 solution is not providing my intended outcome as a custom override of a 'crosshair' or 'reticle' cursor e.Graphics.DrawPath() is the function that isn't working. This
WORKING solution demonstrates how it's supposed to work. The additonal PictureBox added to a Panel is, for reasons I don't understand, not allowing the 'new' cursor to appear.
Option Explicit On
Option Strict On
Imports System.Drawing
[Code]....
View 2 Replies
Apr 28, 2009
I have a user control, and want to be able to update its cursor while it is disabled. For example, say that I have a user control whose cursor is Default. The below code works ONLY when the user control is already enabled; if it is disabled the below code doesn't work and the cursor remains Default: Me.MY_USER_CONTROL.Cursor = System.Windows.Forms.Cursors.WaitCursor
View 3 Replies
Nov 6, 2009
I have a custom cursor that I have as a ico file as cur files are only mono coloured and 32x32.
The only problem in using a ico file is that I can't set where the hot spot is and at the moment it is set in the middle of the icon which is no help
I was looking on the msdn website and it said to set the hotspot like this
Dim instance As Cursor
Dim value As Point
value = instance.HotSpot But I don't know how to set the point value to (0,54) which is where I want the hotspot to be located.
View 6 Replies
Jul 17, 2011
I am currently writing a custom control, for a future project. The control uses custom cursors, but sometimes this strange error appears: Code generation for property 'Cursor' failed. Error was 'CursorConverter' is unable to convert 'System.Windows.Forms.Cursor' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.
[Code]...
View 9 Replies
Jul 6, 2011
Currently I have the following VB.NET code to make a screenshot of my desktop, but it only takes a picture of the active screen:
Public Function SaveScreen(ByVal theFile As String) As Boolean
Try
SendKeys.Send("%{PRTSC}")[code].....
The following code is how I execute the above function, if it makes any difference, which I don't think it does:
SaveScreen("C:Lexer_tracescreen.png")
Now, I need to be able to take a picture of the entire screen, not just the focused window.
View 4 Replies
Feb 2, 2012
Now I'm creating at app in VB (Microsoft's, Visual Basic 2010) which will be in full screen but I want to know if I can put all my content in the centre of the screen. At the moment it's at the far top, left of the screen. When the screen size varies I want it will stay in the middle for all shapes and sizes. Like :
<div style="margin: 0 auto; width: 500px;"></div>
But this is for web pages using HTML and CSS.
View 1 Replies
Feb 29, 2012
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
[Code]...
View 2 Replies
Sep 6, 2009
Sometimes when updating the entire screen or moving around controls etc, there is some fairly bad screen flickering.
View 2 Replies
Feb 8, 2011
I have created a GUI and have set my 'Form1' window to match that of my PC monitor ( 1280x1024 ). However when i move the project to work on my netbook, the screen on my netbook is only 1024x600 and half my GUI is missing. Is there any way i can adjust my settings so that my 'Form1' GUI will auto adjust and display in full on both screen when i move the project back and forth?
View 2 Replies
Dec 20, 2009
I'm coding a splash screen in VB.Net that displays for 3 seconds then shows a login screen. But the splash shows up even when login shows and I have told the splash to hide. Here is my code:
[code]...
View 3 Replies
Jul 1, 2009
I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.
View 3 Replies
Jun 23, 2009
im about to develop a small appliacation for a bet system, which needs 6 screens, each screen will be a touch screen for each client... the application will be running in one computer only just with 6 screens. my question is does anyone knows how to control each screen separately?. somethign that would allow me to output each forms in different screens would work fine.
View 2 Replies
Feb 18, 2010
I am making a program that will put a black mask over an application (like a full screened game). This black mask will fade in and out, depending on certain criteria. Is there a way I can do that with VB? It's to help me dim my monitor without having to push anything.
View 3 Replies
Aug 20, 2010
I wanted to make a screen recorder (not screen capture) program, but I am not entirely sure how to get it started. I have seen many videos and things on how to make one, but all of these just take multiple pictures and then don't compile them into a movie file, and I don't want to take many pictures (unless that is the only way possible.) I am using Visual Basic 2010 Express and I have looked at the Windows Media Encoder, but I can't seem to figure out how to use/implement it (yes, I have downloaded and installed it.) Maybe I can use some kind of ActiveX control?
View 3 Replies
Sep 18, 2011
In my project is a form called "Secondary". It is suppose to appear on any and all screens (if any) other than the primary screen. The following code seems pretty logical to me, but Secondary is not appearing on any screen.
[Code]...
View 6 Replies
Sep 30, 2009
How can I get my screensaver to fill the whole screen. it has in the past but, just quit working several months ago. I have Windows Vista
View 1 Replies
Mar 28, 2009
I have a button btnRegEx that when pressed shows a ContextMenuStrip, similar to the '>' button in the Find/Replace dialog in Visual Studio when you are using Regular Expressions. I have a ContextMenuStrip cms which I show using its Show(x,y) method.
At first I was simply setting x and y (the location of the ContextMenuStrip) to some point next to the button, but I noticed that when the button is close to the edge of the screen it goes off screen. I wanted to prevent that so I built some logic into the x-y calculation. When the ContextMenuStrip width is larger than the 'remaining space left' I simply show it more to the left. Same for its Height of course. I am using the Screen.GetWorkingArea(point) method to determine the 'remaining space left'. As I understand it, it returns the working area closest to the point you specify (to which I pass the button's location).
As long as I stay on my first monitor, it is all working perfectly fine. The problem occurs when I move the form to my second monitor. The contextmenustrip is still showing on the first monitor for some reason...
Here is the code I am using:
vb.net Private Sub btnRegEx_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRegEx.Click
Dim p As Point = PointToScreen(New Point(btnRegEx.Left, btnRegEx.Top))
Dim x, y As Integer
[CODE]...
I have noticed that when I click the button when the form is on the second monitor, the buttons location (p) is calculated with the first monitor's top-left corner as (0,0), even though it is on the second monitor. This way, the GetWorkingArea function returns something like 1280, while the buttons x-location is something like 1700... So, how do I get the buttons coordinate relative to the actual screen it is on, rather than the entire dual monitor screens as a whole?
View 3 Replies
Oct 21, 2009
I am in a dual monitor environment. I have developed an application using VB.NET 2005.When I start my application, the splash screen always displays on the monitor where the mouse cursor is at, even if it is not the same monitor that the login and primary form open on.
View 3 Replies
Feb 11, 2011
VB.net / VisualStudio8 I have an application I've written that's been very stable. I had it set to exactly 1024x768 resolution, and to windowsstate=maximize (I think that's what it's always been).
I recently started coding to give the user the option to use the 1024x768 or to have the program detect the max size of the screen and use it.
That part works great... I'm using:
Dim MonitorWidth = Screen.PrimaryScreen.Bounds.Width
Dim MonitorHeight = Screen.PrimaryScreen.Bounds.Height
Me.Height = MonitorHeight
Me.Width = MonitorWidth
What I'm baffled by is that the application now won't get off the max screen size. It's using the max of the screen, even when I do not call the screen resizing code above. I'm trying to give the user the option of the application only taking up 1024x768 (and placed up to the top left) or maximizing the application using the full extents of the screen.
View 4 Replies