I know how to create the Rounded Rectangle, but what i don't know how to do, is make the area outside of the rounded rectangle (the corners) become transparent This is going to be used on a usercontrol, so i really need it to be transparent and not just blend in (ie adapt to the colour of the parent form).
I have a rectangle that I dynamically draw in a Window. Said Window has a background with it's opacity set to 0.4. I'd like to make the area inside the rectangle completely transparent (see what's behind the window).
Here is the code of my Window : <Window x:Class="TakeAScreenzone" xmlns="[URL]" xmlns:x="[URL]" Title="PloofTAS" Height="355" Width="539" Topmost="True" [Code] .....
1. I have created a moving object (which is a button) in a form (rectangle box) called "Enjoy Button" and it moves when 2. A specific button named "Start Timer" is pressed...When the "Start Timer" button is pressed, 3. The "xTimer" event is called and the button moves in a rectangle box and bounces of the walls...=animation 4. However, i need to write a For..Next Loop in the 5. "For Next " Button= a button named for next 6. And also put a counter in the loop to control the animation time.. 7. The loop should stop at a certain time, and the object too should stop at that time,at a new location
This is what I have so far Private Sub ForNextButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xForNextButton.Click, xTimer.Tick Dim MyTime As Integer = 5 Counter = 1000 For Counter = 0 To 1000 xTimer.Enabled = MyTime * 1 ' Move the button for a set amount of time ' Exit the loop Next
I have a button with a backgroun image of color white. My button is sitting on the toolbar which has a bacground color of Blue. When the button is sitting on the toolbar, the button looks white, however I want it to look like blue as the the background color of toolbar is Blue.
I'm trying to draw a semi-transparent layer over my entire form when certain events occur, with a prompt in front of this semi-transparent layer (similar to the effect in Windows Vista/7 with UAC enabled)At first I was trying to use a custom semi-transparent panel, but this didn't seem to work at all. As such I'm now trying to use a child form within the form using the opacity property on the form. However, when this semi-transparent form is added to the controls of the main form and displayed, it loses it's transparency.I've got a hacky work around at the moment where the semi-transparent layer isn't actually a component within the main form, and the transparency works then, but obviously this isn't ideal and could potentially cause various issues further down the line.
Given a rectangle of width w and height h. and a coordinate x,y in that rectangle I would like to identify which triangle I am within.
i.e. the function should take parameters(x,y) and return a,b,c,d or a zero based number representing that triangle index i.e. (0=A,1=B,2=C,3=D) if they are in that order.
I think this would be something like >= the formula of the red line and >= the formula of the green line?
I created a rectangle shape and tried to show it at my form like this Imports Microsoft.VisualBasic.PowerPacks Public Class frmBoard Dim baseDice As RectangleShape Private Sub frmBoard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load baseDice.CornerRadius = 5 [Code] .....
i add a rectangle and label to datagridview...my problem is that when i load the form the rectangle only shows on the last add data..how can i make all the data display in rectangle not only the last add data.[code]
I'M creating a kind of photo viewer, and I cannot figure out how to orient the scroll buttons with the photos I want to draw because they all are different sizes.This is really hard to explain so please ask questions if you don't understand.I'M thinking if i could draw every photo on a single rectangle and then the scroll bars will position that rectangle up or down. but is there a way to make a rectangle inside another one so it only shows inside that rectangle?
I'm just getting started, and it's as simple as that: I need guidance to draw a rectangle or place a dot or a point on Form1, in VB 2008 Express. I knew how in VB6 -- let's build on that.
Any method to remove the Filled Rectangle I put on a form / control using FillRectangle method? Or do I have to over-paint it with the same colour as the form ?
This sub moves a rectangle to the center of the form and when it gets there it moves back to its original location. But something weird has happened and the rectangle still moves, but the boolean values dont change. I tested to see if that part of the code was executed by putting a messagebox where the boolean values are supposed to change and the messagebox didnt appear.
Here is the sub:
Public Sub Start() Dim Energy As New PictureBox _IsMoving = True 'here is the boolean values along with some other variables
[code] how to make the part that drops down semi-transparent or completely transparent resembling floating text. So that I can see the form underneath.
i want to display a transparent png into the form, i know picturebox doesn't suport tranparency. my image has a transparent background .i want it to be like i can see the picture behind the png(its like a watermark what ever picture is diplayed inthe bakground it should be visible through the image above it)
Is it possible to make ONLY form transparent and other things like, panels and pictureboxes on it are set to opacity 100%? That means, panels and pictureboxes are not transparent.
I set form.Opacity = 0.5, textbox1.Multiline = True, textbox1.Height = 60. when running the code, i key-in any text in Textbox, until textbox's Vertical scrollbar visible, when i move up the scrollbar, system hang and wait few minute then system become normal back.
if I set the property Opacity = 0, a form becomes transparent... but become transparent all it controls, too!how to make transparent ONLY the form and let the controls, labels, buttons etc. visible??
how can I make my Form background color transparent?just the form those object/text are not included.
I watched this in yout*** like a month ago, i keep on searching but i cannot find.if you want to be happy, find something you love to do and do it for free, then find someone to pay you for it.
I have problems with transparent form problem is that its too slow example if i click on button where it should just switch another panel control it takes 3-4 seconds because of redrawing [url] so at form load is called redraw() and if i click on a button and panel is switched i again call redraw() form load 6 second switching panels 3-4 seconds
I have a transparent layer on the top of a form. I need to display only some part of that transparent form.
-edited- If you think of a map and traffic signal icons displaying on the map. There are a map image layer and a traffic signal icons layer, which is tranparent except icons. if you move the map location, the traffic signal icons should move along with. if the certain area of map does not appear on the screen by moving, corresponding traffic signal icnos should disappear as well. This is what I am trying to do here. Moving the trasparent form is straightforward, but I need to hide some portion of that transparent form.
[Map] [Traffic sig] here I need to show "fic s" part only.
When I make my form Opacity 0% everything disappears including controls that I know will happen im not dumb ok so I tried another method using Transparency Key I had success BUT my problem there is that when I have a picture box and an image IN the picture box around the image is the Form Background color so lets say I picked Maroon for Form1.BackColor, The edges of my image is Maroon