Click here to Skip to main content
16,016,489 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhash Pin
boyindie11-Jul-07 4:25
boyindie11-Jul-07 4:25 
AnswerRe: hash Pin
Dave Kreskowiak11-Jul-07 6:02
mveDave Kreskowiak11-Jul-07 6:02 
GeneralRe: hash Pin
Paul Conrad11-Jul-07 7:02
professionalPaul Conrad11-Jul-07 7:02 
QuestionVideo Player with different formats Pin
Zero-G.11-Jul-07 4:22
Zero-G.11-Jul-07 4:22 
AnswerRe: Video Player with different formats Pin
Dave Kreskowiak11-Jul-07 5:59
mveDave Kreskowiak11-Jul-07 5:59 
GeneralRe: Video Player with different formats Pin
Zero-G.11-Jul-07 20:26
Zero-G.11-Jul-07 20:26 
GeneralRe: Video Player with different formats Pin
Dave Kreskowiak12-Jul-07 1:40
mveDave Kreskowiak12-Jul-07 1:40 
QuestionHaving trouble updating form Pin
Cory Kimble11-Jul-07 4:09
Cory Kimble11-Jul-07 4:09 
I have a form with a DataGrid and a Listbox. My goal is to do a if statement looking for setting and depending on the outcome, show either the Data Grid OR the listbox by using the visible parameter. When I load the form it correctly shows the correct control by loading a saved file with the setting. I call a method in the same class and pass the value. The problem comes when I use a different form (Different class) and try to pass the setting in again. EX: I want to go to a properties windo and change the settings and have it update the baseform. I see the values going in the method but I don't see the form changing.

Code.

Private Sub frminYardTrucks_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
FileOpen(1, "C:\properties.txt", OpenMode.Input, OpenAccess.Read, OpenShare.LockRead)<br />
<br />
    Dim savedProperties As Properties<br />
<br />
        Input(1, savedProperties.software<br />
<br />
testSoftwareProperties(savedProperties.software)<br />
<br />
Public Sub testSoftwareProperties(ByVal choice As String)<br />
        If choice.Equals("Transact") Then<br />
            'MessageBox.Show("Show Grid")Test<br />
            Me.lstbxTrucks.Visible = False<br />
            Me.TestDataGrid.Visible = True<br />
             <br />
        Else<br />
            'MessageBox.Show("Show Listbox")Test<br />
            Me.TestDataGrid.Visible = False<br />
            Me.lstbxTrucks.Visible = True<br />
        End If<br />
    End Sub<br />
<br />
Public Class frmProperties<br />
    Inherits Windows.Forms.Form<br />
'Read in file and saved to cmbobxSoftware.Text <br />
Public Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click<br />
Dim test As New frminYardTrucks<br />
        test.testSoftwareProperties(cmbobxSoftware.Text.ToString)


When I complete btnSave_Click the frm does not change.
Does it have to deal with Overriding.
AnswerRe: Having trouble updating form Pin
Luc Pattyn11-Jul-07 5:32
sitebuilderLuc Pattyn11-Jul-07 5:32 
QuestionDatagridview column header color Pin
chakor12311-Jul-07 2:57
chakor12311-Jul-07 2:57 
AnswerRe: Datagridview column header color Pin
Rupesh Kumar Swami11-Jul-07 4:30
Rupesh Kumar Swami11-Jul-07 4:30 
QuestionCalling form of vb.net fom vb6.0 application Pin
ShuklaGirish11-Jul-07 1:46
ShuklaGirish11-Jul-07 1:46 
AnswerRe: Calling form of vb.net fom vb6.0 application Pin
Christian Graus11-Jul-07 2:09
protectorChristian Graus11-Jul-07 2:09 
GeneralRe: Calling form of vb.net fom vb6.0 application Pin
ShuklaGirish11-Jul-07 2:46
ShuklaGirish11-Jul-07 2:46 
GeneralRe: Calling form of vb.net fom vb6.0 application Pin
originSH11-Jul-07 3:17
originSH11-Jul-07 3:17 
Questionplease help me...its about vb.net Pin
Rharzkie11-Jul-07 1:41
Rharzkie11-Jul-07 1:41 
AnswerRe: please help me...its about vb.net Pin
Christian Graus11-Jul-07 2:10
protectorChristian Graus11-Jul-07 2:10 
GeneralRe: please help me...its about vb.net Pin
Rharzkie11-Jul-07 2:25
Rharzkie11-Jul-07 2:25 
GeneralRe: please help me...its about vb.net Pin
Christian Graus11-Jul-07 2:39
protectorChristian Graus11-Jul-07 2:39 
GeneralRe: please help me...its about vb.net Pin
Rharzkie11-Jul-07 2:45
Rharzkie11-Jul-07 2:45 
QuestionRe: please help me...its about vb.net Pin
Rharzkie11-Jul-07 19:59
Rharzkie11-Jul-07 19:59 
AnswerThe rules Pin
leckey11-Jul-07 3:04
leckey11-Jul-07 3:04 
QuestionProblem with Schemas Pin
Mark0611-Jul-07 1:22
Mark0611-Jul-07 1:22 
AnswerRe: Problem with Schemas Pin
Dave Kreskowiak11-Jul-07 6:05
mveDave Kreskowiak11-Jul-07 6:05 
QuestionFinalize the application Pin
magedhv11-Jul-07 0:04
magedhv11-Jul-07 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.