End Position Of A List Box Entry?

Jan 5, 2010

I am trying to find the last position of a name in a list.I have tried the following:Dim instructorp As String = lstInstructor.SelectedItem.ToString Dim endpos As Integer =instructorp.Length "Length" does not retieve a value. I think it is because there is a tab character in the string.

View 1 Replies


ADVERTISEMENT

Check What List Box Entry Is Selected In Another App?

Mar 4, 2012

With my application I want to check what list box entry is selected in another app (different process).

View 1 Replies

VS 2008 Data Entry To A List Box?

Dec 7, 2010

basically, i have a database full of records and i want my list box to be able to display all the data from one column in one table in it. i can do this, but only when i enter the same amount of items into the listbox's "items collection" as the number of records in the database. other wise with my code alone, i get this error message:

Incorrect coding?:

ListBox1.Items(inc) = ds.Tables("TTDB").Rows(inc).Item("ChildName") -

Error Message:

InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

[code]....

View 1 Replies

Calculate Closest X , Y Position From List?

Mar 4, 2010

I have a list box full of X, Y positions in the format of "xxx, yyy". I need to compare my current position to the positions in the list box and find the one that is closest.

View 1 Replies

How To Pass Image In PictureBox To Certain Position On List

Nov 15, 2011

I want to pass an image in a picture box to a certain position on an image list. I tried:
imagelist1.images(0)=picturebox1.image
But this is read only, what can I use to accomplish this?

View 1 Replies

Forms :: Auto-Detect BarCode Scan Entry OR Manual Entry - Cash Register?

Sep 8, 2009

i am pulling together a cash register that will allow both bar code product entry and manual key entry.imagine if you have a tin of beans in front of you, in a small corner shop they would probably type "47" and then hit "Produce". Fairly straight forward as I have the button Produce to act upon my code and update my salestrans.mdb but,if you scan the bar code I want the same form to handle both 'real' actions, (i assume that keyboard emulation barcode scanner includes "ENTER" after providing 13 digits)....

Q. in perhaps a long winded way i want to know how to kick off an event based on the "ENTER" key being activiated by the barcode scanner)?i do not want to have to hit any buttons if i am scanning bar codes.

View 9 Replies

Code For Ignoring The Case Of An Entry While Checking To See If The Entry Is Correct Or Not?

Nov 4, 2011

What is the code for ignoring the case of an entry while checking to see if the entry is correct or not... (i.e. in a flashcard program... given definition, asks for the name) I don't want the case of a character to affect whether the answer is correct or not.

View 2 Replies

VS 2008 - Adding Lines To Array List Position

May 12, 2009

I have this .txt file with 5 lines, let's say:
I
Have
An
Easy
Question
If I wanted to add those lines to an array list position, how would I do that?

View 26 Replies

Communications :: Differentiating Bar Code Entry To Keyboard Entry?

Jul 10, 2009

I am trying to make a program with a bar code reader for the first time. I am programming with VB 2005. I want to differentiate a bar code entry to keyboard entry. My questions:

1. Does bar code reader generate a keydown (or keypress) event for each of the digits of the entry? For example, if the barcode read: 1234567890, does that mean that there will be 10 keydown (or keypress) events for that single barcode that was read?

2. I have read from the posts that the best way to differentiating keyboard vs bar code input is to analyse the time between keystroke (for less than certain number of milliseconds).

View 2 Replies

C# - Bind Combobox To Enum List & Change Position Of Another Tables Bindingsource

Nov 23, 2011

I have the following:

a table of addresses and a bindingsource for the table
a enum list of address type: 0 = "Mailing", 1 = "Physical", 2 = "Shipping" etc...

I would like to bind the datasource of the combobox to the enum so it displays "Mailing", "Physical" etc. Then I would like to change the bindingsource position of the address table based on the user selection of the combobox.

Here is what I have so far:

cbxAddressName.DataSource = New BindingSource(ApplicationEnums.GetEnumList(GetType(ApplicationEnums.CompanyAddressType)), Nothing)

[Code].....

View 1 Replies

Differentiating Bar Code Entry To Keyboard Entry?

Jul 11, 2009

I am trying to make a program with a bar code reader for the first time. I want to differentiate a bar code entry to keyboard entry. My questions: 1. Does bar code reader generate a keydown (or keypress) event for each of the digits of the entry? For example, if the barcode read: 1234567890, does that mean that there will be 10 keydown (or keypress) events for that single barcode that was read?

2. I have read from the posts that the best way to differentiating keyboard vs bar code input is to analyse the time between keystroke (for less than certain number of milliseconds).

View 4 Replies

Saving Window Size And Position Multiple Monitors Toolbar Position Etc.

Aug 24, 2009

I have looking for a tutorial or class that demonstrates more than a trivial example of saving a windows position on closing. The ones I have found don't seem to work on all systems because of:

1. Multiple monitors. (and resolution between those monitors)

2. Toolbar size and position (toolbar is only on the primary monitor, well sometimes)

3. Sometimes the programs dont open on the right monitor they were closed on.

Is there an extensive class or tutorial on all the stuff a programmer needs to get right to have a window size and position persisted between executions?

View 1 Replies

VS 2008 BindingSource.Position - Event To Fire Only Once After The Position Command

Dec 5, 2010

I am using the following code to populate data in Textbox1:

[Code]...

I have few functions assigned in TextBox1_TextChanged event. The problem i am facing is this event is fired twice, once after the Fill command and another after the Position command whereas i want the event to fire only once after the Position command. What should i do?

View 6 Replies

Get Closest Position To Specific Position?

Mar 9, 2010

I also have a function that returns ALL tiles on the map and they're X, Y position. How could I find out which one is closest to the position I specify? I can't figure out how to go about it. how to implement it with this. Heres a MADE UP example if what I'm trying to do:

Dim MyPosition as New Position()
MyPosition.X = 400
MyPosition.Y = 400
Dim tList as New List(Of Tile) = MyMap.GetTiles

Now, I can already do the stuff above, but what I need to make is something like this:

tList.GetTileClosestToPosition(MyPosition)

View 2 Replies

Setting Start Position For A New Form To Another Form's Position

Mar 24, 2010

I have two forms: Main and Options.Main can be moved around the screen (like a normal window).When the user clicks a button, the Options form opens up and the Main form HIDES.How do I set the Options form to open in the exact place that the Main form was last on the screen (to give it the effect the MAIN form never went into hidding)I was thinking to set Option form's StartPosition to Main's current position, but I don't know the syntax for that or if it's even something you can do.

View 4 Replies

Allow Only One Entry Per Day?

Feb 1, 2010

I am using sql for this, I would like to know How I can allow only one entry (in the database) per day for each user ID

View 18 Replies

Set Up A DSN Entry On Fly?

Mar 12, 2012

Public Declare Auto Function SQLConfigDataSource Lib "ODBCCP32.DLL" _(ByVal hwndParent As Integer, ByVal fRequest As Integer, ByVal lpszDriver As String, ByVal lpszAttributes As String) As Integer[code]...

View 2 Replies

Add An Entry To A Database?

Jun 21, 2010

I'm doing a project where I need to have people register by entering a username and password. When they click register I want them to be added to the database, but I'm having trouble doing this. Can anyone help? This is my first time using VB.[code]...

View 2 Replies

Asp.net - Insert A New Entry In XML?

Oct 13, 2011

I have an XML below like this and I want to add in another entry to it:

<?xml version="1.0" encoding="utf-8"?>
<CampaignRewardsVoucher>
<VoucherCode>Vouch001</VoucherCode>
<Quantity>3</Quantity>
</CampaignRewardsVoucher>

I have the above xml but I want to add Vouch002 after Vouch001:

<VoucherCode>Vouch002</VoucherCode>
<Quantity>3</Quantity>
</CampaignRewardsVoucher>

I have the code below which checks if an input is a duplicate and update accordingly, if not I want to create a new Vouch002 entry

'Create XmlWriterSettings
Dim settings As XmlWriterSettings = New XmlWriterSettings()
settings.Indent = True

[Code].....

View 1 Replies

Duplicate Entry Ƈ' For Key 1?

Jun 21, 2010

I Use visual Basic 8.0 and Mysql 5.0 I have two exactly the same Tables:

Table1:
RecordID , Integer = primary key auto_increment NOT NULL
Articlenr , Integer
Articlename, Char(20)

[code]....

I want to add all the records from table1 to table2. I want to do this 10 times if I execute the following statement: INSERT into Table2 SELECT * FROM Table1 ; Everything works perfectly. The two records are added to table2 But if I execute the stament a second time get the following message: Duplicate entry '1' for key 1 I now i must do something with "duplicate key update" in the Insert statement.

View 2 Replies

IP Address Entry Box?

Mar 4, 2010

I've produced an IP Entry box with similarities to the one Windows uses when setting addresses.It seems to work (I say seems),th the setting of text.I have code that checks the entry of text so this seems fine, but when text is being set through code, it allows anything and i'm unsure on how to make it only allow numbers and numbers between 0 and 255.

View 5 Replies

Set Entry Point In Dll

Mar 25, 2009

i know it might be impossible to achieve (as i've been reading from another articles) but does anyone know how to set a dll entry point in VB.net project? I have created a VB.net dll and trying to call that dll from cobol (unmanaged code). in Cobol, i can only use the entry point statement to call VB.net dll (cannot add reference to it). as consequence, i'm getting "called program not found" (or in VB error is equal to "can't find dll entry point")

View 2 Replies

Test Whether An Entry Is Available?

Jun 16, 2011

In my program I need to test whether an entry is available I ue the following code:

If Not (westTF(Me.K) < 0) Then
If westTF(Me.K) Then
Exit Sub
End If
End If

This does not function, but when I remove the outer IF it is OK. ( I need to test otherwise an error is generated when West is exhausted).

View 6 Replies

To Generate New Key For Each Entry

Feb 15, 2012

This is my Vb.net Project for company i want to generate code for each individual slip so that i get one field as unique field for that i want to use date & slip no to generate unique key. i have attached screen shot my project in this date 21/12/2011 & slip no is 12 now i want to generate unique number as 21121112 (i.e 21/12/2011 as 211211 & slip no is 12 appended at the end)if u have code then attach with your solution

View 3 Replies

.net Update Database Entry?

Feb 14, 2011

I am trying to update a few entries in a access database through VB.NET. With the code I used below could anyone help me out and show me where I made a mistake because it is creating new database entries instead of updating them.

[Code]...

View 3 Replies

After Entry Jump To Next Control

Jun 28, 2011

I have a form with textboxes for entering data. One of the textboxes is for entering a value that is always one character. How can I make the cursor automatically jump to the next control when a character has been entered? I'm thinking the key press and release event and then set focus but is there a better way?

View 3 Replies

Attach A Pdf File To A Entry?

Sep 7, 2010

im currently working on a project for a warranty company. I need to be able to attach pdf files using a browse button that will save them to the file, so that later if the contract is reviewed we can pull of the scan of the contract without say having

View 3 Replies

Block Double Entry

Dec 6, 2011

this is the event table that records all the status(IN/OUT):

[Code]...

So am making a sign in-out program using vb.net and mysql. i was wondering if theres a code i can put in somewhere that will be like if a user opens the application he/she must signin before they can signout and if they open the application and they've already signed in, they cant signin again they must signout before they can sign out again.

[Code]...

View 2 Replies

Create A Data Entry Wpf?

Nov 14, 2009

I am trying to create a data entry wpf form and I am getting the following error when trying to create a window1 loaded event: "table name table adapter is not a member of file name.new data connection set table adapter.table adapter manager" I understand the error message and checked all my names but to no avail. Below is my class statement and window 1 loaded event:Private data connection as new data connection setprivate tatable as new data connection set table adapter.table name table adapterprivate tamanager as new data connection set table adapter.table adapter managerprivate view as collectionvie

View 1 Replies

Creating DSN Entry At Runtime?

Aug 9, 2010

How can you add a system DSN with its security credentials programmatically at runtime from VB.NET? Keeping key in ODBC.INI is done, but when creating ODBC, it asks for Authentication Type (SQL or Network Login).How can we set that option at runtime?

View 2 Replies







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