Forms :: Control Shape Graphic Properties From Background Process?

Mar 25, 2010

I have got a couple of VB Powerpack Ovalshapes on my Form.I use these for a quick indication if the networked device is online or offline.I can't seem to control the Visible function (or any other function for that matter) one my Background Worker is running.For my Textboxes I used a guide by jmcilhinney which worked great for them but there is no 'Invoke' property for graphics controls.

View 1 Replies


ADVERTISEMENT

Custom Button With Shape Graphic?

Sep 3, 2009

I am looking to build some small custom buttons. I want to keep it simple and give them a gradient backgroud and use grey colours to illustrate shapes on them. Very similar to the buttons you see in Excel/Power Point/Word 2007 at the bottom right of the screen. The buttons are next to the slider bar which increaes the view % of the screen. These buttons are grouped together and have different combinations of squares/rectangles on them for viewing options Any idea where to start with the shapes?

View 10 Replies

Programmatically Delete On Graphic Shape Of Many On Form?

Jan 21, 2010

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 Replies

Preload Children Forms In A Background Process?

Jun 7, 2010

on the loan of my application i created a background_worker to pre-load some of my child forms. here is the problem - it seems that the forms gets loaded into the second process and it wont have any affects on the original process .

In another words when i try to show the preloaded form nothing is displayed. How can i ask the background process to "Merge" with the main process when it is completed! i am not sure if merge is the best word to describe what i am trying to do here!!!

also if i try to re load the form that was created by the main process i will get exception saying you can't change one some that was created by another process

View 3 Replies

Background Color For Method Graphic.DrawString()?

Nov 8, 2011

Use VS 2010, VB.NET, .NET Framework 4, Windows 7

View 4 Replies

Customize Scrollbar Properties (colors And Shape)?

Jun 11, 2010

Hoe can I customize scrollbar properties (colors and shape)?I need to change its color and shape to make it closer to the Winamp scrollbars.

View 4 Replies

Read And Write To Shape Properties At Run Time?

Jul 29, 2009

I've dynamically created some ovalshapes and need to change their fillcolor and their tag at run time....

I can't seem to get at their properties

below is the code I'm creating my shapes with:

Dim alert(6) As PowerPacks.OvalShape
Dim canvas As New ShapeContainer
canvas.Parent = Me

[Code].....

View 11 Replies

Adding Components - Use Oval / Rectangle Shape Properties

Jan 10, 2011

I am trying to add shape per user's selection...
if (chosen circle)
use microsoft powerpack ovalshape and all its properties
if (chosen rectangle)
use microsoft powerpack rectangleshape and all its properties
I have installed the Visual Basic PowerPacks V2.0. How do I add this powerpack component to my VB2005 code to use oval or rectangle shape properties?

View 2 Replies

VS 2008 Customize Scrollbar Properties (colors And Shape)?

May 20, 2010

Hoe can I customize scrollbar properties (colors and shape) p need to change its color and shape to make it closer to the Winamp scrollbars.

View 16 Replies

Custom Graphic Control Enum Property

Aug 28, 2008

I am creating a custom graphic control and I'm stuck. I have three classes -
Protected Class ControlBase' Handles common properties and onpaintPublic Class ImageControl Inherits ControlBase' handles Image propertiesPublic Class TextControl Inherits ControlBase' handles Graphic Text properties
I also have a private enum ControlType and Public property for that enum. My goal is to have either a TextControl or a ImageControl created based on the ControlType. Since this property is outside of those two classes and the base - where do I put this property and how do I call up the correct class?

View 1 Replies

Forms :: Dynamically Expanding Shape?

Jun 10, 2010

I am trying to get a line to expand whilst the user hovers over a specific Label or Button, I thought the best way to do this would be using a however so far I cannot get the process to loop until the user stops hovering over the item.

Public Class Form1
Dim Sec As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Sec = Sec + 1

[code]....

That is pretty much what I have so far, it works however I have to keep hovering and then exiting the Label for the size to increase. I have tried various loops however most of them just end up in an infinite loop.Just to clarify, I would like the X2 dimension of the Line to increase until the user stops hovering over the form.

View 1 Replies

User Control Properties - Finalize My Design Time Properties Grid

Apr 27, 2011

I'm making a control and I am trying to finalize my design time properties grid. I have several List(of Class) items as public properties and when I click on the design time menu (while testing the control) there is the word "Collection" and a button with an ellipsis (...) that brings up a neat pop up with the buttons Add/remove and all of the public properties of the collection's class on the right hand side. Basically for a non-collection instance of a class (with public properties) I'd like a similar button to show up. I know I could put all of the properties in the main control class and group them, but I like the pop up box feature. Anyway to duplicate this? (think font grid item etc.)

View 3 Replies

Customize A Forms Boarder So That It Has A Different Color / Shape?

Oct 29, 2005

Is there a way to customize a forms boarder so that it has a different color, or shape?

View 10 Replies

Forms :: Display Picturebox As Oval Shape?

Jan 2, 2010

How to display picturebox as oval shape.

View 1 Replies

Interface And Graphics :: XNA Graphic With A Graphic?

Jan 14, 2010

I'm trying to make a mini map for a 2d space shooter of mine; I've for the math down (I think) for when an item should appear on the mini map, but the problem is the graphic. As it stands, the graphic spills over the edge of the mini map graphic and disappears only when it's fully outside. I need it to crop the image, or at least not show it off the mini map graphic.I thought of using the sourcerect rectangle of the spritebatch.draw, but it seems to me that would only work for the right and bottom section, as I can adjust the size of the rectangle. I haven't tried this yet, but I will soon. Can the location of the source rectangle be changed in relation to the graphic that it is a part of being drawn so that I can use that to crop the left and top sides?

View 5 Replies

Shape Control In Datagridview Cell?

Apr 28, 2012

i want to add a rectangle or circular shape control in datagridview cell & i have to change its fill color after some specific time (Like blinking led).

View 1 Replies

How To Make Control Such As PictureBox Into Star Shape

Jul 22, 2010

If you are using VB.Net 2005 or earlier. It was asked if a control can be made star shaped in this thread. [URL]. Then I have updated my Shape extension method to include a optional third parameter. The 3d parameter is indent percentage or indentPercent. The default is zero so there is no indent. If you indent by say 50% you will get a star shape.

The various ways you can call this extension method are;
'Please note: myControl may be any kind of control
'such as a Button, a PictureBox or whatever.>>
Dim myControl As Control = New PictureBox()
'Defaults to 6 sides with no rotation angle.>>
myControl.Shape()
[Code] .....

View 1 Replies

How To Make Control Or Form Into Vertical Cross Shape

Jul 14, 2010

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

View 3 Replies

Making A Background Process?

Oct 11, 2009

I tried to make process that monitores file for changes , makes its md5 hash and outputs.

[code]
Dim f As FileStream = New FileStream(filename, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite, 8192)
Dim md5 As MD5CryptoServiceProvider = New MD5CryptoServiceProvider
md5.ComputeHash(f)

[code]....

It doesn't output at all, it seams to freeze or smt.

View 2 Replies

Sendinput API To Background Process?

Sep 17, 2011

I'm using sendinput to send keystrokes to external applications launched from my main application. However , the only way I have been able to get it to work is by focusing the external application then sending input. I want to know how to use sendinput to send keys to a background process without giving it focus.

View 1 Replies

Turn Into A Background Process?

Mar 17, 2010

Instead of making a WinForm for my application, is there any way to let it operate in the background without a form or anything?

View 1 Replies

C# :: How To Drop A Shape Inside Shape In VISIO

Mar 23, 2011

I am using Rack-mounted Equipment (US units).VSS as stencil. I need to Connect a server on Rack.

View 1 Replies

Gdi - Trasparent Control - Import A Png With Alpha Channel And Random Shape

Mar 25, 2010

[Code]...

i have created a control as above, this control allows me to import a png with alpha channel and random shape. and then it can display on top of any other control, i.e. textbox, picturebox,etc. and the background should always show what right under it, instead of just show its parent control. it worked if it's static mode, ie stand still in the form. but when i tried to drag/move it, the control wouldn't render itself properly,and also goes underneath other controls.

