Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard MacCutchan12-Nov-16 4:33
mveRichard MacCutchan12-Nov-16 4:33 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard Deeming12-Nov-16 4:37
mveRichard Deeming12-Nov-16 4:37 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard MacCutchan12-Nov-16 4:46
mveRichard MacCutchan12-Nov-16 4:46 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard Deeming12-Nov-16 5:48
mveRichard Deeming12-Nov-16 5:48 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard MacCutchan12-Nov-16 21:28
mveRichard MacCutchan12-Nov-16 21:28 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Dave Kreskowiak12-Nov-16 6:47
mveDave Kreskowiak12-Nov-16 6:47 
GeneralRe: Set Focus on a textbox after showing form.showdialog() Pin
Richard Deeming12-Nov-16 11:44
mveRichard Deeming12-Nov-16 11:44 
QuestionWhy this sub is executed 3 times ? Pin
desanti7-Nov-16 18:26
desanti7-Nov-16 18:26 
Hello !
I'm using VB.net 2013 and entity Framework 6.
I have a form with a bindingsource.
On the form's load event i have this instruction :
Myobjectbindingsource.datasource=(From t in context.Myobjects Select t).Tolist

I have another event :
Private Sub MyObjectbindingsource_CurrentChanged(sender As Object, e As EventArgs) Handles MyObjectbindingsource.CurrentChanged
       Messagebox.show("Hello")
    End Sub


If context.myobjects is not empty , before the form is shown , the message "Hello" is displayed 3 times.

My question is why the currentChanged event is called 3 times , because there's only 1 instruction that change items on bindingsource ?
Thank you !
AnswerRe: Why this sub is executed 3 times ? Pin
Eddy Vluggen11-Nov-16 7:17
professionalEddy Vluggen11-Nov-16 7:17 
GeneralRe: Why this sub is executed 3 times ? Pin
desanti11-Nov-16 19:28
desanti11-Nov-16 19:28 
GeneralRe: Why this sub is executed 3 times ? Pin
Eddy Vluggen12-Nov-16 1:42
professionalEddy Vluggen12-Nov-16 1:42 
QuestionMy application does not close anymore Pin
desanti31-Oct-16 12:33
desanti31-Oct-16 12:33 
QuestionRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 14:43
professionalMidi_Mick31-Oct-16 14:43 
AnswerRe: My application does not close anymore Pin
desanti31-Oct-16 15:01
desanti31-Oct-16 15:01 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 17:07
professionalMidi_Mick31-Oct-16 17:07 
GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 18:35
desanti31-Oct-16 18:35 
AnswerRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 18:47
professionalMidi_Mick31-Oct-16 18:47 
GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 18:56
desanti31-Oct-16 18:56 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 19:01
professionalMidi_Mick31-Oct-16 19:01 
GeneralRe: My application does not close anymore Pin
desanti31-Oct-16 19:06
desanti31-Oct-16 19:06 
GeneralRe: My application does not close anymore Pin
Midi_Mick31-Oct-16 19:26
professionalMidi_Mick31-Oct-16 19:26 
AnswerRe: My application does not close anymore Pin
Richard Deeming1-Nov-16 3:43
mveRichard Deeming1-Nov-16 3:43 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 6:00
desanti1-Nov-16 6:00 
GeneralRe: My application does not close anymore Pin
Richard Deeming1-Nov-16 6:28
mveRichard Deeming1-Nov-16 6:28 
GeneralRe: My application does not close anymore Pin
desanti1-Nov-16 9:19
desanti1-Nov-16 9:19 

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.