Search Results

Showing results 1 to 40 of 125
Search took 0.01 seconds.
Search: Posts Made By: selvaganapathy
Forum: Visual Basic 4 / 5 / 6 3 Days Ago
Replies: 3
Views: 182
Posted By selvaganapathy
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 Jul 30th, 2009
Replies: 3
Views: 564
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 Feb 24th, 2009
Replies: 2
Views: 886
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: Visual Basic 4 / 5 / 6 Feb 7th, 2009
Replies: 3
Views: 792
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,486
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 7th, 2009
Replies: 10
Views: 1,213
Posted By selvaganapathy
Hi,

Use MSFlexGrid.TextMatrix ( row, column ) to get/set then value rom/to the grid.
Forum: Visual Basic 4 / 5 / 6 Oct 26th, 2008
Replies: 4
Views: 1,289
Posted By selvaganapathy
Hi,
You can try Masked Edit Control instead of TextBox control
Forum: VB.NET Oct 10th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,375
Posted By selvaganapathy
Hi,
You can Use Array of Three Number for Computer Guess and User Guess, instead of having a single number.

Ex

Dim UserGuess(2) As Integer
Dim ComGuess(2) As Integer

Sub...
Forum: Visual Basic 4 / 5 / 6 Oct 7th, 2008
Replies: 5
Views: 1,659
Posted By selvaganapathy
Hi, Try to Write MessageBox Coding in Form_QueryUnload event or Form_Unload Event. This is will show the Message whenever user close the Window
Forum: C# Oct 1st, 2008
Replies: 15
Views: 5,741
Posted By selvaganapathy
Hi,
Which version of .NET Framework you are using? FormClosing is new to .NET Framework 2.0. Or Specify what difficulty you are facing while implementing the above code.
Forum: VB.NET Sep 30th, 2008
Replies: 3
Views: 1,052
Posted By selvaganapathy
Hi, Object.ToString() to format the string
Forum: Visual Basic 4 / 5 / 6 Sep 30th, 2008
Replies: 5
Views: 1,002
Posted By selvaganapathy
Hi, ADO uses similar properties and methods like DAO. It differs in some methods and properties. The way of open the database and Table are somewhat differ.
Forum: Visual Basic 4 / 5 / 6 Sep 30th, 2008
Replies: 7
Views: 1,302
Posted By selvaganapathy
Hi,
When we use Unload statement the form is getting unload (visible=false) from memory and not destroyed as said by jireh. Then the form is removed from the Forms collection. It is not actually...
Forum: Visual Basic 4 / 5 / 6 Sep 26th, 2008
Replies: 7
Views: 1,302
Posted By selvaganapathy
Hi,

Global variable or Properties can be used as your suggestion.
Assume you have Ok and Cancel button in your modal form.
In the Modal form, user can click Ok button for approval and for...
Forum: VB.NET Sep 23rd, 2008
Replies: 2
Views: 1,243
Posted By selvaganapathy
Here you made mistake.

change

If "Average grade: " >= 90 Then
letterGrade = "A"
ElseIf "Average grade: " >= 80 Then
letterGrade = "B"
ElseIf...
Forum: C# Sep 18th, 2008
Replies: 8
Views: 1,620
Posted By selvaganapathy
Hi,
Array size can be specified dynamically like

int[] AnArray;
int iSize = 10;

AnArray = new int [iSize];

So user can control the length
Forum: Visual Basic 4 / 5 / 6 Sep 18th, 2008
Replies: 5
Solved: Set date to 0?
Views: 760
Posted By selvaganapathy
Ok, You can do extract and Concatenate from string. It is another way to solve your problem
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2008
Replies: 5
Solved: Set date to 0?
Views: 760
Posted By selvaganapathy
Hi,
I think you want like Stop Watch. Date variables dont take such values, If u set 00:00:00 it automatically changes to 12:00:00 AM.

You can create Your own Date class that implements the...
Forum: VB.NET Sep 12th, 2008
Replies: 1
Views: 869
Posted By selvaganapathy
Hi, I think you are trying to display Multiple columns. Why dont you consider about the other controls that capable of display multiple columns (Like Grid control or ListView).

In listbox all the...
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2008
Replies: 3
Views: 1,863
Posted By selvaganapathy
Hi, Can u post your sub routine or its prototype?
Forum: VB.NET Sep 4th, 2008
Replies: 3
Views: 4,768
Posted By selvaganapathy
Hi Luke,
Instead of converting Label to Integer (Label1 to Minutes), Use DateTime Class for Date or Time operations.

It has methods and Properties to manipulate it.
Forum: Visual Basic 4 / 5 / 6 Sep 4th, 2008
Replies: 2
Views: 1,211
Posted By selvaganapathy
Hi,
I was also faced that problem, but never get good solution. Data Environment is not refresh when add a new Record. It will be static.

But i did separate the Data Environment and my...
Forum: Visual Basic 4 / 5 / 6 Sep 3rd, 2008
Replies: 3
Views: 916
Posted By selvaganapathy
Hi,

If you want to shade that portion you have know a point inside that portion.
Forum: VB.NET Aug 29th, 2008
Replies: 3
Views: 1,143
Posted By selvaganapathy
Is Timer1 the member of Current Form? Have you check it?

