Obtaining X And Y By Providing An Image?

Feb 20, 2012

How do you provide an image to the program, so the program finds that image on the screen and tells its coordinates. So if I was to provide an image of the start button, the program would tell the coordinates like (2,1000) or something similar.

View 13 Replies


ADVERTISEMENT

Obtaining RGB Values For Each Pixel Of Image

Nov 2, 2009

I am developing a software that would scan the image in a picturebox and obtain the rgb values of each pixel in the image and convert each rgb values to HSL values. I am using vb 2008 express edition. I am still a student. I am just starting to learn vb 2008. All I have done is to obtain the image in a file and paste it in the picturebox. Below is my code. I dont really know how to start with the process of obtaining the rgb values of each pixel and converting them to HSL values and averaging the HSL value.

Code to obtain image:
Option Strict Off
Option Explicit Off
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
[Code] .....

I still do not know how to start with the process of obtaining the rgb value for each pixel.

View 2 Replies

Providing Help Documentation In .NET?

Apr 26, 2010

I have written up troubleshooting documents for my project and would like them included in my program. I remember in VB6 there was a very easy way to do this with a control, where it already has the help document tree set up on the left and you just set it to point to certain files.

Does something like this exist for .NET? I am aware of the HelpProvider control but as far as I know this just puts in tooltips and opens documents on a button press?

View 1 Replies

Calculation Not Providing Correct Precision?

Aug 19, 2009

Consider the following :

Dim Length1 As Double = (10* 12) + 5
Dim SqFt1 As Double = 0.0
Dim length2 As Double = Length1 / 12.0
Dim tape As Double = CType(210.0, Double)
'Length2 at this point has a value = 10.41666
SqFt1 = CType(length2 * tape, Double)

[Code]...

View 5 Replies

Providing Several/multiple Lookup Values?

Jun 29, 2009

I have a Person.Profile table with columns like

PersonType (Student, Employee)
____ (Male, Female)
MaritalStatus (Single, Married, Widow, Separated)

[code].....

View 3 Replies

Copy Files Into Folders Without Providing Full Name Of The File?

Mar 13, 2012

Can i copy files into folders without providing full name of the file? Different files will be distributed into different folder, my files have current date at the end, it also has split before the date. I would like to copy the files name before the split. Here is an example

[Code]....

View 8 Replies

Is This A Secure Method Of Providing Service For Database Applications

May 10, 2012

WinFormsApp Login passes information to .php (server based) Login (provided credentials are correct) to DB to retrieve Decryption Key. WinFormsApp then uses Decryption key on Hardcoded encrypted connection string and renders application usable.This would then eliminate the necessity to encrypt/decrypt a connection string at runtime, virtually rendering any unauthorized person with a useless software.

View 1 Replies

Process.start() Providing Different Results When Running A Batch File Than When It Is Manually Run ... Win 7 X64

Feb 11, 2011

I'm having different results when running openfiles.exe manually than when I run it with Process.start() Below is the portion of code making the call. I have read in several places that using the "runas" verb might make a difference since I am running on Win 7 x64, however I am still experiencing different results.

[Code]...

View 1 Replies

Place .dll In A Folder Providing That The Folder Is Included In The Project?

Jun 22, 2009

If I have a .dll, isn't it I can place it in a folder providing that the folder is included in the project? since I really do have a problem during publishing.

View 4 Replies

Obtaining Directory Name Via A Dialog

Aug 6, 2009

What I am trying to do is have a button that will pop up a dialog to where you can select a directory. Then the path of the directory will be placed in a text field.Click Button > Dialog Pops Up > Select Directory > DirectoryField.Text will equal "C:Program FilesStuff"

View 3 Replies

Customizing Obtaining User Choice

Jan 12, 2010

sample_form.rtf (1.48MB). Number of downloads: 36. I have a working form to give specific choices to the user and retrieve the user's choice. (See code below and attached image in WordPad file.) I know I can use a global ("Public") variable to pass the text of the three choices from the calling form to the called form, but is there a way to pass these from one form to the other exclusively? Of course, my main objective is to have as little memory being used as possible. I would like to make the form in my example (frmDialogChoice) a generic form that can display any set of three choices.

code within calling form:
Dim intSwitchToMake As Integer
Dim insFrmDialogChoice As New frmDialogChoice
insFrmDialogChoice.ShowDialog()

[CODE]....

View 5 Replies

Obtaining A Bitmap Of Windows 7 Desktop

Mar 21, 2011

