marcmarteleira
Member
- Joined
- Jan 5, 2008
- Messages
- 8
- Programming Experience
- Beginner
Hello all. I've made a application and basically I need it to accept inputs from another Form. For example, I have frmMain and frmProfile and I'm trying to make Radio Buttons on Profile effecting frmMain.
Example:
That doesn't work, btnBar is still just displaying it's original text. Any help?
EDIT: Nvm, found out what I did wrong. The code wasn't incorrect but where it was is.
I moved it to frmProfile and to make changes once Apply is clicked. Thank you anyways.
Example:
VB.NET:
Public Class frmMain
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If frmProfile.rdbFire.Checked Then
btnBar.Text = "Barfira"
ElseIf frmProfile.rdbWater.Checked Then
btnBar.Text = "Barwatera"
ElseIf frmProfile.rdbAero.Checked Then
btnBar.Text = "Baraera"
ElseIf frmProfile.rdbThunder.Checked Then
btnBar.Text = "Barthundra"
ElseIf frmProfile.rdbBlizzard.Checked Then
btnBar.Text = "Barblizzara"
End If
End Sub
EDIT: Nvm, found out what I did wrong. The code wasn't incorrect but where it was is.
I moved it to frmProfile and to make changes once Apply is clicked. Thank you anyways.
Last edited by a moderator: