473,466 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB.NET Problems with Forms

Hi, I just started working with MS Visual DotNET VB.
I know programming but VB not yet, and I am completly new to windows forms.

I want to write an application that consists of only one window,
and then there will be 3 different buttons, when you click on one,
then there comes the next selection, means that the old buttons need
to disappear - either by using the same window or by hidding the previous
window.

I tried that with MS Visual DoNet VB by using the Options you can select,
but the Problem is, that when a new windows comes up that it appear in the
exisiting window,
but below the old buttons - kinda weird!!!

Any help would be greatly appreciated!

Stefan
Nov 20 '05 #1
2 987
* "Stefan Richter" <sp**@spammenot.com> scripsit:
Hi, I just started working with MS Visual DotNET VB.
I know programming but VB not yet, and I am completly new to windows forms.

I want to write an application that consists of only one window,
and then there will be 3 different buttons, when you click on one,
then there comes the next selection, means that the old buttons need
to disappear - either by using the same window or by hidding the previous
window.

I tried that with MS Visual DoNet VB by using the Options you can select,
but the Problem is, that when a new windows comes up that it appear in the
exisiting window,
but below the old buttons - kinda weird!!!


Set the buttons' 'Visible' property to 'False' to hide them.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi maybe this can get you started,

place 4 buttons and a label on a form name the last button
'btnAllVisible' & the label 'lblFormat' then copy and paste this (code
between /* & */) to see what it does

/*
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Button3.Visible = False
Button2.Visible = False
lblFormat.Text = "Button 1"
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
Button1.Visible = False
Button3.Visible = False
lblFormat.Text = "Button 2"
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
Button1.Visible = False
Button2.Visible = False
lblFormat.Text = "Button 3"
End Sub

Private Sub btnAllVisible_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnAllVisible.Click
Button1.Visible = True
Button2.Visible = True
Button3.Visible = True
lblFormat.Text = "All buttons visible"
End Sub
*/

Greetz Peter
>>>>>>>>>>>>>>>>
In here you give some and get a lot in return
That's why this is such a good group

hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<c6************@ID-208219.news.uni-berlin.de>... * "Stefan Richter" <sp**@spammenot.com> scripsit:
Hi, I just started working with MS Visual DotNET VB.
I know programming but VB not yet, and I am completly new to windows forms.

I want to write an application that consists of only one window,
and then there will be 3 different buttons, when you click on one,
then there comes the next selection, means that the old buttons need
to disappear - either by using the same window or by hidding the previous
window.

I tried that with MS Visual DoNet VB by using the Options you can select,
but the Problem is, that when a new windows comes up that it appear in the
exisiting window,
but below the old buttons - kinda weird!!!


Set the buttons' 'Visible' property to 'False' to hide them.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Eva | last post by:
Hi, I wanted to know how i can enter values into a specific column of a listview. I have tried the following code but this seems to enter all my values into the first column!!! Can anyone...
2
by: Tamlin | last post by:
Hi all, I'm getting a bug with the datagrid object. I've created one from scratch, bound it to a dataview with 2 int32 columns and formatted the output as currency. I've found that when you...
9
by: please-answer-here | last post by:
What is wrong with this code? when i place "return false" before the xfab assignment the form as intended doesn't submit. But when placed as here or in the last if/else construct the page gets...
0
by: JMCN | last post by:
i have been running into some ftp problems. when i run the ftp, the log indicates that it has been ftp'd. here is my ftp log: USER XX PASS XXX CONNECT XXX.dns.com CD $1$DKB101: GET...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
3
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
4
by: john | last post by:
I'm having some Interop problems. I really need someone's help on this, i'm running out of ideas. I have upgraded my Data access controls to the latest ver. Now then i have a form with these...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
2
by: Magnus Bergh | last post by:
I got a weird problem with designer. I have created a spearate assembly (DLL) containing my dataset classes and other classes which are shared bewteen the projects in the solution. When I try to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.