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 Aug 16, 2002 | 09:20 PM
  #1  
Rob Walker's Avatar
Rob Walker
Thread Starter
Scooby Regular
 
Joined: Nov 1999
Posts: 474
Likes: 0
From: Stockport
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
Reply
Old Aug 16, 2002 | 09:53 PM
  #2  
super_si's Avatar
super_si
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
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
Reply
Old Aug 16, 2002 | 10:06 PM
  #3  
IWatkins's Avatar
IWatkins
Scooby Regular
 
Joined: Mar 2000
Posts: 4,531
Likes: 0
From: Gloucestershire, home of the lawnmower.
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
Reply
Old Aug 16, 2002 | 11:12 PM
  #4  
Belf's Avatar
Belf
Scooby Regular
 
Joined: Apr 2002
Posts: 41
Likes: 0
Post

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

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

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

Cheers
Rob
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
Dec 1, 2015 09:37 AM
crazyspeedfreakz
Wanted
17
Oct 5, 2015 07:19 PM
Davalar
General Technical
19
Sep 30, 2015 08:54 PM
Pro-Line Motorsport
Car Parts For Sale
2
Sep 29, 2015 07:36 PM




All times are GMT +1. The time now is 10:42 AM.