Forum: Visual Basic 4 / 5 / 6 3 Days Ago |
| Replies: 4 Views: 204 Refer following sites for moving controls around form using mouse
http://www.vb-helper.com/howto_user_move_controls.html
http://www.freevbcode.com/ShowCode.asp?ID=4349... |
Forum: Visual Basic 4 / 5 / 6 3 Days Ago |
| Replies: 1 Views: 161 Hi
These sites may helpful for you
http://www.vb6.us/tutorials/convert-c-strings-vb-strings
http://www.vbthunder.com/articles/readcpp.php |
Forum: Visual Basic 4 / 5 / 6 4 Days Ago |
| Replies: 7 Views: 259 Nice.. but still try to improve the better version ..
Also use CODE tags
http://www.daniweb.com/forums/misc-explaincode.html
for better understand. |
Forum: Visual Basic 4 / 5 / 6 4 Days Ago |
| Replies: 7 Views: 259 First you find the ascii for the special characters then try to code it ..
Ex:
0-32 Allowed
91-96 Allowed
>= 123 Allowed then |
Forum: Visual Basic 4 / 5 / 6 4 Days Ago |
| Replies: 7 Views: 259 Sure, I can give some alternatives,before that if u have a time, u try your own..
Try it.
>>Controls characters are within the range 0 to 32..
You should dont restrict the key ascii between... |
Forum: Visual Basic 4 / 5 / 6 4 Days Ago |
| Replies: 7 Views: 259 Hi,
change the above code like this
Private Sub Text1_KeyPress(KeyAscii As Integer)
'If ( KeyAscii > 47 And KeyAscii < 58) Then
If ( IsNumeric ( Chr ( KeyAscii ) ) Then |
Forum: Visual Basic 4 / 5 / 6 6 Days Ago |
| Replies: 3 Views: 242 Hi
Visit here for control array tutorial and try it
http://www.vb6.us/tutorials/vb6-control-array-tutorial |
Forum: Visual Basic 4 / 5 / 6 7 Days Ago |
| Replies: 2 Views: 273 Hi, Use Key_Press event in VB6 to capture the keypress within vb application. |
Forum: Visual Basic 4 / 5 / 6 Jul 30th, 2009 |
| Replies: 9 Views: 1,205 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: 567 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: 620 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: 907 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: Visual Basic 4 / 5 / 6 Feb 21st, 2009 |
| Replies: 1 Views: 752 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: 900 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: Visual Basic 4 / 5 / 6 Feb 19th, 2009 |
| Replies: 5 Views: 1,007 |
Forum: Visual Basic 4 / 5 / 6 Feb 19th, 2009 |
| Replies: 3 Views: 864 Hi, Try
For Each Loop instead of For Loop |
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009 |
| Replies: 5 Views: 1,007 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,262 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: 710 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: 600 Try ADO Tutorials (http://functionx.com/vb6/Lesson14.htm) |
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009 |
| Replies: 1 Views: 546 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: 793 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,488 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: 701 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,427 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: 409 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: 455 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: 556 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: 959 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: 959 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: 580 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: 515 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,215 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: 515 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: 318 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,626 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: 515 Hi,
You can do it thru Add ins in VB6. |
Forum: Visual Basic 4 / 5 / 6 Dec 28th, 2008 |
| Replies: 16 Views: 1,900 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 Views: 512 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 Views: 512 Hi.
When u insert a record, did u give any primary key constrain ? |