Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 1st, 2008, 10:37 AM
Member
 
Join Date: Aug 2008
Posts: 39
Default About Handles in visual basic 6.0

Hai

I have a form with a TextBox and a Button. When the Button is clicked the TextBox should display "This is sample Testing".Deploy. The code for the click event of the Button looks like this:

Private Sub Button1_Click(By Val sender as System.Object, By Val e_
as System.EventArgs)Handles Button1.Click
TextBox1.Text="This application is Deployed"
End Sub

After i wrote this code, when i click complie
it shows

Compiler Error:

Expected: list separator or )

and some times Handles will select and shows the error

Expected statement.

and one more thing is when i type By Val sender as ,
after as i con't see System in Auto list members.

so please help me.

Thanks for advance.

Nagesh.
Reply
  #2  
Old September 1st, 2008, 04:38 PM
kadghar's Avatar
Expert
 
Join Date: Apr 2007
Location: Mexico City
Age: 25
Posts: 1,084
Default

well, yes, to change line you should write " _" (space and lower line)
you didnt write an space after the 'e'

You should also write an space before "handles" but it should be added by the editor.

HTH
Reply
  #3  
Old September 4th, 2008, 08:43 AM
Member
 
Join Date: Aug 2008
Posts: 39
Default

Quote:
Originally Posted by kadghar
well, yes, to change line you should write " _" (space and lower line)
you didnt write an space after the 'e'

You should also write an space before "handles" but it should be added by the editor.

HTH
Hello Sir,

Thanks for ur reply.when i type Handles for the above code it is not shown in Auto List Members.The editer is not added automatically.Why ? is there any reference to add to display Handles in Auto list members ? Please help me sir,
Suppose i type Handles means it shows

Compiler Error as
Expected Statement

So please help me.How i solve this problem.I am searcing in Internet also,but i can't find exact solution. so please help me.

thanks,

Nagesh.
Reply
  #4  
Old September 4th, 2008, 07:54 PM
kadghar's Avatar
Expert
 
Join Date: Apr 2007
Location: Mexico City
Age: 25
Posts: 1,084
Default

Quote:
Originally Posted by nagmvs
Hello Sir,

Thanks for ur reply.when i type Handles for the above code it is not shown in Auto List Members.The editer is not added automatically.Why ? is there any reference to add to display Handles in Auto list members ? Please help me sir,
Suppose i type Handles means it shows

Compiler Error as
Expected Statement

So please help me.How i solve this problem.I am searcing in Internet also,but i can't find exact solution. so please help me.

thanks,

Nagesh.
Hi Nagesh,

the problem has nothing to do with 'handles' ^.^
It's because you didnt write an space before the lower line " _" you use to change line. It's that simple, to change line you should write " _" instead of the "_" alone.
Reply
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles