Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I turn on a computer when it is truned off ? Pin
Garavan24-Aug-10 15:19
Garavan24-Aug-10 15:19 
QuestionDisappearing Controls on Windows Form App Pin
eddieangel23-Aug-10 7:37
eddieangel23-Aug-10 7:37 
AnswerRe: Disappearing Controls on Windows Form App Pin
OriginalGriff23-Aug-10 8:24
mveOriginalGriff23-Aug-10 8:24 
GeneralRe: Disappearing Controls on Windows Form App Pin
Luc Pattyn23-Aug-10 8:30
sitebuilderLuc Pattyn23-Aug-10 8:30 
AnswerRe: Disappearing Controls on Windows Form App Pin
Luc Pattyn23-Aug-10 8:26
sitebuilderLuc Pattyn23-Aug-10 8:26 
GeneralRe: Disappearing Controls on Windows Form App Pin
eddieangel23-Aug-10 9:02
eddieangel23-Aug-10 9:02 
GeneralRe: Disappearing Controls on Windows Form App Pin
Luc Pattyn23-Aug-10 9:21
sitebuilderLuc Pattyn23-Aug-10 9:21 
GeneralRe: Disappearing Controls on Windows Form App Pin
eddieangel23-Aug-10 9:27
eddieangel23-Aug-10 9:27 
This is the form load code:
Private Sub frmTheForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Me.WindowState = FormWindowState.Maximized
       Me.KeyPreview = True
       With Me.DsLookups
           Me.defectLookupTA.Fill(.tbl_ref_defect)
           Me.categoryLookupTA.Fill(.tbl_ref_category)
           Me.subLookupTA.Fill(.tbl_cdf_subcontractor, myCaseId)
           Me.addressLookupTA.Fill(.tbl_cdf_address, myCaseId)
           Me.locationLookupTA.FillByCase(.tbl_ref_location, myCaseId)
           Me.Tbl_ref_inspectionTableAdapter.Fill(.tbl_ref_inspection)
           Me.Tbl_ref_inspectorsTableAdapter.Fill(.tbl_ref_inspectors)
       End With

       With Me.DepoDataSet
           .tbl_ref_category.Clear()
           .tbl_ref_defect.Clear()
           .tbl_cdf_address.Clear()
           .tbl_ref_inspectors.Clear()
           .tbl_ref_location.Clear()
           .dtRecordInfo.Clear()
           .tbl_cdf_document.Clear()
           .tbl_cdf_relationship.Clear()
       End With

       clearSrch()

       Me.gbPhoto.Enabled = isOnline
       Me.tsmMenu.Visible = isOnline
       Me.tsmReporting.Visible = isOnline
       Me.tsmView.Visible = isOnline
       Me.pbMain.Image = Image.FromFile(Windows.Forms.Application.StartupPath & "\" & getSysPref(8))
       Me.pbMain.SizeMode = PictureBoxSizeMode.CenterImage


   End Sub


This is the binding navigator current changed event:

Private Sub myBindingSource_CurrentChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DtRecordInfoBindingSource.CurrentChanged
       Try
           Dim myDataRow As DataRowView = Me.DtRecordInfoBindingSource.Current
           myRecordId = myDataRow.Item("intRecordId")
           Me.recordDefectTA.FillBy(Me.DepoDataSet.tbl_ref_defect, cbCategory.SelectedValue)
           If IsDBNull(myDataRow.Item("intDefectId")) = False Then
               Me.cbDefectDetails.SelectedValue = myDataRow.Item("intDefectId")
           End If

           loadimage()

       Catch nr As NullReferenceException
       End Try

       If IsDBNull(myRecordId) = False Then
           Me.Tbl_cdf_relationshipTableAdapter.Fill(Me.DepoDataSet.tbl_cdf_relationship, myRecordId)
           Me.DepoDataSet.Tables("tbl_cdf_relationship").Columns("intRecordId").DefaultValue = myRecordId
       End If

       Try
           Me.Tbl_cdf_documentTableAdapter.Fill(Me.DepoDataSet.tbl_cdf_document, Me.cbAddress.SelectedValue, myCaseId, myRecordId, Me.cbCBIId.SelectedValue)
       Catch en As Exception
       End Try

       Me.pbPreview.Image = Nothing
       Me.chbRepairReport.Checked = db_exist_code(myRecordId, myCaseId, "tbl_rep_repair")
       Me.chbPresentation.Checked = db_exist_code(myRecordId, myCaseId, "tbl_rep_presentation")
   End Sub


I realize, of course, that this particular piece is VB.Net, so my apologies for posting to C#, there is another application I am working on that interacts with this application in C#, and I had forgotten that this piece is VB.

Honestly, I don't even remember why I put a clear on the dataset tables, but I am sure I had a good reason for it when I did it. If I can figure out what is causing this issue I will narrow it down enough to send you a working Windows Vista breaking copy.
GeneralRe: Disappearing Controls on Windows Form App Pin
Luc Pattyn23-Aug-10 10:07
sitebuilderLuc Pattyn23-Aug-10 10:07 
GeneralRe: Disappearing Controls on Windows Form App Pin
phil.o23-Aug-10 20:49
professionalphil.o23-Aug-10 20:49 
Questionthe locations are different than the mouse locations.. Pin
prasadbuddhika23-Aug-10 5:31
prasadbuddhika23-Aug-10 5:31 
AnswerRe: the locations are different than the mouse locations.. Pin
OriginalGriff23-Aug-10 6:05
mveOriginalGriff23-Aug-10 6:05 
GeneralRe: the locations are different than the mouse locations.. Pin
prasadbuddhika23-Aug-10 6:11
prasadbuddhika23-Aug-10 6:11 
GeneralRe: the locations are different than the mouse locations.. Pin
Ennis Ray Lynch, Jr.23-Aug-10 6:24
Ennis Ray Lynch, Jr.23-Aug-10 6:24 
GeneralRe: the locations are different than the mouse locations.. Pin
Luc Pattyn23-Aug-10 6:31
sitebuilderLuc Pattyn23-Aug-10 6:31 
GeneralRe: the locations are different than the mouse locations.. Pin
OriginalGriff23-Aug-10 6:45
mveOriginalGriff23-Aug-10 6:45 
GeneralRe: the locations are different than the mouse locations.. Pin
Luc Pattyn23-Aug-10 7:15
sitebuilderLuc Pattyn23-Aug-10 7:15 
QuestionDownload file from server to local folder Pin
Agweet23-Aug-10 4:16
Agweet23-Aug-10 4:16 
AnswerRe: Download file from server to local folder Pin
Luc Pattyn23-Aug-10 4:18
sitebuilderLuc Pattyn23-Aug-10 4:18 
AnswerRe: Download file from server to local folder Pin
Pete O'Hanlon23-Aug-10 4:35
mvePete O'Hanlon23-Aug-10 4:35 
AnswerRe: Download file from server to local folder Pin
Agweet23-Aug-10 6:01
Agweet23-Aug-10 6:01 
GeneralRe: Download file from server to local folder Pin
Ravi Bhavnani23-Aug-10 6:23
professionalRavi Bhavnani23-Aug-10 6:23 
GeneralRe: Download file from server to local folder Pin
Luc Pattyn23-Aug-10 6:33
sitebuilderLuc Pattyn23-Aug-10 6:33 
GeneralRe: Download file from server to local folder Pin
OriginalGriff23-Aug-10 6:48
mveOriginalGriff23-Aug-10 6:48 
GeneralRe: Download file from server to local folder Pin
Agweet23-Aug-10 6:54
Agweet23-Aug-10 6:54 

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.