Project Preparation.

1621 byte By ashkumar at 2007-11-20 10:39:21
Hi,I've a Project (I thnink it is a big project for me), and I don't want to be fall in wrong way, so I decided to ask this question here.First I'm besceibing the project.(1) It is a Database Project and it is for a big trust which have 6 Divisions at same Building.(2) Project must ma...

Updating spreadsheet that has formulas in cells

3002 byte By WelshWarrior at 2007-11-20 10:40:04
HiI am trying to save to a spreadsheet that has formulas in 2 of the columns. they are basic formulas (just adding and subtracting some other cells). The Spreadsheet is displayed in a DataGridView and what data is shown depends on the user's selection.Problem is, before I added the formulas, th...

[RESOLVED] Form DropShadow Effect...

1792 byte By tim8w at 2007-11-20 10:40:16
I found the code at PlanetSourceCode: Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Const CS_DROPSHADOW = &H20000 Dim cp As CreateParams = MyBase.CreateParams cp.ClassStyle = cp.ClassStyle Or CS_DROPSHADOW...

BindingNavigator change notification.

560 byte By satanorz at 2007-11-20 10:40:58
Hi all another time!, i'm using vb net 2005 and i have this scenario.DatasetBindingSourceBindingNavigatorIt's all linked, the problem is that i'm making a custom BindingNavigator that must have control over if saving is needed or not. To do this i need to know if the user has made cha...

Sending Newsletter Automatically

568 byte By g1m0v0n5 at 2007-11-20 10:41:19
Hai,I had created one Program to send Mail with Attachments using Vb.net and Ms Access.I had used the database to send the mails to mailids which are stored in the database in a single click.It is now working properly.Now the another option I have to add is sending Newletter to that mail ids. The Ne...

Converting vb6 to vb.net - openfiledialog question

3234 byte By LisaM at 2007-11-20 10:41:23
Ok so this is day 2 my first programming job. What I have done is to convert a vb6 program to vb.net... no problem. Today I was asked to "add a db pointer" to one of the forms to make sure that the db I am working with is not the live one the company used...merely a copy on my hard drive. That was e...

getting handle of child windows

347 byte By Klaudioz at 2007-11-20 10:41:59
Hi. this is my first post and my english isn't very good. sorrymy problem is: i get the handle of particular windows getting your name. but this window have a chat which i need get your handle for my programthis chat is a Internet Explorer_Server. i know this thanks WinIDhow can i get it ??. th...

Sockets with Winsock control DLL Problem [URGENT]

767 byte By Tomdarkness at 2007-11-20 10:42:04
Hello,I am not a VB.Net expert.I want a simple Winsock program to send and receive data, so I decided to use the DLL located: http://www.codeproject.com/vb/net/winsockdotnet.aspIt works great but as soon as I am finished connecting and my client disconnects, no-one else (Not even the original client...

Weird DataGridView saving problem!

4910 byte By WelshWarrior at 2007-11-20 10:42:15
I have a program that displays rows (Schhol Class Groups) from a spreadsheet based on which user (teacher) is logging into the program. The user can then add/remove student's penalty points from the fields using 2 buttons. The user can then update the rows obtained from the spreadsheet using an...

Select doesnt work. Mysql

1326 byte By fonx at 2007-11-20 10:43:08
Hello I'm doing an app in VB.Net 2005 using the .net connector. For the moment it connects but I can't execute a SELECT, the dataset returns empty, count = 0. This is the code I use:Private Sub BBaseDatos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BBaseDatos....

Add a custom control to a DataGridView

5712 byte By JackStephen at 2007-11-20 10:43:09
Hello everyone.I've made a new control, it's a ComboBox with CheckBoxes that i named CheckedComboBox, but the problem is that I need this control on a DataGridView.So I've tried to make a new DataGridViewColumn but the problem is that I cant access to the proprieties of my CheckedComb...

Detecting a crash

346 byte By 1druid1 at 2007-11-20 10:43:21
Hi AllI have a program that controls a com port collection system, unfortuantly this Com program is a little buggy and crashes every so often.. Is there anyway for me to create a small App in VB.net that monitors this program and notifies me by mail when it has crashed? Any help is appreciatedCheers...

