Detecting if a specified network is available

774 byte By Satal Keto at 2007-11-20 10:58:43
I have just got into university and they have the network set up that I need to login (not the windows login but a web based login) each time I start up my computer in order have any application access the Internet.What I am wanting to do is create a program to automate the login process (easy enoug...

Connect Excel

121 byte By Vidya.p.nair at 2007-11-20 10:58:48
Hi all,<br/> <br/>I want to connect to an Excel File in VB.NEt could anyone help me out<br/>Thanks in Advance..

TableNames from Database

233 byte By MeatLander at 2007-11-20 10:59:05
Is there any way to connect to a database and find out the name of every table in that database?<br/>Note: I don't want to return any data from any of the tables, I only want the table names themself. Google was no help. :(

Identity column not working with data set and table adapter.

623 byte By bjswift at 2007-11-20 10:59:07
I have a view I am using which looks at a table and basically only shows rows where userID = suser_sname(). There is a recNum column with an identity auto incrementing by 1. This is all on the SQL server side of course, but when I create a data source and a grid in vb.net 2005, the auto incrementa...

Opening a shared Excel file with Macros enabled

1203 byte By WelshWarrior at 2007-11-20 10:59:35
Hi peopleI am trying to open an excel file that has got a macro in it that calculates a running total for me. Trouble is that the file is shared so that more than 1 person can edit it at a time and this disables macros.Does anyone know how to open the file and also automatically enable macros as the...

Uodating a view in Datagridview

318 byte By satanorz at 2007-11-20 11:00:27
Hi all another time, i've a view from sql server binded to my datagridview on a form, i've used an Instead Of trigger to evade the multitable update error.. but the error raises before the trigger has effect.There is some way to correct update a view on my datagridview?Thanks! :confused:...

Writing to a String Collection Editor at Runtime

11302 byte By dick3425 at 2007-11-20 11:00:34
Is there a way to write to a String Collection Editor at runtime through code in VB.NET 2003?The following is the code I am using and it doesn't work.Imports Microsoft.Office.InteropImports System.CollectionsPublic Class frmMainMenu Inherits System.Windows.Forms.Form#Region " Windows Form De...

Does an app "comsume" a FileSystemWatcher event?

484 byte By High_D at 2007-11-20 11:01:02
We've got a VB6 app running on our server which uses the FileSystemWatcher object...I've created a vb.net upgrade for the app, and want to run them at the same time to prove the new app detects the same changes. I'm worried that the VB6 app or the .net one will comsume that event and...

datagrid operations

310 byte By jagguy at 2007-11-20 11:01:29
1)How do I detect whether a new row is being added to a datagrid ?2)How do I detect whether an existing being added to a datagrid ?I couldnt find any events for this.I want to run a nonquery and need to know this .3)is there a way to lock the datagrid so i cant edit it at all?...

Problem with export option "data only excel option."

484 byte By pavan.pusuluri at 2007-11-20 11:01:33
In my the report the data is being maintained in three detail sections. When i try to export data into Excel using data only excel option , the records should be displayed in only one row. But it is getting displayed in two rows. I am using crystal X1 and VB.net.Earlier when i had used only Plain VB...

DBF Viewing on DataGrid?

123 byte By shailajasetty at 2007-11-20 11:01:44
How to connect and view a DBF File on the datagrid?<br/> <br/>What command can be used to SELECT Data on the DBF File?

New In Dot Net

500 byte By ShafaqatAli at 2007-11-20 11:01:49
I am trying to move from VB to VB.Net and having lots of problemsHelp me plz' in main module in want to open loginform which having name 'Loginfrm' but it can't working if i set the StartUp Object to 'loginfrm' then its working but why it can't working from Module....

CheckedListBox

598 byte By imname at 2007-11-20 11:01:51
I would like to display all the items that checked in the checkedlistbox in listbox. When I run the code below...Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For index As Integer = 0 To CheckedListBox1.CheckedItems.Count - 1...

Saving to Excel field containing a Macro

