How To Change The Shape Of The Form
Dec 12, 2009i need to change the shape of the Form to appear somewhat like the pic attached > is there any plugin, application or any thing related to this
View 4 Repliesi need to change the shape of the Form to appear somewhat like the pic attached > is there any plugin, application or any thing related to this
View 4 RepliesI used to change the Form shape in VB 6.0 using the following code:Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
[Code]...
I want to be able to take a flat image and do this with it in my program
[code]...
how do I change the points?
how do I load only PART of an image from abitmap into bbitmap?
is there any way that you could change the shape of a button?
View 3 RepliesI need to change the shape of my tabs... untitled.JPG
View 2 Replieshow to change the shape of the end of the line
I would like to Cap type . Square, as here
Is there anyway to change the shape of the picture box into a round,cross or star shape
View 16 RepliesHow do you change the shape of a cursor in a richtextbox?
View 5 RepliesIs there a way to dynamically change the shape to be drawn.
View 3 RepliesI have an application that dynamically draws a chart onto a winform.Both the chart background and the individual chart bars are drawn using a VisualStyleRenderer object: For Each rect As Rectangle In barRectangles
Dim renderer As New VisualStyleRenderer (VisualStyleElement.StartPanel.UserPane.Normal)
renderer.DrawBackground(e.Graphics, rect)
next
this draws a nicely rendered rectangle with full XP visual styles, my question is: how do I change the colours used to draw the shape?
I am using Rack-mounted Equipment (US units).VSS as stencil. I need to Connect a server on Rack.
View 1 RepliesI have a project(solution) which aims to lance a Form from a lancer module. On my Form Design the buttons are nice and round. When I go to Run the solution and the the Form is set as startup project, all is OK but when lancer module is set as startup project all buttons change to hard rectangular shapes and rounded corners dissapear (see attachments).
View 3 RepliesOn my Form Design the Buttons are nice and round.
When I go to Run the program they all change to Hard Rectangular shapes and rounded corners dissapear.
I did not add anything inside the code to do this.
The code was translated from other version.
Should I look in the code since it happens to all of the buttons and what to search?
I have a form with around 20 ovalshapes (the one that comes with Power Packs 3.0). I have named them p1, p2, p3, p4 and all the way up to p20. Is it possible to loop trough each shape in the form and check if the name contains a specified number? I'm thinking of something like this:
For Each ovalshape In Me
If ovalshape.name.contains("13") Then
ovalshape.backcolor = Color.Black
End If
Next
I want to change the form shape. like round corners.
using designed images as form but are transprant.. like this
I've to draw LInes and rectangles,etc in vb on a form and using mouse down event.
View 2 RepliesI 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 have drawn lines and boxes on a form programmatically. How do I programmatically delete one of them? Let's say I draw a line and then a box, (using button1). How do I delete the line and not the box? Or can I?
View 6 RepliesIn addition to the shapes you can create with the code from this thread. [URL]. Here is code to make a control or a Form into a vertical cross shape. This will show you how you can do it in Vb.Net 2008 and 2010 using extension methods. The following post will show how you could do it differently in Vb.Net in other versions as well as Vb.Net 2008 and 2010.
1) From the PROJECT menu select
ADD MODULE.
2) In the NAME box type
CrossShapedThings.Vb and then click on OK.
3) PASTE this code in.>>
Option Strict On
Imports System.Runtime.CompilerServices
Module CrossShapedThings
<Extension()> _
Public Sub MakeCrossShaped(ByVal aControl As Control, Optional ByVal CrossWidth As Integer = 10)
[Code] ........
a set of color add into combobox
bttnclick
Dim mypen As New Pen(, 2)
base
cbocolor.items.add("Red")
cbocolor.items.add("Green")
how to make the color apply in the pen?? what to put before the coma??
I'm working on a simple base form in which all the other forms in the project will inherit. This base form only adds 5 properties (at the moment) dealing with painting a gradient background. The problem I'm facing right now is when I change a property on Form1 (the test form) and click run it doesn't show that change. I also checked the .designer.vb file and when I make a change it's not added to the code behind file, I'm at a loss right now to why.
[Code]...
well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used
Me.toplevel = false
Me.parent = form1
I am having trouble getting the Student Name entered in the Student Name Form to change the Text titles of the GroupBox's on the Main Form and Schedule Form. I understand the logic of what needs to be done to some extent, but I am having trouble coming up with the correct coding.
Below is a snippet of the Student Name Form code that I tried most recently just to see if I could get any change to happen to the other 2 Forms when the Accept Name button was clicked. As of yet, I cannot get a change to happen at all in the groupboxes of the other Forms.[code...]
In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:
[Code]...
What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.
How do I get a Listbox on one form to change a button value on ANOTHER form.
My script says
[code]...
A) pre-load a form so as to prevent lag/loading when the form is first opened?
View 6 Replies1-When I click on the ''Square'' radio button I want the shape to appear in the image box, then need I only need 1 text box to appear where the 4 side boxes are, this will be where I enter the value of the sides to calculate the perimeter and I also want the area and perimeter boxes to appear at the bottom since I don''t need the volume text box.
[Code]...
how do you correctly dispose a shape in vb.net ie when you draw a rectangle using the pen function how do I depose it so that it will disappear from the form, for some reason once its drawn if I draw a new shape it keeps the previous one and just overlays the new one and I use shape.dispose, and pen.dispose?
View 5 RepliesI want to create a window in a different shape. Not rectangular or eclipse but lets say a window look like a panda.!!!
View 1 RepliesI have done the coding to create a diamong shape using the for next loop but the output comes out differently:
Module Diamond
Sub Main()
Dim row, space, asterisk As Integer
Dim height=5 As Integer
Dim height2=4 As Integer
[Code] .....