Solarum – Information For Everyone

Archive for the ‘Visual Basic’ Category

Sep
11

Visual Basic dot NET – Making a button the form default

Here is a quick tip for any and all of you VB.NET heads out there.  Need to make a button on your form the default one to fire off when you hit the enter key (while that form has focus naturally)?  In the old days, it was a button property, and now it has become a form property.  It actually kind of makes sense when you think about it.  I mean, you can only have one default button on a form, right?  Anyway, go to the properties of the form in question and look for an option called “AcceptButton”.  This will be a drop down list comprised of all the buttons that have been placed on the form.  Pick the one you want as the default and there you have it, your button is ready to go!  Hope that helps …

Jul
7

See If A Directory Exists In Visual Basic

Hi there, how about a close cousin to yesterdays Visual Basic function?  In a previous post we showed you a function that will tell you whether or not a file does indeed exist.  Well, here is another similar function, but it tells you whether or not a directory exists.  This is another handy tool for all you code monkeys out there.  It works much the same way, check it out below:

Read the rest of this entry »

Jul
5

See if a file exists in Visual Basic

Here is a handy little tip (and function) for all you Visual Basic developers out there.  I use this quite often, it’s useful to see if whatever file you are working with or looking for exists before you start trying to access it.  So, here we have a nice little function you can drop into a module and call from anywhere when you need it.

(Need to do the same for a directory? That function is here!)

Check it out:

Read the rest of this entry »

Search

Pages

Articles