Give An example of a ctype and directcast.

Answer Posted / narayan sahu(netx)

textbox = CType(obj, TextBox)
textbox = DirectCast(obj, TextBox)

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between .net 2000 and .net 2005(features)? Which one is better?

620


What is the difference between user control an custom control? Advantages/disadvantages?

646


How to create properties and methods using controls?

666


I'm having some trouble with cas. How can I troubleshoot the problem?

664


Explain how com+ related to the dna architecture?

644






What tools can I use to develop .net applications?

648


I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?

628


What are situations when you register .NET assembly in GAC ?

744


Is Driver Script any how related to AOM?

723


What is the benefit of .net core?

575


What is Flyout Design Pattern in .NET?

742


which method do you use to redirect the user to another page without performing a round trip to the client? How?

575


How to customize the trace output?

634


What is difference between static page and dynamic page?

634


Explain what do the terms “boxing” and “unboxing” mean?

651