The following VB 2010 code runs, but returns only a black bitmap. I suspect the problem lies with the call to GetCurrentObject but I haven't been able to find good documentation on the arguments for it.[code]

View 9 Replies

Obtaining Content Of Other Application's ListBox?

Feb 28, 2010

Obtaining content of other application's ListBox

View 4 Replies

Obtaining Data From Proprietary USB / HID Device?

Jan 22, 2011

What is the best way to go about retrieving data from a proprietary hardware device that interfaces via HID USB? The particular device I need the data from is a blood-pressure/heartbeat measurement & monitoring device.The hardware came with software that downloads the data from the device and places that data into a (passworded/encrypted) MS Access database that I cannot connect to using programmatic methods, at least not without having the (admin's) password. The software provided produces reports, but the formatting renders them virtually useless (well, completely useless) for the needs of our company.

The device manufacturer provides to it's customers no API or any other technical information for accessing the data produced by their product; so, this pretty much leaves me stuck trying to figure out how to obtain the data via custom application in order to reclaim the initial justification for the expense associated with the hardware, which by the way has already been purchased.I don't need code snippits specifically, though examples would be nice; what I really need is to know is how to best approach this project, from a general design and programming stand-point.

View 2 Replies

Obtaining Info From Event Viewer?

Oct 19, 2011

I want to be able to search the windows event log (security) on our 2008 DC to find out when a certain user logged in. Using the system.diagnostics.eventlog namespace I can search and view information based on the event Id(4624) but I cannot work out how to display the login name of the user.

View 3 Replies

Obtaining The Target Path Of A Shortcut?

May 25, 2010

I need to obtain the target of a shortcut (.lnk) file using Visual Basic 2008 or 2010 under Windows 7.For Windows XP and VB 2005 I used the Windows Script Host Object model and DLL, like this:

Imports WSH = IWshRuntimeLibrary
. . . . .
Dim MyShell As New WSH.WshShell

[code].....

View 2 Replies

Obtaining WiFi Network Information?

Jan 9, 2012

I am developing an application to be deployed on an XP Tablet edition PC. I am interested in monitoring information (e.g. Channel, AP MAC Address) about the Access Points that I am connecting to to location where in the facility a given Tablet PC is operating in.I have been unsuccessful in finding any code samples/snippets showing information on how to retrieve this sort of information.

View 1 Replies

Sql Server - SQLException Obtaining More Information?

Jun 14, 2012

Currently working with converting SQLException error messages into messages that are more useful for the end user. My largest issue has been finding the information I'm looking for.For instance, error code 8114 is

"Error converting data type [Type1] to [Type2]" And error code 8152 is "String or binary data would be truncated"

Using ADO.NET in VB.NET with SQLServer, is there a simple way to figure out which columns are affected by these errors?

View 1 Replies

VS 2008 Obtaining Parent Process?

Dec 11, 2009

I've been looking into a way to obtain Parent Processes and then list them in a TreeView so I can list the child processes as child nodes However, it doesn't look like the framework has any built in methods. I thought I heard something about MS putting it in the .NET Framework 4.0. But, that's irrelevant at the moment.

Since there are no specific methods, is there still some way I can manually retrieve this info? Or would have have to use some unmanaged code? Maybe an API?

View 6 Replies

Obtaining Complete File Name From Task Manager?

Apr 9, 2012

There is Notepad opened.How can I display the full application name from the taskbar into label1.text.

For Example:

Label1.text = Untitled - Notepad

or

Label1.text = Whatever - Notepad

Can I check the applications if they contain the word "Notepad" and if they do then display the whole name in label1.text?

View 7 Replies

Obtaining Field Value From Datagrid On Double Click?

Aug 28, 2007

From what I'm finding, there doesn't appear to be any particular function available to obtain the value from a particular field from a double clicked on row of a datagrid...

So if you wanted to double click on a particular result in a datagrid, then pass one or more of the values of that row, you couldn't?

I was thinking something like this, but of course that doesn't work, any ideas?

Private Sub InventoryDataGridView_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles InventoryDataGridView.CellContentDoubleClick
Dim invID As String = InventoryDataGridView.CurrentRow(???ParticularField???)
End Sub

View 13 Replies

Obtaining Name/value Pair Of Enumeration With LINQ [VB 2010]?

Jul 23, 2009

I'm trying to obtain name/value pair of enumeration typed into text box with LINQ. It's OK with name, but when LINQ reaches values, it throws error: "Conversion from string "Black" to type 'Integer' is not valid". I have read that if I want to obtain a value, then I gotta use conversion function.

Here's code (button's Click event):

