Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » replacing a form with another


replacing a form with another

Reply
  #1 (permalink)  
Old 10-22-05, 11:55 AM
sinstone sinstone is offline
New Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Talking replacing a form with another

hey guys and gals,

i want to replace a form with another at the same position and same size, the transition between both has to be seemless.

thanks everyone!!!!
Reply With Quote
  #2 (permalink)  
Old 10-22-05, 12:12 PM
elnerdo elnerdo is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
First, you set the first form to visible and the second form to not visible.

Then, to transfer, you set the second form's .left and .top properties to equal the first form's .left and .top properties. Ditto for the width and height properties. Then, you hide the first form and show the second form.
Reply With Quote
  #3 (permalink)  
Old 10-22-05, 12:27 PM
sinstone sinstone is offline
New Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thanks that worked quite well

now here's the little problem... you can kind of see that the screen changes (the transition isn't seemless)

now i think i know how i can counter this but i run into a problem, here's the code

If (i = 7) Then
Form1.ActiveForm.BackgroundImage = BackgroundImage.Image
ShadowFadeInParent.Visible = False
PspBlurParent.Visible = False
ShadowFadeInTimer.Stop()
Dim PrincipleForm As New Principle
PrincipleForm.Size = Me.ActiveForm.Size
PrincipleForm.Top = Me.ActiveForm.Top
PrincipleForm.Left = Me.ActiveForm.Left
PrincipleForm.Left = Me.ActiveForm.Left
Me.ActiveForm.Hide()
PrincipleForm.Show()
End If

i have to do the Me.ActiveForm.Hide() before the PrincipleForm.Show() because if I don't VB assigns the Me pointer to PrincipleForm.

basically, i need to know how to assign a name to the first form

thanks!
Reply With Quote
  #4 (permalink)  
Old 10-22-05, 02:00 PM
elnerdo elnerdo is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Why not me.hide instead of me.activeform.hide?
Reply With Quote
  #5 (permalink)  
Old 10-22-05, 02:03 PM
sinstone sinstone is offline
New Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
gives me an error :S think so anyways

edit: i take that back, works now

hehe and i figured out how i'm gonna fix my app thanks!

Last edited by sinstone; 10-22-05 at 02:11 PM.
Reply With Quote
  #6 (permalink)  
Old 10-28-05, 10:59 PM
rdprogrammer rdprogrammer is offline
Coding Addict
 
Join Date: Aug 2004
Location: Tulsa, Oklahoma
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts
Why dont you just fade the second form over the first using the opacity feature?

richard
__________________
Contact me directly at:
AIM: RDProgrammer
MSN: RDProgrammer@hotmail.com
Email 1: Richard@RDProgrammer.com
Email 2: RDProgrammer@hotmail.com
Website: RDProgrammer.com
Reply With Quote
Reply

Bookmarks


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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
focus is lost once modal form is unloaded substance Visual Basic 0 01-31-05 08:29 PM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM
Replacing drop down form menu with fixed value NCC1701 PHP 1 04-05-04 02:47 PM


All times are GMT -5. The time now is 02:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.