Click here to Skip to main content
14,866,758 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: immediate window Pin
Dave Kreskowiak5-May-07 3:46
mveDave Kreskowiak5-May-07 3:46 
QuestionLogin Form Pin
Hakmeh Mohannad4-May-07 13:23
MemberHakmeh Mohannad4-May-07 13:23 
AnswerRe: Login Form Pin
Paul Conrad4-May-07 13:58
professionalPaul Conrad4-May-07 13:58 
AnswerRe: Login Form [modified] Pin
Xandip4-May-07 22:35
MemberXandip4-May-07 22:35 
AnswerRe: Login Form Pin
Hakmeh Mohannad6-May-07 23:55
MemberHakmeh Mohannad6-May-07 23:55 
QuestionSorting ListViewSubItems Pin
weirbear4-May-07 11:50
Memberweirbear4-May-07 11:50 
QuestionMonochrome uncompressed BMp Saving in vb.ne Pin
satishns4-May-07 8:24
Membersatishns4-May-07 8:24 
QuestionHow to search through arrays Pin
HurricaneDan4-May-07 7:17
MemberHurricaneDan4-May-07 7:17 
I have two arrays. The first holds titles, the second holds text to see if the titles should be in a different case or bold. These names are then displayed in a Combo Box. Please bear with my simple example but it is about the only way to discribe what I want to do.

vNames = Array("Smith", "Hudson", "Jones")
VString = Array("H","I","h","i")

So I want to search the above vNames array for the vString, and if so I need it to be set to bold

This is what I was thinking:

For i = 0 To 2
For j = 0 To 1
If InStr(vNames(i), vString(j)) <> 0 Then
cmbName.FontBold = True
End If
Next j
Next i

But when I do this all three names are in bold, when my thinking is just the first two names should be bold.

Thanks in advance for any advice,

Dan
AnswerRe: How to search through arrays Pin
Dave Kreskowiak4-May-07 7:37
mveDave Kreskowiak4-May-07 7:37 
GeneralRe: How to search through arrays Pin
HurricaneDan4-May-07 8:42
MemberHurricaneDan4-May-07 8:42 
AnswerRe: How to search through arrays Pin
nlarson114-May-07 7:47
Membernlarson114-May-07 7:47 
GeneralRe: How to search through arrays Pin
HurricaneDan4-May-07 8:42
MemberHurricaneDan4-May-07 8:42 
QuestionXML -> VB.NET -> SQL Pin
Ziaous4-May-07 6:26
MemberZiaous4-May-07 6:26 
AnswerRe: XML -> VB.NET -> SQL Pin
Kevin Nicol4-May-07 6:49
MemberKevin Nicol4-May-07 6:49 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 7:52
MemberZiaous4-May-07 7:52 
AnswerRe: XML -> VB.NET -> SQL Pin
andyharman4-May-07 7:48
professionalandyharman4-May-07 7:48 
GeneralRe: XML -> VB.NET -> SQL Pin
Ziaous4-May-07 9:08
MemberZiaous4-May-07 9:08 
QuestionAdd menu items to the context menu Pin
chakor1234-May-07 5:15
Memberchakor1234-May-07 5:15 
AnswerRe: Add menu items to the context menu Pin
Dave Kreskowiak4-May-07 6:40
mveDave Kreskowiak4-May-07 6:40 
QuestionVista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 4:20
MemberEMSDeveloper4-May-07 4:20 
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 4:54
mveDave Kreskowiak4-May-07 4:54 
QuestionRe: Vista and a .NET application on a shared network Pin
EMSDeveloper4-May-07 5:46
MemberEMSDeveloper4-May-07 5:46 
AnswerRe: Vista and a .NET application on a shared network Pin
Dave Kreskowiak4-May-07 6:34
mveDave Kreskowiak4-May-07 6:34 
QuestionSystems Collections Generic Pin
tonysmithbrewster4-May-07 3:31
Membertonysmithbrewster4-May-07 3:31 
AnswerRe: Systems Collections Generic Pin
Tarakeshwar Reddy4-May-07 4:03
professionalTarakeshwar Reddy4-May-07 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.