|
Hi all,
i have downloaded a chat application from http://www.codeproject.com/useritems/Instant_Messenger.asp
Now i want to add the text formatting for the messages.
Formatting such as Bold, Italics, Underline and Color, Font changes etc.
I tried by using RichtextBox but i am not able to send and receive messges.
Anyone please help me out...
Thanks & Regards,
Pramod
|
|
|
|
|
Yadav Pramod wrote: I tried by using RichtextBox but i am not able to send and receive messges.
Hello Yadav,
Have u send/receive Text or Rtf?
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
i send the RTF of the richtextbox,
but when i receive the message and try to append the received string to the rtf of the richtextbox by richtextbox1.Rtf += receivedMsg;
here receivedMsg is the rtf that the client has sent.
but the above line does not append the message to the richtextbox.
Thanks,
Pramod
|
|
|
|
|
Yadav Pramod wrote: richtextbox1.Rtf += receivedMsg;
Do not do like this.
Make sure caret are at the end of RTxtBox. & use
richtextbox1.SelectedRtf = receivedMsg;
It will insert text where the caret is.
|
|
|
|
|
Thanks for your quick reply,
this one works in a sample application,
Now i will try that in my chat application.
Thanks,
Pramod
|
|
|
|
|
hi frnds, i m creating a project in visual studio 2005 at home. but in my college vs2003 is installed, so please tell me the way how to open that project in college...
|
|
|
|
|
I don`t know if that is posible because VS 2005 has a different way of managing source files within the project. For an example in VS 2005 if you add a new form to the project, it will be represented by to files, one containig your code and one containing autogenerated code like filed init and stuff like that. However in VS 2003 all the code was in a single file.
|
|
|
|
|
It is not possible. You cannot open a newer version of solution using an old version fo Visual Studio.
The only way you can do is create a new solution under VS2003 and add each file *.cs, *.resx, ... to this solution.
That's why, you must write your code as clean as possible. That means you can use your code in VS2003 and VS2005. Without something specific from VS2005.
|
|
|
|
|
hello frnds, i m creating a dataset at runtime..
for eg.
DataSet ds=new DataSet();
ds.Tables.Add(dt); //where dt is datatable created at runtime...
grid.DataSource=ds;
using the about lines ok code, i m able to view the data in datagrid...
but i want to display that data using crystal reports... how to display that dataset created at runtime using crystal reports...
|
|
|
|
|
iam having the problem of deployment at the client place,ie:at present at the client side iam installing the s/w or setup file seperately ,framework and database saperately.but,in my organization they want a setup in a CD, which should contain framework setup,application setup and database.in a clear way they want as ,when i insert a CD( contains framework setup,application setup and database) in a client machine it should automatically install the framework if it does not have the framework and it will install the application and create complete
database by simply clicking next...next buttons.wheather i can do this,if possible plz give me the description and clear way of setup.
|
|
|
|
|
open ur project,
click to add new project and select setup N deployment ,,
give a name...
thin in solution explorer u find d same...
right click it and click add then project output...
select the first 4 items...(that depends on ur choice)..
then once more click the setup in solution explorer and click build...
u san find a setup folder in ur project folder...
|
|
|
|
|
Hi.
Can anyone give me a simple implementation of Real-time Transport Protocol ?
Best wishes
|
|
|
|
|
|
1) Do your own work, we don't have time to do it for you
2) Have you ever heard of Google[^]?
-- modified at 5:59 Thursday 27th July, 2006
|
|
|
|
|
Hi
In my project i need to implement icon overlay for selected files and folders in a file system.When u right click on a file/folder and select a context menu the icon of the file/folder must be overlayed with a small icon.
I am new to windows shell programming and dont have enough time to do R&D.Searched the net but couldn't find any solution.Found one solution in DotNet247.com but it's not complete code.
can anyone help me.If possible post the code.
Regards
Krishna Choudary
|
|
|
|
|
i save my application settings in a settings.xml file. The settings.xml is editable with any text editor and therefore i always have to consider the fact the settings could ha been mnaullly edited. Is there a way io could encode or something my settings.xml so that the user cant see the the actual content. Also, how can i check wether my file has been modified.
|
|
|
|
|
I think you can create a hash for your file and put it at the beginning.
Then the next time you want to load that file, you must first create
a hash from it and compare it with the hash in you XML file. If it is the
same, then your file is not editted. Otherwise, someone has edit your file.
Use MD5ServiceCryptoProvider.
|
|
|
|
|
Iam working on MDI application and I have some problem.
For the main form, IsMdiContainer is set to true as well as the MdiParent for child form, is set to 'this' (main form).
But problem starts here.
I put all the codes for each controls in each separete class so it's easy to manipulate.
In Tabs class, I have all the methods, properties I need for adding, removing, renaming etc. tabs.
I also have a method for adding new child forms.
In this method, MdiParent isn't set to 'this', but to frmMain.ActiveForm.
The thing is that everything works great unless I try to add new tab from the other Form.
App then breaks at line MdiParent = frmMain.ActiveForm with this error:
Form that was specified to be the MdiParent for this form is not an MdiContainer.<br />
Parameter name: value.
How can I workaround this problem, but still have this method for adding new child forms in Tabs class?
Iam out of ideas.
Sorry if my post is confusing.
|
|
|
|
|
Hi,
ActiveForm is a static property of the Form class that returns currently activated form for the application but not the acitve frmMain instance. So in some cases you try to bind child form to the non-MDI-parent form.
To have access to your frmMain form from all your classes you can add static property to it (as in the Singleton pattern):
class frmMain
{
private static frmMain current;
public static frmMain Current
{
get
{
return current;
}
}
public frmMain()
{
current = this;
}
}
Then you can use this property to construct your MDI-child forms:
childForm.MDIParent = frmMain.Current;
|
|
|
|
|
Thank you Andrew, very much. It works like a clock.
I've tried something similar, but mine wouldn't work .
I've used other class for this, and it happened nothing, no error, no action, no anything .
And again, thanks.
|
|
|
|
|
i'm writing simple application that uses TCPListener and Client - i use BackgroundWorker to make listening in other thread. It set, when any error ocured function will use ReportProgress function and it will cause event and event will notice window etc ;]. My question is - i'm trying without debugging (just run exe) it work fine, with no problems - but WHY when i'm doing this same operation WITH debugging i get exception i can't access component in thread control weren't created in. I chceked - debugger show this line of code is called in BackgroundWorker thread - but how it work in "normal" mode?
Ideal compilator compiling comments without code...
|
|
|
|
|
i think the same problem was with ma project,,,
i think we cannot run two prosess in 1 thread..(ie listening and connecting)
this will cause Cross-Thread exception...
so just create the setup and run the exe file.
|
|
|
|
|
Hello to all.
I have a problem,which is how i backup and restore my database using c# application.
I m using c# and SQL-server.
Plz help my problem along with example(code) also and plz send it also on my own e-mail address.
wahid_dirvi@yahoo
bye
thanks
|
|
|
|
|
Would be nice if you would give detail as to what your problem is with backing up and restoring a database using C#.
I'd like to help but I am too lazy to Google it for you.
|
|
|
|
|
Google[^] . Um take a look at the first result, an article on this website non-the-less.
As of how to accomplish this I wouldn't have a clue at the moment and I'm too lazy to google it
|
|
|
|