Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRandom Number Generator Pin
RambleWoods20-Feb-08 14:52
RambleWoods20-Feb-08 14:52 
GeneralRe: Random Number Generator Pin
Luc Pattyn20-Feb-08 16:07
sitebuilderLuc Pattyn20-Feb-08 16:07 
GeneralRe: Random Number Generator Pin
Christian Graus20-Feb-08 20:24
protectorChristian Graus20-Feb-08 20:24 
GeneralRe: Random Number Generator Pin
RambleWoods1-Mar-08 16:03
RambleWoods1-Mar-08 16:03 
GeneralDelete, Create, Code doesn't do what its supposed to. Pin
Karma3125120-Feb-08 9:49
Karma3125120-Feb-08 9:49 
AnswerRe: Delete, Create, Code doesn't do what its supposed to. Pin
Guffa20-Feb-08 11:55
Guffa20-Feb-08 11:55 
GeneralRe: Delete, Create, Code doesn't do what its supposed to. Pin
Christian Graus20-Feb-08 12:03
protectorChristian Graus20-Feb-08 12:03 
GeneralMonth Calendar linked to a database [modified] Pin
KrisnNala20-Feb-08 8:30
KrisnNala20-Feb-08 8:30 
Hi
Please can you help me.

I've got an application that's a diary and contains 4 text boxes, and a Month Calendar. I've worked it so that I add an entry and save the details to the table. No probs. I've got a DIARYID, FKOWNERID and FKPONYID.

The problem I've got is where the Owner has 2 ponies. When they select the 2nd pony then the Diary loads the 1st ponies details. It is not going through the binding source at all.

The code I'm using is below:

Imports System.Data.SqlClient
Public Class SOCIALDIARY
Dim AddNewEntry As Boolean = False
Dim DeleteNewEntry As Boolean = False
Public Sub PonysDiaryLoad()
Dim i As Integer = 0
Hallofrm.MYOWNERBindingNavigator.BindingSource = Me.MYPONYSDIARYBindingSource
Me.MYPONYSDIARYTableAdapter.FillByPony(Me.Database1DataSet.MYPONYSDIARY, CurrentPonysId)
Hallofrm.btnClosePony.Visible = False
If Me.Database1DataSet.MYPONYSDIARY.Rows.Count > 0 Then
CurrentDiaryID = Me.Database1DataSet.MYPONYSDIARY.Rows(Me.MYPONYSDIARYBindingSource.Position).Item("DIARYID")
Dim DiaryDates(Me.Database1DataSet.MYPONYSDIARY.Count - 1) As DateTime
For Each dr As DataRow In Me.Database1DataSet.MYPONYSDIARY.Rows
DiaryDates(i) = dr("DiaryDate")
i += 1
Next
MonthCalendar1.BoldedDates = DiaryDates
End If
lblDiaryId.Text = CurrentDiaryID
lblPonyID.Text = CurrentPonysId
End Sub

Any advise would be greatly appreciated.

Thanks:

Confused | :confused: Frown | :(

Kris MCP
modified on Thursday, February 21, 2008 9:44 AM
QuestionHow to kick Microsoft SAM's a$%? Pin
qrosity20-Feb-08 7:44
qrosity20-Feb-08 7:44 
AnswerRe: How to kick Microsoft SAM's a$%? Pin
qrosity21-Feb-08 21:22
qrosity21-Feb-08 21:22 
GeneralRe: How to kick Microsoft SAM's a$%? Pin
Johan Hakkesteegt24-Feb-08 10:24
Johan Hakkesteegt24-Feb-08 10:24 
GeneralRe: How to kick Microsoft SAM's a$%? Pin
qrosity24-Feb-08 11:55
qrosity24-Feb-08 11:55 
GeneralCant find database column that exists [modified] Pin
AAGTHosting20-Feb-08 6:20
AAGTHosting20-Feb-08 6:20 
GeneralRe: Cant find database column that exists Pin
Dave Kreskowiak20-Feb-08 7:02
mveDave Kreskowiak20-Feb-08 7:02 
GeneralUsing Option Strict On Pin
AAGTHosting20-Feb-08 5:09
AAGTHosting20-Feb-08 5:09 
GeneralRe: Using Option Strict On Pin
Dave Kreskowiak20-Feb-08 5:40
mveDave Kreskowiak20-Feb-08 5:40 
GeneralRe: Using Option Strict On Pin
AAGTHosting20-Feb-08 6:43
AAGTHosting20-Feb-08 6:43 
GeneralRe: Using Option Strict On Pin
Dave Kreskowiak20-Feb-08 6:57
mveDave Kreskowiak20-Feb-08 6:57 
GeneralRe: Using Option Strict On Pin
AAGTHosting20-Feb-08 7:02
AAGTHosting20-Feb-08 7:02 
GeneralRe: Using Option Strict On Pin
Dave Kreskowiak20-Feb-08 7:12
mveDave Kreskowiak20-Feb-08 7:12 
AnswerRe: Using Option Strict On Pin
Guffa20-Feb-08 8:41
Guffa20-Feb-08 8:41 
GeneralVB.NET VS C# Pin
Vimalsoft(Pty) Ltd20-Feb-08 4:16
professionalVimalsoft(Pty) Ltd20-Feb-08 4:16 
GeneralRe: VB.NET VS C# Pin
Paddy Boyd20-Feb-08 5:21
Paddy Boyd20-Feb-08 5:21 
GeneralRe: VB.NET VS C# Pin
Christian Graus20-Feb-08 11:27
protectorChristian Graus20-Feb-08 11:27 
GeneralRe: VB.NET VS C# Pin
Guffa20-Feb-08 14:30
Guffa20-Feb-08 14:30 

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.