.net - Create A Variable In Visual Basic?

May 29, 2010

How do I create a variable in Visual Basic?

View 4 Replies


ADVERTISEMENT

Visual Basic .net - Call Procedure From A Variable Name?

Jan 19, 2010

Is there a way to call a procedure in Visual Basic (.net) with a variable name? For example, the variable strColour can be one of 10 pre-defined values, green blue black white red pink orange yellow indigo purple. How to handle each one is in it's own Sub Routine, colgreen, colblue, colblack and so on.

I can use a bunch of if..then..else and select case, but what I'd like to have is something like VBA Excel's Run "col" & strColour

View 5 Replies

Search A String Variable And Place The Match Into Another String Variable In Visual Basic?

Nov 18, 2009

I'm looking for a way to search a string variable for two words and copy the text in between them into another variable. This needs to be done as many times as the match occurs.

View 3 Replies

Referencing An Object Using A Variable String In Visual Basic 2010

Oct 8, 2010

I have several sets of similar objects (labels, progress bars) on a form in Visual Basic 2010 on Windows. In my code, I have collections that contain data, which needs to be pushed into the value/text property of each.

I would like to get a solution similar to PHP in that I can assign values somewhat like:

For ID as Integer from 0 to count(collectionExample)
lblExample{ID}.Text=collectionExample(variableID)

...and as such to loop through so each of the different lblExample's were updated to their corresponding value.

The issue I have come to is that I cannot seem to reference an object on the form using a variable. I have also tried using something like

CallByName("lblExample" + variableID, "Text", CallType.Set, exampleCollection(variableID))... however I still can't combine the string and variable to reference the object.

Any solutions on referring to objects in VB2010 by combining a string prefix and a variable string identifier, similar to PHP's $variable{$variable} approach?

Edit: Windows Platform

View 1 Replies

IDE :: Passing Variable At Runtime To Data Reader In Visual Basic 2010

Aug 21, 2011

I'm trying to retrieve a record from access database on the basis of a string variable.

here is the code

Dim val As String( "kent")
Dim comm As Data.OleDb.OleDbCommand
comm = New Data.OleDb.OleDbCommand("select DISTINCT M_DATE_P from MACHINE_P where M_MODEL=" & val, conn)

i want to pass val variable, so that i can retrieve data at runtime.

View 3 Replies

Create A Database With Visual Basic And SQL

Sep 22, 2010

I saw Beth videos, and I wanted o creat a database with Visual Basic...

I downloaded Visual Basic 2010 Express, but I saw there is no option to connect to server...

and in the Databse Explorer, there is only Data Connections and no "Servers"...

View 2 Replies

Create A Menu Bar On Visual Basic?

Nov 16, 2009

I want to know the steps to create a menu bar.

View 2 Replies

How To Create A Ftp Server Using Visual Basic

Apr 8, 2010

using visual studio 2008 and programming in visual basic. i need to create a ftp server and am not sure where to start...i've tried to find anything that would help but all i come up with is the system.net.ftpwebrequest object but nothing really about how to use it. i need it to download files only, show connections, the ip addresses connected and the progess of the file transfer.

View 6 Replies

Create A DLL From A Class Library In Visual Basic?

Aug 11, 2010

I am trying to create a DLL from a class library in Visual Basic.

First I created a new Project in Visual Basic Express 2010 as a class library. Then I added a class which contains a function that I want to access in another program. This is why I want to export the class library as a DLL. In visual studio I am compiling the project which refreshes the saved dll in the bin folder of the project directory. When I open this dll or include it as a reference in another executable visual basic project, it does not find the function. how to generate a dll from a visual basic class library properly?

Here is the code of the class stored in the class library project:

Public Class Test
Public erg As String
Public Shared Function fTest(ByVal in As String, ByRef out As String) As Boolean

[Code]....

View 6 Replies

Create A Flashing Button In Visual Basic?

Aug 21, 2011

I have a two part question

I have a button on a form that when clicked i want to have it flash a few times. I have tried creating a for-next loop using the visible true/false property but I only get one result, that being false.

I also want to vary the lenght of time between the flashing.

View 3 Replies

Create A Macro Recorder In Visual Basic?

Jun 13, 2011

How to create a macro recorder that will save each and every keystroke, like the one in MS WORD, and save the saved keystroke in a database, and it will allow user to assign it a hotkey to paste the saved data anywhere in e.g. text editor, emails, etc!

View 5 Replies

Create A Print Button Using Visual Basic?

Dec 9, 2009

I want to be able to have a print button on my form that when clicked, automatically prompts the users printer to print the form in it's current state when the button was pressed.

View 6 Replies

IDE :: How To Create A Database In Visual Basic 2008

Sep 23, 2009

I'm a college student and starting to use Visua Basic 2008.Unfortunately couldn't find the right algo for adding a database in vb 08. T_TMy problem is that how to add a database access 2007 in visual basic 2008.

View 3 Replies

Unable To Create Visual Basic Listbox?

Mar 14, 2009

How to display zeros after decimal place in numbers in Listbox?

View 3 Replies

C++ - Create A Login Application With Visual Basic (using WebHttpRequest)

Jun 27, 2012

how to make that application send a http request via POST to a file on my webserver with the username / pw.

After all the tutotials I've been reading, I concluded that none worth spending my time with, because they all based on own database, and I'm looking for one that connects to a maestro server and requests the data from there.

View 2 Replies

Cannot Create Visual Basic Service-based Database

Aug 13, 2011

When ever I try to add Service-based Database in Visual Basic 2010 Express Edition it just prompts me a message.

