C# - Making Rectangle Completely Transparent (Hole In Window) WPF

Feb 7, 2012

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] .....

View 2 Replies


ADVERTISEMENT

Make Part That Drops Down Semi-transparent Or Completely Transparent Resembling Floating Text?

Oct 27, 2010

[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.

View 1 Replies

Creating Transparent Rectangle Over Form?

Feb 7, 2012

i have this code that suppost to overlay a transparent rectangle over my form. Program is that i do not know what "e" should be set/defined as:

e.Graphics.FillRectangle(color.fromargb(127.5,255,255,255), New Rectangle(0, 0, 100, 100))

[code]....

View 2 Replies

Make A Circular Portion Of Rectangle Transparent?

Apr 26, 2011

If I were to draw a rectangle with e.Graphics.FillRectangle(), how would I make a circular portion of the rectangle transparent?

View 1 Replies

VS 2010 Creating A Rounded Rectangle W/ Transparent Corners?

Jan 24, 2011

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).

View 9 Replies

Using MoveWindow() Just Hides Window Completely?

Aug 25, 2010

Im trying to position a window with MoveWindow() API but it just keeps hiding the window and it has to be maximised to be able to see it.

The code im using is

Public Declare Function MoveWindow Lib "user32" _
(ByVal hwnd As Long, _
ByVal x As Long, _

[Code]....

View 4 Replies

VS 2008 Know When Window Has Completely Painted?

Mar 4, 2010

I have a window that needs to run a length process. The process is threaded so it doesn't lock up the screen. However, I need this to run when the window is first loaded, not based on a button click or anything. The problem it creates is that it causes the window to stall a bit when initially painting itself. I even tried to put the call to the method in the Shown event, although it helps, it's still not perfect.

[Code]...

View 1 Replies

Make The OpenTK Window To Be Completely Independent From Whatever Is Going On With The Other Controls

May 4, 2011

What I want to make the OpenTK window to be completly independent from whatever is going on with the other controls (for instance if button_click is Thread.sleep(10000) I dont want that my animation freezes for 10s). I want to have it in its own thread (no BackgroundWorker). The problem is I dont know what modifications should I do to get it working. It is currently initialized in InitializeComponent section. I want that all events and everything is handeled in its own thread, basically 2 "programs" in 1 form.

View 1 Replies

VS 2010 Making A Screenshot Program But Unable To Draw The Rectangle?

Nov 22, 2011

I'm currently working on a screenshot program, much like Gyazo and I've come across a problem.

[code]...

Now, it draws perfectly when I drag left to down (vice versa), but when I try and drag the opposite way (this is when I get negative x and y values), it doesn't seem to draw the rectangle.I've tried fixing it but with no luck at all, it just messes it up :c

View 2 Replies

Making A Screensave With Transparent Background?

Aug 20, 2010

I know this may sound really difficult and annoying to complete but all i need is a form which has no borders at all,just some text floating topmost of all screen like a screensaver i tried adding a text but it still has a white background behind it and it looks like a sign instead of Floating Letters with no background at all also note that i dont want a form with a square border around it,because thats what it look like when i added form border style to none

View 3 Replies

Making Container Transparent In .net 2005?

Aug 23, 2011

i have taken some Group Boxes and Panels within my form,

as mentioned now i want to make just transparent these containers

i mean it(container) just hide itself and illustrates its controls and also

it's background containing form.Mohammad Arif Mustafa arif_mustafa@live.com

View 3 Replies

Making Text In A Textbox Transparent?

Jan 19, 2011

I am trying to make some Text in a Textbox become Transparant gradually to the point where it disappears - it this possible in VB08 Express?

View 3 Replies

Draw A Zoom Window Rectangle?

May 20, 2010

I have drawn a diagram of lines on a panel using the g.DrawLine command. I want to be able to zoom in to the diagram and define the zoom area by two cursor picks. I get the coordinates of the picks and draw a rectangle using g.DrawRectangle. This works fine but as I move the cursor around, the rectangle becomes solid black (with all the DrawRectangle commands). In VB6 I used a rectangular shape on top of my diagram but you cannot do this in VB2008. I need something like drawing in XOR mode. Somehow as I move the cursor I need to undraw the old rectangle and draw the new rectangle.

View 11 Replies

VS 2005 Setwindowpos For Top Most Window Making Window Size Zero?

Oct 5, 2011

I have the following function that should make the window always on top of other applications.

Private Declare Function SetWindowPos Lib "user32" _
(ByVal handle As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

[Code]....

The problem is that it reduces the window size so that you can only see the title bar and min/max/close buttons. Also, even that does not stay on top of other windows.

I have used this function before on a windows 7 machine (instead of xp which this one is on) and it worked fine.

View 4 Replies

Making The Border Of A Vb.net Form Semi-transparent?

Jan 8, 2011

Is there any way to embed a vb.net form to another vb.net form. What I am trying to do is to make Form-A semi-transparent and Form-B as the embedded main form. So that the final application has a semi transparent border around it . Also I don't want to use a MDI form.

Edit: How to make the border of a vb.net form semi-transparent without using MDI form.

View 2 Replies

VS 2008 : Making A Picturebox Background Transparent?

Oct 17, 2010

I have a few pictureboxes that move and contain an image of a fish. When they overlap, I would like to be able to see one fish under the other fish.I have made the background (white) of the image transparent in photoshop and the background color of the form seems to show through the background of the fish image, but when 2 fish overlap, ones background covers up the other.

View 1 Replies

Making Transparent, Unclickable Areas In UserControl/pictureBox

Oct 22, 2010

I have a userControl with a picturebox in it. I need the areas of the userControl to be transparent and unclickable on the main form. After some searching Ive come up with this. [URL] but it doesn't seem to work. I have it set up so the usercontrol can be drag-and-dropped. but I dont want transparent areas to be dragable.

View 1 Replies

VS 2010 Making A Transparent, Clickable Button OR Label?

Oct 28, 2011

First post here, so I have no clue if this is the right place to ask this or not, but it looked like it.

Anyways, what I'm trying to do as an exercise is make a roulette game. I decided it would be best to put my buttons ON the actual table itself, so that the player can click which one he wants to bet on, and it'll bring up an Input Box asking how much he wants to bet, and yeah.

So, I tossed a button on there, set the parent to the picturebox of the roulette table, set the back color to transparent, and got rid of the text. Lo and behold, it's transparent!

View 13 Replies

Setwindowpos For Top Most Window Making Window Size Zero?

Oct 5, 2011

I have the following function that should make the window always on top of other applications.

Code:
Private Declare Function SetWindowPos Lib "user32" _
(ByVal handle As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

[code].....

The problem is that it reduces the window size so that you can only see the title bar and min/max/close buttons. Also, even that does not stay on top of other windows.I have used this function before on a windows 7 machine (instead of xp which this one is on) and it worked fine.

View 3 Replies

Check If Scroll Bar Is Completely Scrolled Down Completely

Dec 2, 2010

recently i came across a requirement. I have to create a text box with a vertical scroll bar. I hav to check whether the scroll bar is dragged down completely or not. i hav to do it in VB.net

View 1 Replies

Normal Again The TransParent Window?

Feb 2, 2010

My Form is TRANSPARENT and i dont know how to make it normal again.

View 2 Replies

Transparent Window On Vista / 7?

Mar 31, 2011

I need some help with this one: I need to make a transparent window for Vista and Windows 7. The following code works but is not perfect:

Imports System.Runtime.InteropServices
Public Class Form1
<StructLayout(LayoutKind.Sequential)> _
Public Structure MARGINS
Public cxLeftWidth As Integer

[Code]...

View 3 Replies

Make The Window With The Textboxes Transparent?

Jul 23, 2009

I have a problem I have of a mistake touched a setting which make the window with the textboxes transparent I check the background but they are not transparent.

View 3 Replies

Web App. Get Hole Link?

Jun 4, 2010

I'm making a web app. It is for my own game ( not a web game ).Now when the user logs ut from the game app. I wan't the web app (tehy are running at the same time ) to logout from a site from where it gets all data.The link that it needs to press on is something like<a class="logout" href="page2.php?a=30&c=1b5b14">Logout</a></p></div></div>But now the c=***** is unknown, so I need somekind of system that would search for the c= part in the link.

View 13 Replies

Make Background Of Window Transparent & Docking?

May 3, 2011

I am making a useful sticky program, i know Windows 7 has a similar one built in but it doesn't function the way i want. Here is an image: As you can see, i am having problems removing the coloration of the background application window. How can i make that transparent without affecting the image? My second question is, how can i dock my application window to the right hand side of the screen?

View 5 Replies

Transparent Notification Window That Has Rounded Corners?

Apr 3, 2010

Like in MSN i would like to be able to have a transparent notification window that has rounded corners. I know I can use the Opcatity tool to get the opactiy i need but the edges i dont know.

View 2 Replies

Interface And Graphics :: Making A Custom Class That Mocks The System.Drawing.Rectangle Class?

Jul 6, 2010

I'm making a custom class that mocks the System.Drawing.Rectangle class because the Rectangle class doesn't have a name property. I need a name property because I am adding all of my rectangles to a collection and I need a little more info stored than just their locale and size. So I changed the _onPaint event but nothing is working out when I run the program?

Public Class Rectanglar : Inherits UserControl
Public BackgroundColor As Color = Color.Blue
Public Sub New(ByVal name As String, ByVal XY As Point, ByVal Widthy As Integer, ByVal Heighty As Integer)

[code].....

View 5 Replies

How Can Punch A Hole In The Middle Of A Circle Like A Donut

Dec 12, 2011

How can I punch a hole in the middle of a circle like a donut? If you set the color to transparent it does not draw the circle.[code...]

View 4 Replies

Making A Workspace Window?

Nov 20, 2009

looking at some applications like excel and other ms office programs got me wondering: how do you create an area where windows open in but don't appear as separate windows on the windows bar? Basically my question is, is there any way to create a window workspace where new windows are opened but don't appear as an entire new window?

View 4 Replies

Making Window Application?

Apr 3, 2010

developing chat server which as a console application but i want to open that console when i click on to the window form button and another button to close that console application. so how to do that in window form to open console

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved