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.
Im trying to enlarge a circle on a form using a scrollbar.I have managed to do this using the following [code]Thing is the code draws a circle on every scroll movement. You end up with a mass of circles. I want it to clear previous graphic and just show the circle that relates to the current scrollbar graphic, giving the impression of enlarging and shrinking.
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?
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
I am trying to generate Unique and prominently random colors in c# or vb.net. I am using below code now. But this code generating color almost same color, not big change.How can unique kind of colors?
I'm working on a project that produces quite a few pdf's through Crystal Reports. The problem I'm facing is quite random. Users are reporting that reports sometimes get generated too small (report scaled down to 70% or so and printed upon the pdf) and also that some reports are being printed in landscape while they were designed in portrait and vice versa.
what could cause these random changes in generation? and maybe a solution?
How can I change the border size/style/color of my TabControl to make it blend in with my form's background color?I am unable to find any property for this in Visual Studio. Is this possible?
I am creating a countdown timer that will start counting down from 30 minutes. How would I do this and also change the color and size of the numbers in the countdown? Windows Vista and is Visual basic enterprise 2008
I'm working with VB.Net, and have two one-dimensional Arrays. Is there an Inbuilt function for finding the elements that are common to both of them? Or do I have to write one for myself?
I'm trying to overlap two images. I've got this part working, next I needed to make sure it wouldn't carry on overlapping one image. So I did this:
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click Dim ActualBrick1 As String = "admin_block.PNG" If Minage.CurrentBlock.Contains("wire") Then MsgBox(ActualBrick1) [Code] .....
There's the function. When the file name doesn't start with "wire" it says the correct file name. But if it has "wire" in the name it just makes a picture with the preset file ("admin_block.PNG"). Even if the block under it has been changed.
I need to overlap two images. When overlapped at the correct point, the overlapped portion of both images match exactly (or very closely).Now, I have tried to match the color of each pixel in the images, then move one image a bit and match them again until I get a high match rate, usually 95% or higher. The issue is, this is ridiculously slow. Also, I can't find a way to check the pixels if one I need to check a negative co-ordinate.
For y As Int32 = 0 To bmp2.Height Step 4 If y + StartPos.Y >= bmp1.Height Then Exit For For x As Int32 = 0 To bmp2.Width Step 4 If x + StartPos.X >= bmp1.Width Then Exit For
I've a class that has a list of IDs with a function for adding new IDs from a list of objects.I've got this resolved, but I'm sure this can be done with much less code.Public Class Page
Private _IdList As List(Of Integer) Private _HasNewItems As Boolean = False Public Sub AddItems(ByVal Items As List(Of Item)) Dim itemsID = From itemX In Items _ Select itemX.ID
I'm trying to automate the process of logging into twitterfeed.com, and filling in the information (the feed url and twitter username are pulled from textboxes). I had it mostly working the other day, even if it is a bit sloppy (the only way I could get one button to click is to send 50-some tabs). However, lately it seems to enter in a sort of loop. When I pause the program, Visual Studio indicates that it is the Application.DoEvents in the Private Sub "wait" that is still running even after it should be.
Public Class Form1 Private feed, username, temp As String ' Code stolen off of a website as an alternative to sleeping, or trying to do a timer + while combo like I had been doing