Excel automation problem.

1082 byte By Alsvha at 2007-11-20 10:43:30
Greetings all.I've made a service which creates an Excel workbook automatically using the Excel COM object.I have however got a problem that when I try to enter a formula containing the sheet names to sum across all sheets that the service crashes with a "Exception from HRESULT: 0x800A03EC" err...

Calculate the computation time

389 byte By imname at 2007-11-20 10:44:05
I would like to calculate the computation time for my program.But it seems not function.What's wrong with my code?Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = True *****my program Debug....

Value from row 1 gets wiped!

3539 byte By WelshWarrior at 2007-11-20 10:44:26
Hi allI have a form with a DataGridView on it which displays records from a spreadsheet based on the user's selection. I have a button which adds the number 2 to every cell in a certain column. This bit works fine.When i then click the button to update the spreadsheet, the number 2 from the 1st...

related tables in design time using views.

744 byte By bjswift at 2007-11-20 10:44:46
I've done this before, where I add two grids (by dragging two tables onto the form from my data source), and they have a relation on them so basically what you select in the top grid 're-populates' contents in the bottom grid.This is all fine and dandy, and makes sense, because that r...

add row to datagrid

1152 byte By jagguy at 2007-11-20 10:46:33
I know how to add a new row of data to a database using textboxes .I add the new data and want to execute the command with the following.However to use a ExecuteNonQuery command I have a problem.I have a datagrid which I dont know what to put as a parameter instead of textboxes. How do i put part of...

Simple error?

780 byte By WelshWarrior at 2007-11-20 10:47:34
I have a DataGridView that is displaying entries from a sreadsheet. I was to be able to change the background colours of individual cells based on what is contained in those cells. I have used the code below stays red even though some should be green!Can anyone see why? For Each row As DataGridViewR...

Access VBA

1847 byte By computerman29651 at 2007-11-20 10:47:57
I am trying to create a search form. I would like the search form to search the DataEntry table. If the data exist and disposal is checked, then the search form displays the data. The data exists and the disposal check is unchecked then give an error message. If the data does nto exist at all give a...

[RESOLVED] Web/System Colors...

