User Profile

Collapse

Profile Sidebar

Collapse
borri Craig
borri Craig
Last Activity: Jan 13 '11, 03:21 PM
Joined: Dec 7 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Here is the property control block:

    Code:
        Private dTable As DataTable
    
    
        '<Description("Gets/Sets the dataset used by the dropdowns.")> _
        Public Property ControlCBODataSource() As DataSet
            Get
                ControlCBODataSource = dsSet
            End Get
            Set(ByVal value As DataSet)
    
                dsSet = value.Copy
    ...
    See more | Go to post

    Leave a comment:


  • User created control not working in form

    I created a user control with a label and 2 combo boxes, and a public property called ControlDataSour ce that accepts a dataset - which it populates the combo boxes with. I added the reference to the VB project I want to use it on and to the toolbox. I was able to draw it on the form with no problem and use it. However, after changing the backcolor on the control and recompiling it, it is no longer seen by the form. When I bring up the form it's used...
    See more | Go to post

  • You've got quite a few problems here. You're dimensioning dStateID as an integer, and then assigning a string value to it. That will give you an error every time. Plus, the dStateid variable is local to the initialization procedure, which means it will never be seen by the rest of the program.

    Also, you're combining a case statement with an if-else, which is counter productive and confusing. Just make each decision a case. Look up...
    See more | Go to post

    Leave a comment:


  • Never mind, I figured it out.

    For the curious, I created two binding objects on the form - named imaster and idetail (for insurance master and insurance detail). In the form load, I bound them to the dataset:

    iMaster.DataSou rce = dsSPHData
    iMaster.DataMem ber = "ihs_sph_patien t" ' table name
    iDetail.DataSou rce = iMaster
    iDetail.DataMem ber = "RelInsuran ce"...
    See more | Go to post

    Leave a comment:


  • How do I display data linked by a data relation in different text boxes?

    I have a data set with a parent child relationship between a patient table and an insurance table. There can be up to 4 insurances for each patient. I want to display them in 4 separate panels of a vb.net form. So if a patient had 2 insurances, then txtName1.text on panel 1 would have the company name of the first insurance, txtName2.text on panel 2 would hold the company name of the second insurance, and so on.

    How do I display only...
    See more | Go to post
No activity results to display
Show More
Working...