8154 byte By WelshWarrior at 2007-11-20 11:02:16
I am displaying info in a DataGridView from a spreadsheet that is then altered using buttons by the user. The spreadsheet is then saved back to the spreadsheet using another button. All this is working fine - no probs.Problem is that there is a Macro in all of the cells in 1 column that keeps a runn...

A New Beginning

615 byte By TeachMe32 at 2007-11-20 11:02:56
Hello, I am new here and Have a question for the programmers. I have been working as a Network Engineer, Network Admin / desktop support for the pas 13 years. It is very safe to say that I feel that I am as burned out as burned out can be. I have always been interested in programming but have not to...

Multiple Worksheets

18490 byte By computerman29651 at 2007-11-20 11:04:00
Microsoft Excel 2003 & 2007I have written a code that I would like to be able to run on multiple worksheets within the same workbook. The code runs as it should on "Sheet1". However, when I go to "Sheet2" and try running the code, I get an error message because it is still trying to input data on "...

VB.net 2005 DataGridView Calculations

824 byte By LuxCoder at 2007-11-20 11:05:09
1. I have two Columns in DataGridView 'Advance' & 'Deduction'. Here i want is, when i type into certain row under Deduction column the Advance Column's corresponding row value should automatically get deducted. For example, if advance value is 200 and if i manually enter 50...

datagrid parameter and more

392 byte By jagguy at 2007-11-20 11:05:11
1)How do i pass a parameter on cases like this whre i want the name of the table to be a parameter so the user can chose at runtime using vb.net 1.1'this failsa = "table1"cmd2.CommandText = "Select * From table=@one where deptno =" + txtdeptno.Textcmd2.Parameters.Add("@one", a)2)can I import a...

sending SMS with mobile phone

526 byte By johnsonlim026 at 2007-11-20 11:06:32
Hi, I am developing a program that send sms to users to inform them the status of their process.I have download a sample code from http://msdn2.microsoft.com/en-us/library/aa446545.aspx But it is of framework 1.1.So i purposely copy the code to .net framework 2.0.When running the program, it...

Blob

2419 byte By Nagham at 2007-11-20 11:06:38
Hello thereI'm using VB.Net 2005 and oracle 10gI need to save an image at the field "BACKGROUND_IMAGE" on the table GS_USERS; so I wrote the code: Dim conn As New OleDbConnection Dim cmd As New OleDbCommand Dim SQL As String Dim FileSize As UInt32 Dim rawData() As By...

login form.. need help!

100 byte By jeme at 2007-11-20 11:07:30
Hii.. i'm still new with VB.NET. I want to know how to make login form that will use database??

Spreadsheet row not inserting

3594 byte By WelshWarrior at 2007-11-20 11:07:36
I have a DataGridView with some data from a single spreadsheet table in it. The user changes some items in the table and then it is meant to save a new row into the spreadsheet but i keep on getting an error about needing a proper update statement to insert a row. I can't see why its happening...

String Manipulation

1207 byte By joe1985 at 2007-11-20 11:08:33
I am trying to figure this out, and don't have any code at this time. However, I've got a user-input string. I have to format the string to break it into 100 character strings. So the string could be 50 characters or 10,000 characters. But I need to take each 100 characters and put them on...

Search for a string inside a binary file , replace it and save again the binary.

2316 byte By zakkar at 2007-11-20 11:11:14
Hello ,I am facing a problem and I don't Know the solution.I'm using VB .Net 2005 . All I'm trying to do is to read a binary file which contains data with the format XX/XX/XXXX XX:XX , replace this value with something else and then save again the binary file.I have written the follow...

Linking two datagridviews (keep on same row)

798 byte By bjswift at 2007-11-20 11:11:18
I have two datagridviews, one represents existing data which is read only, the other shows another table, with the same structure, but allows the user to change the values. Starting out, the grids will be exactly the same, and the first grid only acts as a reference to what the data was like before...

Question about process in VB.NET

815 byte By JSmith2007 at 2007-11-20 11:11:38
Question about process in VB.NETDear Friends,I have some VB.NET code that runs some external process:Dim p As New Processp.StartInfo.UseShellExecute = Falsep.StartInfo.Arguments = ...p.StartInfo.FileName = ...p.StartInfo.WindowStyle = ProcessWindowStyle.Hiddenp.StartInfo.CreateNoWindow = Truep.Start...

