Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVery simple question Pin
Boniolopez8-Nov-04 12:15
Boniolopez8-Nov-04 12:15 
GeneralRe: Very simple question Pin
beowulfagate8-Nov-04 13:17
beowulfagate8-Nov-04 13:17 
GeneralRe: Very simple question Pin
axiomillies14-Nov-04 19:16
axiomillies14-Nov-04 19:16 
GeneralConvert Sprite Sheets to Animations Pin
maykut20998-Nov-04 12:05
maykut20998-Nov-04 12:05 
GeneralForm.ShowDialog() problem Pin
genosis8-Nov-04 7:39
genosis8-Nov-04 7:39 
GeneralRe: Form.ShowDialog() problem Pin
CodeWell17-Nov-04 20:56
CodeWell17-Nov-04 20:56 
GeneralRe: Form.ShowDialog() problem Pin
genosis18-Nov-04 5:07
genosis18-Nov-04 5:07 
GeneralRe: Form.ShowDialog() problem Pin
CodeWell18-Nov-04 13:17
CodeWell18-Nov-04 13:17 
mmm... Without the missing components (village class, villagefactory,etc.) I can't compile it BUT I see you have a logical problem in the New sub: You receive v (of type Village) and then assign v to a variable 'Village' which has not been declared. The compiler does not seem to complain about this (weird!) but it could explain your problem as it usually not a good idea to name variables the same as classes (specially if the classes are in the same namespace)

Public Sub New(ByVal v As Village)
Me.New()
Village = v
End Sub

I think you meant to call the variable something else and be of type Village.
This variable is later referred to in the form_load procedure:

If Village Is Nothing Then

I don't know what VB.net does about this comparison but my guess is that it will never return true and you'll skip the code that intializes the (wrongly named) Village variable. Come to think of it I have seen MSAcess (VBA) do funky things if you make this kind of mistake.

Hope this helps.Big Grin | :-D
GeneralVB.NET from XP SP2 to Win2k Pin
StrayGrey8-Nov-04 6:35
StrayGrey8-Nov-04 6:35 
GeneralUrgent Help Needed Vb.Net ReportViewer Pin
partt8-Nov-04 6:09
partt8-Nov-04 6:09 
GeneralJoin Team FreeSoft. Join the team! Pin
Mickiecp8-Nov-04 5:58
Mickiecp8-Nov-04 5:58 
GeneralPDF Woes....Please Help Pin
Mark the Shark8-Nov-04 4:48
Mark the Shark8-Nov-04 4:48 
GeneralRe: PDF Woes....Please Help Pin
CodeWell21-Nov-04 15:02
CodeWell21-Nov-04 15:02 
GeneralRe: PDF Woes....Please Help Pin
Mark the Shark22-Nov-04 1:40
Mark the Shark22-Nov-04 1:40 
GeneralVB.NET, Framesets, refreshing a frame from another frame. Pin
Jerry Walter8-Nov-04 3:51
Jerry Walter8-Nov-04 3:51 
GeneralRe: VB.NET, Framesets, refreshing a frame from another frame. Pin
Dave Kreskowiak8-Nov-04 8:07
mveDave Kreskowiak8-Nov-04 8:07 
Generaldropdown in listview Pin
liddicott8-Nov-04 3:26
liddicott8-Nov-04 3:26 
GeneralRe: dropdown in listview Pin
Tom John9-Nov-04 2:52
Tom John9-Nov-04 2:52 
QuestionSending emails using VB.Net ? Pin
Modern_night8-Nov-04 2:07
Modern_night8-Nov-04 2:07 
AnswerRe: Sending emails using VB.Net ? Pin
Purple Monk8-Nov-04 2:38
Purple Monk8-Nov-04 2:38 
GeneralRe: Sending emails using VB.Net ? Pin
Modern_night8-Nov-04 7:23
Modern_night8-Nov-04 7:23 
GeneralRe: Sending emails using VB.Net ? Pin
Modern_night10-Nov-04 14:18
Modern_night10-Nov-04 14:18 
GeneralOpen My Documents Pin
kellydanielc8-Nov-04 0:29
kellydanielc8-Nov-04 0:29 
GeneralRe: Open My Documents Pin
Purple Monk8-Nov-04 1:48
Purple Monk8-Nov-04 1:48 
GeneralRe: Open My Documents Pin
Anonymous8-Nov-04 12:46
Anonymous8-Nov-04 12:46 

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.