Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2007

Tip: Looking for answers? Try searching our database.

Set text of an edit control (newbie)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Kelley - 26 Sep 2007 16:38 GMT
How do I programmatically set the text of an edit control?

Thanks.
Ben Voigt [C++ MVP] - 26 Sep 2007 17:52 GMT
> How do I programmatically set the text of an edit control?

What layer are you using for UI widgets?  Native win32, MFC, .NET Forms,
...?
Tim Kelley - 27 Sep 2007 16:10 GMT
mfc

>> How do I programmatically set the text of an edit control?
>
> What layer are you using for UI widgets?  Native win32, MFC, .NET Forms,
> ...?
Ben Voigt [C++ MVP] - 27 Sep 2007 16:46 GMT
Are you using DDX?  Why don't you just use the class designer to map the
text to a CString variable?

Otherwise, CEdit has a SetWindowText member function as David has pointed
out.

Also, MFC questions do not belong in this newsgroup, which is for using C++
in .NET, mainly C++/CLI but interop questions would be more or less on topic
here as well.  Try microsoft.public.vc.language in the future.

> mfc
>
>>> How do I programmatically set the text of an edit control?
>>
>> What layer are you using for UI widgets?  Native win32, MFC, .NET Forms,
>> ...?
David Lowndes - 27 Sep 2007 16:31 GMT
>How do I programmatically set the text of an edit control?

SetWindowText.

Dave

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.