VS 2010 Convert VBA Outlook GetDefaultFolder code
I am attempting to convert vba to vb.net. What is the syntax to convert the following code? Current vba: Code: oCalendar = Application.Session.GetDefaultFolder(olFolderCalendar) My attemp vb.net :...
View Articlexsl transformations - Why isn't value-of finding anything
Hi Guys Can anyone see what I'm doing wrong here because I'm stumped? I'm trying to teach myself xsl transformations and have been using W3Schools here. I've got a setup that I think should work but...
View ArticleSimple Date formatting issue
I have a button that takes the date in a text box and adds 7 days Code: AirDate.Text = Format(datAir.AddDays(7).ToString, "Short Date") it works however it will format it in this 12/1/2013 where i want...
View Article[RESOLVED] trying to get the smallest number from an array always return "0"
I am writing a dice roller program with VB 2010 express that rolls many different types of dice and up to 15 of each type. I currently have 4 options on for the program. Choose how many dice, Choose...
View ArticleFind all available windows by class
Hi! I'm trying to find all windows that have a specific class name. I heard about FindWindowLike, but I tried it and not worked. Anyone have the solution? Thanks anyway.
View ArticleSearch DGV for date then launch url
I have a dgv that I need a button to search each row in a column for today's date or past date and for each one that is true launch the url that is in column 7. Heres the code i have tried but I am...
View ArticleVS 2010 Timer ?
Hi all, New to this site - so hope I can be as precise as possible with my question : Is it possible to run the timer constantly whilst changing forms e.g somehow run it as a background process....
View ArticleAccess custom sub on user control from another form
I'm trying to access a custom sub written within a user control. For instance: Code: Private Sub WebCoreShutdown() End Sub A button is clicked on a form, and I want the WebCoreShutdown() to fire when a...
View Article[RESOLVED] Check if list has been modified
I'm trying to basically make a FlowLayoutPanel only accept a custom control that I've created that inherits a Button. So I've Shadowed the Controls property and I've created my own property, but...
View ArticleVS 2010 How to delete a row in a DataTable where Column "Date_ID" = 29
Good afternoon, I am having an issue and i'm sure someone here will be kind enough to help. I have a DataTable called dtHolidays that has the following table: HOLIDAY_ID, HOLIDAY_DATE, HOLIDAY_NAME 24...
View ArticlePropertyGrid edit custom structure
I have the following Structure Code: Public Structure BorderColors Public Top As Color Public Right As Color Public Bottom As Color Public Left As Color...
View ArticleVS 2012 Is having my email password in sourcecode dangerous?
I am making a game with vb.net that occasionally sends me stats of peoples progress within the game by email. My email password is within the code but invisible to the end user. The gmail account is...
View ArticleHow to start Timer from Backgroundworker?
PHP Code: Public Class Form1 Dim number_of_ticks As Integer = 0 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click BackgroundWorker1.RunWorkerAsync()...
View ArticleCAS policy. Migrating from VB2005 to VB2010
Trying to migrate from 2005 to 2010 and having all kinds of issues. All my apps give me the CAS error and I am stumped. I can't really understand the things i've read about this. Also having issues...
View ArticleHow can I make a BackGroundWorker finish/complete when cancelling it?
I have a form which asks the user for input and then turns this into a query, the outcome of which is presented on the screen. To make it quicker, a lot of querying can be beforehand and stored in a...
View ArticleVS 2010 Decrease a variable
I have 2 textboxes: txtNumber and txtDigit When I enter a number in txtNumber, an equation calculates a variable that I call intResult For example, if I enter 100 in txtNumber, then intResult will...
View ArticleVS 2008 Crystal Report fillds not showing decimals
Im sending Datagridview records to crystal report by data table and im using this code. Dim ds As New DataTable With ds .Columns.Add("Naziv") .Columns.Add("Ed.Mera") .Columns.Add("Kolicina")...
View Article[RESOLVED] Unable to read complete data from server
Hi, totally new to Visual Basic programming here. I have a program (compiled from a .php script of all things) that reads a string of data from a server. This data is 106 bytes in length, starts with...
View ArticleTwo conditions inside an If Statement
I am trying to validate input in this VB program that calculates football stats. If both boxes are empty when a user clicks Update Stats, it should display a message box. However, with this code it...
View Article