p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

vb_dotnet thread: classes and vb6


Message #1 by soni29@h... on Mon, 2 Dec 2002 02:49:55
Set these VB.NET Form properties:

myForm.WindowState = FormWindowsState.Normal  '(or
FormWindowState.Maximized)
myForm.TopMost = True

There is an equivelent in VB6 for WindowsState:
myForm.WindowsState = vbNormal
(You need API32 call to make a form Topmost. However, showing the form
usually does that for you.  Showing a form already instantiated calls
myForm.Activate in VB6 (not myForm.Load).  If you have code in the
myForm.Activate that should only run once, then you need to set a form level
boolean true inside an IF block that can only be etered if that same boolean
is false.  In VB.NET it is more messy.  Both MyForm.Load event handler and
myForm.Activated events are raised when the form activates...


-----Original Message-----
From: Greg Robinson [mailto:gregr@scribblesoftware.com]
Sent: Monday, December 02, 2002 7:39 AM
To: VB_dotnet
Subject: [vb_dotnet] RE: classes and vb6


How does this relate to the subject?  May want to do a new post for a larger
audience.


>-- Original Message --
>Subject: [vb_dotnet] RE: classes and vb6
>Date: Mon, 2 Dec 2002 15:25:58 -0000
>From: "Manuj Sarpal" <manuj.sarpal@beaverhousing.co.uk>
>To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>Reply-To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>
>
>can anybody advise me how to bring the form to front and make it active

>when there are multiple child forms in minimized state
>
>Thanks IN Advance
>
>
>-----Original Message-----
>From: Greg Robinson [mailto:gregr@scribblesoftware.com]
>Sent: 02 Dec 2002 14:14
>To: VB_dotnet
>Subject: [vb_dotnet] RE: classes and vb6
>
>
>You are correct.  The question was 'classes', which VB6 does support, but
>as you stated not in a true OOP fashion.  It is kind of a difficult
question
>to answer in an e-mail, that is for sure.
>
>
>
>
>>-- Original Message --
>>Date: Mon, 2 Dec 2002 07:09:32 -0700
>>From: "Jerry Lanphear" <jerrylan@qwest.net>
>>To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>>Subject: [vb_dotnet] RE: classes and vb6
>>Reply-To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>>
>>
>>Greg,
>>VB6, however does not support inheritance.
>>
>>-----Original Message-----
>>From: Greg Robinson [mailto:gregr@scribblesoftware.com]
>>Sent: Monday, December 02, 2002 7:01 AM
>>To: VB_dotnet
>>Subject: [vb_dotnet] RE: classes and vb6
>>
>>Yes, vb 6 does support classes.  You can also develop com classes with
>>vb.net.
>> Take a look at the COM Class Project Template in .NET (only available
>>with
>>vb.net).
>>
>>
>>>-- Original Message --
>>>Date: Mon, 2 Dec 2002 02:49:55
>>>From: soni29@hotmail.com
>>>To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>>>Subject: [vb_dotnet] classes and vb6
>>>Reply-To: "VB_dotnet" <vb_dotnet@p2p.wrox.com>
>>>
>>>
>>>hi,
>>>i had a small question about vb6, i've been using vb.net for a little
>
>>>while but may need to develop in vb6 for an upcoming project, does vb6
>>
>>>support classes?  can i make them?
>>>Thanks.
>>>---
>>>Change your mail options at http://p2p.wrox.com/manager.asp or
>>>to unsubscribe send a blank email to
>>%%email.unsub%%.
>>
>>
>>
>>Greg Robinson
>>Director of Training and .NET Technologies
>>Scribble Software and Training
>>www.scribblesoftware.com
>>www.scribbletraining.com
>>
>>
>>---
>>Change your mail options at http://p2p.wrox.com/manager.asp or
>>to unsubscribe send a blank email to
>>%%email.unsub%%.
>>
>>
>>
>>
>>---
>>Change your mail options at http://p2p.wrox.com/manager.asp or
>>to unsubscribe send a blank email to %%email.unsub%%.
>
>
>
>Greg Robinson
>Director of Training and .NET Technologies
>Scribble Software and Training
>www.scribblesoftware.com
>www.scribbletraining.com
>
>
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or
>to unsubscribe send a blank email to %%email.unsub%%.
>
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or
>to unsubscribe send a blank email to %%email.unsub%%.



Greg Robinson
Director of Training and .NET Technologies
Scribble Software and Training
www.scribblesoftware.com
www.scribbletraining.com


---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to %%email.unsub%%.


  Return to Index