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

[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

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

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

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


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

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

Clicking Print with VS 2010

Hey guys, I have a little program that prints a flash graphic from a page. However i have a problem finaliing the print and sending it to the printer. When i click print it sends me to the usual...

View Article


Image may be NSFW.
Clik here to view.

VS 2010 ComboBox Add Item (True, False converting to text)

Hello, I have one table with Name (text), Surname (text), Gender (bit; Male, Female). I want to display this data to ComboBox, so I use this code: Code:         For Each Comb1 In Comb.Table1s...

View Article

problem exporting datgrid values to excel sheet using an array

I am trying to export datagrid values to excel using an array.. I get an error " ComException was unhandled " in the following line: Code: xlWorkSheet.Range( "A1" ).Resize(DataGridView1.Rows.Count,...

View Article

VS 2010 [RESOLVED] BG Worker Dynamic Creation

Hey, I am creating BGwrks dynamically and assigning functions... i have a class worker and i created two functions with two parameters as i have to pass arguments... Inside class i wrote function to...

View Article
Browsing all 27554 articles
Browse latest View live


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