Click here to Skip to main content
16,006,605 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Create table Pin
Christian Graus12-Feb-07 19:01
protectorChristian Graus12-Feb-07 19:01 
AnswerRe: Create table Pin
ChandraRam12-Feb-07 20:50
ChandraRam12-Feb-07 20:50 
AnswerRe: Create table Pin
Hamid_RT13-Feb-07 8:14
Hamid_RT13-Feb-07 8:14 
QuestionHow to Display only Year in DateTimepicker or comboBox? Pin
priya_p23312-Feb-07 16:49
priya_p23312-Feb-07 16:49 
AnswerRe: How to Display only Year in DateTimepicker or comboBox? [modified] Pin
M-Hall12-Feb-07 18:02
M-Hall12-Feb-07 18:02 
QuestionRe: How to Display only Year in DateTimepicker or comboBox? Pin
priya_p23312-Feb-07 18:37
priya_p23312-Feb-07 18:37 
AnswerRe: How to Display only Year in DateTimepicker or comboBox? Pin
M-Hall12-Feb-07 19:15
M-Hall12-Feb-07 19:15 
AnswerRe: How to Display only Year in DateTimepicker or comboBox? Pin
ajay5888612-Feb-07 19:38
ajay5888612-Feb-07 19:38 
hi!priya....
how r u?
try this code...

Dim I As Integer
Private Sub frmCalender_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For I = 1 To 12
cboMonth.Items.Add(I)
cboMonth.SelectedIndex = 0
Next
'get the years for combo box
Dim Year As Integer
For Year = 1900 To CInt(Val(Format(Now, "yyyy")))
cboYear.Items.Add(Year)
cboYear.SelectedIndex = 0
Next
End Sub


Private Sub cboMonth_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboMonth.SelectedIndexChanged, cboYear.SelectedIndexChanged
cboDate.ValueMember = Str(Date.DaysInMonth((cboYear.SelectedIndex), cboMonth.SelectedIndex + 1))
End Sub

have a good day........Big Grin | :-D

Imagine the I.T

QuestionConversion from string "System.Data.DataRowView" to type 'Integer' is not valid ? Pin
cheeken2u12-Feb-07 16:32
cheeken2u12-Feb-07 16:32 
AnswerRe: Conversion from string "System.Data.DataRowView" to type 'Integer' is not valid ? Pin
M-Hall12-Feb-07 18:30
M-Hall12-Feb-07 18:30 
GeneralRe: Conversion from string "System.Data.DataRowView" to type 'Integer' is not valid ? Pin
cheeken2u12-Feb-07 19:38
cheeken2u12-Feb-07 19:38 
GeneralRe: Conversion from string "System.Data.DataRowView" to type 'Integer' is not valid ? Pin
M-Hall12-Feb-07 19:50
M-Hall12-Feb-07 19:50 
QuestionExcel Question Pin
ghettoneck12-Feb-07 16:07
ghettoneck12-Feb-07 16:07 
QuestionFile Association..pls help Pin
carl_sti12-Feb-07 14:59
carl_sti12-Feb-07 14:59 
AnswerRe: File Association..pls help Pin
TwoFaced12-Feb-07 15:53
TwoFaced12-Feb-07 15:53 
GeneralRe: File Association..pls help Pin
carl_sti12-Feb-07 16:26
carl_sti12-Feb-07 16:26 
GeneralRe: File Association..pls help Pin
M-Hall12-Feb-07 17:02
M-Hall12-Feb-07 17:02 
GeneralRe: File Association..pls help Pin
carl_sti12-Feb-07 17:34
carl_sti12-Feb-07 17:34 
Questionrename the existed excel worksheet name Pin
JaneQuestion12-Feb-07 13:29
JaneQuestion12-Feb-07 13:29 
AnswerRe: rename the existed excel worksheet name Pin
ajay5888612-Feb-07 20:16
ajay5888612-Feb-07 20:16 
QuestionVista always shows ipv6 address - how to only get ipv4 local address? Pin
Mr Plant12-Feb-07 10:11
Mr Plant12-Feb-07 10:11 
AnswerRe: Vista always shows ipv6 address - how to only get ipv4 local address? Pin
M-Hall12-Feb-07 17:41
M-Hall12-Feb-07 17:41 
QuestionError message: vbc30205? Pin
Shima. M.12-Feb-07 7:45
Shima. M.12-Feb-07 7:45 
AnswerRe: Error message: vbc30205? Pin
Kschuler12-Feb-07 8:43
Kschuler12-Feb-07 8:43 
QuestionTabPages Pin
CodingYoshi12-Feb-07 7:43
CodingYoshi12-Feb-07 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.