It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Need Help, Calling Problem

Moderator: dafunkymunky

Need Help, Calling Problem

Postby KohakuHyuuga on Wed Apr 16, 2008 4:41 pm

I'm confused, i have a sample script and was supposed to add a circle that can change sizes. I got it working but when i click the button to change to the next call it shows up but my circle is still there also. My instructor said the key is the notVis command and it is hidden somewhere. I dont know how to do it.

this is my circle change code.
Code: Select all
Sub hsbBar_Change ()
' As user clicks the scroll bar,
' the width of the circle adjusts
  shpCircle.Width = hsbBar.Value

End Sub



this is the button to change the call:
Code: Select all
Sub cmdNext_Click ()
' Make all controls invisible, then
' make the next control in line visible
  Call notVis   ' Turn all controls invisible
  lblControl.Visible = True
  Select Case ctrl
    Case 1: Call labelShow
    Case 2: Call textShow
    Case 3: Call cmdShow
    Case 4: Call chkShow
    Case 5: Call optShow
    Case 6: Call frameShow
    Case 7: Call comboShow
    Case 8: Call comboSShow
    Case 9: Call listShow
    Case 10: ctrl = 0   ' Reset the control variable
             lblControl.Visible = False
  End Select
  ctrl = ctrl + 1
End Sub



And this is the code of my form:
Code: Select all
Sub Form_Load ()



' Initialize global variable and hide controls
  ctrl = 1
  Call notVis
  Call fillCombo
  Call fillSCombo
  Call fillList

' Set initial scroll bar values
  hsbBar.Value = 1800   ' Circle's default width
  vsbBar.Value = 1800   ' Bar's default height



End Sub


I have no clue and need to find out as soon as possible.
KohakuHyuuga
 
Posts: 0
Joined: Wed Apr 16, 2008 4:31 pm

Postby sendtoanurag on Mon Apr 21, 2008 6:48 am

Can u send the code for notVis function
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm


Who is online

Users browsing this forum: No registered users and 3 guests