Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Go Back  Xtreme Visual Basic Talk > > > Getting frames to appear using a CmdButton


Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2003, 05:19 AM
phase1 phase1 is offline
Freshman
 
Join Date: Nov 2003
Posts: 37
Default [Resloved]Getting frames to appear using a CmdButton


How would I get a frame to appear using a Command Button?

I was thinking it should be as simple as
Code:
Private Sub CmdNext_Click() 'this shows the next Frame frameMain.Show Unload frame1 End Sub

I also tried this and nothing happened after clicking CmdMain

Code:
Private Sub CmdMain_Click(Index As Integer) 'Takes the user to the next Frame Select Case TabStrip1.SelectedItem Case "Main" FrameMain.Visible = True End Select End Sub

but that didnt work. I am lost I have been tring several things since last night and none have worked all that seems to happen is I get more and more frustrated.

Last edited by phase1; 12-24-2003 at 09:35 AM.
Reply With Quote
  #2  
Old 12-24-2003, 07:45 AM
Joe Dunford's Avatar
Joe Dunford Joe Dunford is offline
Regular
 
Join Date: Aug 2003
Posts: 80
Default

This code worked for me

dim blnBoolean as boolean


Private Sub Command2_Click()
'if the frame is visible then hide it
If bln = True Then
Frame1.Visible = True
bln = False
Exit Sub
Else 'if the frame is invisible then show it
Frame1.Visible = False
bln = True
End If

End Sub
__________________
"If we knew what it was we were doing, it would not be called research, would it?"
Albert Einstein
Reply With Quote
  #3  
Old 12-24-2003, 08:43 AM
RichardH's Avatar
RichardH RichardH is offline
Regular
 
Join Date: Dec 2003
Posts: 96
Default

If you're using tabs may i suggest;
Project > Components > Microsoft Tabbed Dialog Control (SP5)

Its a lot easiar to use than the original TabStrip.
Reply With Quote
  #4  
Old 12-24-2003, 09:33 AM
phase1 phase1 is offline
Freshman
 
Join Date: Nov 2003
Posts: 37
Default

thx Joe and Richard I will try your method another time thank you both.


Here is a working sample for those like might.
Attached Files
File Type: zip Frames.zip (1.8 KB, 7 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frames Question bobba buoy Web Programming 0 09-22-2003 05:51 AM
frames? ddhuynh Web Programming 1 09-05-2003 02:20 AM
frames, frames, frames... *SIGH* Thá CøølZ General 3 05-04-2003 12:39 PM
Frames and *.dc6 Files ayoung Game Programming 3 10-09-2002 10:49 PM
how to make frames like frames in a web brower? chyu Interface and Graphics 1 08-20-2002 02:12 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
 
Getting frames to appear using a CmdButton
Getting frames to appear using a CmdButton
 
-->