View 1 Replies

.Net ProgressBarStyle.Marquee As A Background Process?

Apr 24, 2012

I wanted a ProgressBarStyle.Marquee animation while a query is running. I don't want the user to think the application is locked up. it's really not progress just MarqueeAnimation. the issue I have is it's not running as a thread or in the background.

Private Sub ButtonExcute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonExcute.Click
ProgressBar1.Style = ProgressBarStyle.Marquee
ProgressBar1.MarqueeAnimationSpeed = 60
ProgressBar1.Refresh()

[code]....

View 9 Replies

Running Animation As A Background Process?

Nov 10, 2010

I am working on a project and i have come to designing my splash screen... i dont want a useless one what just shows a loading bar what does nothing, im trying to make it useful and show while the main form is loading however this is proving to be a pain in the backside.. i can make the splash screen load when the exe is executed then close when the form is ready but i want to add an animation to the form (just a moving logo) this is just done by me running an timer what changes the location at each tick.. i can get it to work well on its own but when i add frmMain.show() to the code to load the program the animation will not work... i only get this when i ask the program to load the main form..

View 2 Replies

Passing Data Between Forms Without Any Public Methods Or Properties On The Forms

Dec 28, 2009

Passing data between forms without any public methods or properties on the forms. everything but the "Controller" class, which I would like you furnish. I just changed the title from "Intermediate" to "Beginner" This solution is an example of the Observer Pattern. The "Controller" class is the "observed" class, which in this case means it publishes events.

' File Definitions.vb

Public Delegate Sub MessageDelegate(ByVal sender As Object, ByVal e As MessageEventArgs)

Public Class MessageEventArgs : Inherits EventArgs
Public Message As String

[CODE]...

The program should initially display Form1, and Form2. Clicking of the button on either form will modify the Title Text of both forms. I think that you will find the final end result to be pretty neat, as it works with any number of open forms not just two. I think asking for the Controller class is easier than asking for the code in the forms. My solution for Controller class has 7 lines of content, 9 lines if you include Class, EndClass. A minimal solution could achieved with only 4 lines of content, but it would a textbook example of bad programming.

View 12 Replies

Background Image Will Not Switch Back From The Plain Background Color Of "control"?

Feb 19, 2011

what I am trying to accomplish worked with the code in the last thread I posted a while back. I still am using this code, however, I changed the window size to work better and gave it a nicer background for the title screen of my project. Now what I am working on at the moment is making a settings form that has 2 labels. One for "Default" Layout and one for "Plain" layout. When default is at start, the default label is disabled,and when plain layout is clicked, the button is disabled and default button is enabled.Basically, this is a toggle switch for default or plain where if one is enabled, the option for it is disabled and the other is enabled.My problem is that when I switch from Plain back to default, the background Image will not switch back from the plain background color of "control"Here is my code:

Public Class Settings
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
MiDNiGHT.BackgroundImage = Nothing[code].......

View 6 Replies

Get/Set Properties Of Another Process Main Window?

Mar 18, 2012

I have 3 questions: How to get the process which the main window is active How to change the WindowState of that process main window How to resize the process main window[URl]..

View 9 Replies

Print Excel Sheet As Background Process?

Nov 4, 2011

I'm developing app in VB.NET 2008.

I have one prob that i'm creating excel sheet runtime, loading data and printing excel sheet through my application. Actually it has 150 sheets to print.

i'm printing by using this code
xla.Sheets.PrintOut(Copies:=1, Collate:=True)

To print 150 sheets , its taking around 17 min. so now the user is waiting until printing process finish(ie 17 min ) .

actually i don't want to make him wait, i want to execute this printing process in backgroud. so the user can work on other process in my app.

how to print this in background ?

View 3 Replies

Show A Form While A Background Process Is Running?

Feb 18, 2009

What I'm trying to do is show a form while a background process is running. Similar to a progress bar but not a progress bar. We have a form that has an animated gif (customer request) and that's it. no other controls. They want this form to show while the processing in the background is running.

View 5 Replies







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