Creating An IM Type Program?

Mar 23, 2012

Alright I am just starting out with Visual Basic and I am trying to figure out how I would go about doing this. I have the general idea of how I want it to be done but I am not sure of what code I need to use. What I want to do is be able to type in Text box 1 and copy whatever I type into Text box 2. But I also want to be able to send it to anyone else with the program that are listening for a connection. I also want to be able to show the IP address in Text box 3 that the computer is using at the time.

Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

[code].....

View 9 Replies


ADVERTISEMENT

Creating A Generic List Of A Specified Type?

May 26, 2010

I want to create a generic list - but I want to specify the type at runtime - is there a way I can do this? using reflection perhaps?Something like this...

Public Shared Sub create(ByVal t As Type)
Dim myList As New Generic.List(Of t)
End Sub

View 2 Replies

Creating A List Of Anonymous Type In VB?

Jun 23, 2009

I'd like to create a list of an anonymous type, for example:

Dim dsResource = New With {.Name = dsResourcesEnd(index).Last_Name & ", " & dsResourcesEnd(index).First_Name _
, .StartDate = dsResourcesStart(index).Day _
, .EndDate = dsResourcesEnd(index).Day}

I have created that anonymous type. Now I'd like to add it to a list of that type. How do I declare a list of that type?

View 4 Replies

Creating Custom File Type In .net 08?

Feb 5, 2011

i want to make a custom file type like "abc.xyz" which should have all the attribs of a directory like

moving other files and folders to it, open, close, delete, create new, etc... in vb.net or c#.net

View 5 Replies

Creating A Simple Leaderboard Type Application?

Apr 14, 2011

I have moderate experience with VB, and am using 4.0 framework with VS 2010 pro.get a specific way i should accomplish a leader board system where it can manually assign points to players and sort them accordingly.

View 1 Replies

IDE :: Creating New Type Of File That Has Its Own 'parsing Language'

Jun 14, 2010

I have been working on a very advanced feature that will allow programmers to right object that spit out other objects. Code that writes code. However, I have run into a problem. I use a file type that specifies to the coding parser how to create the object that is going to write the objects. Example, the Programmer writes a "NTF" file which contains code switches and variables that the Computer will parse and create a "Template Object" that the programmer can include in his project and call to generate the code objects. I'll right a object that creates an ASPX page for each table in my database, and I'll then call that object against my database. It's pretty straight forward. This "NTF" file has special parser commands, and uses VB.NET to manipulate the output based on the variables that come into the object. The problem is I would like to have an editor just as advanced as Visual Studio to recognizes the custom parser commands and the VB.net code. At the very least, something that formats the "NTF" file and integrates into Visual Studio.url...

View 2 Replies

Type Not Defined Error When Creating Class

Feb 26, 2012

First I put it inside a Module and it works just fine. However when I created a Class and put it inside it, it showed up some errors. (they are in the code's comments)

Public Class MyImageClass
'function to merge 2 images into one
Public Function Merge(ByVal img1 As Image, ByVal img2 As Image) As Image 'Type 'Image' is not defined
Dim bmp As New Bitmap(Math.Max(img1.Width, img2.Width), img1.Height + img2.Height) 'Type 'Bitmap' is not defined
[Code] .....

I tried importing the System.Drawing namespace to this class which didn't change anything either. I've never really touched the OOP side of VB.NET before, this is my first attempt creating a class.

View 5 Replies

Flash Card Program - Type All The Words On A Text File And Have The Program Randomly Pull One Of Them

Feb 15, 2009

Anyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).

Here is the code so far:

Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[CODE]...

View 2 Replies

Creating Array Of Structure Type - Marshaling Error

Jul 23, 2009

I have to create an array of structure type in VB.net. but I am getting error while marshaling this error. I have to pass this array of structure type in to Dll function.
Code:
Structure declaration:
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
Public Structure dx_entry
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=10)> _
Public dx As String
[Code] .....

I am getting the following error:
An unhandled exception of type 'System.ArgumentException' occurred in Audit_Demo_2307.exe
Additional information: Type dx_entry[] can not be marshaled as an unmanaged structure; no meaningful size or offset can be computed.

View 1 Replies

Creating Excel File - Force As String Type?

Feb 12, 2010

I have a vb.net app that I create an excel file with from sql data. It creates it fine but for cells that have a social security number, it makes that cell numeric and removes the leading zeros. Does anyone know how to force this cell as a string when adding it to the worksheet? Is there a property or method I can call to do this in my vb app?

View 1 Replies

Opening A Program And Type Something In Their Textbox Or Click On Button Of Program?

Mar 21, 2011

opening a program and type something in their textbox or click on button of program if you can tell me refrence or .net platform class that can i access to another filed program

View 12 Replies

Creating A Gridview And Gather The Data From Various Functions That Return A Type Of IEnumerable?

Feb 28, 2012

I am creating a gridview and need to gather the data from various functions that return a type of IEnumerable. I've created gridviews using a dataset as a datasource, but how does one use multiple data sources(of IEnumerable) to populate one gridview? Like how do you combine all that into one dataset?

View 1 Replies

An Error Occurred Creating The Form : Request For The Permission Of Type 'System.Security......?

Sep 4, 2009

we are making our program in other computer it runs, without errors, but then when we transfer the program to another computer it has an error that says

An error occurred creating the form. See Exception.InnerException for details.The error is: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

View 24 Replies

Creating A Poker Program With Vb?

Mar 18, 2012

I have to design a form that analyzes a poker hand entered by the user in the textbox and then the listbox has to display the type of hand entered. for example, four of a kind, three of a kind, a pair, a flush, a straight if ace is low, an ace-high straight that is the sequence 10 j q k a, etc.I have no idea where and how to start the coding.i am really stuck..

