473,383 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

hide/show problem

i'm making somekind of pad with commandbuttons and different forms.
-> when you click the cmd on form1, form1 is hidden and form 2 is showed
when you click the cmd on form2, form2 is hidden and form3 is showed
-> the problem: if you click the cmd on form 3 normally form1 has to be showed and form3 has to be hidden. but when i do this i receive an error

when you think you can help me and you need the program, i'll mail it to you
(warning: it is maid is visual basic excell)



peter

(i'm learning VB on my own, sow don't be mad when you think this is a ridiculous question.)
Jul 4 '06 #1
3 4969
sashi
1,754 Expert 1GB
Hi there,

i assume the sample code below should work for fine.. good luck my fren.. :)

code for cmd on form1
Expand|Select|Wrap|Line Numbers
  1.     form1.hide
  2.     load form2
  3.     form2.show
  4.  
code for cmd on form2
Expand|Select|Wrap|Line Numbers
  1.     form2.hide
  2.     load form3
  3.     form3.show
  4.  
Jul 4 '06 #2
yep, now it worked
thanx
Jul 4 '06 #3
Ali Rizwan
925 512MB
i'm making somekind of pad with commandbuttons and different forms.
-> when you click the cmd on form1, form1 is hidden and form 2 is showed
when you click the cmd on form2, form2 is hidden and form3 is showed
-> the problem: if you click the cmd on form 3 normally form1 has to be showed and form3 has to be hidden. but when i do this i receive an error

when you think you can help me and you need the program, i'll mail it to you
(warning: it is maid is visual basic excell)



peter

(i'm learning VB on my own, sow don't be mad when you think this is a ridiculous question.)
Hello buddy
just add this command to form 1

private sub ()

form2.show
unload me

end sub

add in form 2

private sub ()

form3.show
unload me

end sub

add in form 3

private sub ()

form1.show
unload me

end sub

it will work properly
Aug 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
10
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer...
10
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
2
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow {...
0
by: Efkas | last post by:
I have a full custom application with some widged extending Controls like Label and PictureBox. I build a menu with these widgets. When I click on one of them, it calls a function to display...
5
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
10
by: sara | last post by:
Hi - Is it possible to hide the detail section of a report at run time? I have a report that prints all details, with summary lines. The user would like the report ALSO with just summary lines....
18
by: Liquidtouch | last post by:
I have been searching on this for awhile and cant find anything and playing around with it got me no where. I will start with what I am after and then explain what I have. I have a table with 3...
18
by: ryrocks | last post by:
Hi, Im making a 'contact us' page. The user click on the div, this then reveals another larger div displaying more information giving the effect of the box expanding or dropping down. I have 3...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.