Search Results

Showing results 1 to 40 of 509
Search took 0.03 seconds.
Search: Posts Made By: selvaganapathy
Forum: Visual Basic 4 / 5 / 6 Jul 30th, 2009
Replies: 9
Views: 979
Posted By selvaganapathy
Hi,

Where you get error, Can u specify? Then only we can find error easily. That is the line in which the error occured.
Forum: Visual Basic 4 / 5 / 6 Jul 30th, 2009
Replies: 3
Views: 547
Posted By selvaganapathy
Hi,

ReDim statement is used to change the size of a dynamic array in procedure level.

Preserve keyword is used to preserve the data in an existing array when you change the size.
Ex
...
Forum: Visual Basic 4 / 5 / 6 Jun 10th, 2009
Replies: 2
Views: 594
Posted By selvaganapathy
HI

Use \ operator instead of / operator, because / operator in vb gives floating result and \ operator gives integer result. so floating value will be rounded to integer.

For example

Dim...
Forum: Visual Basic 4 / 5 / 6 Feb 24th, 2009
Replies: 2
Views: 811
Posted By selvaganapathy
Hi, U can use Usercontrol.Parent Property get the Parent object and use WithEvents keyword to capture the Parent events


'In UserControl
Option Explicit

Dim WithEvents mParent As Form
...
Forum: C++ Feb 24th, 2009
Replies: 2
Views: 436
Posted By selvaganapathy
I changed the reference as pointer that also not working. Finally i found the solution. I just inherit a class from CArray <>, that solves the problem.


struct Coordinates{
int x, y, z;
};...
Forum: C++ Feb 23rd, 2009
Replies: 2
Views: 436
Posted By selvaganapathy
Hi,
I am using VC++6, MFC Application

I am having the member variable - CArray < Coordinates, Coordinates & > mCoordinates. Coordinates is a structure, contains x, y, and z. When i return...
Forum: Visual Basic 4 / 5 / 6 Feb 21st, 2009
Replies: 1
Views: 708
Posted By selvaganapathy
Hi

Use

Dim sJanDate as String

'Retrieve empty string if the record is null
sJanDate = rsmnth("JanDate") & ""

'Then check it
Forum: Visual Basic 4 / 5 / 6 Feb 20th, 2009
Replies: 2
Views: 812
Posted By selvaganapathy
Hi,

I dont think so such query exist but u can use like this


INSERT INTO VALUES ( .... ) , ( .... ) , ....


Make such SQL and Execute the single query.
Forum: VB.NET Feb 19th, 2009
Replies: 1
Views: 324
Posted By selvaganapathy
Hi,

Use a flag variable to decide you want to change the other dropdowns.


Dim bChangeID as Boolean

'On SelectedIndexChanged event
If bChangeID = True Then
'Do...
Forum: Visual Basic 4 / 5 / 6 Feb 19th, 2009
Replies: 5
Views: 947
Posted By selvaganapathy
Yes, I agree Comatose
Forum: Visual Basic 4 / 5 / 6 Feb 19th, 2009
Replies: 3
Views: 847
Posted By selvaganapathy
Hi, Try

For Each Loop instead of For Loop
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 5
Views: 947
Posted By selvaganapathy
Hi,
Refer FindWindow(), SetWindowText() APIs which helps you to change the Name of start button.
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 16
Views: 1,226
Posted By selvaganapathy
Hi, use

DoEvents function so that other process get chance. This function helps to disable your form.

Example

Dim bStop As Boolean

Private Sub cmdProcess_Click()
Do While bStop <>...
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 7
Views: 684
Posted By selvaganapathy
Hi,

