VS 2008 What Type Of Project To Chose To Get Stuff Done On List

Oct 25, 2010

I am quite new to the VB scene, and am still quite confused by the variety of options presented as far as choosing the correct project type.I have been coding for roughly 4 years now and consider myself still to be a beginner. My past experiences include, hmtl, C++, vba, assembly, and a few others which I'm sure currently escape me.However, VB is a whole new boat and I'm just not sure where to get started with what I want to do.I've Googled the internet, went through the MSDN, and even did some tutorials.My current dilemma is I wish to make a program that will do a the following: Allow a User to download a set of data from an embedded web page.Open an excel file Download more data from a different web page.Open another excel document..I'm sure this is probably quite simple to do (read: I hope...). However I'm just not sure where to begin as far as choosing a project type. Additionally I'd like to have it set up with buttons, where button1 reads something along the lines of "Step 1: Click Here to Go and Download Data", "Step 2: Click Here to browse to excel file", etc etc.What type of project do I chose to get the stuff done on my list?

View 8 Replies


ADVERTISEMENT

VS 2008 Network Stuff - Get The List Of Games ?

Mar 23, 2009

In games such as Warcraft III, you can play against players on LAN, and it can show a list of games being hosted by people on LAN. There is no central server that holds the entire list, so how does it get the list of games? And also, how would I code something that creates a game on LAN, like a bot?

View 6 Replies

How To Chose Data Type Of Column In DataSet

Feb 8, 2012

I need to read data from an Excel sheet as part of a data conversion. Certain columns contain mostly numeric data but may contain some alphanumeric data somewhere in the excel sheet. The problem is, my conversion sees the alphanumeric values as null (or blank. Using the .ToString() method returns ""). To connect to Excel, I'm creating an oledb connection, creating an OleDbDataAdapter, then filling a DataSet with the adapter.

