Select Nick On Paltalk Listview Code FInally :)

You can talk about VB programming here

Postby method » Mon Jul 10, 2006 7:31 pm


nanomachine007 wrote:click on green icon rectangular just left word debug you can see the result of that code. I use vs2005 but professional version i dont know if there are different between them :roll:


btw if you want link your variable to your control you have to check to function DataExchange something like that.
Edit control your variable for that type is an instance of CEdit or CString. u just check help online about that. I never ask help when i'am learning mfc or other just read more documentation.
button control your variable must be an instance of CButton

and after go to procedure dataexchange and link them for example like this

DDX_control(pDX,IDC_EDIT1,yourvariableforEditControlHere);

then after you can interact with your control by your variable with procedure UpdateData

in our case I linked the Edit control with an instance of CString.


i tried u code and i got this error on runngit :
Attachments
vbcode.JPG
vbcode.JPG (22.68 KiB) Viewed 417 times
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby BattleStar-Galactica » Mon Jul 10, 2006 7:31 pm

no no no you never need to rename edit control normally the id given by editor itself.


and in mfc is not same like vb like mytextboxaddtoform.text not that.

you can modify Edit control and update with linking variable to that control and use UpdateData to update content of variable linking to that control or get content of that control u have linked to your variable.


UpdateData that function exist in mfc with parameter true or false. man i do not want to teach you how to learn mfc. I just can help some snippet code, if you want to know mfc i think you must read more.


btw do my demo work for u :?:
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Mon Jul 10, 2006 7:40 pm

nanomachine007 wrote:no no no you never need to rename edit control normally the id given by editor itself.


and in mfc is not same like vb like mytextboxaddtoform.text not that.

you can modify Edit control and update with linking variable to that control and use UpdateData to update content of variable linking to that control or get content of that control u have linked to your variable.


UpdateData that function exist in mfc with parameter true or false. man i do not want to teach you how to learn mfc. I just can help some snippet code, if you want to know mfc i think you must read more.


btw do my demo work for u :?:


man your code is working but only it does not take the value of text box!!
I am almost done but this textbox is giving problem!!. Any thing i type it goes highlight the first item in listview!! as u know i do this in visual c++ 6 . i placed new editbox without changing it to m_nick and same problem again!!

Your code for visual studio 2005 does not run and i get error as i shown u up in the pic!! I want to make both of these to work !!
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby BattleStar-Galactica » Mon Jul 10, 2006 7:50 pm

awch i have no idea what is the error shown in pic. good luck man, i dont know what to tell you how to create a textbox with your editor maybe google can help you
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Previous

Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests