Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2004, 05:48 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default interface inheritance

Hi, my name is Dragan and i'm new in VB.NET. Here is my problem: i don't know how to set a multiple interfaces. For example: when user click on the button control, picture in picture box needs to change, text in text box needs to change, label text needs to change, etc. Please help me because there is no themes about this in the wrox press books.

 
Old April 20th, 2004, 09:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm not sure what you mean with you question. Are you asking about how to set all those things when you click the button? You just need to do what you need in the button click handler.

Sub Button_onClick(sender As Object, e As System.EventArgs) Handles Button.Click
   'set the picture box
   'change text box
   'change label
   'etc.
End Sub

Is this what you mean?

Peter
-------------------------
Work smarter, not harder
 
Old April 25th, 2004, 09:33 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a

 
Old April 25th, 2004, 09:37 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry about that.
Yes, the button click handler but is it possible to do that when i have 200 pictures and texts?
Thank you anyway for your help
best regards
Dragan

 
Old April 28th, 2004, 09:19 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Well, you'll have to set all 200 pictures and texts. Without more information I can't recommend anything else.
 
Old April 28th, 2004, 03:21 PM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is program for test's about driver's licence.It has a button_next and button_previous for questions. I don't know if it is a bad idea to do that program in that way but i allready started it. So if i started it bad please tell me.

 
Old April 29th, 2004, 09:40 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I think what you are getting at is that you want to navigate through a set of data.

There is an easy way of doing this, through using the currency manager. if you have a look at the following article in your visual studio help:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vboridatabindingwindowsforms.htm

or do a search in help for "Data Binding and Windows Forms" (make sure you keep the quote marks and it will find the article with that title).

If you can't find it, let me know and I'll post it here






Similar Threads
Thread Thread Starter Forum Replies Last Post
Inheritance magagulad Visual Basic 2005 Basics 1 May 12th, 2008 07:51 AM
Interface Vs Multiple inheritance anand_instra C# 1 April 30th, 2008 12:16 PM
Is it possible via Inheritance!!! mike_remember ASP.NET 2.0 Professional 0 November 26th, 2007 10:25 AM
c# inheritance bhohman C# 2 March 26th, 2004 01:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.