361 byte By tim8w at 2007-11-20 10:48:03
Is there a way to get the Web and System colors seperately like in the Color Picker? I know I can use the following code to get the entire list... Dim knownColorName As String For Each knownColorName In [Enum].GetNames(GetType(KnownColor)) cmbWebColors.Items.Add(Color.FromNa...

Run a file from an event

1309 byte By High_D at 2007-11-20 10:48:12
My program watches directories loaded from an XML file, and the idea is that when something changes in that directory a batch file tied to that directory gets executed.Everything seems to be working fine except for tieing the batch file to the event, I'm not sure how to go about that...The File...

Small Help Please

218 byte By Vidya.p.nair at 2007-11-20 10:48:41
In VB.NET 2005 I have a Tab control with 3 pages and in the 1st page i have a Button when i click that button it has to show me the 2nd Page of the tab Control<br/>Please give any suggestions<br/>Thanks in Advance

Problem with Image object

542 byte By satanorz at 2007-11-20 10:48:52
In VB2005, i've an application with many binded controls to a dataset.Also i have code to check if data on the current row has been changed or not ( for save message confirmation ).All of this works fine, but i've noticed that if i have a binded Image of a picturebox... when i try to move...

[RESOLVED] [2005] Applying Themes Through Code

809 byte By HanneSThEGreaT at 2007-11-20 10:48:56
Hey guys!I'm currently busy with a program ( mostly based out of curiosity ), this is actually a "test" program, before I'll apply everything into another already existing application. The purpose of this application is to programmatically apply screen savers, configure screen savers, and...

Calculations in DataGridView

1232 byte By WelshWarrior at 2007-11-20 10:49:05
Hi peopleI have a DataGridView which displays info from a Database. I need a couple of the columns to be able to do basic calculations such as +, - etc - nothing more complicated really. I am a bit stuck as to how to gte this working.I have tried the code below with no joy:Private Sub cmdWorkout_Cli...

[RESOLVED] Where is GetProfileString?

188 byte By Elrond at 2007-11-20 10:49:16
I am trying to use the function GetProfileString in a VB program, using Visual Studio 2005 and it does not seem to know this function at all. It does not appear as well in the help I have.

create PDF file on the fly in vb .net

370 byte By apopescu at 2007-11-20 10:50:09
Dear Colleagues,I have a grid on an aspx page and a small buton "export to PDF" at the buttom of the page that does nothing (yet).Upon clicking this button I should create and open up a pdf document that contains the grid info.I have no clue how to do this.Can anyone help me with some code samples?...

RichTextBox Fore color, font size - Undo Problem

365 byte By raj_cg at 2007-11-20 10:51:00
Hi,I find a wierd problem with RichTextBox control.I load a rich text box with the contents of a file.If I try to undo after changing fore color, undo doesnt work.If i try to undo after changing font size, undo doesnt work.Can anyone let me know why it happens so ?I have attached a sample project.Re...

datagrid display contents

271 byte By jagguy at 2007-11-20 10:51:01
I have a datagrid with data and i wish to display the contents of a field in column1 (pk) that has been changed.<br/>How can i do this and i use this for the datagrid<br/> DataGrid1.SetDataBinding(ds, "Departments")<br/>I can display data with datagrid ok.

Adding Name to Combobox in vb.net 2005

963 byte By g1m0v0n5 at 2007-11-20 10:51:02
Hai,I have one database table in the following structure:Compid Compname Personname1001 XXX Rajaram1001 XXX Joseph1001 XXX Hitler1002 yyy Ramesh1002 yyy KumarNow I am adding the Compname and Compid in the combobox. It is perfectly Adding in the following way:XXXXXXXXXyyyyyyBut my need is I want to a...

My label will not word wrap and I cannot access my Text control

595 byte By markyoung1984 at 2007-11-20 10:51:04
Two questions:1) I have a large amount of textin one of my labels but it will not word wrap. I have found out that vb.net word wraps automatically, whereas in VB6 you had control? Does anyone have any suggestions?2) I am trying to access the Text property on a label control from another module....

how to display info using a gridView in .net 2.0

828 byte By apopescu at 2007-11-20 10:51:53
Dear Colleagues,I have a read-only gridView object on an aspx page that should just render data. I provided the data source and I called Databind().The results are showing up but the columns captions are the table captions. How can I change them? I tried to set the name of each column by using grind...

::WinExec in Visual Basic...?

176 byte By Torsus2 at 2007-11-20 10:52:16
In C++ you can call a window function by ::WinExec, for example<br/>::WinExec("notepad.exe text.txt", SW_SHOWMAXIMIZED);<br/>is there a similar command in Visual Basic...?

DGV Issue - 2 datasets....1 set as combobox collection list?

632 byte By o9z at 2007-11-20 10:52:40
Ok, here is what I haveDataset A - This is the data displayed in every field of the DGV(all textboxes + 1 combobox)Dataset B - This is populated from a different SQL server and table than DatasetA and needs to be the COLLECTION of my combobox in the DGVI have the displayed items working fine, but I...

Combining dates