View 9 Replies

Creating A Program For A Camp?

Jun 8, 2009

I am creating a program for a camp that I run. I want to install it on several computers and they all share the same database. It needs to be a local database because our network isn't connected to the internet. I want to keep track of student records, staff records, and finances. I also want it to be password protected with certain features avaliable to only authroized users.

View 15 Replies

Creating Calculation Program?

May 28, 2009

Fist off, I am new at this and only learning it for a class. We have a program to create using Visual Studio 2008. The teacher doesn't give us much to go by so I really have no idea where to even start so any code will be a great help. Here is what i have to create:Your project will allow the user to enter a stock transaction and determine the stockbroker's commission. Each transaction includes the following data: the stock name, pricer per share, number of shares involved, and the stock broker's name. Assume price per share = P. The stockbroker's commission is computed in the following manner: If the P (price per share) is less than or equal to $50, the commission rate is $0.19 per share, if P is greater than $50, the commission rate is $0.26 per share.

View 1 Replies

Creating Program With Code

Apr 5, 2011

I want to create a program using vb.net code.What I mean is: write all the files necessary to be able to compile it to a .exe-file. Is there any way of doing this?And what is the easiest for the form creation? Winforms or WPF?

View 2 Replies

VS 2010 Creating Program For XP?

May 8, 2011

I'm a VB.net newbie and trying to write a simple program for installing in a few of my company's computers, most of which still use Windows XP.How can I specify when publishing in VS2010 that the program is for installation in XP?

View 3 Replies

Creating A .NET '08 Program That Can Generate It's Own Executable?

Jun 21, 2009

Ok, so I'm working with a team of people/programmers and we are all trying to explore the possibilities within Visual Basic 2008. As such, we are all working on our own programs at the same time, but all for one small organization. Well, I'm working on making an installer that will bascially do as follows:

View 4 Replies

Creating A Simple Alphabet Program

Apr 25, 2009

I would like to click next to go to another image in a picturebox but I only have one picture box setup to have the new letter displayed in it. I have 26 images to display and need to know how to setup a loop to go through each image? It seems simple but I cannot figure out how to get to the third image, it only goes to the second image and stops. I also need to know how to setup the back button to display the prior image in a picture box.

View 8 Replies

Creating New Form (in Program) And Re-sizing It

Feb 18, 2011

Suppose we have a form with a button and a textbox

The button code goes like this:

'
Dim NF as New Form
Dim NC as New Combobox
NF.size = New size (420, 30)

[Code]....

View 2 Replies

Creating Pipeline Inspection Program?

Dec 24, 2011

I have limited programming with Visual Basic Express and I was looking at creating a pipeline inspection program which generates reports from data entered after viewing the CCTV footage of the inspection. There is a program called WinCan which does this but the license is in the thousands of $$$ per year and is alot more then what I need. how to create the diagram. Is this project simple to do myself or should I look at using freelancing websites?

View 3 Replies

Creating Sales Tracking Program

Mar 19, 2009

I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, a combined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow. [code]

View 1 Replies

Creating Sales Tracking Program?

Dec 19, 2009

I'm trying to creat a program that tracks the sales of five products all with different monetary values. I'm trying to display the total number of each product sold, acombined total of products sold, and the total sales value. So far I'm only outputing the value of one of each product, I think there is a problem with the loop somehow.

Public Class MailOrder
Private product1 As Decimal = 2.98 ' product number 1
Private product2 As Decimal = 4.5 ' product number 2

[code]....

View 3 Replies

Creating Simple Yet Complicated Program?

Mar 24, 2010

I am a total bginner to vb.net programming. I am trying to make a simple program that allows the user to

1.change desktop background

2.Allows the user to select a boot image listed in the form

3.alows the user to enable disable the task manager,registry editor and control pannel.Replace Windows Boot image (Picture source is a picture box in form)

4.Change XP Start Button Text

5.Disable/Enable Windows Keys

so this is how far I got;

Imports Microsoft.Win32
Public Class Form1
Implements IDisposable

[code]....

View 3 Replies

How To Write A Program For Creating Icons

Jun 30, 2009

write program for creating Icons, using MS Visual Basic 2005?I want to know all the details

View 3 Replies

Make An Alithogram Creating Program

Nov 1, 2011

I need a program that i can make to create alithograms that include uppercase, lowercase, special charecters and numbers.this is for legitimate use as i have read the "Prevent helping malicious code" thats stickied to the top of the board.

View 1 Replies

Communications :: Creating Online For Simple Program?

Dec 17, 2008

I dont know wether this is the right place but would i be able to use somthing like streamreader to change a .txt on another computer? If so, how?

View 3 Replies

Creating A Program That Once Installed Was A Windows Toolbar ?

Nov 6, 2011

I'm wondering how I would go about creating a program that once installed was a windows toolbar. What I'm trying to do is similar to the clipboard, but I want to customize it to my own style. I work in a data entry job and many of the bills we enter have similar information that I'd like to be able to enter without repeated typing. I'd like the toolbar to be docked to the top of the screen, and have several buttons on it. Clicking a button, while having a focus in my data entry program, would paste the button's text (or the full text of what the button caption represented) into the selected field. Alternately, if focus between multiple applications is too difficult to try, then clicking the button would highlight the text and copy it to the windows clipboard, so I could then click back into my data entry program and hit ctrl-v. I dont need help on the program itself...just on how to make it as a windows toolbar, if possible.

View 1 Replies

Creating A Program Which Displays Text To The Screen?

Jan 21, 2010

I am creating a program which displays text to the screen.I would like to be able to set the program to have a timer so that when the user has selected the letter, after say 5 seconds a new letter appears.I have added the current code below.

Public Class Form1
Private Display As Boolean
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code]....

View 7 Replies







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