Graphic Time On Off Selector?

Feb 24, 2009

I want to make a form to schedule the on and off time of equipment. & rows for seven days. 96 columns for 24 hours divided by 15 minutes. Each cell will be red for on and green for off. Click the cell to toggle the color. I know what I want it to look like. But I dont think using 500 buttons is a good idea. I am looking for better ideas on which direction to go. I am using visual studio express.

View 1 Replies


ADVERTISEMENT

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

Get The Little Number Selector Control?

Jan 2, 2010

I am trying to find out how to get a particular control.In some applications i've seen they have this little control like a small text box.It has 2 little buttons on the size one for up and one for down.

These buttons change the displayed numbers higher and lower.Here, let me show you a picture:

How can i get this thing? I don't see it in the toolbox of the VB 08'

View 3 Replies

Workshop Selector Loop Needed?

Apr 19, 2011

The program has 3 list boxes and the user is supposed to choose an option from the 1st and 2nd list box and add the total in the third list box, when i run the program all i get is $0.00. I was told a loop was needed, but I'm not sure where I need to put it and what kind of loop I nee

Dim Day As Integer
Dim Total, Fee, Stay As Double
Dim Workshop As String = lstWorkshop.SelectedIndex()

[code]......

View 3 Replies

Interface And Graphics :: Best Way To Make A 'tile Selector' Box?

Jan 16, 2011

So now I will try to make something more complex, still playing around with this graphics thing.I want a picturebox to display a tileset (a bunch of 32x32 tiles normally used for creating game levels etc), the picturebox is inside a container (which has autoscroll ON). The picturebox is larger than the container, so the container will make scrollbars automatically.Now, I need to be able to choose a tile or multiple tiles (if I click & drag the mouse)Basically I want to draw a 32x32 "red" box over each selected tile (so the user knows what tiles are selected).So first of all, I need to know when the mouse clicks the picture. Good. It works.Now, I need to know which 32x32 tile was clicked. Well, I think I can calculate that just fine.BUT, what if the user drags the mouse while clicking on a tile? I want to support multiple tiles selected, but I am clueless about tracking what tiles were chosen.If we solve that problem, I would have another curiosity: You know the "red boxes" that tell you which tiles are selected? What would happen if I dragged the scroll bar? I need the redboxes to move along with the picture, and hide if they go to an invisible area.

View 6 Replies

Xml - Duplicate Selection In Text() XPath Selector

Jan 7, 2010

I'm trying to select all nodes with text that contain a certain word (ex: Company) because the word needs to have a register mark.

Here is part of the XHTML (this <p> is inside a table cell).

<p>
<strong>
<a style="color:#0E5A8B; text-decoration:none" target="_blank" href="http://www.trekk.com">

[Code]....

My goal is to just select the 2nd one, the <span> tag and am not sure why <p> tag is also being selected. If it selects <p>, but why wouldn't it also select the <strong> or <a>, and why not the <table> or <td> that contain the <p>?

View 1 Replies

Forms :: Creating A Program Called Workshop Selector?

Apr 19, 2010

i'm creating a program called Workshop Selector. It has 3 list boxes, one with the 5 workshops, second with 6 locations, and the final is the list of costs. The user selects a workshop, a location, then hits the Add Workshop button, which calculates the costs and adds the cost to the third listbox. Soo, to my question.

There is an additional button called Calculate Total that adds the values of the costs in the cost listbox and displays the total in a textbox. The code i currently have that works just fine is --

Dim one, two, three, four, five, total As Integer
lbCost.SelectedIndex = 0
one = CInt(lbCost.SelectedItem.ToString)
lbCost.SelectedIndex = 1
two = CInt(lbCost.SelectedItem.ToString)
etc..etc..
total = one + two + three + four + five
tbxTotal.text = total

While this works, i have no idea of knowing how many times the user will add a cost to the cost listbox. therefore id have to make many many variables, and other issues occur.So is there a way i can do this with a for loop? declare a global variable like

Dim costcounter as integer

then at the end of the add workshop cost btn click procedure use:
costcounter = costcounter + 1

That way i kno the exact amount of times the person added a cost?

Then create a for loop like

Dim intcount As Integer
For intcount = 1 To costcounter
code....
Next

Would this work somehow? but what code would i have to input within the for loop to scan each selected index, and then return values that can be added together and displayed in a textbox?

View 2 Replies

How To Design Visual Controls To Act Like Electronic Selector Or Volume Dial

Jun 2, 2010

I need to create a few visual controls to reside on my form.

1- Rotary Selector to rotate and select an option. (maybe up to 16 steps per rotation or 0 to 15.)

2- Rotary dial to act like a volume control. This actually selects a value between 0 to 255 or 0 to 1023. (is this too many steps?)

3- Bunch of selector push buttons to act like the old car radio selector? (pushing one resets the other buttons. Just like old car radios?)

View 1 Replies

Delete Row In Datagrid By Selecting Record Selector And Hitting Delete?

May 13, 2011

I'd like to create code for my datagrid view to be able to delete a row by first clicking the record selector column then pressing delete. Seems like some standard stuff but really difficult to create in VB 2005.

View 10 Replies

Declaring A Graphic In VB?

Apr 13, 2010

We have a great book written for Visual Basic 2005 that we type code that is prepared in advance. We are using Visual Basic Express 2008 and normally this works really great; type the code run the program and it works, however I am running into a snag.

The textbook shows the following code: IN THE(General) (Declarations)AREA we are told to type the following:

' Create a Graphic object to use with the game's bitmap
Dim myGraphicObject As Graphics = Me.CreateGraphics
' Create an empty Bitmap Object

[Code].....

is there a difference between VB 2005 and VB 2008 that would be causing the errors? or am I missing something subtle maybe mistyped?

View 3 Replies

How To Use Graphic Methods

Jan 28, 2010

I would like to know how to use the graphic methods:

-DrawString
-DrawLine
-FillRectangle

I am meant to use these in a method called Drawgraph in order to draw a grid and bar chart. How can I go about this? What parameters do I need to send? What variables do I need to declare?

View 1 Replies

Can't Get Graphic Comando To Compile

Sep 23, 2009

I have just started to try learning how to use Visual Basic (im running the 2008 express free version). The example im trying to get working right now looks like follows[code]...

View 2 Replies

Create Image From Graphic?

Feb 18, 2010

I am programming a design surface where I add Image objects to the surface when an image is added it calls the draw objects command. It works fine I would like to figure out how to covert the object to an image to save it? Below is the draw sub used to draw objects onto the surface:

Public Sub DrawObjects(ByVal g As Graphics, ByVal Scale As Single)
Dim drawObj As GraphicObject
Dim i As Integer

[code]....

View 3 Replies

Creating A Graphic Barrier?

Feb 17, 2011

I am working with a graphics program in VB to move an image around the Form. I'm trying to create barriers that cannot be crossed. At first, I tried to represent this with a 2D array, but this proved too complicated. For now, I'm trying to create a series of rectangles. What I want to happen is when the point the image is anchored at intercepts one of these rectangles, it will either be prevented from moving or sent back to where it was directly before the image moved. I know there is an intercept command, but I've been unable to figure out how to use it in this content. The code I have is below.

Public Class Form1
Dim PlayerSprite As Image
Dim BGImage As Image

[code]....

As I said, this is to create a graphic barrier. However, I expect to make a number of these Rectangles?

View 5 Replies

Erase A Graphic That Was Created?

Jul 23, 2011

i would like to be able to erase a graphic that was created.I would like to not have to redraw the graphics minus the graphic thats unwanted.Is there a way to delete a graphic?

View 1 Replies

Graphic Imaginary Numbers With .net?

Apr 1, 2010

anyone have experience doing this? when i say imaginary i mean the square root of negative one. how would i graph this?

View 2 Replies

How To Save A Graphic From A DIB Handle

Mar 2, 2010

I'm developing a scanning application in VB.NET 2005 using TWAIN. The scanner returns to me a handle to a DIB. I need to save this to a file, but I've been searching everywhere and can't find any information.

View 3 Replies

Load A Picturebox Using Graphic From Web?

Jun 1, 2011

how do I set up a timer to load a graphic from the web to a picturebox

heres a sample graphic

[URL]

its real small so it will load fast. the link will be different but this is good enough to test with

I need it to be on a timer event to load this graphic every .... seconds, that part of the code I can do, timer events are easy. getting this graphic into a picturebox is a pain though.

You Know Your Addicted To Computers When - Your main computer is a 7 terabyte, Core2Quad 3 Ghz +, with 4 or more gigs ram, over 200 programs installed, and you would rather sit with it programming than go to the movies!

View 6 Replies

Make Graphic Persistent In VB And GDI+?

Sep 24, 2010

