Making A Message Box?

Jan 16, 2010

I'm an absolute beginner at programming and VB, and I'm starting a course in software development. We were given tutorials to do before the start of the course but I'm having extreme diffictulty with them because they're written for VB 6 and we were told to download VB2008 express since we're using that for the courseI got here? I understand basically what it does, but it gives errors in VB2008 and I can't get the add button to stay greyed out when there's nothing in the name field. I also can't get a message box to pop up when I click Add because 'answer' isn't recognised. I also don't understand what "Following code is entered in the .... event". What's an event, how do I enter it in it?

View 3 Replies


ADVERTISEMENT

Making A Message Box Work - .NET?

Mar 15, 2012

Below is the code I have been working on in VB.NET What basically happens is that when the user presses the calculate pay button, a message box is supposed to appear with all of the information in it, however the error comes up with: 'InvalidCastException: Conversion from string "Total pay: 5" to type 'Integer' is not valid.'

Public Class Form1
Dim TotalPayWithoutOvertime As Integer
Dim HoursWorked As Integer
Dim DoubleRate As Integer

[code]....

View 6 Replies

Making Application Send Message When Picture Background Is A Certain Color

Oct 7, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't..[code]

View 2 Replies

Making Application Send Message When Picture Background Is A Certain Color?

Dec 20, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't

Public Class Form1
Dim color As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 1 Replies

Designing Software - Making A MPC Sampler - Drum Machine - Making A Sound Directory ?

May 16, 2012

I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...

Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.

Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)

Here is an image of one of many MPCs but one with a directory - [URL]

View 5 Replies

Create A Message Box That Stores User Name, Message And Post Datetime Into The Database As Messages Are Sent?

Jan 6, 2010

create a message box that stores my user name, message, and post datetime into the database as messages are sent. Soon came to realise, what if the user changed his name? So I decided to use the user id (icn) to identify the message poster instead. However, my chunk of codes keep giving me the same error. Says that there are no rows in the dataset.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim name As String
Dim icn As String
Dim message As String

[code]....

View 7 Replies

Create An Error Message By Message Box To Tell The User To Enter A Number Only If They Key In A Character Value?

Feb 22, 2009

how to create an error message by message box to tell the user to enter a number only if they key in a character value?

I MEAN AFTER THEY PRESS THE CALCULATE BUTTON

Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click
Dim intFat As Integer
intFat = Integer.Parse(txtFat.Text)
lblResultDisplay.Text = txtFat.Text * 9
End Sub

My text box is call txtFat

View 3 Replies

Make The Text In A Message Box Scroll Across The Message Box?

Dec 13, 2010

just curious if there was a way to make the text in a message box scroll across the message box

View 1 Replies

Results Should Be Displayed In A Message Box But Message Box Does Not

Nov 16, 2009

I am using Visual Studio 2005 for coding. I am doing an exercise where I have to create a data lookup program. The program is to illustrate the concepts of using a database to look up information based on user input. The program allows a user to input two search criteria for a product search. The program then displays each individual search result, or record that meets the search criteria in a message box. I am not getting the message box and I don't know why. No errors are present during compiling so I have no indication as to where the problem is.

Option Strict On
Imports System.Data.OleDb
Public Class Form1

[Code]....

View 4 Replies

EnCoding Message To DDE Client Using System.Text.Encoding.ASCII.GetBytes (message)?

Oct 28, 2009

I am sending a DDE message to a client using System.Text.Encoding.ASCII.GetBytes(item) . However, before the message is actually sent, I would like to get the message coded where if the item="Ask" then item=Ask (string variable) and so on. The code is:

Protected Overrides Function OnRequest(ByVal conversation As DdeConversation, ByVal item As String, ByVal format As Integer) As RequestResult
' Return data to the client only if the format is CF_TEXT

[code]....

View 3 Replies

Get "Textbox1.text" To Go Into The Message Area Of Xbox Compose Message

Oct 24, 2010

Don't know how to get "Textbox1.text" to go into the message area of Xbox Compose Message.

View 7 Replies

Asp.net - Html Parser Error Message: Parser Error Message: The Server Tag Is Not Well Formed

Aug 11, 2011

I am getting the error Parser Error Message: The server tag is not well formed. on the code line below:

<asp:HyperLink ID="imgFileType" ImageUrl="images/Icon_Pdf.gif" NavigateUrl='<%#"javascript:ViewFile('erg_", Eval("DocumentName") %>' runat="server"></asp:HyperLink>

I need the url link to be parsed as:

javascript:ViewFile('erg_Invoice_3200_QRG_Restaurant.pdf');

What am I missing in the syntax?

View 1 Replies

VS 2008 Decoder - Type A Message In The "message" Text Box And It Spits Out A Code In The "code" Text Box

Dec 24, 2009

I'm making a simple decoder. Type a message in the "message" text box and it spits out a code in the "code" text box. If you pop a code into the "code" text box it spits out the message in the "message" text box. Seems simple, right? Well here's my problem. I typed "The quick brown fox jumped over the lazy dog" to test it and it will put a lowercase "f" at the beginning, put letters that aren't supposed to be in there in there, and replace what should be upper case letters with lower case. I commented out the code for replacing symbols because it seemed to work fine before I put them in the code but still the same result. I checked over the code to see if I mixed stuff up. Like I accidentally put the replacement for a lower case "e" as the replacement for a lower case "h" but I can't find anything.

CODE:

View 8 Replies

.net - Making A DLL COM Accessible?

Jul 27, 2010

I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did:

