Quantcast
Channel: VBForums - Visual Basic .NET
Browsing all 27196 articles
Browse latest View live
↧

VS 2012 XDocument - Object reference not set to an instance of an object

Hi, got a little problem with XDocument. I use XDocument to get a value from an XML document. Everything is working fine but I get an error (Object reference not set to an instance of an object) when I...

View Article


VS 2010 [RESOLVED] Files and arrays

I have a file named patients.txt containing strings of data. IE: Code: Alan Jackson 123 Main St 123-4567 Anthem A123 $200.00 $100.00 $100.00 Dr. Smith 5' 6" 179 27 120/97 False 04-09-12 1 Elise Farawar...

View Article


Image may be NSFW.
Clik here to view.

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 Article

VS 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 Article

[RESOLVED] Forcing users to enable macros

Hello, I found this nifty method to force users to enable macros and so far it's working great and was very easy to implement. See method here: http://www.vbaexpress.com/kb/getarticle.php?kb_id=379 The...

View Article


[RESOLVED] Macro to close workbook without saving

I have in Module1: Code: Sub Auto_Open()     If vbYes <> MsgBox("Message", vbYesNo + vbExclamation, "User Agreement Disclaimer") Then         ThisWorkbook.Close False     End If End Sub I am also...

View Article

Interesting 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 Article

VS 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 Article


VS 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 Article


VS 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 Article

VS 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 Article

Need 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 Article

VS 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 Article


VS 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 Article

person 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


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 Article

VS 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 Article


brackets 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 Article

VS 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 Article

How to use Getpixel

I have a program where i use getpixel to see what color a specific point is, and if it's the correct color a messagebox will pop up. For some reason, when i watch the program, every time it checks, the...

View Article
Browsing all 27196 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>