Setting A Cursor Hotspot (icon Cursor)
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
ADVERTISEMENT
Jan 14, 2010
how can i make my cursor to jump to the next textbox after i type the digit
View 3 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
Oct 6, 2009
HiCan i give the mouse cursor a Icon file (image)ReagrdsalvinALK
View 4 Replies
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
Apr 27, 2010
I have created a user control tha inherits from the NumericUpDown Control.Is it possible to set the cursor position within the control?I am validating the text OnKeyUp, and formatting it when it meets certain criteria.To do this i have to do me.text = Fomatted(Me.Text), which sets the cursor back to the position 0, i want to set it to the end of the text area.
View 1 Replies
Jun 18, 2009
I have a couple of TextBoxes on a Form and also a RichTextBox control which is associated with a ContextMenu1. Now, while my MouseCursor still blinks friendly in one of my TextBox controls, I right-click the RichTextBox and get surely my ContextMenu1. However, this ContextMenu won't do me any good unless I first left-click my RichTextBox in order to set my cursor in there and then right-click again to open the ContextMenu. I've tried to work with RichTextBox.Focus() and also with something like ... If
e.Button = Windows.Forms.MouseButtons.Right Then ...
But nothing seems to do the trick.
View 15 Replies
Feb 22, 2010
I have a form that has two text boxs User ID and password. My question user must move cursor to the User ID field. But it should default to that field as that is the only option. How to do it in .net?
View 3 Replies
Feb 22, 2010
I need to be able to take some co-ordinates from textbox and set them to the mouses position. I have tried a few things such as trying the 'new POINT' but i get the following error RDU.Form1.POINT has no constructors'What i am doing is sending the co-ordinates to a listener which then goes into a textbox and i want mouse to go to them co-ordintes.
View 3 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
Jun 6, 2009
can i put my own custom cursor in ? so when the cursor is over form1 its my own custom one ?
View 6 Replies
Jun 3, 2012
I want to get the current cursor of the desktop.I've been using Cursor.Draw on a graphics thing to get the cursor... But it doesn't support 32-bit cursors. it converts it to 24-bit. How can I get the cursor as a PNG or such (32-bit)The reason I need this is a have a screen capture application... and I need it to draw the cursor over the screen capture image.
View 12 Replies
May 4, 2011
I have a vb.net 2008 application which has its corresponding icon.
The icon shows correctly except in the taskbar when the "small icon" setting is on.
My vb.net project includes a .ico file which when I see in the IDE includes 16x16, 32x32, 48x48, 64x64 and 256x256 bitmaps, in 4, 24 and 32 bits, also 3 .png images in 256x256 32 bits each.
I made the icon myself simply using a 64x64 bitmap and then converting it to .ico, and assigning it to the application in the project properties. I thought windows would use and escalate the corresponding image, it shows even in the file explorer properly in the small icon form, but not in the taskbar.
View 1 Replies
Aug 28, 2010
how to keep the cursor out of a Textbox? The Textbox is read only and no tabstop. Still when i run the app, if you click on the Textbox the cursor is there and i dont want it.
View 3 Replies
Nov 1, 2011
I have a dialog that opens with a textbox on it ready to receive text input from the user.
The only problem I have is that I can't get the cursor to show.
View 5 Replies
May 31, 2012
I am trying to change the cursor type to a crosshair but am having no luck. The program I am writing initially starts up as taskbar notfiy icon. Once one of the menu items is clicked the mouse cursor should change from an arrow to crosshair. This should remain like this when the mouse button is pressed again, held and then released and then it should go back to being an arrow cursor once again.To start off, I wrote the following code:
Private Sub changeMouseCursor(ByVal sender As System.Object, ByVal e As EventArgs) Handles DisectMyScreenToolStripMenuItem.MouseLeave
Cursor = Cursors.Cross
End Sub
This does not work but do not understand as to why this is. Visual basic 10 on Windows 7 SP1. dot net framework 4.5 Beta?
View 3 Replies
May 5, 2009
When an ADOX database's Table is filled, the cursor always stop at the first row. How to make to stop at the last row?
View 8 Replies
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
Apr 29, 2011
Im trying to make a sprite face the direction of my cursor and i need the co ordinates to do this. i believe you're unable to rotate a sprite by degrees and instead must to have multiple different sprites drawn at different angles.
View 5 Replies
Jun 23, 2009
i'd like to know the current cursor but out of a form, in all windows.i've done a litle app with a text box and a checkbox. when i click to the check box, the current cursor is displayed in the textbox1.[code]the current cursor writen in the textbox1 is correct when the cursor is in the form, but when the cursor go out of the form, in a other windows application, the textbox1 didn't write the current cursor.
View 3 Replies
May 18, 2010
When I click on my hard-coded richtextbox, I need my cursor to be like a square so that it replaces the text with the user defined text. How would I go about doing this? Here's the dode:
<
Dim strTab
As
String = _[code]....
\
Now when a user selects a "-" I need the cursor to be a square so it can replace the "-" with the user input...lets say a "5".
View 4 Replies
Nov 26, 2009
Basically, there's a Rich Text Box here, and it's read-only. The user can tab inside it, and move the arrow keys up and down it. If I can get my code to work (read the line where the cursor is). I am using the following code:
Code:
Dim RTBLine As Integer = Me.RichTextBox1.GetLineFromCharIndex(Me.RichTextBox1.SelectionStart)
If RTBLine < 2 Then RTBLine = 1 'used to prevent errors
[Code]......
View 7 Replies
Jun 19, 2011
I have a form with many, many buttons but lets say ten, and I have named them one, two, three all the way up to ten. When I move the mouse over one of them, I want the name of it to appear on a label. When I move away the label should be empty. So when I point (not click) on "Three" that's what the label should say, and if I move on to the next button the label should read "Four"... I'm sure you get my point.
As you can see, what I really want is to get the name of the button under the cursor and store that name as a string, and then use that string to make things happen. With only ten buttons I can easily write ten MouseHover events, and ten MouseLeave events, one for each button, but that defeats the purpose of my question. I want to be able to write only one Hover and one Leave event and the use it for how many buttons I choose to use in my application.
View 5 Replies
Jun 16, 2009
Is it possible to get the size of the cursor through code? Note that I don't want the position, but the size of the actual cursor. The reason being so that I can make tooltips appear at the bottom right of it. AFAIK, cursor size isn't universal, but in order to get a tooltip to the bottom right of a cursor, you need this math.
Me.Left - MousePosition.X + cursor_size_x
Me.Top - MousePosition.Y + cursor_size_y
Right now I use 12x12 since I remember that being a relatively normal size, but I know it could be bigger too.
View 1 Replies
Aug 2, 2010
I got an issue again, Im using a program which automatically does the work I normally have to do, but it uses my mouse to click on a java application. Normally I would have to do it myself but now the program does it. I was wondering wether there was a way to create a second mouse cursor, to not interrupt the main mouse cursor, so I could do other work while my program is still doing its work. Like 2 mouses, 1 is the main cursor, the other one is programmed to do its work even if the form is not focused.
[Code]...
View 2 Replies
Aug 2, 2010
I am using a program which automatically does the work I normally have to do, but it uses my mouse to click on a java application. Normally I would have to do it myself but now the program does it. I was wondering whether there was a way to create a second mouse cursor, to not interrupt the main mouse cursor, so I could do other work while my program is still doing its work. Like 2 mouses, 1 is the main cursor, the other one is programmed to do its work even if the form is not focused. Or if this wouldnt be possible, is there a way to let my form click on certain places on itself without it being focused. E.g. my form is not focused but the process still goes on, there is still being clicked on it.
View 5 Replies
Sep 26, 2009
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Clear()
TextBox2.Clear()
End Sub
How do I make the cursor appear in textbox1 after clicking the button?
View 1 Replies
Feb 19, 2010
welll everyone knows how to make a screenshot app...but wat about a screenshot that includes your cursor in the bmp image?
View 3 Replies
Sep 27, 2010
I have a string that will be of varying lengths. I want to display this string in a textbox so scroll bars will appear if the string is larger than the size of the text box. This info is read only - I don't want to give the user any input with it.I still see a cursor and my string highlighted even with the ReadOnly set to true.Is there any way to disable the cursor altogether in a textbox so nothing is highlighted?Maybe I'm not using the best control for this, but I don't want to use a label.I generate this textbox at run time, if that matters at all.
View 4 Replies