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

VS 2010 How to efficiently set values in a 2D array

Hello, I've been juggling with this problem for quite a while now... I'm working with 2D arrays in Console, trying to make games where you move around a player character by pressing arrow keys to...

View Article


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 Article


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

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

Insert 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...

View Article


VS 2010 Sorting design code via date

I am using VS2012 vb.net and having to write a document associated with my application. Is it possible to 'arrange' or 'sort' code that has been done at design time. I am wanting to log the sequential...

View Article

VS 2005 Persistent Objects in classes

I don't know if i'm doing this right, I have a class that makes a new System.Net.WebClient() as a public varible. If I use that class in multiple scripts, will it keep the same client initialized...

View Article

VS 2010 Richtextbox selected text fontstyle

In my Rtf Editor I can toggle bold, Italic, and underline. I works fine. Here is the code. Code:   With Me.rtbNotes                 If btnBold.Checked Then                     .SelectionFont = New...

View Article


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


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

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

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

vb.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 Article


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

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


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

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


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

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

Row 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 Article
Browsing all 27382 articles
Browse latest View live


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