ListViewHow to insert row before top row, i.e. in reverse order?

841 byte By JSmith2007 at 2007-11-20 11:11:39
ListViewHow to insert row before top row, i.e. in reverse order?I have some ListView:1111111 11 111112222222 22 222223333333 33 33333Dim objlistitem As ListViewItemobjlistitem = ListView1.Items.Add("1111111")objlistitem.SubItems.Add("11")objlistitem.SubItems.Add("11111")objlistitem = ListView1.Items...

Software Lookup

435 byte By 1druid1 at 2007-11-20 11:12:19
Hi AllI am looking for a way to make a program that will scan a users computer and display all installed software.. If possible I would like to basically connect remotly to this computer by typing in a computer name in my program, it then connects to the PC scans the system and brings back a list of...

Products-store data

615 byte By derok at 2007-11-20 11:13:22
Hi, I am working in this program of products sale,The products info must be already declared in the program, so when the user enters a certain code of product, it will display it's cost, and description.This is an assignment, and i have been told that i cannot use arrays to store the data:the p...

What is the max number of Net.WebClient connections?

997 byte By alougher at 2007-11-20 11:13:23
Hi -Running a service on O/S W2003 which makes many posts using Net.WebClient. In fact, here's the code:Dim web As New System.Net.WebClient Dim d() As Byte Dim address As New Uri(sUrl) web.Headers.Add("Content-Type", "application/x-www-form-urlencoded") d = System.Te...

Crystal Report Continous Printing

405 byte By bnazeem at 2007-11-20 11:13:49
hi ,FriendsI am facing a problem in Crystal Report in VB 2005 I want to print invoices on each page the name of customer, inv no, date and invoice details should be there, I want just on 1 click all the invoices should be printed in continous form one after the other in Dot Matrix Printer.I will be...

The most "heavy" files for the given directory.

549 byte By JSmith2007 at 2007-11-20 11:14:36
Dear Friends,I have some experience of work with Unix.And I remember some beautiful command:du -s * | sort -n which gives on top of the list the most heavy filessorting by their size(blocks) in desc order:1124245 File124444 File22223 File3I'd like to create something similar on VB.Net...

[VB2005][.NET 2.0] For Creating Mobile Apps...

52 byte By NoviceProgrammer at 2007-11-20 11:14:46
Can Visual Basic 2005 create cellphone applications?

how to implement a double_click event in a code - generated control

1012 byte By jageriane at 2007-11-20 11:14:52
i have several labels inside a table layout panel whose label name will be relaced by the contents of three comboboxes (outside of the tablelaoutpanel) after double clicking any of those labels. how do i do it?here' the code for the labels:Public Class Form1 Dim prof As String Dim room As...

Some process output question.

1225 byte By JSmith2007 at 2007-11-20 11:14:54
Hi,I have some VB code that runs process. Dim srOut As System.IO.StreamReader Dim srErr As System.IO.StreamReader Dim p As New Process p.StartInfo.UseShellExecute = False p.StartInfo.FileName = ... p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden...

How to say in VB.NET: new MethodInvoker(ReadStdOut).BeginInvoke(null, null); ??

135 byte By JSmith2007 at 2007-11-20 11:15:00
What would be VB.NET equivalent of<br/>new MethodInvoker(ReadStdOut).BeginInvoke(null, null);<br/>?<br/>Please advice.<br/>Thanks.

[RESOLVED] Display Message, Character By Character

604 byte By TCanuck42 at 2007-11-20 11:15:33
Hello. For some reason, I am having difficulties with a very simple project. I would like to pass a string such as "this is a string" to a sub, and the sub displays the message in a label, letter by letter, a new letter appearing every x milliseconds. There is obviously some kind of loop needed, but...

Need help about stream programming

631 byte By kee149 at 2007-11-20 11:16:00
I got an home work. have to send tomorrow Y Y. THe program is about streaming. I wrote a program connect to my server to get VDO streaming. But I'm not using directly way, I use Window media player component to see VDO Stream. But the problem is my teacher web site has Login before go inside. S...

