PC Review


Reply
Thread Tools Rate Thread

Loading Dynamic Forms

 
 
Zahid
Guest
Posts: n/a
 
      8th Jul 2003
Hi,

Ive written a custom button using graphics and I override
the button_Click event in my button. The trouble is, most
of my buttons will display an alert but there will be a
few (only known at runtime - dynamic) that will load
another form if clicked. How could I code for this? Also,
the name of the forms that are loaded by the button is
NOT known in advance.

What i was thinking is:

1. have a field in the custom button (Dim IsLink As
Boolean)that is set to true if the button loads another
page.
2. Have another field that holds the value of the field
it will load up as this can be obtained when button is
created (Dim FormToLoad As String).
3. In the button_Click event check to see if IsLink is
true, if it is then load up FormToLoad.

My question is: How do i write the statement to load up
FormToLoad?

Will it work if I write:
FormToLoad.ShowDialog
or
FormToLoad.Visible = true?

I dont think this will work so i need an alternative
please.

Thanks in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic dll loading Analizer1 Microsoft C# .NET 1 21st Dec 2007 05:44 PM
Dynamic File Loading Rob Edwards Microsoft Excel Programming 4 21st Sep 2005 05:43 PM
dynamic DLL loading Pohihihi Microsoft C# .NET 2 12th Aug 2005 11:07 PM
dynamic loading ajaymehra Microsoft ASP .NET 0 16th Mar 2004 04:23 PM
Re: Loading Dynamic Forms Herfried K. Wagner Microsoft VB .NET 1 8th Jul 2003 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:54 AM.