Renegade Posted June 17, 2013 Report Share Posted June 17, 2013 am creat un program in Visual Studio 2012 iar ulterior am adaugat si o baze de date in "(localdb)\Projects".Baza de date am numit-o ziledenastere in care am redenumit tabelul dbo.Table in dbo.zdn si in care am 3 coloane (ID,Nume,ZiuaLuna).Cu ajutorul a 3 butoane (Adauga,Cauta si Sterge) vreau sa adaug/caut/sterg in acea baza de date.Ma poate ajuta cineva cu comanda pentru cele 3 butoane?Am pus aici tot codul sursa (butonul cauta o sa il fac cand selecteaza o data in calendar)zieldenastere - Pastebin.com Quote Link to comment Share on other sites More sharing options...
M2G Posted June 17, 2013 Report Share Posted June 17, 2013 Ai de plm...Mai rau ca un indian.Asta: If ComboBox1.Text = "Ianuarie" Then ComboBox2.Items.Clear() ComboBox2.Items.Add(1) ComboBox2.Items.Add(2) ComboBox2.Items.Add(3) ComboBox2.Items.Add(4) ComboBox2.Items.Add(5) ComboBox2.Items.Add(6) ComboBox2.Items.Add(7) ComboBox2.Items.Add(8) ComboBox2.Items.Add(9) ComboBox2.Items.Add(10) ComboBox2.Items.Add(11) ComboBox2.Items.Add(12) ComboBox2.Items.Add(13) ComboBox2.Items.Add(14) ComboBox2.Items.Add(15) ComboBox2.Items.Add(16) ComboBox2.Items.Add(17) ComboBox2.Items.Add(18) ComboBox2.Items.Add(19) ComboBox2.Items.Add(20) ComboBox2.Items.Add(21) ComboBox2.Items.Add(22) ComboBox2.Items.Add(23) ComboBox2.Items.Add(23) ComboBox2.Items.Add(24) ComboBox2.Items.Add(25) ComboBox2.Items.Add(26) ComboBox2.Items.Add(27) ComboBox2.Items.Add(28) ComboBox2.Items.Add(29) ComboBox2.Items.Add(30) ComboBox2.Items.Add(31)Nu o puteai scrie asa?For i = 1 To 31 ComboBox2.Items.Add(i)Next i Quote Link to comment Share on other sites More sharing options...
Renegade Posted June 17, 2013 Author Report Share Posted June 17, 2013 am facut cum am stiut.multumesc de sfat Quote Link to comment Share on other sites More sharing options...
M2G Posted June 17, 2013 Report Share Posted June 17, 2013 Nu am timp sa stau sa vad ce vrei sa faci sau ce ai facut dar o sa iti dau un proiect de al meu. E doar interfata grafica si o functionalitate minima si nu contine baze de date.Este un calendar in care poti introduce evenimente, seta alarme etc...Este facut pentru a prezenta interfata grafica, mai mult pentu demo, nu ceva care este sau va fi folosit undeva. Este scris in C#, te poti inspira de pe acolo.SocialCalendar.rar Quote Link to comment Share on other sites More sharing options...
io.kent Posted June 17, 2013 Report Share Posted June 17, 2013 Renegade e bine facut, te felicit, personal... Quote Link to comment Share on other sites More sharing options...