Class Functions
So my assignment this week seems fairly easy. We have to create a cash register that adds and subtract from the balance and doesn't permit negative amounts. We aso have to use a class called...
View ArticleVS 2012 Need help finding a control
I am looking for a *Panel that I can add pictureboxes to. I want it to have vertical scrolling and a SelectedItem property / equivalent. I was using a TableLayoutPanel but I couldn't figure out an easy...
View ArticleVS 2012 Get Data From DB, Sort From Smallest To Largest
In my dataset at location dshistory.Tables("History").Rows(x).Item(0) I record names and at location dshistory.Tables("History").Rows(x).Item(4) I want to build a form that displays rankings but I'm...
View ArticleVS 2010 Get IP's from hostnames in a domain..
I been looking through hundreds of websites and tried everything I know, just to get IP's for the hostnames I collect using this code: Code: Public Function GetComputers() As String Dim...
View ArticleVS 2008 [RESOLVED] How do I dynamically create a toolstrip drop down item...
How do i dynamically create a toolstrip dropdown item which is a separator I am using the Following Code to Create the drop down Items: Dim NewItem As New System.Windows.Forms.ToolStripMenuItem...
View ArticleInteresting Problem with PreFilterMessage
I have a form that prefilters some messages by implementing the IMessageFilter interface and implementing this method: System.Windows.Forms.IMessageFilter.PreFilterMessage This thing is beginning to...
View ArticleVS 2012 Open Text Files Without Permission
How To Open Text Files Without Permission: [Working 2013] Imports System.IO Public Class Form1 Public Sub opentext(ByVal txt As String) Try Dim sr As StreamReader = New StreamReader(txt) r1.Text =...
View ArticleVS 2012 Open Text Files Without Permission
How To Open Text Files Without Permission: [Working 2013] Code: Imports System.IO Public Class Form1 Public Sub opentext(ByVal txt As String) Try Dim sr As StreamReader = New...
View ArticleVS 2010 display same form multiple times on the screen
Hi folks. I have a credit card sized form that is currently displaying in the centre of the screen. I also want to display the same form at the edges of the screen by docking. So the form will be...
View ArticleVS 2010 License Exam Help
im getting a error in my code saying Result is not declared or its private Dim strGrades() As String = {"B", "D", "A", "A", "C", "A", "B", "A", "C", "D", "B", "C", "D", "A", "D", "C", "C", "B", "D",...
View ArticleNeed encryption without using System.security.cryptography
So, I have a program that encrypts the users password, then unencrypts it when used. I used Poly RC4 but anti viruses seem to think it is a virus -_-. Does anyone know a good way to securely encrypt a...
View ArticleVS 2012 Menu Search option
I have a menu in an application that has a lot of content, is there such a thing to have a search box that can locate a word in the menu, e.g. If I was looking for billing and typed in bill, it would...
View ArticleVS 2012 Correct Command to Print Datagridview
When I select a portion of the Datagridview what is the correct command to print the selection? I was looking at Code: DataGridViewPrinter.StartPrint(DataGridView, False, True, "List A", "List B")...
View Articleperson class
hi I have a person class Where I store the name, the city, how many sons and daughter he have. But I have a groupbox with 3 radio buttons not married , married and lives alone. How can I store then in...
View Article[RESOLVED] Determining the End of line....
I have a code here that selects a particular string inside a richtextbox Dim a As String Dim b As String Dim c As String a = TextBox1.Text b = InStr(TextBox2.Text, a) If b Then TextBox2.SelectionStart...
View ArticleVS 2010 SendKeys and Reading Textbox file line by line
I'm trying to read a textfile line by line, because each line is a data for mi program (integer numbers). After reading each number, I want to add the number to a textbox and then send the "Enter" key...
View Articlebrackets around numbers problem
hi i have this code that goes to an excel file look or a word and copies the value i want here is the code Code: oRng = oWSSheet.Cells.Find("UNREALIZED GAIN - FVTPL_HFT_FT (SHORT) (19611104)", , _...
View ArticleVS 2010 Treeview Sort and Group Nodes
Hello All, I have Extended treeview, in order to have Multiselect. I also have Extended three different types of nodes Group, Project and ProjectDirectory from Treenode. The Hirarchy is like Bellow...
View ArticleVS 2008 Pass Exception Message to label on another page
Im wondering once I catch an exception, how can I use the exception message in another page? How can I pass this exception message into a label on another page? In order so I can have the exception...
View ArticleChanging Fonts at Runtime.
Hi, I'd like an opinion on the following code... vb.net Code: Private Sub Face(ByVal a As Integer) 'Style 0 regular, 1 Bold, 2 Italic, 3 Bold Italic. If a = 1 Or a = 2 Then...
View Article