Click here to Skip to main content
15,926,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Deployment Question and Direct X Pin
Christian Graus14-Nov-06 12:19
protectorChristian Graus14-Nov-06 12:19 
QuestionForm properties resetting themselves Pin
Mark0614-Nov-06 5:56
Mark0614-Nov-06 5:56 
AnswerRe: Form properties resetting themselves Pin
Christian Graus14-Nov-06 12:20
protectorChristian Graus14-Nov-06 12:20 
GeneralRe: Form properties resetting themselves Pin
Mark0614-Nov-06 21:49
Mark0614-Nov-06 21:49 
QuestionTransparant background Pin
Pete Newman14-Nov-06 5:02
Pete Newman14-Nov-06 5:02 
AnswerRe: Transparant background [modified] Pin
nlarson1114-Nov-06 6:08
nlarson1114-Nov-06 6:08 
GeneralRe: Transparant background Pin
Syed Shahid Hussain15-Nov-06 6:21
Syed Shahid Hussain15-Nov-06 6:21 
QuestionBindingNavigator Pin
Joe Programm3r14-Nov-06 4:55
Joe Programm3r14-Nov-06 4:55 
Greetings All:

The issue is that when I execute the Fill method during a button's onClick event, it works fine. But when the Fill method is executed when a boolean propery is updated, the code executes but never populates the binding navigator.

Here's the code snippets in question:

Here's what works:

Private Sub FillToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FillToolStripButton.Click <br />
Try <br />
Me.SpEDMS_EnumNIOSHByStudyTableAdapter.Fill(Me.Dataset_frmPerson_NIOSH.spEDMS_EnumNIOSHByStudy, New System.Nullable(Of Integer)(CType(glStudyId, Integer))) <br />
Catch ex As System.Exception <br />
System.Windows.Forms.MessageBox.Show(ex.Message) <br />
End Try <br />
End Sub 


Here's the same code in the 'propery set' that executes but the navigator never shows any data

Private _QueryNIOSH As Boolean <br />
Public Property QueryNIOSH() As Boolean <br />
Get <br />
Return _QueryNIOSH <br />
End Get <br />
Set(ByVal value As Boolean) <br />
_QueryNIOSH = value <br />
If value Then <br />
Try <br />
Me.SpEDMS_EnumNIOSHByStudyTableAdapter.Fill(Me.Dataset_frmPerson_NIOSH.spEDMS_EnumNIOSHByStudy, New System.Nullable(Of Integer)(CType(glStudyId, Integer))) <br />
Catch ex As System.Exception <br />
System.Windows.Forms.MessageBox.Show(ex.Message) <br />
End Try <br />
End If <br />
End Set <br />
End Property 


Why does it work in one part of the form but not another? Any ideas?
QuestionVB6 in VB.Net??? Pin
azmir1014-Nov-06 2:14
azmir1014-Nov-06 2:14 
AnswerRe: VB6 in VB.Net??? Pin
nlarson1114-Nov-06 3:22
nlarson1114-Nov-06 3:22 
QuestionSaving bitmap to JPG in Compact Framework 2 Pin
Ostrich2214-Nov-06 1:46
Ostrich2214-Nov-06 1:46 
QuestionIn Vb Wininet problem Pin
psiva198414-Nov-06 1:21
psiva198414-Nov-06 1:21 
AnswerRe: In Vb Wininet problem Pin
MatrixCoder14-Nov-06 9:57
MatrixCoder14-Nov-06 9:57 
GeneralRe: In Vb Wininet problem Pin
psiva198414-Nov-06 18:59
psiva198414-Nov-06 18:59 
GeneralRe: In Vb Wininet problem Pin
psiva198416-Nov-06 19:32
psiva198416-Nov-06 19:32 
Questionwindows service question Pin
Saleh_cs14-Nov-06 0:57
Saleh_cs14-Nov-06 0:57 
AnswerRe: windows service question Pin
MatrixCoder14-Nov-06 9:59
MatrixCoder14-Nov-06 9:59 
QuestionSet password on existing excel application Pin
zenithmaximus14-Nov-06 0:05
zenithmaximus14-Nov-06 0:05 
AnswerRe: Set password on existing excel application Pin
Ostrich2214-Nov-06 1:39
Ostrich2214-Nov-06 1:39 
GeneralRe: Set password on existing excel application Pin
zenithmaximus14-Nov-06 14:39
zenithmaximus14-Nov-06 14:39 
QuestionTrouble with Form and Show() method Pin
RainFox13-Nov-06 23:30
RainFox13-Nov-06 23:30 
AnswerRe: Trouble with Form and Show() method Pin
Leah_Garrett14-Nov-06 0:30
Leah_Garrett14-Nov-06 0:30 
AnswerRe: Trouble with Form and Show() method Pin

MmM.net</

14-Nov-06 0:47

MmM.net</

14-Nov-06 0:47 
GeneralRe: Trouble with Form and Show() method Pin
RainFox14-Nov-06 23:16
RainFox14-Nov-06 23:16 
QuestionHelp needed for datatable printing in vb.net? Pin
TC2813-Nov-06 23:06
TC2813-Nov-06 23:06 

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.