Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

common sub to make different Form full screen

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2008, 07:50 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default common sub to make different Form full screen

Hi,

I have 50 different Forms. Some with sequential name like Form1,Form2 and some like Form1a,Form1b. Is it possible to use a common sub to make all 50 Forms full screen using a common sub program ? like :

Sub x_show ()
flb.New1("x",B4PObject(1))
If cPPC Then
flb.FullScreen2(False,True)
End If
End Sub

The click event of a button will assign Form name to x (x=Form1) and pass to the sub.

regards,

Last edited by mozaharul : 11-05-2008 at 07:56 AM.
Reply With Quote
  #2 (permalink)  
Old 11-05-2008, 08:11 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Your subroutine should look like this
Code:
Sub x_show (x)
  
If cPPC Then
    flb.New1(
"x",B4PObject(1))
    flb.FullScreen2(
False,True)
  
End If 
End Sub
and the call routine
Code:
x_show("Form1")
Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 11-05-2008, 08:52 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default

Hi klaus,

Thanks for the quick response, its working.

best regards,
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with desktop full screen ! superbabicka Questions (Windows Mobile) 7 11-09-2009 02:16 PM
How to make the title bar invisible and menu bar visible in full screen on the device mozaharul Questions (Windows Mobile) 2 08-17-2008 07:46 AM
Full Screen Opt Compilation? cdeane Questions (Windows Mobile) 6 05-02-2008 10:26 AM
Full Screen Inc ToolBar RandomCoder Bug Reports 2 01-26-2008 02:31 PM
full screen -with- menus? rmh Questions (Windows Mobile) 10 07-09-2007 01:27 PM


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0