Also Where you declared Timer1?
Forum: C# Aug 26th, 2008
Replies: 4
Solved: Key Press Event
Views: 5,685
Posted By selvaganapathy
Use MaxLength of TextBox to restrict your input only 4 character. or use MaskedTextBox for input only digits.
Forum: Visual Basic 4 / 5 / 6 Aug 25th, 2008
Replies: 5
Views: 1,109
Posted By selvaganapathy
Ok, one solution is to have two FileListboxes. One with Multiselect = 1 (design time). and another with MultiSelect = 2 (Designtime). When user change the property you swap the visibility of the...
Forum: Visual Basic 4 / 5 / 6 Aug 25th, 2008
Replies: 5
Views: 1,109
Posted By selvaganapathy
Hi, I think error form the line


File1.MultiSelect = 2


because MultiSelect property is read only at Runtime. that is you can set it at design time only.
Forum: C# Aug 25th, 2008
Replies: 4
Solved: Key Press Event
Views: 5,685
Posted By selvaganapathy
Hi,

means you have to allow only 4 digits?

or

you mean, when you press '4'
If so, put quote before 4 in

if(e.KeyChar == 4)
Forum: Visual Basic 4 / 5 / 6 Aug 24th, 2008
Replies: 3
Views: 1,048
Posted By selvaganapathy
Hi, Use
ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=MyDB;Persist Security Info=true;Jet OLEDB:Database Password=MyPassword"
Forum: C# Aug 24th, 2008
Replies: 15
Solved: MouseMove
Views: 3,742
Posted By selvaganapathy
Ya Nice,

>>To Clip the Cursor, you have to Capture it First. To do use Cursor.Capture = true in button1_Click.

>>Another thing is to set the Bounding Rectangle of the Clipping area.

...
Forum: C# Aug 24th, 2008
Replies: 15
Solved: MouseMove
Views: 3,742
Posted By selvaganapathy
Hi, your above code will work when you move the mouse over groupBox1, it will show the X and y position of the Mouse



From your question, I think you want to restrict the Mouse Cursor only...
Forum: VB.NET Aug 19th, 2008
Replies: 11
Views: 1,652
Posted By selvaganapathy
Hi harry,

> Use Form level array(say A) to hold all the words in a file
> Use form level integer to hold the current index(say ci)
> When Form loads read the words in the file and store it in...
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2008
Replies: 5
Views: 2,141
Posted By selvaganapathy
Code the things said by guest11


Private Sub Command1_Click()
If WindowState = vbMaximized Then
WindowState = vbNormal
ElseIf WindowState = vbNormal Then
WindowState =...
Forum: VB.NET Aug 17th, 2008
Replies: 11
Views: 1,652
Posted By selvaganapathy
You need to know GDI+ or some other technique

Other Technique:

> Draw a Label in Form,
> Set Autosize Property to False
> Set Dock Property To Fill
> Set TextAlign Property to Middle Center...
Forum: Visual Basic 4 / 5 / 6 Aug 15th, 2008
Replies: 1
Views: 1,430
Posted By selvaganapathy
Hi,
Form has WindowState Property.
The values may be
vbNormal - 0 - (Default) Normal.
vbMinimized - 1 - Minimized (minimized to an icon)
vbMaximized - 2 - Maximized (enlarged to...
Forum: Visual Basic 4 / 5 / 6 Aug 14th, 2008
Replies: 2
Views: 3,078
Posted By selvaganapathy
Hi,
In vb, MOD is an operator to find Remainder
Ex

Dim iRemainder As Integer

iRemainder = 2008 MOD 10 'Here 8 is the Remainder


If you divide one number by another number...
Forum: VB.NET Aug 9th, 2008
Replies: 6
Views: 5,785
Posted By selvaganapathy
Somewhat correct. But you have to declare the variable at Form level not inside Click Event Handler


Dim bBtnClicked As Boolean = False
Private Sub cmdOne_Click(ByVal sender As...
Forum: VB.NET Aug 9th, 2008
Replies: 6
Views: 5,785
Posted By selvaganapathy
Hi,
> Use a boolean variable (bBtnClicked)
> Initially Keep it false (bBtnClicked = false)
> Whenever user click the button Make it True (bBtnClicked = True in Click Event)
> Now the boolean...
Forum: Visual Basic 4 / 5 / 6 Aug 4th, 2008
Replies: 11
Views: 1,784
Posted By selvaganapathy
It is correct, just change


Private Sub Label1_DragDrop(Source As Control, X As Single, Y As Single)
If Label1.Caption = "" And TypeOf Source Is Label Then
Label1.Caption =...
Forum: Visual Basic 4 / 5 / 6 Aug 4th, 2008
Replies: 11
Views: 1,784
Posted By selvaganapathy
Make Enabled property of Target Control is working.
Consider the Above coding

Private Sub Label1_DragDrop(Source As Control, X As Single, Y As Single)
If TypeOf Source Is Label Then
...
Showing results 1 to 40 of 125

 


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

©2003 - 2009 DaniWeb® LLC