Fractional part problem
How can i change 14.66666666 to 14.66 i am using like this Dim sum As Double Label6.Text = sum thankyou
View Articledetails section in crystal reports printing twice vb 2010.please help me
i am printing a crystal report but the detail section printing twice this is my problem how to solve this problem please help. i am using vs 2010 and crystal reports for vs 2010
View ArticleVS 2008 How to check/uncheck ContextMenuItem by index
Hello, I have to check/uncheck some items (8-13) by index in ContextMenuStrip based on boolean value. What I try is: Code: ContextMenuStrip1.Items(8).Checked = 0 - value ... but this don't references...
View ArticleInsert code snippets
The "VB.NET Example Code & Hints you may not know" post is closed for some reason. Maybe the moderators can suggest where to put this :D It didn't attach very well... Attached Images Snippets.pdf...
View ArticleVS 2005 How to create database connection, which is used on every form.
Hi. I've using database connection in vb.net on every form separately. But its very lengthy and not good way. Is there any way, in which i create the connection in one place and that can be used on...
View ArticleVS 2008 declare function syntax error
Hello need help with this : Code: Private Function Uframe(ByVal a() As List(of Byte()) As list(of byte()) For u As Integer = 0 To a.Count - 1 Dim bOutBuffer(8) As Byte...
View ArticleDeclare a variable outside o Subroutine or Function
Simple question: How do you declare a variable outside o Subroutine or Function? Code: Public Class Form1 addd as double="" Private Sub Button1_Click(sender As System.Object, e As...
View ArticleVS 2010 Calculate no. of columns and rows that can be drawn on an PrintDocument
Hello! I need to print barcode labels, and for the same i need to calculate the max no. of columns and rows that would fit within the MarginBounds of the PrintDocument. Yes i could simply divide the...
View ArticleVB 2010 Express: Sending Data via Web Service
I'm working on a project which will be sending a data stream to a remote web server in the form of an encoded URL. The web gurus showed me their suggested method which uses something like this: Code:...
View ArticleVS 2010 Disable autocomplete on a combobox
Hello every one, I am new here and just jumped from VBA to VB.2010 (but was earlier VB6 untill I found Access programming environment lovely and now am back) I have appreciated the concept of managed...
View Articlevb.net and removable memory ( usb flash memory)....??
Hello every one ..... Dears i just want to know if there is a simple way to make my vb.net project recognize a specific USB flash memory (i mean by its name ) something like " zeus( f: ) " or it has...
View ArticleParameter passing - how many values.
Hi there I have a class which calls a form. As the form evolves I am feeding it with more and more values from the class The main configuration routine is now receiving 22 parameters, mixture of Longs,...
View ArticleHow to restart a console application completely without leaving it?
Hello, first post here :) I'm new to VB, and I started it for an A-level at my school. I'm learning about IF statements and I'm doing a simple password strength program to find it. The ending of what i...
View ArticleVS 2010 Searching in SQL Server 2008 through text box
Hi everyone, I have a text box and I want to search it in my sql server table, the search should be like this If I enter text like NISSAN, ADF09, PT-90991 All text before commas should search in all...
View ArticleVS 2010 How do I install a Service?
I am currently atempting to understand this source code which can be downloaded here. http://localhostr.com/GdfwmlBynC2X The source code is of chat program that uses sockets. Before I want to study the...
View ArticleVS 2010 Right angel / Top down shooter
Hello, I want to make a top down shooter in visual basic but I am not sure how to make the character follow the mouse. I want the red eyes to follow the mouse, does anyone know how? -RunarM
View ArticleFile Permissions Error using load balancers
Hello everyone, I have a problem with logging. I have a class I use to log events, in my ASP.net application, to a text file. The class seems to work fine. Complications arise, though, because we are...
View ArticleStyle question: Import a namespace or fully-qualify a reference?
I noticed that in some compiler-generated code (e.g. that generated for handling a database table) object references tend to be fully qualified (e.g. Global.System.Xml.XmlTextReader rather than...
View ArticleRow level locking using OLEDB
Below code is to update a value of one row in MS-ACCESS db. If i use the same code(sqldb) to update sql table , keeping break point on '.commit' then no other connection(user) can read or update the...
View ArticleVS 2010 Re-writing arrays
What I'm trying to do is re-write an array into a list box, changing only a specific index in the array. I know how I would do this in Java, using a for loop and an if statement to change the specific...
View Article