I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.I opened the project properties and went to "Assembly Information" and checked "Make COM Visible". I went to "Advanced Compile" options and targeted .Net 2.0 (it's very simple code).I then removed all references expect for "System".I built the project (no warnings or errors) and copied the DLL out of the Bin folder into C:WindowsSystem32 I ran RegSvr32 to register the DLL and got the error: The module "MyDll.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "MyDll.dll is a valid DLL or OCX file and then try again.

View 3 Replies

Making .bat Into Vbscript

Apr 17, 2012

Just need help converting this .bat to vbscript. cd

[Code]....

Just need it to go to each user names directory when logging into a terminal server and removing all items in there respective folder. I'm assuming to user the UserString where the "user.name" is but not sure how to do this.

View 1 Replies

Making .NET Debugging Like C#?

Mar 13, 2009

I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works.two off the top of my head are

1) having to prefix my immediate window queries with ?

2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to actually see the value is there a way I can make it behave like C#?

View 2 Replies

Making A MSN Like Program In VB?

Dec 3, 2009

What I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?

View 4 Replies

Making A New Event?

Jun 9, 2009

If I For Example Made a New Control Like :

View 4 Replies

Making A New Form?

Aug 23, 2009

Where can I make a new form? Also, could I make it so the user can only see one but then it switches to the other one on a certain event?

View 2 Replies

Making A New MDIChild?

Feb 16, 2011

I have made new MDIChild and with textboxes on the form. When the form loads...it will open data saved from a text file to the textboxes. However the data does not load from the text files. When i take out the code, it works fine...but it needs to be a mdi child...the code i'm using is

Dim NewMDIChild As New ViewCustomer()
NewMDIChild.MdiParent = Main
NewMDIChild.Show()

the form that I need to load the info is "ViewCustomer" and the mdi parent is "Main"

View 1 Replies

Making A Non-rectangular UI

Apr 15, 2009

I'm making a non-rectangular UI and I've tried different approaches but still can't get the results I want. The following codes are for the user to move the form around.

[Code]....

View 10 Replies

Making A Pop-up Out Of Another Form?

Sep 25, 2009

I Have a simple notepad, and a toolstrip, inside the toolstrip, it has an option to find and replace the text in textbox one. I made a new form, inside that project, and named it find. Now how can I make it so that when they click on that toolstrip option it opens that form? Also, will I have any troubles being able to find the text since they are two different forms?

View 10 Replies

Making A Program Like WMA?

Oct 7, 2009

I used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos

View 3 Replies

Making A Top Down Shooter?

Mar 27, 2011

Im making a shooting game in visual basic 2008. I have two questions, and they're the two bits of code I just cant fgure out.

View 3 Replies

Making An Exe For This With Database?

Dec 15, 2011

I have finished my proejct in vb.net with access database.making an exe for this with database.

View 2 Replies

Making Dll With Some Variables?

Oct 28, 2010

I have created a project to update my applications; it is simply a form, with a progressbar and some other fancy stuff, which will check for updates via FtpWebRequest and download files if necessary. I have code it so that in order to use it for other applications I only need to change the ftp folder address and the .exe name for the main application to be started.

So the question is. Is there a way i can put that project in a dll so that I can simply pass it to my partners without having to pass the source and obviously have some way to change the ftp folder address and the .exe name like some kind of properties�.

View 8 Replies

Making Log In Screen Appear Only Once?

Jan 21, 2011

I'm trying to bullied a simple cheap software to rise money.Any way, I managed to make a serial login form but the problem is I need it to appear only once pear purchase, meaning as soon as you enter it once, it will be saved and the login form wont popup when the program gets started again on the same PC. Here is my code so far:

ic Class Form11
Private Sub Form11_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[code]....

Also, how can I generate more serial codes?

View 2 Replies

Making Random Dim Name

Aug 19, 2009

I know I can use a container object so the vb code can create objects like buttons. My problem is that I can't make a random dim name in a loop. how can I just do something like this or create multiple instances dim a = 0 lp:

[Code]...

the problem is that I need a new dim for each object a text file tells my program to make.

View 1 Replies

Making Udp Connection?

Dec 19, 2009

im making a gaming tool for my Call of Duty 4 server. Not sure if anyone here plays it, but it uses an ingame rcon command tool that you use for admin control on your server. Well i wanted to make a program that i can control my server without having to log ingame to do admin stuff. I seem to be having problems tho. Im trying to have my program retrieve current information on the server but can't seem to retrieve the information. I have been reading serveral UDP tutorials trying to learn udp and tcp. Im definately still new to all this and trying my hardest to learn. Here is my code. I commented parts to explain what its for incase noone knows what it is for the game.

Imports System
Imports System.Net
Imports System.Net.Sockets
Imports System.Text

[code]....

View 2 Replies

Start Making An OCR?

Feb 6, 2011

I'm really interested in programming things for games (NOT cheats, more or less things that make the gamer's life easier) and most of my ideas end up relating to an OCR, but I've got no idea where to start making one or how to make it at all, really.

I did a quick google search but all I could find were libraries to convert bitmaps and such to strings, which is not what I want. The game I'm making this for specifically is browser-based, so unless I were to take a screenshot there wouldn't be much to work with since there's a ton of text in addressbars and such.

The main focus of my OCR is to allow automatic PIN entering for banks in the game (PINs are used for security purposes, but lazy people don't like entering them). There's a keypad on-screen with 9 boxes, each with a number, but after every click the numbers change positions inside the buttons and they also switch positions with other buttons (note that the buttons stay in place and do not change color or anything).

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved