Jump to content
Xtreme .Net Talk

vellaima

Avatar/Signature
  • Posts

    109
  • Joined

  • Last visited

Everything posted by vellaima

  1. Can you please tell me how to associate the second class with the first in the constructor as i am new VB.NET.
  2. I have just highlighted where the problem is occuring.
  3. Hello, Public Class salesrepadd Inherits System.Windows.Forms.Form Private Sub Add() address.text = "Trial" Dim ins As New InsertSalesRep() ins.insert() End Sub End Class Public Class InsertSalesRep Inherits salesrepadd Public Sub insert() MsgBox(address.Text) ------> Displays blank End Sub End Class In the above program eventhough i have inherited the window form i am not able to retreive the values of the textbox etc.,. Could you please tell me where have i gone wrong.
  4. Thanks for providing the sample code. It worked perfectly well.
  5. ArrayList of custom objects
  6. I would be happy if you could give me a sample code.
  7. because the user might select the item in the combobox or leave it blank.
  8. Hello, I tried to insert a new value into the combobox which gave me the following error while executing the program. Error: Can't modify the items collection when the datasource property is set. Can you please tell me how to rectify and insert a blank value in the combobox Dim SQL As String, commission_dataset As DataSet Dim commission_adapter As New System.Data.OleDb.OleDbDataAdapter() SQL = "Select commission_id,commission_desc from sales_rep_comm" commission_adapter = New System.Data.OleDb.OleDbDataAdapter(SQL, OleDbConnection2) commission_dataset = New DataSet() commission_adapter.Fill(commission_dataset, "sales_rep_comm") Commission_based.DataSource() = commission_dataset.Tables("sales_rep_comm").DefaultView Commission_based.ValueMember = commission_dataset.Tables("sales_rep_comm").Columns(0).ToString Commission_based.DisplayMember = commission_dataset.Tables("sales_rep_comm").Columns(1).ToString Commission_based.Items.Insert(0, " ")
  9. Hi, I am new to VB.NET. Does anyone have a sample code to change the font, size and the color of the menu in VB.NET Thanks in advance.
×
×
  • Create New...