blah blah blah is here! blah blah » Close

0
votes
1 answers

Objects that reference each other?

The database that we are being forced to work with has a Driver table and a Vehicle table. Every driver has a specific Vehicle, and every Vehicle has a specific driver. We are setting up our Vehicle class to have a Driver property, and our ...

0
votes
1 answers

Adding a web reference to a windows application

I have a web service that is hosted on my computer; but there's a public-facing proxy that points to it... because I am deploying my windows app to other people, I want to reference the public-facing URL... however, when I go to add a web r ...

0
votes
1 answers

XML files in bin folder

I am using the EnterpriseLibrary for data access... when I compile, in addition to the expected DLLs, I get Microsoft.Practices.EnterpriseLibrary.Common.xml and Microsoft.Practices.EnterpriseLibrary.Data.xml in my bin folder. What are these ...

0
votes
1 answers

Using OleDB with memorystream

Hi everyone, I know how to use OleDB to open up a CSV file and treat it like a database table, but I have a method that is passed a memorystream, which represents the byte array of a CSV file, and I need to use OleDB to read from that. How ...

0
votes
1 answers

Virtual and sealed methods

It seems that in order to override a method, it must be marked virtual. If a method cannot be overridden unless marked virtual, what does marking a method as sealed do? Isn't that supposed to prevent a method from being overridden?

0
votes
1 answers

Declaring an enum

I have a basic question about enum syntax... I have seen various things used; and I am wondering if there is any difference at all: enum sample1 { win, lose } enum sample2 { win, lose, } enum sample3 { win, lose }; enum samp ...

0
votes
1 answers

Windows forms memory usage issue

Hi, I have an app that displays photos... The filesize of each photo is about 79K, but my app is taking up an additional 25 megs for each PictureBox it uses. Is this normal behavior? Seems like something's wrong for it to use up 25 megs to ...

0
votes
1 answers

Windows Forms - closing startup form

Hi, I have a simple windows forms application that has a little welcome screen with 2 buttons, to allow the user to preform 1 of 2 functions. Each button causes a different form to open, where the user can do that function. But if I close t ...

0
votes
1 answers

Naming conventions / coding standards

Hi, quick question about naming local variables... is it common practice to name a local variable the same as the class it is an instance of; except in lowercase? For example, I often do this: Employee employee = new Employee(); Are there ...

Feedback