PC Review


Reply
Thread Tools Rate Thread

change caption

 
 
=?Utf-8?B?bm90cmVnaXN0ZXI=?=
Guest
Posts: n/a
 
      21st Mar 2005
hi,

in VB6 i can change the caption of the form by using

frmMain.Caption = "ABC"

how do i change it in .NET??
the text i want to change is found at the form1's properties > Appearance>
text

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3JvdWNoaWUxOTk4?=
Guest
Posts: n/a
 
      21st Mar 2005
It is:

Me.Text = "ABC" for example, but if you are need to change the caption for a
different form other than the current one then you refer to it like this:

Dim frm As New Form2
frm.Text = "ABC"
frm.ShowDialog()
frm.Dispose()

The above few lines declares a new instance of form2, sets its text (Caption
in VB6) to ABC, shows the form modally & destroys the object on close

I hope thi has helped

"notregister" wrote:

> hi,
>
> in VB6 i can change the caption of the form by using
>
> frmMain.Caption = "ABC"
>
> how do i change it in .NET??
> the text i want to change is found at the form1's properties > Appearance>
> text
>
> Thanks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default caption color in References/Insert Caption? Nick Piazza Microsoft Word Document Management 4 13th Jul 2009 07:00 PM
can i able to change the voting caption "VOTE" to custom caption? Balan Microsoft Outlook 1 3rd Dec 2008 09:47 PM
Re: Change Caption Piet Linden Microsoft Access Form Coding 1 13th Sep 2008 07:58 AM
Re: Change Caption Sue Mosher [MVP] Microsoft Outlook Contacts 0 5th Dec 2003 02:14 PM
Re: How to change a caption Newbie Microsoft Access Reports 0 21st Jul 2003 12:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:15 AM.