I have a converted VB6 App that would draw irregular shapes on a PictureBox when I click on a button, and these irregular shapes would persist until I either close the App or erased the PictureBox to start the display anew.I converted my App to VB.Net to do the same, i.e. draw on a PictureBox again, but the drawn lines appear briefly and then, at the end of the drawing process, when my App returns control to the Operating System in wait for another event, the graphics disappear as if erased by the App (which I don't do of course).I have created a Graphics Object associated to my Picture Box as:

Dim CurrGraphics as System.Drawing.Graphics
CurrGraphics = PictureOut.CreateGraphics

I then use the DrawPolygon and DrawLine methods to add the irregular shapes I want:

CurrGraphics.DrawPolygon(CurrPen, Pts)
CurrGraphics.DrawLine(CurrPen, Pts(I).X, Pts(I).Y, Pts(I+1).X, Pts(I+1).Y)

where CurrPen is a defined Pen, and Pts is the Points() array with the coordinates of the displayed shape. Several dozens irregular shapes are drawn and then the subroutine stops, and returns to waiting for another request from the user.What could be the prime reason why graphics do not persist in a PictureBox, and are erased immediately after they are created ?

PS: I do not use the PainEvent of the PictureBox PictureOut, as in the example given in the VB documentation (below), as the display process is initiated by clicking on a button, and I cannot relate how to transfer control to the PaintEvent as below:

Private Sub Form1_Paint(sender As Object, pe As PaintEventArgs) Handles _
MyBase.Paint
' Declares the Graphics object and sets it to the Graphics object

[code]....

View 10 Replies

Printing A Graphic Object

Mar 12, 2012

I have a module that generates fill out a System.Drawing.Graphics object. I then try to print it with a event on my main form but the print preview comes out blank. This is my print page

[Code]...

View 1 Replies

Retrieve A Graphic From DIB Handle?

Mar 2, 2010

I'm developing a scanning application in VB.NET 2005 using TWAIN. The scanner returns to me a handle to a DIB. I need to save this to a file, but I've been searching everywhere and can't find any information.

View 1 Replies

Adding Graphic Objects To Groupbox?

Jun 2, 2011

i have this code which draws a continuous circle using a timer. Now I have to display it in the form which has a group box with loads of other fields and information. Now can anyone please tell me how can i add the circle into the group box as it can be displayed.Currently the circle is being displayed behind the group box which is not visible.

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
Me.sweepAngle += 1
If Me.sweepAngle = 360 Then

[code]....

View 2 Replies

Calculate Angle Into A Visual Graphic?

Oct 28, 2011

Ok. So I have a program I have made to calculate angles. i have a line for true vertical and I need the program to draw the line at a given angle. Basically, if I put 82 in textbox1, I want the program to calculate the cordinates where that line sits on the X axis, The y axis is always picturebox1.height, So the y axis isn't important here, just the x axis.

What would I do to calculate this angle into a visual graphic?

View 6 Replies

Change The Direction Of X In Graphic From Left To Right?

Dec 5, 2011

I used e.Graphics.DrawString(String,Font, X,Y) The point of the X start from the left

X----------String-------------------end of X[/b]

My question can I make the X Starting point from the Right.

X--------------------String-----------Start of X[/b]

View 14 Replies

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

Declare Graphic Ellipses As Group?

Sep 7, 2009

I need to be able to declare 12 groups of ellipses as "group A" , "groupA#", "groupB", ect. That way I can fire all the images simultaniously from outside of the paint event handler.(if possible) I have tried several ways to declare them, but the system doesn't read things the way I trying to do them. This is my first time ever with graphic activity, so I don't have anything to fall back on. I went to the Bob Powell GDI+ site, but didn't find what I was looking for. Tried google too, but don't think I'm wording things right. Thays typically always my problem, noone understands me, 'cause I lack good communication skills. Heres what I have...

[Code]....

View 4 Replies

Draw Graphic With Multi-layers?

Jul 1, 2010

1. Is there any tutorial to draw graphic show as the picture I upload?

2. How to draw graphic with multi-layers, so that we can do modification on peaks instead of coordinate.

View 6 Replies

Graphic Visualizer For System Audio

Feb 19, 2010

I'm working on a side project which, put simply, allows for the playing of audio files of multiple types through the form or system (My.Computer.Audio.[...]). I need to grab the audio levels of sound currently playing on the system -- not necessarily what's just playing through my form.

A "full-audio graphic visualizer" if you will. However I just need a method of grabbing the data in the first place - the rest I have taken care of. The different values you see in a graphic equalizer are what I need to grab.

If you had music playing via Songbird, and started playing a podcast voice MP3 in Windows Media Player, I want to have it all-inclusive. I've looked in the My.Computer.Audio namespace, looked into Fast Fourier Transforms (which turned out to seem much more adequate for equalizers as opposed to visualizers), and more.

View 3 Replies

How To Declare Groups Of Graphic Ellipses

Sep 7, 2009

I have a group of graphic ellipses that I need to arrange in a group. 12 groups actually. It's a matrix for traing guitar students. I have the locations of the "G" notes grouped so far, but not under the title "G notes group". Since I can't use ellipses outside of the paint event handler, I have to rename them, I guess in the event handler...

Here's what I have so far...
Dim
GroupG As e.Graphics.FillEllipse(Brushes.Green, 84, 6, 10, 10) And
e.Graphics.FillEllipse(Brushes.Green, 84, 106, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 24, 46, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 124, 66, 10, 10)
[Code] .....

The paint event handler does not accept my attempts to declare them as a group, & this is my first ever project with graphics in an active state. I haven't found any where to turn for info, tried Google, tried bob Powell's GDI+ site, Tried some free ebooks, nowhere I have looked seem to cover this aspect. I need some direction to turn.

View 3 Replies

Initialize Graphic Dependent Data?

Apr 16, 2009

There are several times in my code when I need to determine the width of some text. Under VB6 I would use the .textwidth() method pretty much any time I wished.Under VB.NET it appears that the paint event is the only place I can gain access to an initialized graphics object and from that the measurestring() method.Do I have to use a flag in the paint event when want to auto-resize my splitterbar position or is there another way?

View 5 Replies







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