And if it means anything this error started showing right after I installed
Visual Studio 201 Professional test.

View 5 Replies

Create A Layered Form In Visual Basic .net 2010?

Feb 15, 2011

how to make a layered form (im a begginer!). I've found something about calling API, but that sounded like old; cant I do this with .Net? If api is necessary, with that hwnd thing, how do I call it? And if you are so kind, is there a way to search for thing only for visual basic .net 2010? Because i dont find a way to practice a strict filter, and visual basic 6, or old visual basic stuff (if not other languages) appear mixed with the program i use.

View 1 Replies

Create A Quiz On Visual Basic 2008 With Two Buttons?

Jul 21, 2010

I am trying to create a quiz on visual basic 2008 with two buttons : true; false that present one question at a time. At the end of the quiz, I would like the program to add up the number of correct questions.

View 3 Replies

Create Console Apps Like The Edit App In CMD With Visual Basic Or C#?

Feb 26, 2009

Im still working on my scheduling program and Im thinking of how to get it where it dont add my agent until they actually leave for lunch and not just t the time they are "supposed" to. So sine my program sends emails Ive been thinking of making it where the agent replies with #lunch sh250080 and then when my program receives it it adds them to the lunch list.

View 3 Replies

Create Stylish Form Skin In Visual Basic?

Sep 1, 2010

How to make stylish form in VB.Net?I am working on Final year project for graduation. Project on a "Service center" of a Mobile company. how to make project more beautiful or easy user interface.

Programming language: VB.Net (2008)
Database: SQL Sever

View 2 Replies

Create A Demo Disc (CD) Of A Visual Basic ClickOnce Application?

Mar 2, 2010

Does anyone know of a way to create a demo disc (CD) of a Visual Basic ClickOnce application? I used to be able to download the exe file and run it. I'd like to show my work via a disc rather than create a file to install on a users' computer.

View 2 Replies

Create File On Server With Special Privileges Using Visual Basic?

Mar 6, 2012

One of the client requirements is that the server generate files and store them on a special folder. This files created can not be modified by users or deleted.So the only way I thought is to generate this files with elevated privileges so a normal user can't delete or modify them.But the question is how can I generate a file with this privileges that normal users can interact with this files... only download from server.I use this code to generate the file... But I don't know how to configure it for elevated privileges.This is the button which generate the file and allow to download it:

Protected Sub ibtGenerar_OnClick(ByVal sender As Object, ByVal e As ImageClickEventArgs)
oArchivoTelecredito.NombreArchivo = txtNombreArchivo.Text
oArchivoTelecredito.SesionDetalleArchivosTelecredito = New List(Of

[code].....

View 1 Replies

VS 2008 Create A Client / Server Chatroom Using TCPClient In Visual Basic

Jan 6, 2010

However I have hit a massive brick wall with my program. My program that I'm trying (can't emphasis this word the importance of that word) to create a Client/Server chatroom using TCPClient in Visual Basic. So far I can get my client to speak to my server. However, i'm trying to get the returned data to display in a listbox which never happened, i then tried a label, which again never happened then a text box which I'm sure you can figure out how that went! I'm not great at networking programmers nor am I not bad I'm terrible but duty calls when it comes to projects.

The code I currently have was mostly taken from the net but when I have the program fully work and I understand how the software works I intend to heavily modify for it to suit the needs of what I need to achieve. where I can get my client to display the data from the server that I have already sent to the server (which displays successfully within the server).

[Code].....

View 2 Replies

Extracting Visual Basic Source Code From Visual Basic EXE?

Jan 24, 2011

How do you extract source code from a VB.NET .EXE file?

View 3 Replies

Create A Dynamic Connection To Data Base Using Dataset (In Visual Basic 2008)?

Jun 14, 2010

i can connect to only one Data Base with dataset in Visual Basic . but i want Have Dynamic connection to data base i mean in want to my appliction users have ablity to connect to any data base they want (For Example : Choose file from menu and then open and then Select any Data base.)

View 4 Replies

Create A Multi Client Scheduler Using Visual Basic That Save Data In Xml (as A Database)?

Jun 13, 2010

I am a student and trying to start a programming career, my colleague asked me to make a multi tier or multi client desktop application for the schedule tracking using xml as a database; however the desktop application would be deployed in one or more computers but my leader can monitor the info from her office in addition she wanted me to put administrative privilege to avoid unauthorized access in some database features of the system. an info regarding multi-client desktop app.

View 3 Replies

Create A Database Administrator Form To Register, Remove, Edit User Accounts In Visual Basic 2010?

May 11, 2011

create admin form to register, Remove, Edit user accounts in the system connected to Microsoft SQL Server R2 2008 or access database ? any toturial videos or instructuions step by step ?

View 3 Replies

VS 2010 Funniest Things Create In Visual Basic 2010?

Nov 6, 2011

Dont be afraid to spam the thread with things you can create.The more the better!

View 2 Replies

Java - Comparison Between Microsoft Visual Studio 2005, Visual Basic And Netbeans?

Jul 3, 2010

I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words so any suggestions are welcome.

View 1 Replies

ProgressBar Disappears When Updated Via Visual Basic (Visual Studio 2008 Standard)?

Jan 17, 2011

In a while loop, I am writing a progressively increasing integer value (between 0 and 100) to the Value attribute of a ProgressBar control, when it disappears from the window in which it resides. I have verified at the time that it disappears that the Min is 0, Max is 100, and Value is a valid integer in range.

View 9 Replies







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