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

[VB2010] Program already running

I want my program to be single-instance. So my goal is to detect if the program (installed in the x86 Program Files folder) is already running and inform of the fact with a message the PC user. The...

View Article


Vb net and excel dde

I need help figuring out a way to link a vbnet textbox or a label to a continuously changing value in an excel spreadsheet. The value in excel is continuously being updated through a DDE link from a...

View Article


[RESOLVED] Simply set pixel at position 0,0 to red, what's going wrong?

I am simply trying to set the pixel at 0,0 to the color red. Code: Dim newPic As System.Drawing.Bitmap newPic.SetPixel(0, 0, Color.Red) Afterwards, I want this to display on a picturebox. Code:...

View Article

[RESOLVED] How can I print a byte array to a textbox?

I have Dim b(10) as byte and I am having trouble using .ToString, to display it in a textbox. What can I do to print the byte array to a textbox?

View Article

DataGridView Forecolor Changes when Row is Deleted

I've got a list in a datagridview with two columns. The first column has a list of items, and the second has red X's. When the user clicks the red x in the second column, it will remove that row. For...

View Article


[RESOLVED] DataGridView CellValuePushed

hello, i have a datagridview that i create during runtime, to summarize some datagridviews totally 2 columns and 8 rows are created inside a loop and i insert values to datagridview.rows(i).cells(j)...

View Article

Image may be NSFW.
Clik here to view.

VS 2012 Stack Overflow in a game that plays itself

So I've been developing an american football game. In the game, the offense chooses a type of play, the defense chooses a play, then the code takes over. My problem is that when the computer is calling...

View Article

Image may be NSFW.
Clik here to view.

Detect rectangle in image

Hello, I would detect the rectangle in image like image in attachments usually i use this below code in do that also you can check on full example in attachments. Code: Private Function...

View Article


Cannot Set object for ListBox

Hi everybody. I have an application that uses VBA in Excel to access values in ComboBox and ListBox. Here is the code for ComboBox: Code: Dim myCB As ComboBox Set myCB = UserForm1.ComboBox1 Then I have...

View Article


VS 2010 Reading and Writing to my .ini file

hi, i'll post the reading problem later, rite now i have an error on writing to .ini file, here's my code: Code: Imports System Imports System.Xml Public Class Editor     Private Sub Editor_Load(ByVal...

View Article

Capturing serial data from Arduino

Hi All! I have made a digital scale using an Arduino Uno. I want the serial data to be sent to a VB.Net app. All I want to capture is a single number of type double. That would be the weight of the...

View Article

Excel Cell Contents in VBA expressino

As I am sure will become apparent, I am new to Visual Basic. I'm trying to change the name of an Excel Sheet identified by the value in a particular spreadsheet cell to a name that I get from the user....

View Article

VS 2010 How to make a richtextbox to display a selected part of a .rtf file

Hello everyone, A new problem. I have a rtf file from Word , I load it as string, but I can not find the way to make a richtextbox to display only a part of it . I have been unsuccessfully trying some...

View Article


Image may be NSFW.
Clik here to view.

Selecting Rows Among two DataGridViews

Newbie here! Is it possible if a parents primary key is selected, multi childs tables primary key should also be highlighted/selected. If its possible can you create codes for this. I really dont have...

View Article

how to convert QWERTY to DVORAK?

I have created On Screen Keyboard program and a problem arises, i have designed the UI according to QWERTY layout, now a user report that he is using DVORAK layou but the program not show it. Let's...

View Article


The IAsyncResult was not returend from corresponding asychnonous method on...

The IAsyncResult was not returend from corresponding asychnonous method on this class. Why do I get this exception?... I think everything's alright on my code. thanks VB Code: Imports...

View Article

Converting each letter in a sentence to a different number?

Hey guys, so I'm looking at developing a program where the user enters a sentence and clicks the button and behind the scenes the program uses matrices to encrypt the sentence. It will also decode any...

View Article


Are there times when WindowsForm is better than WPF?

I just started to read about VB.net 2012. It seems that WPF can do everything that WindowsForm can do. Should VB developers just drop WindowsForm? Are there times when WindowsForm is better than WPF?

View Article

[RESOLVED] [VB2010] - using a const and numbers in a variable\enum

i need 1 variable type\enum that have the Automatic const(keyword) and accept numbers too. how can i do these? varName=Automatic or varName=1000 how can do these? see these enum: Code: Private Enum...

View Article

How do you add text to the bottom of a listbox

Sorry i wont figure out how to add a grand total to the end of my list of all the amounts. Code: Public Class Form1     Structure Clerk         Dim ClerkID As String         Dim DOS As String...

View Article
Browsing all 27201 articles
Browse latest View live


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