User Profile

Collapse

Profile Sidebar

Collapse
almisba7
almisba7
Last Activity: Jul 19 '09, 06:08 AM
Joined: Nov 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I don't want to see the DGV on my form. I am just using it to populate my MenuStrip "GUMenuStri p" from the database. Note that "GUMenuStri p" is created at design time, and I am OK with that.

    Right now I do have the DGV "MenuDataGridVi ew" added to the form at design time, but I have its "Visible" property = False. However, what I want to do is to have the DGV created at runtime instead. But, as...
    See more | Go to post

    Leave a comment:


  • If you mean set the Run-Time-DGV properties right, then the question "what property could cause this"?
    See more | Go to post

    Leave a comment:


  • DataGridView behave different when created at runtime?

    Hi,
    I am using the follwoing code to generate Menustrip at runtime.
    Code:
    Dim dgv1 As DataGridView
    dgv1 = Me.MenuDataGridView
    ReadMenuInGridView(dgv1)
    Dim MItems As New SortedList(Of String, ToolStripMenuItem)
    For Each dgr As DataGridViewRow In dgv1.Rows
       Dim MItem As New ToolStripMenuItem()
       MItem.Text = dgr.Cells("item_title").Value
       MItem.Tag = dgr.Cells("item_key").Value
    ...
    See more | Go to post

  • Hi tlhintoq,

    Well, it can be done your way, I was hoping though if I can have a custom changes to the "SelectedIndexC hanged" event of the combobox,,, just like the C# code I included. By the way I am a VB programmer not C#, actually I don't understand C#, the reason why I included that code is because I found that code in a site and they say it suppose to solve my problem, but I don't know how to translate it to VB! Did you...
    See more | Go to post

    Leave a comment:


  • ComboBox: Cancel SelectedIndexChanged event

    Hi,
    I have a ComboBox that contain ProductIDs and a DataGridView that lists Categories which a product can be a member of. My DataGridView list ALL categories, however, it has a checkbox column that get checked when the ProductID is a member of that Category, otherwise it is unchecked. A user may also check or uncheck a category checkbox then save.

    The problem is, if a user forgot to save before changing the ComboBox, then his...
    See more | Go to post

  • Thanks, it did the trick with one extra IF statement.

    I just add the following IF statement just before the FOR loop:

    Code:
    If Not vCurrentForm Is Nothing AndAlso Not vCurrentForm.IsDisposed AndAlso vCurrentForm.Name <> pForm Then
        vCurrentForm.Close()
    End If
    The idea is to have only one form open at a time.

    Thanks again.
    See more | Go to post

    Leave a comment:


  • Declare and Define an Object Dynamically

    Hi,
    I have the following situation, can anybody help me in that?

    Following is a "pseudo" code of what I want to do in VB using VB.NET 2005:

    In my main form I have the following
    Code:
    'Code Begins
    Dim vCurrentForm As Form
    
    Private Sub CallCurrentForm (ByVal pForm as String) 
       If vCurrentForm Is Nothing OrElse vCurrentForm.IsDisposed Then
          vCurrentForm = <# New pForm
    ...
    See more | Go to post
    Last edited by pbmods; Apr 19 '09, 05:45 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...