Click here to Skip to main content
15,920,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Trial Software Pin
Thomas Stockwell2-Dec-06 9:39
professionalThomas Stockwell2-Dec-06 9:39 
Questionworking with crystal report Pin
Rmesh1-Dec-06 3:22
Rmesh1-Dec-06 3:22 
AnswerRe: working with crystal report Pin
Bassam Saoud1-Dec-06 10:31
Bassam Saoud1-Dec-06 10:31 
AnswerRe: working with crystal report Pin
alexrad1-Dec-06 13:03
alexrad1-Dec-06 13:03 
QuestionHow to write data into a file? Pin
ashwath19791-Dec-06 2:24
ashwath19791-Dec-06 2:24 
AnswerRe: How to write data into a file? Pin
Dave Kreskowiak1-Dec-06 4:27
mveDave Kreskowiak1-Dec-06 4:27 
AnswerRe: How to write data into a file? Pin
Nouvand8-Dec-06 2:40
Nouvand8-Dec-06 2:40 
QuestionCombo Box Databinding Pin
Tomic30-Nov-06 23:03
Tomic30-Nov-06 23:03 
How do I fix this error.
Pls I have the following code as a method in a class.
Public Function adminlevel() As Dataset<br />
        Dim adminsql As String = "Select * from userlevel"<br />
        Dim admindata As New SqlClient.SqlDataAdapter(adminsql, con)<br />
        Dim adminset As New DataSet<br />
        con.Open()<br />
        If con.State = ConnectionState.Open Then<br />
            admindata.Fill(adminset, "userlevel")<br />
           <br />
                admlevel = adminset.Tables("userlevel")<br />
           <br />
                  con.Close()<br />
            'Catch ex As Exception<br />
            '    MsgBox(ex.Message)<br />
            'End Try<br />
        Else<br />
            MsgBox("No Connection")<br />
        End If<br />
        Return admintable<br />
    End Function<br />
<br />
<br />
//at form end I have following code to bind combo box cboUser to a databse field.Stepping thru the code  line cbouser.displaymember="levelname" returned the error after the code.<br />
<br />
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        Try<br />
            Dim myuserlevel As New Underwriter.Underwriter<br />
            Dim load As New DataTable<br />
            load = myuserlevel.adminlevel()<br />
            cboUser.DataSource = load<br />
            cboUser.DisplayMember() = "levelName"<br />
            cboUser.ValueMember() = "levelname"<br />
        Catch ex As Exception<br />
            MsgBox(ex.Message)<br />
        End Try<br />
<br />
    End Sub<br />
<br />
the error returned is below:<br />
Could not bind to the new display member <br />
Parameter: newDisplayMember


Fikunmi Feyijin
Hicad Systems
Nigeria

AnswerRe: Combo Box Databinding Pin
Dave Kreskowiak1-Dec-06 4:33
mveDave Kreskowiak1-Dec-06 4:33 
GeneralRe: Combo Box Databinding Pin
Tomic4-Dec-06 2:36
Tomic4-Dec-06 2:36 
QuestionLanguage Translator Pin
Osama12330-Nov-06 22:30
Osama12330-Nov-06 22:30 
AnswerRe: Language Translator Pin
Dave Kreskowiak1-Dec-06 4:21
mveDave Kreskowiak1-Dec-06 4:21 
QuestionSecurity problem in (VB.NET , Sql Server) Console Applicaion running thru Network "Request for the permission of type " ? Pin
Anandan k30-Nov-06 20:57
Anandan k30-Nov-06 20:57 
AnswerRe: Security problem in (VB.NET , Sql Server) Console Applicaion running thru Network "Request for the permission of type " ? Pin
Dave Kreskowiak1-Dec-06 4:18
mveDave Kreskowiak1-Dec-06 4:18 
QuestionSMS Website Pin
Ashish Porwal30-Nov-06 20:55
Ashish Porwal30-Nov-06 20:55 
AnswerRe: SMS Website Pin
Dave Kreskowiak1-Dec-06 4:20
mveDave Kreskowiak1-Dec-06 4:20 
QuestionDataGridView Drag and Drop Multiple Rows Pin
venkatarama30-Nov-06 19:45
venkatarama30-Nov-06 19:45 
AnswerRe: DataGridView Drag and Drop Multiple Rows Pin
Dave Kreskowiak1-Dec-06 5:48
mveDave Kreskowiak1-Dec-06 5:48 
QuestionResizing form Pin
BINOVAR30-Nov-06 19:29
BINOVAR30-Nov-06 19:29 
AnswerRe: Resizing form Pin
Christian Graus30-Nov-06 22:16
protectorChristian Graus30-Nov-06 22:16 
Question[Message Deleted] Pin
Kawyjibo30-Nov-06 13:44
Kawyjibo30-Nov-06 13:44 
AnswerRe: What is this type of window setup called? Pin
MatrixCoder30-Nov-06 13:58
MatrixCoder30-Nov-06 13:58 
AnswerRe: What is this type of window setup called? Pin
Christian Graus30-Nov-06 15:40
protectorChristian Graus30-Nov-06 15:40 
QuestionNeed help with Inheritance and typecast problem [modified] Pin
oakomalm30-Nov-06 12:02
oakomalm30-Nov-06 12:02 
AnswerRe: Need help with Inheritance and typecast problem Pin
Christian Graus30-Nov-06 12:15
protectorChristian Graus30-Nov-06 12:15 

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.