Connecting Tech Pros Worldwide Forums | Help | Site Map

file transfer link labels ....

Newbie
 
Join Date: Jul 2009
Posts: 4
#1: Aug 18 '09
I am creating a LAN messenger in C# ... i want to as u that when a person sends a file to another person .. the reciever get its notified by .. the file name with the 2 options ... ACCEPT or DECLINE in the richtextbox... i want these 2 linklabels to be saved as object ... please help me in displaying these linklabels in richtextbox .. and identifying these links .. with their definite filenames.. can anyone help ... ??

Expert
 
Join Date: Jun 2008
Location: Pretoria, South Africa
Posts: 410
#2: Aug 18 '09

re: file transfer link labels ....


Hi

Well you will have to send the path of the file to the receiving machine as part of your message. You can then create a linklabel and set its text. Create an event handler for the link label and in that handler start a new process with the path to the file. Set the linklabels parent property equal to the richtextbox. Note that the receiving machine will have to have access to the file on the sending machine i.e. windows file and folder sharing will have to be set to allow the remote access of the file.
Newbie
 
Join Date: Jul 2009
Posts: 4
#3: Aug 19 '09

re: file transfer link labels ....


thanks ... but the required work is'nt done still... i am adding a linklabel in richtextbox... . but it just adds up a single linklabel .. not MULTIPLE link labels ... and what about positioning these linklabels with the text..... please help me ... its urgent...
Expert
 
Join Date: Jun 2008
Location: Pretoria, South Africa
Posts: 410
#4: Aug 19 '09

re: file transfer link labels ....


For each linlklabel which you want to display you will have to create a new linklabel object and set its parent property equal to the richtextbox.

Why is it that the links need to be in a text box? From your first post you say that you require 2 links, so why not add to linklabels to the form instead of putting them in a richtextbox?
Newbie
 
Join Date: Jul 2009
Posts: 4
#5: Aug 19 '09

re: file transfer link labels ....


Beacuse as you see in normal messengers ... when you are recieving a file or any notification .. text messages .. every thing is been recieved within that richtextbox... so i want that myrequest of file transfer should also be placed within that richtextbox .. then the user might click ACCEPT or DECLINE to answer... any solution from u ???
Reply


Similar C# / C Sharp bytes