521 byte By Broodmdh at 2007-11-20 10:52:47
I have two Date variables that I am trying to combine into a single new variable. One contains the date, and the other contains the time (ex: var1 = #04/08/2007#, var2 = #3:45 PM#). I've attempted to combine them by doing the following:Dim fullDate As New Date(var1.Year, var1.Month, var1.Day,...

File names with commas and process.start in VB.NET

534 byte By acmdo at 2007-11-20 10:53:24
Hello,I have a question about the file names and paths with commas inside the string.I am trying to open the windows explorer with one file selected, in order to do this I am usingProcess.Start("Explorer.exe", "/n,/e,/select," & path & filename)The instruction does not work if path is some like "e:\...

Im confused about Date.... T_T

179 byte By OneWingedAngel321 at 2007-11-20 10:53:29
How would i set a value to a variable that is a date?<br/>if i Dim something like dDate As Date, how would i set a certain date to it?<br/>like a value like 01/1/2007...

Retrieving HTML-code from a website

198 byte By Torsus2 at 2007-11-20 10:53:56
In visual C++ I know that I can use:<br/>CInternetSession ses(sBrowser);<br/>CStdioFile *pFileSrc = ses.OpenURL(sUrl, 1, INTERNET_FLAG_TRANSFER_BINARY);<br/>Can I do it in Visual Basic...?

Increasing speed to retrive the data from database

474 byte By g1m0v0n5 at 2007-11-20 10:54:17
Hai,I had developed one project for maintaining the customer details of my company. That database is now containing near about 5,000 records.When I try to enter a new customer record or searching a customer detail, it is taking lot of time that is 5 to 8 minutes to hit the database. Why it is like t...

Navigating through data

747 byte By aspiring_geek at 2007-11-20 10:54:25
Hi all,Once you've connected to a database and it gives you a dataset.xsd, how do you navigate between records in code and also populate a datagrid. Sorry, I am a novice from vb6 and only know how to use the old data control with an msflexgrid and databound textboxes (by the way can you still u...

Problem on add permission on folder with CACLS

737 byte By Victor Zhang at 2007-11-20 10:55:01
Hi everyone,I'm using a command shell to run the cacls command to add permissions on students personal folders right after the student's active direcory account has been created. It was fine when I test the code with single account. But when large amount of students are involved some stude...

Debug shows Error, no errors thrown

1668 byte By MeatLander at 2007-11-20 10:55:02
I have a simple peice of code that queries a database and returns a count. Everything works fine, I get all of the results that I expect, and no error messages are displayed. But, when I'm testing I noticed that my debug window is full of this message: "A first chance exception of type 'Sy...

master/slave ?

2848 byte By jagguy at 2007-11-20 10:55:29
I dont want to have to click on the datagrid row to get the link to the data.I have the correct data but it displays the master table in the dayagrid and then a link to the slave table in the datgrid.I just want the link to appear between the textbox (1 record) and the datagrid (many records) The d...

Refer to Image in Resouces

122 byte By fallnwrld at 2007-11-20 10:56:38
I have an ICO file in Resources, How do I refer to it?<br/>Me.Cursor = New Cursor(Image.ICO file Stored in Resources)

Building a solution

316 byte By sine184 at 2007-11-20 10:56:53
Hi,I have a problem when I try to build a solution. It shows me this error:Project 'ProName' could not be opened because the Microsoft Visual C# 2005 compiler could not be created. Please re-install Visual Studio.Does anyone have any ideas what might be the problem?Thenx...

Database

460 byte By Vidya.p.nair at 2007-11-20 10:57:14
Hi All,I have a MS Access Database which is Password protected I want to connect to this particular databaseCould u help me out how the connection string looks likeFor eg:I have given like thiscn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = E:\Share\UpServer\TMSServer.mdb; Pass...

Moving a Borderless Window

857 byte By fallnwrld at 2007-11-20 10:57:19
My window has no border and the below code allows me to click on the window and drag it around. The problem is, Left/Right click on the form no longer works. Any ideas?'Place this code anywhere on your form code#Region " ClientAreaMove Handling "Const WM_NCHITTEST As Integer = &H84Const HTCLI...

vbUnicode/as any Errors

655 byte By bheller at 2007-11-20 10:57:28
I am new to vb.netI am trying to convert my application from vb 6.0 to vb.net. the conversion runs smoothly other than "vbUnicode" and "as any" errors. VB.net doesnt support these declarations. Is there any easy transformation?for instance can i rewrite this to work in vb.net?thanks varResult(1, iX)...

DataGridView populate

1925 byte By shers at 2007-11-20 10:58:18
Hi,I'm working on VB.NET Express and SQL Server Express. I have a DataGridView control in the form, with 8 columns, of which one column, which has default values, is hidden and one column is already filled with default values. I want to populate the DataGridView with records that exists in the...

[RESOLVED] [2003] Treeview showing all Subfolders and files

317 byte By GrimmReaper at 2007-11-20 10:58:42
Hello everyone!How can I make a Treeview which lists all the subfolders inside all subfolders (similar to windows explorer), but with all the subfolders' files inside the treeview?I do not want to show it in a listview, all the folders and files must be shown in the treeview.Can anyone help?...