Test Shows Random Colours In 8 Boxes Which Appear In A Circle Shape?

Jun 20, 2012

This is what I need to do:

Test 1: this test shows random colours in 8 boxes which appear in a circle shape. All boxes randomly change colour every .20 sec, and no two boxes display the same colour. At the same time a box in the centre changes colour to match one of the outside boxes. The participant must match in this box�s colour by clicking on the correct outside box colour. The score is then increased by 1 point for each correct answer. Each test lasts 1 min.

Test 2: the second test is the same as test 1 but instead of displaying a box filled with a colour in the centre, the word �green�, for example, appears in the green font colour. The word has �wide� letters so that there is plenty of colour showing. All other aspects are the same.

Test 3: the final tests uses random word colours but a different word. The candidate is required to match the Word and not the colour. Eg the word �GREEN� appears but the font colour is RED.The candidate must click on the colour GREEN to score a point.

View 2 Replies


ADVERTISEMENT

Change The Colours Of A Shape Drawn By A VisualStyleRenderer?

Mar 13, 2009

I 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?

View 1 Replies

How To Create An On-screen Shape (circle) That Has A Fill Color, Which Will Blink Every X Seconds

Jun 8, 2011

I need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can instantiate it numerous times passing it unique coordinates for each instantiation.

How do I do it? Can a class have its own "timer control" in it independent from the form? How would I draw a shape from a class?

View 2 Replies

Scan Answer Sheet Of Entry Test And How Can Get Filled Circle And Character

Oct 22, 2010

Scan answer sheet of entry test and how i can get filled circle and charater

View 1 Replies

Combo Boxes And Arrays - Create For Random Numbers And Place Them Into For Different Text Boxes

Nov 3, 2010

So as the name states; I am a newer coder.

This is the code i have:

Public Sub RandomNumbers()
Dim s(4) As String
Dim RandomNumber As Byte

I don't know if you can tell what I am trying to do here, so I will try to explain. I what to create for random numbers and place them into for different text boxes. I also would like to do this with combo boxes and their selected indexes. So if the combo box has 10 items in it; the new selected index would be the random number generated above.

View 5 Replies

Random Circle Size And Color , Without Overlap Or Intersect?

Jan 23, 2011

I write a code in vb.net 2005 as below :use a listbox and picturebox but the problem that circle is random.

Public Class tasfrms
Public color_circle As New Color
Public color_lines As New Color

[code].....

View 2 Replies

Extract Pixel Colours From Images But It's Only Getting Colours From The Previously Loaded Image

Jul 4, 2011

Public Class Form1
Dim x As Integer, y As Integer
Dim img As Bitmap
Dim pixelColor As Color

Public Function getpixel(ByVal x As Integer, ByVal y As Integer) As Color End Function Private Sub find_img_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles find_img.Click

[Code]...

whenever i load the image, i have to load it a second time to get the colour, or if i load a new one, i get the colour from the previous image, any ideas as to why?

View 1 Replies

Moving Picture Boxes In A Rectangular Shape?

Jun 15, 2010

I'm trying to make a program where three race cars move around a track. with randomizers and timers, I only want to do one lap. My "cars" are pictureboxes. so the starting line's location is (400, 150). Here's the coding for the inside car:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TimerRight.Enabled = Not TimerRight.Enabled

[code].....

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

Vb2012 - 2 List Boxes 1 Shows Processes Other One Is For Storage

Dec 15, 2011

Ive got 2 List boxes 1 Shows Processes other one is for Storage. Anyway that's not important. Im trying to Kill all the Processes wat are stored in Listbox 2. I had to add .exe at List for Listbox 2 But still not working ? The problem is its not removing the File names that are stored

ProgressBar1.Increment(1)
Process.EnterDebugMode()
If ProgressBar1.Value = ProgressBar1.Maximum Then
[CODE]...

View 19 Replies

Click On The Button And It Shows EVEN NUMBERS On The Label At Random?

May 9, 2009

is there anyway i can randomly call up even numbers like i have a label (label1) and button (button1) i want to click on the button and it shows EVEN NUMBERS on the label at random?

View 6 Replies

Graphic Repaint / Refresh - Draws A Circle Using A Timer - Circle Gets Displays It Flickers

Jun 8, 2011

I have developed a program which continuously draws a circle using a timer. Now every time the circle gets displays it flickers and which is because i have used me.refresh. Is there any other way to avoid this flickering.

Here is my code
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 4 Replies

VS 2010 Create A Program That When Click A Button It Shows A Sentence (took It From A List) Random?

Feb 13, 2011

I need to create a program that when I click a button it shows a sentence (took it from a list) random. But after it have to delete the sentence from the list 'cause we dont want to read it again I don't know so much about VB so I'd like some help!

View 25 Replies

Same Random Number Generated When Run In Test Fixture Setup?

Feb 26, 2009

I am trying to generate a random number during testing using NUnit, but it keeps generating the same number. I am using the following function for this purpose.

dim dCount As Integer = Math.Floor((High - Low + 1) * Rnd() + Low)
dim divName As String = "abc" & dCount

View 2 Replies

Making Random Picture Boxes Go On Form

Nov 30, 2011

i am making a game in visual basic and when the picture box that you have to shoot resets, sometimes it resets off the form i use this code to make the picture box move randomly.[code]

View 6 Replies

Populate Random Number Of Picture Boxes?

Apr 18, 2011

I have a number of images that I want to select a random number of and populate that number of picture boxes either dynamically or that already exist but can't think of the logic that would do it.

I considered dynamically creating them but don't know of a way to name them uniquely. I tried using pcbx& a variable but it didn't like that. Placing the image inside picture boxes that already exist, I couldn't think of a way to differentiate between them without what seemed excessive repetitive coding.

View 5 Replies

Add Random Number To All Text Boxes Which Create Dynamically?

Mar 15, 2012

My problem is after I created 5 rows of text boxes, I want to add random numbers to all of the text boxes in one time when I click the button.Here are my coding to create text box dynamically:

Private Sub btnAdd5Row_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddFiveRow.Click
For Me.count = count To 5

[code]....

View 4 Replies

File Access - When Open The File With Something Like Notepad, It Shows Random Ascii Chars?

Oct 19, 2011

Years ago when coding with VB6 and earlier, I used a file open command to create, read, and write a file that made it easy to store useful information.I believe it was binary and you wrote/read the data to a specific line in the file. When you opened the file with something like notepad, it just showed random ascii chars. When I needed a line of data, I could specify what line to load it from.

View 2 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

VS 2010 Control Array - Print For Each Loop The Random Result In One Of The Text Boxes?

Aug 13, 2010

I'm trying to lern VS 2010 from VB 6 and one of the things i'm hawing a problem whid is control array.In vb 6 if you create a text box it's named "Text1" and if you yust copy it and paste it it renames to "Text1(0)" and the new one's name is "Text1(0)" and the code would lock like this

[code]...

then it would print for each loop the random result in one of the text boxes corresponding to i.

How do i do this in VS 2010?

View 39 Replies

Argument Not Specified For Parameter 'test' Of 'Public Shared Function TestThis(test As String)'?

Sep 25, 2010

I don't understand the error, Argument not specified for parameter 'test' of 'Public Shared Function TestThis(test As String)'.

Partial Public Class Form1
Shared Sub ReceiveCallback(ByVal ar As IAsyncResult)
Form1.Invoke(TestThis, New Object(){"test"}) 'error

[code].....

View 6 Replies

Different Colours In Same Textbox?

Feb 2, 2011

I have a text box where I write different frames from a serial port.

I'd like to write those frames in two different colours but I don't know how to do it.

If I change the option Textbox.Forecolor, it changes the colour of every single line, and that's not what I am trying...

View 3 Replies

Editing Colours Automatically?

May 25, 2012

With my program I have made a settings form - changing the colour of other forms- and instead of writing the code for each individual form I was thinking if I can create an automatic system. The forms have different types of names & the items within have different names.In the setting form i have 3 color dialogs (one for background,Text colour -labels-, and a button color -forecolor-)

Code for Formsettings

Public Background As Color
Public TextForecolour As Color
Public buttontext As Color[code]......

View 8 Replies

Get Font Colours To Change?

Jan 12, 2010

i cant remember how to get font colours to change, so thought doining it with the hello world would be best

View 1 Replies

VS 2008 : Using Non Standard Colours In DGV?

Sep 6, 2009

I have a colour that is not predefined and I want to change the selectionbackcolor in a DGV. In the DGV it is defined as 255,255,192.

RoomNamesDGV.DefaultCellStyle.SelectionBackColor = " a colour "

How do I set the colour using 255,255,192.I need to do this as I have 2 DGV side by side and I want to show where the focus lies.

View 3 Replies

Changing PowerPoint Presentation Colours

Dec 9, 2009

I am looking for a way or a code that will change the colours used in a powerpoint presentation, I will also need to change the background colours of active x text boxes etc.

View 6 Replies

Generates Gradient Colours On A Form?

Jan 1, 2009

I am using Visual Basic.NET 2008. I was earlier a VB 6 developer. I found a (VB 6) code online which generates gradient colours on a form. It has a small sub (routine) which does the trick. If we pass red, green and blue values then form's backcolour changes and it appears like a gradient.Now that code is not working in VB.NET.i mean is there an easier way to generate gradient colours in VB.NET (2008)convert the code I have into .net specific so form's backcolour becomes gradient.I have attached a zip file which contains the code.

View 11 Replies

IDE :: How To Change Colours For Text Editor

May 4, 2009

I've found out how to change colours for the text editor, etc, but is there any way to change the colours in the help? It'd be nice to be able to have [for example] white text on a black background. It'd be easier on the eyes for lengthy reading sessions.No crops were circled, or animals mutilated in the making of this sig.

View 3 Replies

Query About Colours When Using Drawline On VB2010

Jan 2, 2011

I'm a beginner to VB2010. If I draw a red line on a BLANK form, obviously its red. But if I draw a second red line, which crosses the first, is there a way of controlling the colour at the crossover position, for example returning it to the original colour of the form?

View 4 Replies

VS 2008 : Work With Monthcalendar And Their Colours?

Feb 15, 2012

how to work with monthcalendar and their colours?We have lots of problems to work with calendar colors now... (basically change color date, backgrounds, etc... any alternative to have a calendar with the chance to change the dates and backgrounds?)

View 3 Replies







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