Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

skytribe

@skytribe
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to return values between two forms
    S skytribe

    If I'm reading this correctly you want to click on a button on form1 which contains a textbox and pass the contents of the textbox to Form2. Simply set up a module with a variable mvarfile_Location as string. When you click on the button. Set this public/friend module level variable and show form2. In the form2 load event - retrieve the contents of this module level variable mvarfile_Location . FORM1 ***** Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Frm2 As New Form2 mvarFileLocation = TextBox1.Text MessageBox.Show(mvarFileLocation ) If view.ShowDialog() = DialogResult.OK Then End If End Sub FORM2 ***** Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load me.text = mvarFileLocation End Sub End Class Module test Public mvarFileLocation As String End Module Of course you could use a class and properties etc. But basically you are putting the contents into a variable/property etc. accessible from both forms. Alternatively You could pass a reference to form2 from form1 and use this to directly access form1.

    Visual Basic help tutorial question

  • does everybody know how to deal with this question?
    S skytribe

    Perhaps this is what you are looking for.... Get the current cell's rownumber and then build string for the messagebox which looks at the appropriate columns on that cell..... Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strTest As String Dim iRowNumber As Integer Try iRowNumber = DataGrid1.CurrentCell.RowNumber() strTest = "Selected Identify " & CStr(DataGrid1.Item(iRowNumber, 1)) MessageBox.Show(strTest) Catch ex As Exception End Try End Sub SkyTribe

    Visual Basic question sales tutorial

  • Context Menu's
    S skytribe

    I'm having a problem in how to implement context menu's I have a main form that has a 2 listviews on it and a set of radio buttons. the 2 radio buttons effect the contents of one of the listviews. Depending upon the listview selected (and its contents in the case of the first listview) I want to create context menu's I can create context based upon which listview called it but dont seem to be able to reference back to determine which radio button is set OR add a value to the function in the addhandler item when adding the event handler to the context menu item. Any ideas on ways to implement this would be greatly appreciated. Basically want to make a framework where I can say create a context menu for a specific type - so that if that listview is used on different forms can simply call the CreateContextMenu Function which will create the menu with appropriate hookups to the procedures.

    Visual Basic help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups