473,471 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What does SomeForm.ShowDialog(Me) do is Me is a UserControl

What does SomeForm.ShowDialog(Me) do is Me is a UserControl.

The Help describes what happens if Me is a form but I wonder if "Window"
would be a more accurate term then "Form".

That is, will it force SomeForm to be on top of Me if Me is a control placed
on some form?

I experimented a little but didn't resolve the issue.

Thanks
Nov 21 '05 #1
5 2120
Developer,

Me is the current class.

Because in VBNet a form as you use it instances itself in an inbuild sub
main, is your main form as well a me.

Normally it is something as this
\\\
Public Class whatever
private counter as string
Public sub New()
me.counter +=1
End sub
///

(The equivalent in C type languages is This).

I hope this helps,

Cor
Nov 21 '05 #2
Developer,

Me is the current class.

Because in VBNet a form as you use it instances itself in an inbuild sub
main, is your main form as well a me.

Normally it is something as this
\\\
Public Class whatever
private counter as string
Public sub New()
me.counter +=1
End sub
///

(The equivalent in C type languages is This).

I hope this helps,

Cor
Nov 21 '05 #3
Cor, thanks but I don't understand.
Do you mean when I do
whatever.ShowDialog
VB does what you show below?
What is the counter used for?

Thanks
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Developer,

Me is the current class. COULD BE ANY CLASS EVEN A USERCONTROL ??

Because in VBNet a form as you use it instances itself in an inbuild sub
main, is your main form as well a me.

Normally it is something as this
\\\
Public Class whatever
private counter as string DID YOU MEAN "INTEGER"??
Public sub New()
me.counter +=1
End sub
///

(The equivalent in C type languages is This).

I hope this helps,

Cor

Nov 21 '05 #4

" **Developer**" <RE*************@a-znet.com> schreef in bericht
news:OK**************@TK2MSFTNGP12.phx.gbl...
Cor, thanks but I don't understand.
Do you mean when I do
whatever.ShowDialog
VB does what you show below?
What is the counter used for?

Just a sample class to show that it has nothing to do with a form.

I hope this helps,

Cor
Nov 21 '05 #5
thanks

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OG**************@TK2MSFTNGP10.phx.gbl...

" **Developer**" <RE*************@a-znet.com> schreef in bericht
news:OK**************@TK2MSFTNGP12.phx.gbl...
Cor, thanks but I don't understand.
Do you mean when I do
whatever.ShowDialog
VB does what you show below?
What is the counter used for?

Just a sample class to show that it has nothing to do with a form.

I hope this helps,

Cor

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: GATMAN | last post by:
Dim f As New frmWeb f.ShowDialog(Me) f.Dispose() Annytime i call a diffrent form from my main form using showdialog, i get an exception eror thrown when i close the form, but when i use f.show i...
1
by: Bob Rock | last post by:
Hello, sorry for the trivial question but what does the ME in ME C++ stand for??? Thx. Bob Rock
4
by: Harry | last post by:
Hello, I have a page with a RadioButtonList and a PlaceHolder control. The RadioButtonList's AutoPostBack attribute is set to TRUE and its SelectedIndexChanged event loads one of three...
7
by: Alice | last post by:
Hi, In my program, the user can navigate to many different forms. When they go to the next form, I want the form they have left to close. However, the forms aren't closing. Can anyone tell me...
1
by: Tim | last post by:
Dear All, I have discovered, to my dismay, that the ShowDialog function will not function correctly when used with the AnimateWindow API. The owned form is opened behind the owning form on the...
0
by: **Developer** | last post by:
What does SomeForm.ShowDialog(Me) do is Me is a UserControl. The Help describes what happens if Me is a form but I wonder if "Window" would be a more accurate term then "Form". That is, will...
2
by: Iain | last post by:
What does the "Me" before a command mean? :confused:
8
by: Connectcase | last post by:
Hi there, and greetings from the Netherlands. Trying to switch over from VB to VB.NET and struggling with something that seemed very simple: ============================ Public Class Form1...
5
by: shawncraig | last post by:
Since the ShowDialog() doesn't allow the frmGreyOut finish loading. The cool greyed out effect is never seen. Just the popup called frmYesNo Private Sub frmGreyOut_Load(ByVal sender As Object,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.