|
INTERVIEW QUESTIONS
MICROSOFT
.NET DATABASE
DETAILS
Question: If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do you develop it? Do you copy and paste the code into each and every page of your application?
Answer: Create the Calendar User Control The control we will create will contain a calendar control and a label which has the corresponding date and time written Steps are:-
Creating a CalenderControl 1) To begin, open Visual Studio .NET and begin a new C# Windows Control Library. 2) You may name it whatever you like, for this sample the project name will be CalenderControl
Using the Calender Control in a Windows Application It’s just like adding any other control like a button or a label. 1) First, create a new Windows Application project named: CustomControl. 2) Add a reference to the Calender Control DLL named: CalenderControl.dll. 3) Now you a can customize the Toolbox: Right-Click the Toolbox> .NET Framework Components> Browse> select the CalenderControl.dll. 4)The Calender Control is now added to the Toolbox and can be inserted in Windows Form as any other control. The control itself will take care of the date display
|
|
|
Category |
.Net Database Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9055 users |
Added on |
9/13/2014 |
Views |
66283 |
Rate it! |
|
|
Question:
If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do you develop it? Do you copy and paste the code into each and every page of your application?
Answer:
Create the Calendar User Control The control we will create will contain a calendar control and a label which has the corresponding date and time written Steps are:-
Creating a CalenderControl 1) To begin, open Visual Studio .NET and begin a new C# Windows Control Library. 2) You may name it whatever you like, for this sample the project name will be CalenderControl
Using the Calender Control in a Windows Application It’s just like adding any other control like a button or a label. 1) First, create a new Windows Application project named: CustomControl. 2) Add a reference to the Calender Control DLL named: CalenderControl.dll. 3) Now you a can customize the Toolbox: Right-Click the Toolbox> .NET Framework Components> Browse> select the CalenderControl.dll. 4)The Calender Control is now added to the Toolbox and can be inserted in Windows Form as any other control. The control itself will take care of the date display Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How do you separate business logic while creating an ASP.NET application?
|
View Answer
|
|
What is the maximum length of a varchar in SQL Server?
|
View Answer
|
|
How do you declare a static variable and what is its lifetime? Give an example.
|
View Answer
|
|
What are good ADO.NET object(s) to replace the ADO Recordset object?
|
View Answer
|
|
What is the .NET datatype that allows the retrieval of data by a unique key?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All .Net Database Interview Questions & Answers - Exam Mode /
Learning Mode
|