VB noob here, writing a simple program to add records to an access database. I have a data connection and form setup, but when the program loads it always pulls in the first record into the editor boxes. How can I get it to bring these boxes up as blank?
>>4
Don't think it works that way when they are bound to columns in a table. I figured out a way though. I called <table name>bindingnavigator.addnewitem.performclick(). This seems to do the trick.
What I need now is to be able to call <table name>bindingnavigator.saveitem.enabled = true when I click the add record button (<tablename>bindingnavigator.addnewitem.performclick()). Any ideas?
Draw a data-flow diagram, this well help your needs.
Name:
Anonymous2009-02-18 0:20
Faggot, Visual Studio and VB.Net were developed by paid professionals. So you get better shit than poorly edited text documents, wiki pages and /prog/ posts.
There is a fuck ton of documentation and tutorials and articles and videos on MSDN.
If, after watching the video that goes over exactly the simple shit you are trying to do, and you still don't understand; tell your nigger mother and jewslim father goodbye because you will need to kill yourself.
Name:
Anonymous2009-02-18 1:25
@visual_basics = VisualBasic.find(:all)
Name:
Anonymous2009-02-18 9:00
>>1
Well, there's your problem. You're doing it in VB.
>>12
While Microsoft does indeed maintain excellent (and mostly freely accessibly) documentation of most of their products, doesn't mean VB is not a horrible language. You'll find that they offer examples in alternative languages for things which apply to VB.net (such as C#). VB.net's syntax is gay, and I don't see why would anyone prefer it over C#'s.
Because case sensitivity is far fags. Only a fag would have value and Value in the same scope to mean different things.
Semicolons + new line after every fucking line. 98% of all statements are already on one line. While the newline isn't required, it is practical. So you have 2 character to make a new statement, making on faggishly redundant.
>>16 dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim dim
>>15
I started programming with C so I share the same sentiment, but I guess it depends on what language you started with and which syntax you are more accustomed to.
Name:
Anonymous2009-02-18 15:56
dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum dim sum
Name:
Anonymous2009-02-18 17:01
>>16
Having to use _ to continue a line in VB.net is far worse than a semicolon at the end of each line, which is more visible and doesn't require holding the shift key to type. Also, lol @ choking on any whitespace trailing an underscore.