473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Some question about Inherits and opreaters

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
2 960
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
3
by: Quentin Huo | last post by:
Hi: C# doesn't support multiple inheritance but it supports interface.But I think these ways are different. For example, C++ supports multiple inheritance. I have two classess classA and...
1
by: Ing. Rajesh Kumar | last post by:
Hello Everybody I just started to use VS.NET. I came to know that it only allows to use code behind. I normally use one *.aspx file but does not matter. I can start using Code Behind, but what I do...
3
by: SAI | last post by:
I have 2 files which are copied from Microsoft for testing code behind. But always show error "Parser Error Message: Could not load type 'MyClass'." and highlight the aspx file code, Is my server...
6
by: Ioannis Theoharis | last post by:
Hi, i have 3 tables calling father, child1, child2: create table father(att0 int4); create table child1() inherits(father); create table child2() inherits(father); i want to get all the...
3
by: Showjumper | last post by:
Back in asp.net 1.1 i made custom collection classes per Karl Seguin's article On the Way to Mastering ASP.NET: Introducing Custom Entity Classes to take advantage of strongly typed data. Now with...
3
by: Jess | last post by:
Hello, I've been reading Effective C++ about multiple inheritance, but I still have a few questions. Can someone give me some help please? First, it is said that if virtual inheritance is...
10
by: Ty | last post by:
Hello all, I have built a site in VS 2008. using IIS7. Site works fine. So I publish to a local folder. I then go into IIS7 and add a virtural directory pointing to the compiled folder and make it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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,...
0
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...

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.