Try ADODB.RecordSet.GetRows () Method which returns array of records. It may seem to be fast.
Forum: Visual Basic 4 / 5 / 6 Feb 10th, 2009
Replies: 1
Views: 552
Posted By selvaganapathy
Try ADO Tutorials (http://functionx.com/vb6/Lesson14.htm)
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009
Replies: 1
Views: 486
Posted By selvaganapathy
Hi,

Refer ADODB.RecordSet (http://msdn.microsoft.com/en-us/library/ms675841(VS.85).aspx) Properties (RecordSet.RecordCount (http://msdn.microsoft.com/en-us/library/ms676701(VS.85).aspx))...
Forum: Visual Basic 4 / 5 / 6 Feb 7th, 2009
Replies: 3
Views: 774
Posted By selvaganapathy
Hi,

You can also use PaintPicture () to get the portion of image

Code

Option Explicit
Dim iX As Integer, iY As Integer, iHeight As Integer, iWidth As Integer

Private Sub...
Forum: Visual Basic 4 / 5 / 6 Jan 27th, 2009
Replies: 8
Views: 1,423
Posted By selvaganapathy
Yes, Debasisdas is correct.
Refer

WeekDayName ()
WeekDay ()
&
Other Date Functions
to achieve this.

WeekDayName ( WeekDay ( Date ) ) returns today date in String
Forum: Visual Basic 4 / 5 / 6 Jan 27th, 2009
Replies: 4
Views: 684
Posted By selvaganapathy
Hi, You have to display a message box, when closing a form or changing one tab to another.

If Changing from one tab to another,
set editing flag on All the controls change event (Current Tab)...
Forum: Visual Basic 4 / 5 / 6 Jan 26th, 2009
Replies: 4
Views: 1,355
Posted By selvaganapathy
Hi, ComboBox.Style is ReadOnly property at Runtime, that means you can change its value only design time.

Try another logic instead of using Style property.
Forum: Visual Basic 4 / 5 / 6 Jan 26th, 2009
Replies: 1
Views: 390
Posted By selvaganapathy
Hi, I think there is no record and you have not called ADODC.RecordSet.AddNew method to Add new record.

Call Adodc.RecordSet.AddNew() method before enter any value to the text box
Forum: Visual Basic 4 / 5 / 6 Jan 21st, 2009
Replies: 5
Views: 444
Posted By selvaganapathy
Hi, Make your Exe path on the local system's registry "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run". It will run automatically when system is on
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 2
Views: 544
Posted By selvaganapathy
Hi,

Use DeviceIoControl() API, to eject the removable storage media. Refer http://support.microsoft.com/kb/165721
Forum: Visual Basic 4 / 5 / 6 Jan 8th, 2009
Replies: 3
Views: 903
Posted By selvaganapathy
In the first column u should put the data from the recordset's first column. I have given the sample code only

To do

Open the Database Connection
Open the Recordset
Move to the first record
...
Forum: Visual Basic 4 / 5 / 6 Jan 8th, 2009
Replies: 3
Views: 903
Posted By selvaganapathy
Hi
Change ListView.View to Report
Add Columns as per the recordset columns
Use ListView.ListItems.Add() method to add an item to ListView. It will return a ListItem object. Then use that...
Forum: Visual Basic 4 / 5 / 6 Jan 8th, 2009
Replies: 1
Views: 554
Posted By selvaganapathy
Hi,

Specify in which line error occurs.
I guess it from your SQL query. Check whether the fields are existing and spelled correctly.
Forum: Visual Basic 4 / 5 / 6 Jan 8th, 2009
Replies: 5
Views: 500
Posted By selvaganapathy
This link will help you but not quite http://support.microsoft.com/kb/189468.
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009
Replies: 10
Views: 1,182
Posted By selvaganapathy
Hi,

Use MSFlexGrid.TextMatrix ( row, column ) to get/set then value rom/to the grid.
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009
Replies: 5
Views: 500
Posted By selvaganapathy
No there might be no option for such Add in in Add in menu. You have to create your own Add In Project.
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009
Replies: 2
Views: 308
Posted By selvaganapathy
Hi,
My suggestion
> Use ORDER BY Clause
> Iterate thru all records
> If duplicate occurs (If current = previous), simply ignores it
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009
Replies: 7
Views: 1,520
Posted By selvaganapathy
Hi,

Why dont you design your message box using Form, Label and Buttons?

> Click Add Form from project menu
> Choose "Dialog" from the templates
Forum: Visual Basic 4 / 5 / 6 Jan 7th, 2009
Replies: 5
Views: 500
Posted By selvaganapathy
Hi,
You can do it thru Add ins in VB6.
Forum: VB.NET Dec 28th, 2008
Replies: 2
Views: 900
Posted By selvaganapathy
May be this discussion is useful
http://www.daniweb.com/forums/thread135921.html
Forum: Visual Basic 4 / 5 / 6 Dec 28th, 2008
Replies: 16
Views: 1,788
Posted By selvaganapathy
Hi,
Check the fields (item_code, ProductName and maxofunit) are available and spelled correctly ..
Forum: Visual Basic 4 / 5 / 6 Dec 28th, 2008
Replies: 4
hi
Views: 501
Posted By selvaganapathy
Instead of using INSERT query, you can use


'In form Load
RS.Open ("SELECT * FROM TABLE")

'To Add, Use
RS.AddNew

'To update
Forum: Visual Basic 4 / 5 / 6 Dec 27th, 2008
Replies: 4
hi
Views: 501
Posted By selvaganapathy
Hi.

When u insert a record, did u give any primary key constrain ?
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2008
Replies: 16
Views: 1,788
Posted By selvaganapathy
Wrong use of Grd.AddItem() and what about cItemName and cUnit
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2008
Replies: 2
Views: 604
Posted By selvaganapathy
Hi,
You can use either file handling mechanism or database connection.
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2008
Replies: 1
Views: 561
Posted By selvaganapathy
Hi,
Check the condition that Picturebox1.Top is positive. if it is negative, it will be top of the frame. Dont let the PictureBox1.Top to negative. Similarly dont let the PictureBox1.Top +...
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2008
Replies: 12
Views: 1,280
Posted By selvaganapathy
Hi,
You can abort the system shutdown using AbortSystemShutdown () win32 API. Please refer this..
Showing results 1 to 40 of 509

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC