Make Windows Basic Test For A Color?
Jul 8, 2009What I mean is have it where you can click on something and it would save that color and then later test if the color under the mouse has changed from what it originally saved it as.
View 10 RepliesWhat I mean is have it where you can click on something and it would save that color and then later test if the color under the mouse has changed from what it originally saved it as.
View 10 RepliesI'm trying to make a Metro app using VS11 on Windows 8 CP using Visual Basic. the usual "Default object" setting in the settings for the application is grayed out. How exactly are you supposed to set the default form now?
View 1 Replieshow to use visual basic to make web activex control for windows CE ?
View 1 RepliesCan I set up a change in the font color when a certain true value comes up with a logical test - e.g. If the "value_if_true" says STOP, can I have the STOP show up in a red font and if the "value_if_false" says OK, then leave it as a black font?
View 1 RepliesI've created a program that requires students to answer addition questions.I have the code so that it calculates if the answer is correct, along with outputing the correct answer into a textbox.If the answer is correct the textbox background colour changes to green.If the answer is inocrrect the textbox background colour changes to red.I've done this using an array, and I want to use this array to calculate how many questions the students have answered correctly, and output them onto another page.I'm not sure is something like this would work:I was thinking about giving the textbox that outputs the grade score a value of 10. For every red box that is highlighted, 1 is taken away from the texbox value, outputting the amount of questions the user has answered correctly.Here is my array so far, not including the ability to output how many answers the student has answered correctly.
Public Num1(10), Num2(10) As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
How to change a forms background system color schemes to windows default color schemes in vb.net?
View 2 RepliesPublic Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
[Code] .....
<ClassInterfaceAttribute(ClassInterfaceTypr.AutoDispatch)> _
<DefaultBindingPropertyAttribute("Text")> _
<AssemblyComVisibleAttribute()> _
Public Class
I keep getting told there should be an identifier after Class, but when I apply one I get a host of new errors.
Inherits ListControl
Private Sub ColorComboBox_click()
Select Case Combo1.Text
Case "Blue"
Preview_Box.BackColor = &HC00000
Case "Red"
[Code] .....
I'm designing a player application to accompany our phone system. As our calltakers take calls, it makes recordings of each call. They can go to a list module, find a recording and double click, which opens my player. The issue i have is that if the calltaker gets another call, my player doesn't know it and will continue playing. I'm looking for a way to monitor the screen in a particular area and when it sees yellow or red instead of blue, it will pause my player.
The phone system does not have any API's that I can hook onto, so I have to try it another way.
The screen resolution never changes and the queue buttons where they receive calls will always be static. When they get a call, a small area changes from the background color blue to yellow or red to indicate a call.
**EDIT Final Code based on answers below and question Memory Leak using GetPixel/GetDC in Visual Basic
Private Function CheckforCall()
Dim hDC As IntPtr = GetDC(0)
Try
[Code].....
When I go to settings in my application/Program and on the form I have a ColorDialog1 want to to save the back color from the ColorDialog1 That I have chosen. And in my settings I have (Name: BackColor, Type: System.Drawing.Color, Scope: User)
the code on the form I Have is...
ColorDialog1.ShowDialog()
Me.BackColor = ColorDialog1.Color
My.Settings.BackColor = ColorDialog1.Color
are there any way we can make a program to test a speed of mac even if you are not using it?
like for instance
64:16:F0:003:9A
how can i test this without using it?
i have a program(i already coded etc).Now i'm asked to make flowcharts to describe the algorithms used + test plans.Regarding flowcharts,how do i implement functions + procedures in them and about test plans--anyone knows or has some good site or notes so i know what i can do??
View 1 RepliesI think for you my problem is very simple..I have done the same program in console mode without problem, now i try into windows form...
I generate by random 2 number A&B I multiply them and I will compare it with the result in my textbox3
if it the same as the computer has calculated il will show you congratulation, however i will say try again
I have a problem to calculate the sum, A&B are well generated but nothing in Calc Result
When Calc was working when I write nothing in the textbox3 and i click on Verify it show the msgbox congratulation.I'm looking just for this step, I've fixed the other issues And another things When It's right I would like to random another number for A&B after closing the msgbox, how can I processd ?
[Code]...
I have some questions about mysql database; I have set up columns and rows on mysql database and I would like to make mysql connection for a test before I would release the project in the near future, but my doubts is that how would I be able to keep mysql admin username and password details secure in the project without anyone could find out??Secondly, I don't want anyone to crack my project to get the details, which it will put me and other clients at risks.
View 22 RepliesCurrently developing an automation tool to test new desktop OS builds at work. Need to be able to open menu items on toolbarwindow32 windows (main menu of explorer windows). Now this requires retrieving information of all the buttons on the toolbar, obtaining the button ID of desired menu and sending a WM_COMMAND message with the ID. I'm having trouble retrieving button information.Now im using openprocess, virtualallocex to allocate virtual memory in the target process, and then sending the TB_GETBUTTON message with a pointer to the allocated memory then reading out the result. Allocation and the send message works fine but reading the processmemory back out is failing but not returning an error code, getlastwin32error returns nothing either.
<StructLayout(LayoutKind.Sequential)> _
Public Structure TBBUTTON
Public iBitmap As Integer[code]....
As mentioned above, the read process memoery call fails, the return value is -1 The documentation states it returns 0 for fail, non zero for pass. Wondering if the problem lies in incorrect use of types in pinvoke calls or the struct tbbutton is incorrect, or my use of a pinned pointer is wrong,or whether I need to use adjusttokenpriviledges to ensure I have rights.Though I'm running under admin and examples similar to this don't use it.
Relevant documentation
Virtualallocex
Read Process Memory
TBBUTTON Struct
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].....
I was working on changing the default mouse hover style color to implement the light blue gradient instead of the default orange color.I observed that one can change the highlight color only for buttons which have
View 1 RepliesHow can I find the OS using Visual Basic 2010? It does not seems to recognize any of the old commands like GetVersionEx etc.
I am looking to find out the Windows Version, Build, 32 or 64 bit, RAM, Processor and Manufacturer.
We are installing our application on windows 7. The application utlizes a Acces database. The application locates the database by looking in the registry under at HKEY_LOCAL_MACHINE / SOFTWARE / WOW6432NODE / COMPANY NAME / SOFTWARE NAME /STARTUP. When i install the application on windows 7 it places the a database where installshield directs it to and writes the path to the registry. However, somehow local copies of the database are showing up under the user profiles. (Example: c:/users/profilename/AppData/Local/VirtualStore/Program FIles (X86)/Company/SoftwareName/Data). We recently changed it to store the information in c:/ProgramData/Company/software however the same issue occurs and its creating local copies of the database and when the application runs it points to the local copy of the database. What we need is for all users to be pointed to and use the same database in ProgramData, is there something we are missing to accomplish this?
View 10 Repliesi want to buy a phone thats running on windows mobile 6.5 (htc touch2) and i want to run visual basic applications on it. i don't know how i can run them , is it possible ? ive started to learn c# to. Is it possible to run applications made in visual basic or c# ? if i can , how do i run them
if i can't what phone should i use ( android driven phone maybe?)
How do you change Color of all the ToolStripMenuItem on a Windows form. It seems as though you can't.
Here is the code that fails
For Each a In Me.ToolStripItems Then
a.BackColor = System.Drawing.ColorTranslator.FromOle(InterfaceColor)
a.ForeColor = System.Drawing.ColorTranslator.FromOle(LabelColor)
Next
How can you color a single item in a windows datagrid (Windows datagrid 2.0 for Visual Studio 2005)? I tried the overrides paint function but it is very memory intensive for it hits the function each time you move from one cell to another.
View 3 Repliesthe following code is supposed to replace the system color that's used for window backgrounds. You'd change it by P/Invoking the SetSysColor() API function. i am using the following code that was suggested to me but unfortunately when i click the button nothing happens!
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Runtime.InteropServices
[code]....
I want to make a small program in visual basic that can change the windows Vista / 7 color scheme, not one of the default list, but RGB, like in the 'Color mixer' options when you go to Control Panel -> Personalization -> Window Color and appearance.
View 2 RepliesI have searched and searched and searched. Nothing is working. Well it kind of works...I have a rtb which reads from a bunch (like 4.6k) xml files. Depending on the value of a few tags it displays a certain character. I want those characters to be color coded.
[CODE|
If File.Exists(xmlFile) = True Then
Reader = Xml.XmlReader.Create(xmlFile)
[code].....
I'm not sure how to do this, but anyone know of any good ways to make a color picker?
View 7 RepliesI've managed to find from other questions some data that allows me to achieve the next code:
Imports System.Runtime.InteropServices
Public Class Form1
<DllImport("user32.dll")> _
[Code]....
My problem is that I can't manage to find the DOS console window.
The question in C# Embedding a DOS console in a windows form
after running what i wanted in the DOS command prompt with:
System.Diagnostics.Process.Start("cmd.exe","/C C:gds2asc.exe C: emp.gds C: emp.txt")
How do i exit or close the command prompt window?
How would i run a batch file and instead of opening a DoS window and showing the text in a Textbox or Richtextbox... And if i can do that, how would i make another textbox that issues commands to said batch file
View 11 RepliesI am trying to create a basic windows form on VS2008. I dont see intializecomponent() method in my form. Also, I added a few controls on to the forms and set few properties for those controls on design view. Where is that code getting stored?? it isnt on the code behind file.
I know thr is no html code behind file for window forms?? also, where is intializecomponent method. Please help me out. I have been trying to find this out for such a long time now.
I have read a few chapters, and researched a few websites but none of which fulfil my question, which is where should I put this If statement
Public LoginName As String
Public Password As String
LoginName = txtUserName.Text
Password = txtPassword.Text
[Code]...
The idea is once the user has finished inputting text into both text-boxes the image on the button changes from a no-go to a green-submit button but unsure what declaration it would go under and which element. I have tried several form elements and declarations but not having the desired effect that I would like