Code for Events of Dynamically created ComboBox

255 byte By poonamaswani at 2007-11-20 11:52:11
Need an help to code events for the dynamically created combobox in VB. As the combobox is created and filled with data at runtime, now if we want to access any event of this combobox how to code for that event. Please if anyone can help me out .... Thanx

VB in Excel Moving screen

159 byte By paradoxresolved at 2007-11-20 11:52:14
How can I get Excel to scroll so that a given cell, say f13, is the top left cell?<br/>Sorry for the noob question. I'm used to Visual C++. Thanks.

saveing program features

296 byte By TuNiX at 2007-11-20 11:52:30
Say im designing a simple program heres what i want to do.<br/>type a number into a text box, shut down the program and when it reopens i want that number to stay there.<br/>This is so i can change "options" inside of my programs and the program will remember those changes when it re-opens.

VB6: Saving A Form At The End Of Program

677 byte By haydo at 2007-11-20 11:52:45
Hi There,At the end of the program I want it take an image or save all the information of the form. But I would prefer an image. Probably a print screen? That's just a guess!I know how to do the whole Form1.PrintForm1 thing but is there a way I can save the image of the form so the user can h...

VB6 - AccessMDB Maintenance/Upgrade

1216 byte By themaj at 2007-11-20 11:52:54
Can anyone here give me some advice on methods and strategy for maintaining and upgrading existing Access DBs as my VB6 (not NET) application develops and/or grows?The story goes like:MyApp.exe and my MyAccess.MDB are working fine together.Client asks for modifications that result in adding a Table...

CDONTS to send emails

524 byte By hardik at 2007-11-20 11:53:42
Hello,I am having problem using CDONTS to send email through VB 6.0 App on WinXp machine. The problem I am having is that, when I use CDONTS in App, the App shows as if it generates the email. But email is not triggered until I log off from the Windows.The email comes to Inbox, only when I log off f...

compare with data in sql database

969 byte By derok at 2007-11-20 11:53:49
Hi,i am using visual studio 2003 and sql server 2000I have a program that connects to a database.the database contains two colums:example:ProductId--Name1----Casino Royale2----Silent Hill3----Lady in the Waterthere is a "Form1"when i click on a menu item on Form1, an inputbox is displayed asking the...

[RESOLVED] Select statement

1105 byte By Bezzie at 2007-11-20 11:54:11
I want to write a function to import my old database into a new database. The database consist of a number of tables (currently 14). In the function everything will work the same for each table except the select statement. This changes for each table. So there is a lot of code that can be reused on...

VB6 Insert query

702 byte By atuvy at 2007-11-20 11:54:13
I am writing code in VB6 which inserts data into a database on an SQL 2000 server, I have no problem inserting data but I cannot read it back. Please see code below.For some reason it does not read data and rst.RecordCount is always -1Public cnn As ADODB.ConnectionPublic rst As ADODB.RecordsetSet cn...

Create User Accounts on VB 6.0 application

1230 byte By dilsiam at 2007-11-20 11:54:17
Dear gurus: I'm trying to code a create new account button, but what it does is that it deletes the first record existing on the database. I would like help to create usr accounts without affecting the ones created, for an application that has a Log In form. Here is the code:Private Sub cmdCre...

Filtering a DataGridView

357 byte By furjaw at 2007-11-20 11:54:29
Visual Basic 2005: I have a DataGridView in Last Name sequence.Is it possible to when a user types the first letter of a last namethat it displays all rows with last names that start with that letter.When he types the second letter, it displays all records whose last name starts with those 2 letters...

Initial Catalog value is not changing

436 byte By bhuv at 2007-11-20 11:54:33
Hi, In class module I have created public property procedures Data source name, userid , password and databse name. In a sample form I am assigning for value for that. Initial Catalog = Databasename. First time it is executed, Second time I changed the value for datasourcename and database name. Wh...

Report Designer

439 byte By amarjitamarNew at 2007-11-20 11:54:44
Hi there, Hope everyone ok.I have a small Question. Is it possible to create labels in Data report designer having 2 labels horizontally in a page.Label1 Label 2Name 1 .... Name 2 ....How to write the details section so that it s...

Insert data in ms project using vb6

178 byte By yaqoob_ahmed@rediffmail.com at 2007-11-20 11:54:46
Dear Friends<br/>How to insert data into office Microsoft project using vb6 application..<br/>If anybody knows ..please help me......i am needed badly<br/>Thnaks in advance.

Passing Variable in VB2005 Web Application

514 byte By mvuyelwam at 2007-11-20 11:54:52
i have created a web application using VB2005, i have stored date in one variable that i created in one page but when trying to access that variable in another page using request.querystring the variable return blank. Below is the code i am usingPage1.aspxResponse.Write(username)--saving the data fr...

SQL Server Connection error for POCKET PC in VS2005

