[RESOLVED] iterating through tabcontrol
this topic has been broached in 2010 but somehow the code does not seem to work and is not recognized by vb. the problem is this I have a form and on this form I place a tabcontrol with 2 tabpages....
View Article[RESOLVED] Percentage Integer Apears
I'm kind of stumped on this one. I have a datatable, and it has 5 columns. Each column is filled with integers. I can't think of a way to get the percentage of how many times that integer appears. For...
View Article[RESOLVED] One-line datatable row creation
I can add a new row to the end of a datatable in one line: Code: MyTable.Rows.Add(FirstValue, SecondValue, etc) But if I want to just create a new row, all the examples I've seen add each field one at...
View ArticleMargin center
Hello to all, is there code for center align text... Code: e.Graphics.DrawString(TextBox1.Text, font1, Brushes.Yellow, X, Y) so X is pixels from left to right of paper, Y is from top to bootom. I try...
View ArticleVS 2010 How to find window and set focus on a specific part of it?
So i'm trying to set focus on a specific part of a window. After i did a little search, i found the following code.. Code: Private Declare Function FindWindow _ Lib "user32" _ Alias...
View ArticleWhy can't I change the size of my Picturebox at runtime ?
Hi, I would like to be able to re-size a picturebox at run time, so that it stays in proportion with the rest of the form if the user changes the size of the form. vb.net Code: Private Sub...
View ArticleVS 2010 Copy Display from DataGridView1 to TextBox1 separating it with '; '
Hello. I want to copy Display text from DataGridView1 to TextBox1 separating it with '; ' My DataGridViev1 code: Code: Private Sub Button2_Click(sender As Object, e As EventArgs) Handles...
View Articlehow to loop through items (columns) of a dataset row
i can loop through the rows in a dataset using the code below. But how can i loop through the individual items of the same row. its a quiz application in which i want the radio button text in group...
View ArticleVS 2010 Remembering Circle locations during picturebox1.invalidate
Picturebox1.Invalidate gets called a lot in my program and it makes my circles disappear. There is never more than 3 circles drawn at one time. I was thinking the easiest and less expensive way of...
View Articlecant save with folderbrowsedialog
hey all ;) i have this application which is supposed to let me save items, but it doesnt save.. the idea is simple, i have a few pictureboxes(not fixed amount). They all have Tags with their name i.e....
View ArticleRadio Buttons not working when extracting to .txt
Ok so i have to make a car rental application for a programming assignment and we have to use radio buttons that represent small,medium and large and correspond with the values for those sizes, etc(...
View ArticleOwner form closes unexpectedly
I have several forms who have their ownership set to another form. They can be launched through buttons on the owner form. However, if I have more than one open, when I close the first one created, the...
View ArticleOpening an excel file and make a macro run with Virtual Basic
Hi, Has anyone got an idea or a code how to open an excel file that contains an macro and execute that macro? So far I got to the point I can open the excel file with a code but no idea how to run the...
View ArticleCan someone please help me with this code!!! ***PLEASE HELP ME - REALLY NEED...
Hi, this is what I have to do... 1. read customer details from Customer file (e.g. record would be "John,Smith,0422123456,Yes") 2. display list of customers in list box 3. add new customer to the list...
View ArticleVS 2008 Rich Text Box endless loop
I found this code and customized it specifically for my application. All it does is change all The letter F to red in a richtextbox. It works in most cases but in certain instances, it gets thrown in...
View ArticleVS 2012 How to stop new line overwriting all existing text in text file?
When I add a new record to the Listbox from textboxes - it replaces my original text in the text file. :confused: Any ideas on why? This is what I've got... Code: Private Sub cmdAdd_Click(sender As...
View ArticleVS 2010 Need Help!
Hey, I need help, can someone tell me how to multiply the amount of characters, I'm actually at a loss of words, let me try and show you the code that I need help with. SendKeys.Send(TextBox1.Text)...
View ArticleVS 2010 What is this error?? :\ I can't seem to fix it.
ERROR: Code: System.InvalidOperationException was unhandled Message=An error occurred creating the form. See Exception.InnerException for details. The error is: 'phrase' cannot be an empty string....
View ArticleIs there better ways to write this logic?
Hi i cant help but wander, am i doing this right!! i have a feeling im stuck in my old VB6 way of writing functions and find it time consuming coming up with logic all the time a little background on...
View ArticleVS 2010 Affecting unfocused applications
Hello, I was wondering if there's any way to target a program while not having the program selected? I'd like to send keypresses to a program while I'm doing something in another program, If it's not...
View Article