Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: get and compare ascii code in vb.Net Pin
dan!sh 28-Nov-09 6:09
professional dan!sh 28-Nov-09 6:09 
AnswerRe: get and compare ascii code in vb.Net Pin
Shameel26-Nov-09 23:14
professionalShameel26-Nov-09 23:14 
AnswerRe: get and compare ascii code in vb.Net Pin
Luc Pattyn27-Nov-09 0:24
sitebuilderLuc Pattyn27-Nov-09 0:24 
QuestionArrange database Column entries by ascending order. Pin
jeshra27926-Nov-09 19:19
jeshra27926-Nov-09 19:19 
AnswerRe: Arrange database Column entries by ascending order. Pin
dan!sh 26-Nov-09 19:30
professional dan!sh 26-Nov-09 19:30 
AnswerRe: Arrange database Column entries by ascending order. Pin
Shameel26-Nov-09 19:46
professionalShameel26-Nov-09 19:46 
AnswerRe: Arrange database Column entries by ascending order. Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:20
professionalVimalsoft(Pty) Ltd26-Nov-09 22:20 
Question[VB6] On Change Event issues Pin
Blake Dickson26-Nov-09 18:52
Blake Dickson26-Nov-09 18:52 
So I have finally figured out how to dynamically add data to comboboxes created on the fly however I still cant create an on change event for the combobox.

Heres what I am looking at doing.

    Set optioncombobox = Me.controls.Add("Forms.ComboBox.1", "Cheese" & comboNumber)
    With optioncombobox
    .Text = "Please Select an option..."
    .left = 114
    .width = 276
    .top = 102
    .Height = 18
    End With
While Not (IsEmpty(Range("'Info'!a" & Counter)))
    X = Range("'Info'!a" & Counter).Value
    If InStr(1, X, "|") > 0 Then
    Else
    With controls("Cheese" & comboNumber)
            .AddItem (Range("'Info'!b" & Counter).Value)
    End With
    End If
Counter = Counter + 1
Wend


Then I am trying to create something like this

Private Sub Controls("Cheese1")_Change()
Do Stuff
End Sub


But I am getting an error saying "Expected: Identifier"

Anyone have any thoughts on how I can resolve this??

However when I create a commandbutton click event it can do all of this with no issue.
But I want to do this in an On Change event.

Even if there is some way to run an event if any combobox on the whole form changes that would be fine.
AnswerRe: [VB6] On Change Event issues Pin
Shameel26-Nov-09 19:50
professionalShameel26-Nov-09 19:50 
AnswerRe: [VB6] On Change Event issues Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:09
professionalVimalsoft(Pty) Ltd26-Nov-09 22:09 
QuestionSelecting MAX value from a Database column. Pin
jeshra27926-Nov-09 18:35
jeshra27926-Nov-09 18:35 
AnswerRe: Selecting MAX value from a Database column. Pin
dan!sh 26-Nov-09 19:15
professional dan!sh 26-Nov-09 19:15 
AnswerRe: Selecting MAX value from a Database column. Pin
Shameel26-Nov-09 19:53
professionalShameel26-Nov-09 19:53 
AnswerRe: Selecting MAX value from a Database column. Pin
Niladri_Biswas29-Nov-09 0:49
Niladri_Biswas29-Nov-09 0:49 
QuestionAutomation Error : Library Not Registered [modified]:It's Urgent Pin
Ashish Kumar Vyas26-Nov-09 17:11
Ashish Kumar Vyas26-Nov-09 17:11 
AnswerRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Shameel26-Nov-09 19:56
professionalShameel26-Nov-09 19:56 
GeneralRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Ashish Kumar Vyas26-Nov-09 23:44
Ashish Kumar Vyas26-Nov-09 23:44 
GeneralRe: Automation Error : Library Not Registered [modified]:It's Urgent Pin
Shameel27-Nov-09 2:04
professionalShameel27-Nov-09 2:04 
QuestionOpen automatically excel preview using vb Pin
C#Coudou26-Nov-09 15:26
C#Coudou26-Nov-09 15:26 
AnswerRe: Open automatically excel preview using vb Pin
dan!sh 26-Nov-09 19:03
professional dan!sh 26-Nov-09 19:03 
QuestionInstalling SQL Express / Creating a database during deployment Pin
Ekjon26-Nov-09 7:06
Ekjon26-Nov-09 7:06 
AnswerRe: Installing SQL Express / Creating a database during deployment Pin
Ekjon27-Nov-09 8:33
Ekjon27-Nov-09 8:33 
QuestionCharacter Movement Pin
helelark12326-Nov-09 3:36
helelark12326-Nov-09 3:36 
AnswerRe: Character Movement Pin
Dalek Dave26-Nov-09 3:48
professionalDalek Dave26-Nov-09 3:48 
GeneralRe: Character Movement Pin
helelark12328-Nov-09 19:21
helelark12328-Nov-09 19:21 

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.