TypedDataSEtProvider

481 byte By Nagham at 2007-11-20 11:16:02
Hello there...I'm using in my application a TypedDataset where there is all the tables of my database so this is what I did:I right clicked on my application and added a new Item: a datasetThen on the DataSources window I clicked configure datasource Here I have to set my connection,in the dro...

Easy solution?

931 byte By WelshWarrior at 2007-11-20 11:16:10
I have a button that adds values to a column in a datagridview that is connected to a data source. The problem is that When the user click the button, 1 point should be added to the cell but for some reason, if the cell is empty, I get an error saying that VBNull cannot be converted to Integer and t...

Dataset

337 byte By Vidya.p.nair at 2007-11-20 11:17:27
Hi All, I have a table Named Table1 and i have displayed all the records in a datagridview and after i make changes ie.Edit the Datagird i want to save the changes to the same table after i click Update Button.Can anyone tell me how to do this updation at a tim enot record by recordThan...

Making a Rich text Box transparent

489 byte By rajtelco04 at 2007-11-20 11:17:31
Hi everybody, I am trying to develop an application in vb.net. But what I want from my application is that I want to display the data that I have taken in rich text box to be displayed on a picture box , but the rich text box has to be transparent at runtime. The rich text box that I am taking is a...

Arithmetic Problems

1448 byte By Scott MacMaster at 2007-11-20 11:17:54
I'm having some problems with VB.NET not correctly doing basic arithmetic. For example, VB.NET says 47.1 - 19.27 = 27.830000000000002. I made a class to deal with this but I was wondering if there's a setting or something I can change to fix this?Oh, this is the class I made. Public C...

Full Rebuild Problem

448 byte By Scott MacMaster at 2007-11-20 11:18:32
I have no ideal what I did but today Visual Studio started during a full rebuild of my website everytime I do a build or run the website. It is getting very annoying having to spend so much time waiting.I tried deleting the project folder and recreating it. Then I tried removing and readding the r...

Help with simple program

1031 byte By hrvoje42 at 2007-11-20 11:19:08
HelloFirst, sorry for any language mistakes because English isn't my native language.I need to write a simple program in Visual Studio.net 2003 for tomorrow, but I was unable to purchase VS.net yet, so I'd appreciate if someone could write the program for me.Program reads variables a & b,...

Sample code for a log in screen

332 byte By rickilambert at 2007-11-20 11:19:30
Please could someone give me soe sampel code for creating a log in screen, i am in the starting stage of creating a libary system, using vb.net and microsoft access. My starting point was to build a log in screen. Ive searched the net loads but to no avail, so i was hoping that someone coudl assist...

sampling with replacement

624 byte By saimasattar at 2007-11-20 11:20:19
Hello All,I m doing a project in VB.Net in which i ve to do sampling of records with replacement.and then i ve to show the detail record of that selected sample in grid.I can select the sample by query and make its string with all those repeated ID's.After that i use that string in DetailRecord...

transperent_richtextbox

261 byte By rajtelco04 at 2007-11-20 11:20:28
Hello gurus,<br/> I am developing an application in vb.net in which I am creating a moveable rich text box at runtime inside a picture box.I want the rich text box to be transparent <br/>Pls see the attachment.<br/>I hope it will be clear now.<br/>Thank You

Connection string with variable

802 byte By WelshWarrior at 2007-11-20 11:21:43
Hi I am trying to fill a datagridview with data from access using a variable. My code is:Dim DBCon1 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=S:\SanctionsDb\2007-08\MeritsDemerits.mdb") Dim ds As New DataSet Dim da1 As New OleDb.OleDbDataAdapter("Select * from...

[RESOLVED] Change Screen Resolution.

463 byte By TCanuck42 at 2007-11-20 11:21:58
I am working on a little computer game. Its form size is approx 1024 x 760. Upon the start of the game, I wish to change the screen resolution to around 1024 x 760 so that my window will be nearly the entire screen. All of my game collision code is based off of the the form's dimensions, so i h...