Im trying to resize a picturebox dynamically using .size.height and .size.width Its not working. This is the error message: "Expression is a value and therefore cannot be the target of an assignment." Never used height and width before. Been trying to find the answer, but it seems beyond me. Im sure its easy. Anyone know whats wrong with this?
I am currently making a 2d game where a spaceship flies around a 2d map.Currently, I am moving the ship with keys, but would like to implement mouse clicking as well.I am wanting to enter an x and y coordinate and have the ship move to that coordinate.
These are my variables:
PlayerFacingAngle, PlayerPositionX, PlayerPositionY, PlayerVelocityX and PlayerVelocityY
I need my window to be an exact size. Isn't it possible to specify the exact size of the client area (the drawable part) as opposed to the entire form including the menu bars etc?
I would like a textbox to auto-size when the form is maximized and minamized. Like Internet Explorer when the address bar gets shorter and longer when you resize the window. I think the code so far is[code]...
I know that I can calculate the display area for a given font using TextRenderer.MeasureText("Text", New Font(Arial, 12.0F) I want to calculate the size of a font I should be using in order to fit a given display area. Is there a function that allows me to do that?
What im trying to do is when the mouse is over the picturebox then the SIDES of it highlight. And if you click on the picture box. The WHOLE picturebox highlights. I made 2 other images for those effects.
My problem is when i put my cursor over the control the sides don't highlight. Only if i click it. But then my other picturebox set for that effect doesnt appear.
Whats wrong in my code?
Private Sub PictureBox10_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox10.MouseEnter PictureBox27.Visible = True End Sub
i recently created a motion detection program. I want to add the option to select (creating a rectangle) a small area that will check only in that selected area for motion detection.How i`m i going to give this ability to the user. I will use the System.Drawing correct?What`s the command that allows the user to draw a rectangle on a picturebox?So if i have the coordinates of the rectangle i can handle pixel to pixel comparison....
I'm looking for a fast way of searching a textbox containing plain text mixed with coordinate values.These coordinate values may contain no decimals or 4 decimal places after the decimal.I'm somewhat familiar with regex, but my uncertainty is the actual number of characters in each word will be different.[code]
I have a picturebox on a form. The image in the picturebox is actually a report. I want it so if the user clicks on it it will zoom larger --- while the picturebox remains the same size. Of course, the entire image will no longer be seen. So I also want to be able to drap this image around with the cursor. The examples I've found for picturebox zooming cause the picturebox itself to get bigger and smaller. I need it to be like an Access report. Click on the report and it gets bigger. Click again and it goes back to the full image. Does anyone know of an example or tutorial in VB.Net for this type of zoom-with-fixed-size picturebox function?
I want to replicate what I have with a Mac application. I want to fill the background area of a PictureBox with grids as shown in the following screenshot (right below the blue arrow).What I have is a simple translation of the code that I use with this Mac application to create the background area, which doesn't quite work.Private Sub PictureBox1_Paint(ByVal sender As System.Object, ByVal e
As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint Dim g As Graphics = PictureBox1.CreateGraphics() Dim i, j As Integer For j = 0 To Math.Ceiling(PictureBox1.Height / 20)
[Code]...
Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
i'm working on Virtual K770i project - there is a picture of mobile, now i want to create clickable areas on "keypad" of mobile....I'm got idea about transparent label or something but transparency dont work on any object but Form1 - so how to make transparent clickable areas on picture box (see a picture)
I want to know how can we determine the world coordinates (x,y,z) when our mouse moves in the viewport. I am using vb.net to make a directx application.
I have a form with a text box in a toolstrip. I would like to make the width of the textbox relative to the form size when the form is resized. The following code works fine except when you click the restore button from a maximized state.
Is it possible to highlight or at least move the cursor to a word in a textbox? I'd like to create a search function to search and highlight a word in a textbox?
i've been coding a sidebar but i dont know how to make the size to aoutomatically fix the screen size..i mean if the screen resolution is 1000x789 or 890x678 s stilll fit to it I have find in google and youtube but still i didn't get any ides on how to do it And also if possible can we code s sidebar that automaticcally hide when we did not move our mouse to it?
i want to make it so my toolstriptextbox will smoothly size with the form as i resize it. I tried using a timer and just say txtbox1.width = me.size.width - 100 or whatever space for the buttons and handling it for when it reaches negative numbers (with autosize off on the textbox) but its not at all smooth.
How would I make an App that will highlight a word i chose in my webbroswer im making.So i would have a textbox were i type the word i want to highlight and a button that search for the word in the texbox i chocie an d it will highlight in the webbroswer im making
I'm trying to highlight the text when the textbox gets focus, like an address bar of browsers. I'm using this code so far:
[Code]...
And it works fine, but I'd like to do the same thing on the click event. Here's my problem. The same code of enter event in text box, apparently doesn't work on mouse down and mose up.
How may i highlight the text when say, after a textbox is enabled after the click of a button? (programmatically or via the GUI) Missing out something very obvious here
I need to setting the maximum size on a picture box. I thought the syntax for setting size was picturebox.MaximumSize = (Width,Height) but doesnt seem to work. Did syntax change from VB6?
Private Sub txtLogin2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtLogin2.KeyPress '// Ceci empêche l'utilisateur d'écrire des caractères ASCII ou même des espaces.. e.Handled = Not Char.IsLetterOrDigit(e.KeyChar) End Sub
It works fine and dandy except for one issue... the only way to delete text in the textbox using this is to highlight and hit DEL... But what if I wanted to simply back space... Any suggestions?