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

[vb2010] Problems setting a Form of mine owned from external window

With this simple code: Code:   'note: in NativeMethods Class     <DllImport("user32.dll")> _     Friend Shared Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal...

View Article


Copying Bitmap onto Another Bitmap

I am copying part of one Bitmap onto another Bitmap, however when I do this, it prints the bitmap in a large size and at a higher position. It looks like a ratio difference between the two objects is...

View Article


VS 2008 I don't know what is available!

Earlier today I wanted to know how to sort and array. The problem was that I didn't know there was an object called array with the method of sort. What I would like is to buy a book or find online, all...

View Article

VS 2010 Grabbing a programs version.

Okay so i'm making a program that needs to call the version number from Minecraft and display it in a text box. How would i be able to do this? Is it possible? Thanks.

View Article

How to send Text from TextBox only "ONCE", using a Timer! Instead of Flooding?

Hello everyone! I am going to ask newbie question.... I am creating a Text-Sender, using a Timer to send text to another window. But It keeps flooding the page totally! I only need to send the TEXT...

View Article


VS 2010 How to define If string contains something.

By the title you may be thinking of .Contains. But that will not work here. I need to define If the Path that I have leads to .Ink or directly to .Exe file. If I try Path.Contains(".Ink"), It wont work...

View Article

VS 2010 [RESOLVED] Background color

I have an array holding certain color values (ie whitesmoke, samon etc) which is obtained from an external text file. A bit like a style sheet. anyway, these values are loaded into an array and used to...

View Article

Image may be NSFW.
Clik here to view.

VS 2010 RPC server unavailable

Hi? I was trying to print LV contents and I used the code from here to accomplish what I want but stumbled into another error, that Win32Exception was unhandled. The error is "The RPC server is...

View Article


VS 2010 Trouble getting data from database

Hey Everyone I've written a bit of code that is meant to compare a username textbox and password textbox against an entry in a database. However when I type the username and password and click the ok...

View Article


A better class definition

Hi, I am new to VB.NEt and am creating a program where I have defined a generic class as follows: VB Code: Class MyDataBase(of T)Implements IEnumerable(Of  StampedVersion) public Class...

View Article

VS 2010 Open new form close current form

What is the correct way to close a window please? I've been using Code: close() some people tell me this is the wrong way to do it. Others said Code: Use Form1.Show() Me.Hide() or Code: Me.Hide instead...

View Article

VS 2008 regex for numbers only

I'm looking for the regex to extract the numbers only for these strings: 2 new 94 new [0-9].*[0-9] works for 2 or more numerical digits but not for single digits.

View Article

VS 2010 [RESOLVED] Help with Dim.

Please, tell me that there is a way to make something like this? Code: Dim PicBox as New PictureBox1 Because I have 16 Picture Boxes and I really dont want to copy this 16 times and changin...

View Article


VS 2010 [RESOLVED] Help with extracting a team name from a line of text

I wrote a program that extracts information from posted track and field results. Here is an example: Event 10 55 Meter Hurdles 11-12 Division Boys...

View Article

[HELP] Text to pixels and pixels to text conversion

Hey guys, I have a working function for converting text into pixels but I'm having trouble converting the pixels back to text. Reason for that is that I did copy this function off of another forum. The...

View Article


Search Drive for Video_TS folders...

I was able to do this in VB6 but for the life of me I can't figure out a simple way to do this with VBnet. I just want to get a list of the Foldername & Path of any Video_TS (DVD movies) on the...

View Article

Creating a transparent background in BMP or GIF images

I'm working on a program that creates images from AutoCAD drawings. I can create bmp images with a white background. However, I need to convert the images to gif, with a transparent background. I tried...

View Article


A reference was created to embedded interop assembly

Code: Warning        1        A reference was created to embedded interop assembly 'MSDATASRC' because of an indirect reference to that assembly from assembly 'AxInterop.MSChart20Lib'. Consider...

View Article

RoundDown Function

Code: Public Class Form1     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load     End Sub     Public Function RoundDown(ByVal InputValue As Double) As Double         Try...

View Article

Image may be NSFW.
Clik here to view.

PictureBox Swap Out.

Hey guys and gals I have been trying to solve a problem with a program that I am creating for about 48 hours now and am Well "Stumped" I'm hoping that someone can share their logic on how to solve...

View Article
Browsing all 27554 articles
Browse latest View live


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