GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  VB.NET
Go To First  |  Previous Question  |  Next Question 
 VB.NET  |  Question 54 of 60    Print  
Windows-based application code segment
You develop a Windows-based application that includes the following code segment. (Line numbers are
included for reference only.)
01 Public Sub password_Validating (ByVal sender As _
02 Object, ByVal e As _
03 System.ComponentModel.CancelEventArgs)
04 Handles password.Validating
05 If ValidPassword() = False Then
06 'Insert new code.
07 End If
08 End Sub
You must ensure that users cannot move control focus away from textPassword if ValidPassword returns a value of False. You will add the required code on line 6.
Which code segment should you use?

A. e.Cancel = True

B. sender = textName

C. password.AcceptsTab = False

D. password.CausesValidation =False



  
Total Answers and Comments: 2 Last Update: August 06, 2009     Asked by: Sudiya 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 24, 2009 13:52:47   #1  
sed0424 Member Since: April 2009   Contribution: 1    

RE: Windows-based application code segment
If e is defined as System.ComponentModel.CancelEventArgs e As System.ComponentModel.CancelEventArgs then e.cancel is correct
 
Is this answer useful? Yes | No
August 05, 2009 04:56:58   #2  
MrinalShendey1325 Member Since: July 2009   Contribution: 2    

Windows-based application code segment
e.cancle True

If the input in the control does not fall within required parameters the property within your event handler can be used to cancel the Validating event and return the focus to the control.

 
Is this answer useful? Yes | No

 Related Questions

Can any body tell me the code procedure for preparing parameterized cristel reports.the report should be generated by taking to or more parameters.example: report should be genarated FROM DATE to TODATE
Read Answers (3) | Asked by : Yamini

Latest Answer : You can go for internet control of robot.1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)2. using vb.net, develop the gui n use winsock programming for sending photos on internet.3. use mscomm programming in .net ...
Read Answers (2) | Asked by : jojo

How to check for a particular record whether it is present or not in dataset if the record is not present i want to display a message as no records what is the code for checking
Read Answers (7) | Asked by : subrahmanyam

Latest Answer : MSIL code is the Microsoft Intermediate Language. This is the code created by the CLR from the source code. This MSIL code is converted to machine/native code by JIT compiler. This machine code is actually the code which runs. ...
Read Answers (2) | Asked by : pardeep

for example:while(datareader1.read()) while(datareader2.read()) end whileend whilethis is not allowed even though both datareaders have two different sets of data. can someone help me out with this 
Latest Answer : A database connection can only have one open datareader associated with it at anytime.  To do what you are looking to do in your example you must have two connections, one for each datareader. ...
Read Answers (2) | Asked by : IRDM

View Question | Asked by : Kaushik Majumdar

You develop a Windows-based application that includes the following code segment. (Line numbers areincluded for reference only.)01 Public Sub password_Validating (ByVal sender As _02 Object, ByVal e As 
Latest Answer : e.cancle = TrueIf the input in the control does not fall within required parameters,the property within your event handler can be used to cancel the Validating event and return the focus to the control. ...
Read Answers (2) | Asked by : Sudiya

You company AppDevRight assigns you to modify a Visual Studio .NET application that was created by a former colleague. However, when you try to build the application, you discover several syntax errors.You 
Latest Answer : Run the application in Debug Mode. Each time an error is encountered, correct it and continue debugging the application ...
Read Answers (1) | Asked by : Sudiya

You use Visual Studio .NET to create a Windows-based application. The application includes a form named GraphForm, which displays statistical data in graph format. You use a custom graphing control that 
Latest Answer : F. Set GraphForm.FormBorderStyle to one of the Fixed styles. ...
Read Answers (1) | Asked by : Sudiya


 Sponsored Links

 
Related Articles

Performing DML Operations on XML Schema Based XMLType Views

Performing DML Operations on XML Schema Based XMLType Views Analyzing the underlying query of the empSch v view discussed in the preceding section you may note that each attribute of the EMP T object used in the select list maps to a certain column of a single table namely emps What this means in pr
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php" fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

Application Frameworks in SQL Server 2005

The new application framework of SQL called the Service Broker is a distributed application framework that provides relable asynchronous messaging at the database to database level. It allows internal and external processes to exchange streams of reliable asynchronous messages using extensions of T-
 

Rapid Application Development

What is RAD? One of the conveniences of developing software is that it is not a physical tool that can be lost once it gets developed or manufactured. Codes are used to implement the software and it does not disappear together with the product. We can re-use the code all over again in another softw
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape