Search results for query: *

  • Users: mzim
  • Order by date
  1. mzim

    Menu Object in VB.net

    Just store your menuitems in an array of menuitem and loop through it. Just like this one. I think there would be better way than this but this what I have in my mind so far. dim m() as menuitem={me.menuItem1,me.menuItem2,me.menuItem3} foreach mm as menuitem in m then MessageBox.Show(mm.Text) next
  2. mzim

    ComboBox - only can select!

    set the dropdown style property of the combobox to dropdownlist.
  3. mzim

    Menu Object in VB.net

    Yes there is.
  4. mzim

    Accessing Database in Various Forms

    You could access the database if you have a connection. Make the connection in your main form then pass that connection to the form's contractor.
  5. mzim

    displayin multiple/same datasets in combo box prob

    Clear first your dataset and combobox before filling it again. ds.clear() da.fill(ds) combobox1.items.clear() combobox1.datasource=ds
  6. mzim

    stored procedures

    ok thanks tg. is there some other way that i could declare some of my parameters inside a condition? if @ident=2 @bday datetime begin insert into table2 values(@bday) end
  7. mzim

    stored procedures

    i have this problem in declaring parameter in stored proc. btw i'm using mssql 2000 the usual thing to do is @name varchar(50) insert into sampletable values(@name) but what i want is to declare a parameter inside a condition or declaring a parameter that are not global @ident int if...
  8. mzim

    Hiding one column in Datagrid

    you could do it in datagridtablestyle. search in this forum you could find a lot of it.
  9. mzim

    look at this beauty :P

    good for a newbie
  10. mzim

    for each loop

    for each balhalalalala exit for next
  11. mzim

    Closing threads or marking as resolved

    why not edit your thread title and put [Resolved]
  12. mzim

    passing data to another form

    the formal way to that is by using a property or you could do some monkey coding. try this one. 'monkey coding dim score as integer score=textbox1.text + 1 textbox2.text=score 'assuming you have textbox in your form2 named textbox1. dim f as new form2() f.textbox1.text=me.textbox2.text...
  13. mzim

    using SelectedIndexChanged

    yes it's possible.:)
  14. mzim

    Plz how to handle exception in datagrid

    Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged If IsDBNull(DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 0)) Then MessageBox.Show("Please input the item number") Exit Sub End If End Sub
  15. mzim

    label's autosize

    yeah i think you cant specify a size to the label when property autosize is set to true bec. its provide its own size from the word itself autosize. :D
  16. mzim

    Allowing only rowselection in a datagrid

    yeah it is really possible in datagrid. try this one. Private Sub DataGrid1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.DoubleClick Dim f As New Form3() f.TextBox1.Text = DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 0).ToString 'it fetches the first...
  17. mzim

    Array help

    loop through it?
  18. mzim

    editable datagrid

    im not paid here to provide codes. i just help modify existing codes.
  19. mzim

    reading from a table

    for each dr as datarow in dt.rows combobox1.items.add(dr(1).tostring) next
  20. mzim

    String.Replace Help

    no need to put 1000 'the' in the s string just pass directly your string containing 1000 'the' and it solves the problem.
Back
Top