VS 2010 classes
should i use a class to save and update my database? the database has a lot of fields and i want to keep everything in one place so i don't have to change code multiple times when i change my database...
View Articleread text into array
So im new to coding and basically whatim trying to do is Read my text file AppList.txt and parse it based on seperators. My current code is the following Code: Dim a As String =...
View ArticleVS 2010 [RESOLVED] Set datarow rowstate after table.ImportRow()
Hi Guys, I drag and drop datarows from a grid to a treeview. Then I try to change the rowstate of the dropped rows. Code: Private Sub gclevels_DragDrop(sender As Object, e As DragEventArgs) Handles...
View ArticleSending/receiving SMS messages from VB.NET
I wanted to implement SMS functionality into a Visual Basic.NET program. Then found a page (http://www.ozekisms.com/index.php?owpn=585) that offers two options to achieve this functionality. As a...
View ArticleVS 2010 disable button column's cell
Hi I have four columns col1 - gridveiwcol col2 - gridveiwcol col3 - gridveiwcol col4 - buttoncol based on the col1's value im disabling or enabling the remaining columns. It works fine for col2,col3 if...
View ArticleHow to stop firing Leave event twice?
I am cheking validity of data in leave event. If data is not OK I ask user to change it or cancel it and move on. But when user select to move on to another control same event fires again. How do I...
View ArticleVS 2010 [RESOLVED] Building a Where Clause with AND/OR
I am trying to make a filter system for a gridview and I have a DDL that gets column names from my database, and a text box that the user enters values into. You then click add to put it in the list...
View ArticleVS 2010 Very weird "data gone missing and then it's back" problem.
Hi! I have a code that uses SQL query to filter data in gridview. Using MS Access 2003 database. The query is running fine and filters data well. But sometimes when I execute the code one row goes...
View Articledata binding?
i have an access database with about 50 or so fields that is on my server. my app has lots of text boxes, check boxes, combo boxes and radio buttons that handle all the data. i save the data like this:...
View ArticleBoyer-Moore byte array search
Hi, I found the Boyer-Moore search algorithm below to search for a byte pattern in byte arrays. The byte arrays are between 10MB and 50MB. The code works fine, but now I need to search for a byte...
View ArticleVS 2008 Movable box for custom control?
Hi...... How i can to display move box for custom control at design time. (show image) Thanks....
View ArticleVS 2010 Random Line from Text file to String
Alright so I've googled for a couple hours trying to find this and I can't seem to get exactly what I'm looking for. For this example, I'm trying to display a random picture. I have a text file that I...
View ArticleVS 2008 place a picture on the clipboard
So, heres the deal. I am writing a program and a portion of it takes a .hgl file and converts it to a .emf file and then loads it in a picture box, which is easy stuff. I then want to delete the...
View ArticleWhat is a predicate?
I've seen the term Predicate being used in various functions in .Net but what does that really mean?
View Articlepass parameter to load event
What is the best way to pass a parameter from form1 to form2?
View ArticleVS 2008 COMBOBOX Update Replication
Hello I am completely stumped. I have a combo box which when physically updated calls a sub routine, which recalls some graphics into a picture box. The code in the Combo box updated property is Code:...
View ArticleVS 2010 vb forms with keydown on keyboard problem.
hi to all vb forums member! im a newbee in vb.net 2010 programming, and i just want to ask some help from you guys, i had this project sending serial commands via comport when pressing a keyboard key,...
View Articlehow to call MouseDown event?
Code: Private Sub lblLogin_MouseDown(sender As Object, e As MouseEventArgs) If e.Button = MouseButtons.Left Then '''Do the login End If End Sub Private Sub txtPword_KeyPress(sender As...
View Articlepicture box background after activate
i have a simple project with 1 form that has a picturebox. its color in its properties is green. i want to change the color to black by putting in form_activated the following Dim gu As Graphics gu =...
View ArticleVS 2010 I JUST CAN NOT GET .swf FILE PLAYED
Well my friends, here once again. 4th quarter, score: VS 51 Me 27, second down and a .swf file to be played! The last four days I have been trying to get a .swf file played from app. I have writen...
View Article