Here's the VB code for connecting:
private _oleadpt As OleDbDataAdapter
private _oleconnection As New OleDbConnection
Dim olecomm As OleDbCommand
'_database comes from a settings file and is the full path to an excel document
Dim connstring As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _database & ";
Extended Properties=""Excel 8.0;HDR=YES;"""
[Code] .....

I think the data adapter is determining the datatype for the columns based on the first however-many rows it looks at. It decides the columns with numbers are numeric which is the start of my problem. Changing the formatting of the column in Excel doesn't seem to affect the datatypes in my data set. Is there a way to tell the dataadapter or dataset what type of data to use for a column? Or should I try to cast the data in my SQL statement?

View 1 Replies

VS 2008 : SQLException Chose A Different DB, Cannot Attach File?

Aug 12, 2010

This may or may not need to be moved to the deployment folder...Okay I have a vb.Net application that connections to a sql server 2005 database "TacticalDB" while debugging the application I was using the connection string,

Dim con As SqlConnection = New SqlConnection("Data Source=.SQLEXPRESS; AttachDbFilename=" + Application.StartupPath + "DataTacticalDB.mdf; Database=TacticalDB; Trusted_Connection=True; User Instance=true")

Which works fine, but I have moved into getting the application ready for deployment and so I created a setup application in the same solution as the application. Now I have added the database file with the setup but when my application gets to the con.Open() line it catches an exception,

System.Data.SqlClient.SqlException: Database 'C:UsersJohnDocumentsVisual Studio 2008ProjectsBlackout_ScoutBlackout_Scoutinx86DebugDataTacticalDB.mdf' already exists. Choose a different database name.
Cannot attach the file 'C:Program Files (x86)MicrosoftSetup1DataTacticalDB.mdf' as database 'TacticalDB'.

[code]....

Now I only have the one place where the application should look for the Database and thats Application.startupPath/Data/TacticalDB.mdf and if im running the newly installed exe it shouldn't look back in the myprojects folder but it is.

View 5 Replies

VS 2008 Declare A List(of T) (or List(of <anonymous Type>))?

Jan 7, 2010

Ok i'm trying to declare a global list of type T (or is it <anonymous type>) i declare it in a module with something like Friend query As New List(of {whatever type i try}) the app takes some xml and parses it into a list but i need this list available to other classes and methods within the app, everything i have tried fails resulting in an error like Value of type 'System.Collections.Generic.List(Of <anonymous type>)' cannot be converted to 'System.Collections.Generic.List(Of {whatever type i try})'.

What would be the correct way to declare a list of this type? is there another way i could do this?

View 8 Replies

VS 2008 Create New Type To Add To A List?

Dec 24, 2009

When you use List(Of ) you can add different data types to that list, and a while back I remember JM told me to make a new type to list or something and I was wondering how to do that. I want to be able to make a list that has a large amount of text and each item is named so I can gain easy access to that item.

View 1 Replies

VS 2008 List Directory And Arrange By Type?

Jul 13, 2009

Is it possible to achieve that by using Directory class? I tried this method by [URL]...htm and it seems to list my folders by date.

View 24 Replies

VS 2008 - GetItemByName Without Having To Do A Loop When Have A List Of Structure Type

Dec 27, 2009

how to make a new structure somewhat, but what I need to know is how I can do something like, GetItemByName without having to do a loop when I have a list of my structure type. What I mean by this is if I had a structure like this:

[Code]...

View 4 Replies

IDE :: If Click "chose Items" To Select Some Controls To New Tab In Toolbox - VS 2008 SP1 Closed Automatically

Aug 27, 2010

If i click "chose items" to select some controls to new tab in toolbox, VS 2008 SP1 closed automaticaly. what might be the problem?

View 2 Replies

Drop Down Box And Other Stuff In ASP.NET With (VS 2008)

Apr 13, 2010

I am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:

1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box to show a string like "Choose Variables" when ever the user enters their variables manually. I want this to happen without having to reload the page.

2.) In the Windows Form version of this application I had a RichTextBox that populated with data (line by line) after a calculation was made. I used "AppendText" in my Windows Form, but that is not available in ASP.NET, and neither is the RichTextBox. I tried to use just a text box but that isn't working right.

[Code]...

View 3 Replies

VS 2008 Delete Stuff At Runtime?

Jun 12, 2011

VS 2008 [RESOLVED] Delete stuff at runtime

View 1 Replies

VS 2008 Updates Stuff Up Intellisence?

Aug 17, 2009

Last night 3 updates automatically installed from VS 2008 on my comp KB952241, KB971091 and KB973674 Today intellisence was not working for .net - I uninstalled the updates and everything is, once again, working fine I dont know what update did it ... But I was just wondering if anyone else has experienced this - I would rather not have the updates if they stuff things up.

Oh - and before anyone asks - I tried resetting the visual studio settings

View 1 Replies

VS 2005 List(of T) - Create A List To Hold More Than One Control Type Or Create A List For Each Control Type?

Jan 20, 2011

If I create a list for a TextBox:

[Code]....

I am able to only add controls that are of type TextBox. My question to you is, can I create a List to hold more than one control type or do I have to create a list for each control type?

View 8 Replies

Unable To Cast Object Of Type .objectquery To Type Generic.list

Sep 12, 2011

I have a question about ASP.Net, visual basic I have 2 LINQ query's, the first one works, the second one doesnt, produces a

"Unable to cast object of type 'System.Data.Objects.ObjectQuery'1[SelmaV2.Products]' to type 'System.Collections.Generic.List'1[System.String]'.

[Code]....

View 1 Replies

Make A Project Where A Teacher Views A List Box With A List Of Students Of A Class?

Nov 5, 2011

I wish to make a project where a teacher views a list box with a list of students of a class. When he selects a name from the first list box the second listbox would change its data to show the grades for that one student.

View 10 Replies

VS 2008 - Sqlserver Database - Tables And Stuff Just Vanish ?

Jul 1, 2009

I seem to have a major problem. when I add a typed dataset to my project and go back to my sql server and click on the databse I use it doesn't open. the tables and stuff just vanish. using the wizard, it creates this connectionstring:

<add name="Schenectady.My.MySettings.SISQL2ConnectionString"
connectionString="Data Source=.SQLEXPRESS;AttachDbFilename="C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataSISQL3.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

It connects fine. but after I try opening it in sql server i get an error. It doesnt let me restore or anything. i tried restarting my pc incase the db was locked but it is still gone. now my app cant connect. Just for clarity, is user instance supposed to be set to true. and what is the purpose of it. also when the wizard asks to make a copy of the file that will be copied accross each time I run my project I select No.

View 5 Replies

VS 2008 Get File Contents To Make Program Do Certain Stuff?

Nov 7, 2009

1)How can I make my program get the contents of a .txt file on my website to tell the program to run or not?Here is and example of what I want:Say the file says "Running", the program would run without problems.If the file was to say "Unavailable", a pop up would appear saying "The program is currently unavailable, try again later." Then once the person clicked OK, the program would close.

2)How can I make the program get contents from a .txt file to get the latest version of the program, then if there is a newer version, there would be a pop up saying there is a newer version and they need to update. Then when they clicked OK, the program would close and it would open their default web browser or Internet Explorer to the update page.

View 4 Replies

Get Type Of Derived Generic List Class From List Item Method?

Mar 23, 2011

Public Class notifierMain
Public Class Contacts
Inherits List(Of row)
Public Sub New()

[code]....

When I debug this winforms application I get curType = "notifier.notifierMain+Contacts+row" I want to the Validate function to know it is in MyContacts. How do I do this?

View 3 Replies

Chose Cell From Many Row In DGV?

Oct 22, 2011

This code will work if the rows of DGV is one row. I want to work with selected row from many rows?

vb

DataGridView1.CurrentRow.Cells(7).Value

By the way I tried SelectedRows and SelectedCells but don't work

View 3 Replies

VS 2008 - Sending Stuff From Window Forms To Remote SQL Server

Mar 2, 2012

I want a quick and easy way of sending stuff from my window forms to my remote SQL server, my remote sql server allows remote connections to my IP address. How can I do this? I also need to return a result, either true of false.

View 6 Replies

VS 2008 - Timer - Project A References Project B So Can Open A Large Form In Project B

May 5, 2010

For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.

View 2 Replies

C# - Dll Reference Of One Project Into Another Project - Error Of "Type Or Namespace Name Could Not Be Found"

Apr 25, 2011

I have 2 projects, one built in VB.NET and another in C#.NET. I want to use certain functionality of VB.NET into C#.NET and hence I have added the dll file of VB.NET solution into C#.NET as a reference by browsing the dll from my system. Say dll name for VB.NET is myData.dll. In my C#.NET project I am trying to declare it as a namespace i.e. "using myData;" and its giving me an error of "Type or namespace name could not be found"

View 1 Replies

Possible To Use Select Case To Chose Between Webpage.elements?

Mar 2, 2011

I'm creating an application that will be visiting several different sites.Each site will have the same elements but not necessarily in the same order.On a previous post I was told to use the Select Case to choose between the choices.Can Select Case be used to choose between Webpage elements?Let's say that on one site the first web page element is choose button A but on site two it will choose button B.

Dim makeachoice As String
makeachoice = webbrowser1.element button A
Case signin

[code].....

View 1 Replies

VS 2010 Take A Picture Of An Area The User Chose?

Feb 8, 2011

screenshot function in my application. This is what I currently have:

vb
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap

[Code]....

But instead of taking a picture of the whole screen, I want to just take a picture of an area the user chose. When the user presses the start point, I would like to have a rectangle drawn to the place where the user presses the end point. And then take the picture.

View 2 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

Locate Ms Chart Control In Chose Toolbox Items?

Jan 24, 2010

I am using VBExpress 2008 and trying to use of graphs. I tried to locate Ms Chart control in Chose Toolbox Items but I am not finding that.

View 3 Replies

Make An Option At Login In Which User Can Chose The Language?

Apr 4, 2011

I am working to a big solution that is almost finished. The language interface is Romanian. Now I have a problem because I have to make an option at login in which user can chose the language - and I have to create all the software in Romanian and English languagesd.

My intention is to create inside of o database (because my application is working with an sql database) a table named lang_tbl and in which I will put all the words and text that I have used in the application in romanian on one columnb and in English on another column and when I start the application I will load all the rows from the table in an array together with the unique ID's. And in runtime I will use the unique ID for every text that I have in the application.

View 5 Replies

Unable To Cast Object Of Type 'System.Collections.Generic.List`1[System.Int32]' To Type 'crmWebService.ArrayOfInt'?

May 14, 2012

I'm getting an error after sending a list to a web service.This is the code that is calling the web service:

Dim sProgramInterest As New List(Of Integer)
crmService.InsertProspectGetId(sProgramInterest.ToList)
But I'm getting this error.

[code].....

View 3 Replies

VS 2010 Custom Type Array / List With Adding Items And Specifying Custom Type Variable

Jun 21, 2011

I recently downloaded VB 2010 Express so i am quite new to the language, but i have worked with dark basic, which seems to b very similar.Anyway, my problem is that i cannot seem to correctly set out my array of a custom type/class. i am trying to create two arrays, one of available entities and another of selected entities of which the user selects the entities to be dealt with in irrelevant ways. i have creates a button (called test) which adds some entities to the available list and all the entities come back the same value but they shouldnt be as you'll c in the code. i have run the step into command a found that "available.item(#).Name = " will change all of the entity's names.As of current i am working with lists as the array kept asking for a 'new' statement but i couldnt figure out where to put it.[code]

View 7 Replies

Generic TypeOf Operator - See If List Is A List(Of T) Variable - Error: "Type Expected"?

Jan 5, 2011

Dim x = GetType(List(Of )) 'valid statement
Dim list As New List(Of String)

Now I want to see if list is a List(Of T) variable: Dim isList = TypeOf list Is List(Of ) On the last line I get a compile error: "Type Expected". Is there any cheap-performance TypeOf operator alternative for generics?

View 2 Replies







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