Search results for query: *

  • Users: Never
  • Order by date
  1. N

    Question MaximizedBox resets to true when WindowState is set to maximized?

    7/6/9 Good morning sirs and ma'ams, I am trying to maximize an mdichild within an mdiparent then setting its maximizedbox property to false such that: frm.windowstate = formwindowstate.maximized frm.maximizedbox = false frm.show() But, the maximizedbox/"restorebox" resets to true after the...
  2. N

    create account user

    Yes it is.
  3. N

    Office 2007 Child form style?

    I am actually unable to point out what your real problem is. But with regards the scrollbars, you can try playing with the AutoScrollMargin and AutoScrollMinSize properties.
  4. N

    Use a custom .config file for defining profiles

    Maybe reading and writing to a textfile might give you an idea.
  5. N

    create account user

    Sorry but the youtube site is banned here at work so, I am unable to see what exactly it is you want. Anyways, creating a login form is relatively simple in vb 2005. All you have to do is right-click your project in the solutions explorer then select add>windows form. In the dialog box that...
  6. N

    switching forms using tab control

    'Assuming the 4 forms are already shown within your mdiParent Private Sub TabControl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged Select Case TabControl1.SelectedIndex Case 0...
  7. N

    Save and updation with one button

    Private Sub GingerDoesEmAll() Dim dv As DataView = dt.DefaultView Dim dr As DataRowView dv.Sort = "User" Dim pos As Integer = dv.Find(txtUser.Text) If pos > -1 Then dr = dv.Item(pos) Else dr = dv.AddNew()...
  8. N

    Question integer counter

    private sub something() dim discountinteger as integer = 0 for each customer in ??? if discount > 30 and [code to ensure counting for only once per customer] then discountinteger = discountinteger + 1 end if next end sub note: alternatively, if you have a datasource for your customers, you...
  9. N

    Convert VB Script to VB.Net

    i think your code is ok. you just have to declare your variables using the correct syntax.
  10. N

    Sorting a DataView

    'assuming that your datasources and dataview has already been set up dv.sort = "dataproperty1, dataproperty2, ... ASC" 'this will sort the specified dataproperties ascending (use DESC to sort descending)
  11. N

    Office 2007 Child form style?

    maybe you can also try using an mdiparent.
  12. N

    query processing

    you can define the str as byte Dim str() As Byte
  13. N

    Rowsadded event doesn't fire for all rows

    the rowsadded is fired everytime a row is written onto your grid. that means while the fill does what it usually does, each record read from your database is inserted into your grid. you can check this by placing a msgbox(grid.count) to show how many rows have been written onto your grid. maybe...
  14. N

    How to run the application exe for a shared folder?

    I think Windows has restrictions over running exe's in shared folders. Microsoft has disabled this feature due to security reasons. Imagine if an exe can be started from a shared folder, hackers can breach your company's security like a sitting duck. Though I don't know if exceptions can be...
  15. N

    search a list box

    'assuming that you have already set your listbox's datasource to bsnames private sub txt1.textchanged() if txt1.text = "" then bsnames.removefilter() else bsnames.filter = "Names='" & txt1.text & "'" end if end sub
  16. N

    True Randomization

    I've already did a similar thing on my lottery numbers generator. It always get 6 different numbers from 1 to 45. What I did was a random-then-compare-approach such as after doing a random for the next result, I check to see if it is equal to the previous then do a random if necessary. For your...
  17. N

    using combobox?

    To add items in the combobox during design-time just see the Collections property. To add a new item in the combobox through code, enter cbo1.items.additem("item") To remove an item, cbo1.items.remove("item")
  18. N

    Save and updation with one button

    'Assuming all controls are not binded Private Sub 1btnDoesEmAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 1btnDoesEmAll.Click Dim pos as Integer pos = bsUserAccounts.Find(User, txtUser.Text) If pos > 0 then bsUserAccounts.Position = pos...
  19. N

    bind hide /show keys [Question]

    To bind the form to your keystrokes, search about the property KeyPreview. To add the minimize and maximize buttons beside the exit button, set the MinimizeBox or MaximizeBox properties. To add your personal button, you might have to draw your own form.
Back
Top