473,387 Members | 1,512 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,387 software developers and data experts.

selected date from the month calendar in the textbox

i want to display the selected date from the month calendar in the textbox.please tell me how to do?plz reply quikly.
Jul 19 '07 #1
6 12453
Killer42
8,435 Expert 8TB
i want to display the selected date from the month calendar in the textbox.please tell me how to do?plz reply quikly.
What do you mean by "the month calendar"? A datepicker control? The current date?

What version of VB are you using?
Jul 19 '07 #2
visual stdio.net 2003, i am asking month calendar....
Jul 19 '07 #3
Killer42
8,435 Expert 8TB
visual stdio.net 2003, i am asking month calendar....
Sorry, but the expression "month calendar" without any context just doesn't mean anything, at least to me. Can you explain?
Jul 19 '07 #4
i want to select a date from "MonthCalendar" and the selected date should be displayed in the text box.i want the coding.
Jul 20 '07 #5
Droopy
4
Hi,
I have also been using a month calendar.I tried this code and it worked for me.But the problem is, the calendar doesnt close automatically the second time i select the date.The first time i select it,it works perfect.Incase u find a solution for my problem do let me know.Hope this works for u


private void monthCalendar1_DateSelected_1(object sender, DateRangeEventArgs e)
{
textBox2.Text = monthCalendar1.SelectionEnd.ToShortDateString();
nPopup3.Close();
}

private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
textBox2.Text = monthCalendar1.SelectionEnd.ToShortDateString();
nPopup3.Close();

}


Thanks,
Droopy
Jul 10 '08 #6
Cjoms2
1
Expand|Select|Wrap|Line Numbers
  1. Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected
  2.         TextBox2.Text = MonthCalendar1.SelectionEnd.ToShortDateString()
  3.         MonthCalendar1.Hide()
  4.     End Sub
Oct 2 '14 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Adrian | last post by:
I hit on this problem converting a VB.NET insurance application to C#. Age next birthday calculated from date of birth is often needed in insurance premium calculations. Originally done using...
7
by: Richiep | last post by:
I am trying to get a UK format date of dd/mm/yyyy. Why does the following subroutine not return a valid date in a web form? The date returned is #12:00:00 AM# but the date I entered into the...
7
by: Ron | last post by:
Hi All (yet again today...) Input clerk gets to "date of order" control on order form and is supposed to enter the date of the order. I've got that defaulting to today's date, which sounds...
1
by: EyeHawk | last post by:
OK, hopefully somebody can help me out again. My next problem is updating 3 form fields (type list/menu option) that correspond to a date, one for month, one for day and one for year when the user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...

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.