|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Some question about Inherits and opreatersI 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 Husam wrote:
Show quoteHide quote > Hi EveryBody: 1. You can't, you can only implement interfaces> > 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 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. "Husam" <Hu***@discussions.microsoft.com> schrieb: You cannot. .NET does not support multiple inheritance on classes.> 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 : Check out 'Custom Event' in VB 2005. You can even add your own > > public event EventHandler ReadyStateComplete { > add { > Events.AddHandler(_readyStateCompleteEvent, value); > } > remove { > Events.RemoveHandler(_readyStateCompleteEvent, value); > } > } 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/>
For each
Lock statement in C#, Is there an equivalent in VB.NET? 2nd Post: Problem adding events to controls created at run-time KeyUp + KeyDown Event Handler Calculate elapsed time Multiple threads using a shared printer resource Help needed on creating Shared Directory halt application flow until condition is met progress bar convert text to access mdb |
|||||||||||||||||||||||