1502 byte By ai4u at 2007-11-20 11:54:55
I want to develop a POCKET PC application for PDA HP iPAQ hx2400 which have Windows Mobile. In my Local PC I have VS2005 and SQL 2000 on windows XP. When I try a simple application in VS2005 with local DB connectivity and run it on Pocket PC 2003 SE Emulator which is inbuilt in VS2005 it gives me "S...

Flexgrid, create date coloumns

935 byte By SuperX at 2007-11-20 11:55:00
Hi AllI stumbled onto the forum and found it to be very helpful in some of the projects I am working on.. I am currently working on a project that requires me to have a grid on the main form, where by each coloumn represents a day of the month.. The software is going to show certain things happening...

Capitalize Drivelistbox

262 byte By swizzapizza at 2007-11-20 11:55:03
Gutentag!<br/>I am working in VB6 and want to capitalize the drive letters in a drivelistbox when the form loads. Any suggestions?<br/>Thanks in advance,<br/>sweezapizza<br/>e.g. The drive list box displays c: or a: and I want them like C: and A:

VB 6 transactions PULLING HAIR OUT!

309 byte By roughan at 2007-11-20 11:55:06
Hi we are developing an application that uses Access links tables with an SQL SERVER 2000 DBif in a transaction (beginTrans)and i select then update a table and then select again it fails with an odbc error if i skip over the BeginTrans it is fine any ideas RgdsRoughan...

Save HTML as text

359 byte By MeatLander at 2007-11-20 11:55:22
I want to open up a webpage in Internet Explorer and then save the displayed page as a text file. Worst case scenario, I'm willing to open up the webpage in Internet Explorer and read out the HTML Source code line by line and create my own text box... but I can't figure out how to do that...

how to draw 3 different graphics on same object?

280 byte By sa_keles at 2007-11-20 11:55:32
how can i draw 3 different graphics on same graphic object? i have a x-y graphic and x=4 and x = 20 lines. how can i draw these two lines and the graphic on same objec (mschart or any other objects). i attached a picture, it could explain better what i mean<br/>thanks in advance

IE 7 causing problems with Com+

541 byte By Snow_Dogs at 2007-11-20 11:55:41
Greetings,I've created a com+ dll that uploads files, checks for a file extension and file size among other things. If the file is too large or has no extension an error is raised. This works like a charm in IE 6, but in IE 7 if the file is over 2048 kb and I raise an error that the file is to...

how to solve this error? (vb.net & ms project)

1015 byte By kahyoong at 2007-11-20 11:55:59
hi, I'm having an error during runtime of my code.Dim theFile As String OpenFileDialog1.InitialDirectory = Application.ExecutablePath OpenFileDialog1.DefaultExt = "mpp" 'custom format OpenFileDialog1.FileName = "" OpenFileDialog1.Filter = "Microsoft Project File...

GetFocus

1796 byte By TT-n at 2007-11-20 11:56:05
Here is an example of how to get the handle of the window, that currently has the keyboard focus.Since GetFocus is limited to the calling thread, this will attatch the thread input temporarily. Private Declare Function apiGetForegroundWindow Lib "user32" Alias "GetForegroundWindow" () As Int32...

Visual Basics And Mysql?

195 byte By hauntmisery at 2007-11-20 11:56:10
How do i get it so that when i give my software to other people they don't have to download the odbc connector form mysql to connect to the mysql server to use the software.<br/>Thanks!

Shell to Notepad in "Vista"

708 byte By nbCathy at 2007-11-20 11:56:58
For some reason the following quit working in the MS "Vista" operation system. It opens notepad but it blank and it should contain data.Private Sub OpenResults_Click() SetFocusTotbN1 Dim CallWord As Long On Error Resume Next dummy = Dir(App.Path + "\TVRF_Results.txt", 0) Open dummy For Ap...

Multi Form Requirement

1006 byte By George1111 at 2007-11-20 11:57:01
I have an application which does InvoicingI normally show my input form by InvForm.ShowI also have variables used globally in a Module for the applicationI want to be able to process as many InvoicesI need, (without having to close any other Invoices in Progress - Ie, I want to achieve multiple sa...

Problem in getting information of registered Dll in registery

579 byte By rutu at 2007-11-20 11:57:03
I am developing an application which will retrieve the information of register Dll in registry. I am searching the info under HKEY_CLASS_ROOT under Typelib to get the path of aplication by which it is registered.I am able to get the path name when i am compiling it through code but when i am making...

VBScript(SendKeys)

438 byte By computerman29651 at 2007-11-20 11:57:16
I am extremely new to VBScripts, but I am trying to teach myself. Any help will be greatly appreciated.I have created a VBScript that will open a certain application. However, I am unable to figure out how to enter the username and password to login to the application.Is it possible to use SendKeys...

open/close local port

105 byte By useruser34 at 2007-11-20 11:57:21
Hi to all. I want to open and close local ports like port 25 or port 80 with vb.net. Can you help me pls?