By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,881 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,881 IT Pros & Developers. It's quick & easy.

Some question about Inherits and opreaters

P: n/a
Hi EveryBody:

I have some question that I hope some body help me to answer it :

Q1\ How can I Inherits two class inside one class ?

Q2\ How can I convert the fowwloing code from C# to VB.Net :

public event EventHandler ReadyStateComplete {
add {
Events.AddHandler(_readyStateCompleteEvent, value);
}
remove {
Events.RemoveHandler(_readyStateCompleteEvent, value);
}
}

Q3\ What is equvelant to operater <> and operater "and" ?

Any help or redirection will be appreciated

regard's

Husam
Feb 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Husam wrote:
Hi EveryBody:

I have some question that I hope some body help me to answer it :

Q1\ How can I Inherits two class inside one class ?

Q2\ How can I convert the fowwloing code from C# to VB.Net :

public event EventHandler ReadyStateComplete {
add {
Events.AddHandler(_readyStateCompleteEvent, value);
}
remove {
Events.RemoveHandler(_readyStateCompleteEvent, value);
}
}

Q3\ What is equvelant to operater <> and operater "and" ?

Any help or redirection will be appreciated

regard's

Husam


1. You can't, you can only implement interfaces
2. Sry, not sure on that one...
3. You can use "<>" in VB. or you can use "Not" and =
if Not A = B then
3b. There is no equvilant ? in VB. you can look at iif(..) statements,
they are the closest.

Feb 6 '06 #2

P: n/a
"Husam" <Hu***@discussions.microsoft.com> schrieb:
I have some question that I hope some body help me to answer it :

Q1\ How can I Inherits two class inside one class ?
You cannot. .NET does not support multiple inheritance on classes.
Q2\ How can I convert the fowwloing code from C# to VB.Net :

public event EventHandler ReadyStateComplete {
add {
Events.AddHandler(_readyStateCompleteEvent, value);
}
remove {
Events.RemoveHandler(_readyStateCompleteEvent, value);
}
}
Check out 'Custom Event' in VB 2005. You can even add your own
implementation for 'RaiseEvent' there which is not supported in C#.
Q3\ What is equvelant to operater <> and operater "and" ?


Both are actual VB operators.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.