VS 2012 Removing the Scrollbar from a TabControl.
I am creating a custom-drawn TabControl (overriding OnPaint) and would like to know how I could remove (or hide) the scrollbar so I may add my own, custom scrollbar. I have tried the three methods...
View ArticleHow to determine the number of rows returned from a Filter instruction in vb...
Using a SQL Server 2008 Express database and VB 2010 Express. I am using the following instruction to search for a duplicate record. ManagersTableBindingSource.Filter = ("MgrLN" = PubMgrLastName And...
View Article[RESOLVED] WaitForPageLoad OR wait 3 seconds
Hi all, I used a wait for page load function in the past, but now it seems to be not working after the website has been updated. Most of the content seems to be loaded, including the source, except for...
View Article[RESOLVED] Radio Button (If/Then) and Hidden Label
Hello, Quick question. I'm coding a program and I want to give the user 1 of two options. When one (default) option is chosen I want a label underneath it to appear and show the description of that...
View ArticleHow to deactivate the main form
I have a form that cannot activate but when pressing its taskbar button, it got the focus, how can i deactivate it so that the focus goes to the previous focused window. Try this code for example 1-...
View ArticleI would like to input hexadecimal numbers in a textbox?
Can I constrain a textbox to take hexadecimal input? 0-9,a-f? or do I have to write a custom function for this. If I have to write one, what would be a good way to do so. I want to use the textbox just...
View Article[RESOLVED] VB 2010 UI Question
Hi. Making a program with multiple forms. I didn't know that when I started my form1. Currently my form1 is the page that needs to be the second page seen - after a user clicks one of two buttons from...
View ArticleCondition in property
hi i have a custom control that have two property one of them is , "inputtype" that user can set it to digits and string another property is "separator" that separate digits (number thousand separator)...
View ArticleVS 2012 Find Smallest TimeSpan in List
In Visual Basic.net, what is the best way to find the smallest TimeSpan value in a list of TimeSpans as well as the Index of the TimeSpan in the List? I know that I can sort the List, but how do I find...
View ArticleHow Do I Read Text/Bytes In A File At A Start Point And A end Point?
Ok Guys I Really Need Your Help So I Need To Be Able To Read bytes/text bytes would be better but Read Them From A File And Start Reading At A Certain Point And Stop Reading At A Certain Point Of The...
View Articleuse date.tryparse for multiple time formats
Hello, I have a piece of code that checks if the userinput is a specific time format. Code: Dim dt1 As DateTime = Date.ParseExact(Me.txtBeginTijd.Text, "HH:mm:ss",...
View Articleassistance reducing amount of code
I'm working an assignment to help with learning creating, saving, reading data from text files. It's also covering setting up Structures too. The book (an intro to VB) gives the form design. My...
View ArticleAccess Databse used across 2 forms - updating database problem
Hi All I have an application here that has 2 forms. Form1 : Select data from database The database is configured on form load and the user selects data in a bound combo box, the valuemember property...
View ArticleVS 2010 [RESOLVED] getWindowList only seems to work with 'unused' arraylist
Hi, I'm controlling a 3rd party app by watching for dialog boxes it brings up and then closing them. Code: Dim arraylistWindows2 As New ArrayList Dim boolDialog_Closed As Boolean...
View ArticleVS 2010 Can DataGridView works like an Excel?
Hi, I got an assignment to create a program that is able to do computation like an Excel. I am thinking of using DataGridView but I have doubt about using it since this is my first time. I read through...
View ArticleVS 2008 Logging in usin WebBrowser, Object reference not set to an instance...
Hi, i am making a log-in program for my website running phpBB3 and style called "0mega" So, i have this code: Code: WebBrowser1.Navigate("http://www.mywebsite.com/ucp.php?mode=login")...
View ArticleVS 2010 Threadpooling, async writing, batch processing.
Hello everyone, I need a little help as I have been away from the VB.net programming world for a few years. Project Scope: When an email arrives in outlook from a specific email address, save any...
View ArticleIdle time, then... VBScript
I am a new system administrator and for one of my servers I am trying to make a script to run in the background. If idle time goes over 2 minutes, without the mouse moving or keystrokes the webpage...
View ArticleHow to Delete a record from a SQL Server Database in VB 2010
Using a SQL Server 2008 Express database and VB 2010 Express and Windows Forms. Coming from VB5. After finding a record or moving to a record in my Managers Table, I want to delete the record displayed...
View ArticleVS 2010 Adding Row in DataGrid
I tried to add row in a datagrid. Below is the code Code: Dim r As DataRow r = Tbl.NewRow() r("ITEM") = "Section 4(a)" Tbl.Rows.Add(r) The error message told that "Input string was not in a correct...
View Article