Private Sub GetEnums(ByVal sender As Object, ByVal e As RoutedEventArgs)
lstEnums.Items.Clear()
Dim typeName = Type.GetType(txtEnum.Text)
Dim enums = From en In typeName.GetEnumNames

[code].....

View 6 Replies

Obtaining Reference To Class Instance By String Name?

Mar 12, 2010

Is it possible using Reflection or some other method to obtain a reference to a specific class instance from the name of that class instance? For example the framework for the applications I develop heavily uses public class instances such as:
Public bMyreference as MyReference = new MyReference

Then throughout the application bMyReference is used by custom controls and code. One of the properties of the custom controls is the "FieldName" which references a Property in these class instances (bMyReference.MyField) as a string. What I would like to be able to do is analyze this string "bMyReference.MyField" and then refer back to the actual Instance/Property.

In VB6 I would use an EVAL or something simular to convert the string to an actual object but this obviously doesn't work in VB.net. What I'm picturing is something like this:
Dim FieldName as String = MyControl.FieldName ' sets FielName to bMyReference.MyField
Dim FieldObject() as String = FieldName.Split(".") ' Split into the Object / Property
Dim myInstance as Object = ......... ' Obtain a reference to the Instance and set as myInstance
Dim myProperty = myInstance.GetType().GetProperty(FieldObject(1))

View 1 Replies

Obtaining Text From Multiselected ListBox Items

Jan 8, 2012

I've been going round in circles with this for about 30 minutes.

[Code]...

Pretty simpe, I want getText to receive the text from each selected item in the list box.
The first one plucks out chars from the first selected listitem only The second gives me the listindex of each selected listitem The last gives me the text but only for the first selected listitem

View 2 Replies

VB2010 Mechanism For Obtaining A Form's Handle?

Jun 7, 2011

What is the VB2010 mechanism for obtaining a form's handle?

View 1 Replies

VS 2008 - Obtaining Characters Of String From Certain Word

Oct 21, 2010

I need to obtain the characters of a "string" from certain word (word "Repair") and including this word. This word is never in the same position.

Example string:
"Model: Machine: abcde Repair: getthis!"
I need to get: "Repair: getthis! "

Other example
Machine: dddddd Repair: hi"
I need to get: "Repair: hi"

View 2 Replies

VS 2008 Converting Code And Obtaining Results

May 16, 2010

I have used the code convertor at developerfusion to convert the following two pieces of code (originaly from url...Can anyone tell me how to get the returned Latitude and Longitude values to display in my textboxes named tab5txtLatitude and tab5txtLongitude? [code]Conversion seems to have been done ok apart from the two lines (in red text) which appear to be missing from the converted function.

View 7 Replies

Obtaining Network Lan ID And Getting Info From Outlook Address Book

May 19, 2010

I need to be able to get the current users LAN id using VB.NET and then use this info to pull out the phone number and full name and perhaps other dept info from the address book in outlook. The application I am building is web based in VS 2008, and the users will access the site once they have logged into the companies network. So I need to obtain their LAN ID. They will then be able to send an email using the smtp client. I need the email to send the lan ID of the person as well as include the address book info in the subject. how to use the smtp client.

View 9 Replies

VS 2008 Console Application - Obtaining Computer Info On PC

Sep 11, 2009

I have a problem where I am running a Console App to obtain some computer information on a pc. The pc has the following specs:

Windows XP Media Center Edition 2002
Service Pack 3
2 GB RAM
.NET Framework 3.5

The script runs fine on my Vista Ultimate PC. However, my friend runs it on his pc and nothing is written to the file. The directory and the file are being created, but nothing is in the file. Is there something that I am missing about XP Media Center Edition?

Here is the code:
Dim cFile As String = "C:System InformationsystemInfo.txt"
Dim objWriter As New System.IO.StreamWriter(cFile, False)
Try
Dim mObjOS As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem")
Dim mObjCS As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_ComputerSystem")
[Code] .....

View 10 Replies

Obtaining RDP Details - Launch Remote Desktop From And/or Source IP Address?

Jul 26, 2010

Our company uses Remote Desktop to allow our staff to access their computers remotely. Our staff first VPN's into the office and then from there, they can use Remote Desktop to access their computers.I would like to obtain details about where employees are logging in from. More specifically, the computer name they used to launch Remote Desktop from and/or source IP Address.Is this possible? If so, does anyone have any examples?

View 6 Replies







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