Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Visual Basic Help

Thread Tools
 
Search this Thread
 
Old 16 August 2002, 09:20 PM
  #1  
Rob Walker
Scooby Regular
Thread Starter
 
Rob Walker's Avatar
 
Join Date: Nov 1999
Location: Stockport
Posts: 474
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi,

I've been writing an app in visual basic and one of the functions makes another form visible. Is there any way to disable the calling form from receiving any input while this new form is visible (like it does when you have a msgbox on)

Cheers
Rob
Old 16 August 2002, 09:53 PM
  #2  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

could you send me it, and i'll do it!

cant remember the code off the top my head!!(too much alcohol)

think it maybe be frm....show
enable

Something like that

Si
Old 16 August 2002, 10:06 PM
  #3  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

Haven't done VB in ages, but something like:

Form.Show ShowStyle

Where ShowStyle gives you either a modal or modeless.

I think you need ShowStyle = 1 to make it modal, rather than what you have now which is modeless, which might be ShowStyle = 0, but you don't need it as the default is modeless.

God, hope I have the right. You'll be lucky if it is correct, because my usual answer is "Use Delphi Instead"

Cheers

Ian
Old 16 August 2002, 11:12 PM
  #4  
Belf
Scooby Regular
 
Belf's Avatar
 
Join Date: Apr 2002
Posts: 41
Likes: 0
Received 0 Likes on 0 Posts
Post

Who needs to remember whether it's 1 or 0 when you can just use the vbModal constant instead.
Old 17 August 2002, 12:00 AM
  #5  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

True, didn't know that, but I try not to remember too much about these inferior languages
Old 17 August 2002, 08:21 AM
  #6  
Rob Walker
Scooby Regular
Thread Starter
 
Rob Walker's Avatar
 
Join Date: Nov 1999
Location: Stockport
Posts: 474
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks for that.. I was just using the form.visible flag to turn it on and off.

Cheers
Rob
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
01 December 2015 09:37 AM
crazyspeedfreakz
Wanted
17
05 October 2015 07:19 PM
Davalar
General Technical
19
30 September 2015 08:54 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM



Quick Reply: Visual Basic Help



All times are GMT +1. The time now is 07:24 AM.