Getting The Outline Of A Region?
Feb 17, 2011
I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel highlightaround the edge of the form.
View 6 Replies
ADVERTISEMENT
Feb 17, 2011
I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel highlight around the edge of the form.
(1) Is this the correct approach?
(2) If so, how do I get the outline of the region so I can call DrawPath?
View 3 Replies
Jul 16, 2009
To refresh or invalidate only a region of the form.sometimes I will need refresh all the form, but in some situations only specific regions of the form..I saw some samples on the Microsft site, but I don't understood.I use VB .net 2008
View 3 Replies
Feb 5, 2009
The Visual developer express outline provides hide/plus-minus signs throughout the HTML code, and it does this for Class's, but not for my subroutines in an ASPX file.Is there a way for it to do this, so I can reduce subroutines I'm not working on at the moment? I know I can highlight areas and hide, but it's kind of clunky to do quickly through many subroutines if I have 2k lines and a hundred subroutines.
View 1 Replies
May 7, 2010
I've just downloaded VB Express 2010 and I can't work out how to add the document outline window.
View 2 Replies
Oct 30, 2011
[code]This colours the squares on the map, but I wish to have an outline between them so as to make it a grid. Also is there any way of getting a thicker border?
View 1 Replies
Jun 22, 2010
I have some white text I am putting over a very light background. Is there anyway to outline the text in black? After some googling it looks like there are some pretty complicated solutions, but I am looking for something like a check box that says "outline". Is there such a beast?
View 6 Replies
Jan 6, 2009
Is there anyway to do this? Depending on the background color of the form, it is sometimes hard to see the light grey outline.
View 1 Replies
May 1, 2009
I want to code in our VB.net to be a little easier to follow both to improve readability and also make it a lot easier to know the best place to put a new bit of code/feature.
Essentially, I'd like to have a 10,000 foot "outline" of the code" with hyperlinks from the outline to the code.
It needs to be portable, so BookMarks won't do the trick (I think). I'm thinking maybe TODO comments. I'd like to create our own Todo style comment like "Outline" or something but that keyword would need to be in the config file for VS as well (but then it's just one thing to keep sync'd).[code]...
View 4 Replies
Jun 10, 2009
I used my forms TransparencyKey property to make the form background invisible, but to keep the controls 100% visible. But, when I add a label onto the form, a border or outline shows up around the text (doesn't matter which color I do it with). My friend says that this isn't fixable and he said that it doesn't happen in VB6. I'm tempted to remake the project in VB6, but Windows 7 is being released soon and compatibility is a must.
What about C#? Does the issue occur as well? If not I'll just go with that.
View 3 Replies
Jul 4, 2009
How can I make it so that if the cursor position is anywhere from 200 to 500, it'll make "Region" = true?
View 3 Replies
Jan 9, 2010
how to use the region class?
View 7 Replies
Jul 16, 2010
c# - Is there #Region code for HTML
View 3 Replies
Nov 1, 2011
I generally use to organize codes below lines;
#Region "Comments.."
#End Region
But when I want to use it in the Function, it gives error ("..are not valid within..."). Are there any keyword to make this in the Function or there aren't? [Code]
View 3 Replies
Feb 17, 2010
I generally use to organize codes below lines;#Region "Comments.."#End RegionBut when I want to use it in the Function, it gives error ("..are not valid within...").
View 2 Replies
Jan 25, 2011
Following my test project for making a map editor, I finally got the tile selection part covered.The application can already tell which tile(s) is selected.
So now we will work on "click the map and the tiles will be drawn" part.
When the user clicks the map, I need to "copy" a selected tiles in the tile selector, and "paste" them on the map. The process is a bit longer actually.Or is there a way to directly copy the selected tiles to the map image?
View 5 Replies
Jan 30, 2010
how can i get the points which make a polygon from a region which was derived from the polygon's points?
View 2 Replies
Feb 2, 2010
i have an image which has 2 colors, black and white.
i wish to get a region object that has all the white areas 'selected'
the shape is not just a polygon, its fairly shapeless
is this the best approach: create a region that is the size of the image and run a loop checking each individual pixel to see if its black, if it is then exclude it from the region. (i've got a feeling this will take very long to load)
View 16 Replies
Feb 19, 2010
I am using something like[code]...
however the above will clip the drawing to a 100x100 ellipse ...
my question is how can i reverse the clip so that it paints everywhere except in the ellipse?
View 1 Replies
Jun 25, 2010
What are the true advantages of using #Region?
View 6 Replies
Feb 26, 2012
Imagine you want to draw a regular shape such as a triangle, rectangle ... all the way up to say a 10 sided figure ( a decagon ) or more. I know that when we try lots of sides it looks closer and closer to a circle or an ellipse. The problem I am thinking of is placing smaller circles ( or ellipses ) at the correct positions near the points of that shape as shown for a triangle below.Here comes the question(s) How could we: a) Correctly place the circles ( or ellipses ) at the points so that the sides are at a tangent to them andb) Can we combine the REGIONs of these to produce a figure with rounded points so the light blue bits get excluded? I guess that to produce a method to deal with all the mathematics involved would be quite a complex task.Has anyway previously tackled doing this or know of any .Net tools I could use for this problem?
View 11 Replies
Aug 19, 2011
I built an application that runs alright on Windows 7 and and XP but when I tried that on my home computer (Vista Home Premium),at very start, it says Can not open shared memory region and then it quits.
View 5 Replies
Jul 28, 2009
I work with a developer that loves to put #region #endregion is his methods, and I hate it.It makes the method so hard to read. I have looked for best practices on how to properly using the #regions but I have not found anything
View 1 Replies
May 18, 2012
I have created graphics in a picturebox. I know how to save these graphics to a file, but my problem is how to save PART of the already drawn image to a file. That is How can I save a region of a drawn graphics to a file (not the whole drawn image)?
View 6 Replies
Jul 26, 2010
I have a Rectangle (the class) that I'm using to define a region on a form and when the mouse enters that region it shows 2 buttons (which are on the form and within the bounds of the rectangle) and I would like the buttons to remain visible when the mouse is over either of the 2 buttons then when the mouse leaves the region or leaves the form they are set to invisible again. Here's the code I have so far:
[code]....
The problem is when the mouse enters the bounds of the button, the form's MouseLeave event fires and thus my buttons are hidden which means the user can't click either of them either.
View 6 Replies
May 29, 2012
I don't know if this is possible, but I want my form to be 'window-blocking', just like the taskbar, when a window is maximized, it won't overlap the form.
View 4 Replies
Mar 2, 2009
I'm making a program to detect polygon intersections, and it's all set up. I just need to know... how do you determine whether a region is of size zero?
View 2 Replies
Mar 16, 2012
I'm looking for a code/algorithm that will help me to draw border around different color regions inside a bitmap.I have a bitmap like the "before" image.I want to add border around the colored regions like the "after" image.
VS Version: 2005-2010 (Doesn't matter)
Language: VB.Net / C# / C++ (Doesn't matter as long as it can be called from a managed exe)
View 3 Replies
Jul 7, 2010
I have set a custom format for DTP control to dd/MM/yy. lets consider a real time scenerio. I have a form to enter Invoices for that i have following controls on my form 1] DateTimePicker, 2] CustomerName ComboBox, 3] Quantity, 4] Amount o.k. the Custom Format for DTP is set to 'dd/MM/yy'. When i first add entry i set the focus to DTP Control After changing date user moves focus to ComboBox then Quantity then Amount & Finally Clicks Save Button. And again hits Add Button and the cycle continues.
Now when user changes 'month'in DTP & go ahead and save the entry when he add another new entry the focus is on DTP however in the month region of DTP where it is expected in 'Date' region of DTP b'cas it is not likely that user will change month every time but he may change Date every time. This enforces user to mannualy select the desired region (either by Left Arrow Key or by Clicking Mouse button in the desired region). So after receiving focus i want the cursor tobe in the 'Date' region of DTP. Kindly help me writting correct statement to set focus to the control in the desired region (section) in DTP control.
View 4 Replies
Oct 15, 2011
how can i design a region in vb.net form(windows application), such that when i click any point inside a region a new page opens. my problem is that the region which i want to define through it is very complex. its a combination of a rectangle and another shape.
View 6 Replies