|
Hi, Dear Respected Programmers
Kindly give me source link of RichtextBox using OpenfileDialog.
Thank you
|
|
|
|
|
You mean somthing like :
<br />
..<br />
..<br />
OpenFileDialog openFileDialog = new OpenFileDialog();<br />
<br />
DialogResult result = openFileDialog.Show();<br />
<br />
if (result = DialogResult.OK)<br />
{<br />
myRichTextBox.Text = openFileDialog.selectedPath<br />
}<br />
..<br />
..<br />
..or you mean something different? Be clear please
-- modified at 4:05 Tuesday 14th November, 2006
.:: Something is Wrong ::.
|
|
|
|
|
Thank you sir,
|
|
|
|
|
I'd google it for you, but I'm not sure what you want to know.
|
|
|
|
|
Hello everyone,
I need your help to make a decision. I want to make a client/server program working like this :
At the client program, the user will make same selections, write some info etc. in a wizard like interface. When he/she is done and click the finish button all selections and infos will be sent to the server. All problems shall handled; for instance if the server does not reply for some reason the client should queue the ready-to-send data for a while, or if the internet goes down again queue the data and wait until the internet is back again etc. The ready-to-send data should also include a header part that identifies the client itself and some other useful information. All these information may crypted.
The server will listen some ports -or just one port for incoming trasmissions. It will have an effective queue structure so that no incoming data is going to lost due to long waiting periods. Also the server should refuse incoming data that do not have a proper header or that do not have a client id matching the list that the server itself holds.
As you guess there may hundreds of clients and more features may be added later, so everything can going a bit more complex.
My question is how should I write such a program. Using .NET Remoting, Network Programming or what else? Or am I on the wrong way and should use some othe approach ?
I will appreciate any help about the issue.
Thanks a lot and best regards.
.:: Something is Wrong ::.
|
|
|
|
|
I'd tend to use a web service.
|
|
|
|
|
I'm pretty charmed by WebServices. These act like a website but are just a litte more capable of handeling application (client) to server communication. You can secure data sent and when 'something' goes wrong during data retrieval or while sending, IIS handles your errors which you can catch easily. You can verify incoming data and you have no fancy security issues since they're all handled by IIS (you must trust those guys at Microsoft though .
I've created several apps using WebServices and i'm pretty happy about them. I'm really not into creating own 'servers' and handling TCP stuff so pretty obvious i chose WebServices, i really think you should look at them, and if they don't fit your needs, you can always switch to a diffrent solution
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Thanks a lot @Christian Graus and @Eduard Keilholz.. Never thaught that way!
I will give a try to webservices but never used or studied them before. So better start to learn soon ..
Thank you very much again!
.:: Something is Wrong ::.
|
|
|
|
|
Dear All,
Please let me know how to remove the string "For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp." when the method System.Diagnostics.EventLog.WriteEntry() is used to write events into Windows Event Log.
The link is misleading for all non microsoft projects and will add unnecessary confusion for those who see the events.
Regards,
Naveen
|
|
|
|
|
Hello friends,
I have Visual studio 2005 installed on my Windwos 2003 server. I have installed Sharepoint services also.
Now I installed "Web Part Template for visual studio .net" on this computer.
But when I try to create a new project, VS2005 is not showing the WebPart Template.
Can anybody suggest , what could be the reason. I have tried several times, install/uninstall the webpart template. But no use.
Please help to fix this problem.
Thanks in advance
TMRK
|
|
|
|
|
Hello All
Can u please help me with handling the datagridview checkbox click event
i am unclear of the usage of DirtyCellStateChanged event
Regards
Sandeep
|
|
|
|
|
Hi sandeeb, I think that the following code is enough to handle the gridview checkbox events, I've used this for many times, if there is a better way it is ok.
foreach (GridViewRow gvRow in gv1.Rows)<br />
{<br />
CheckBox chk = new CheckBox();<br />
chk = (CheckBox)gvRow.Cells[1].FindControl("chkBox");<br />
if (chk.Checked)<br />
{<br />
<br />
}<br />
}
|
|
|
|
|
thanks for the help
i was tryin to implement the same thing in a windows application
there no Findcontrol method which i could use
Can u please help
|
|
|
|
|
Hello All,
i am sandeep , i am tryin to work with svcutil tool to generate WCF client
what i already have is::
--> A contract in the form of an interface
--> A service which implements service [as per contract]
--> i need to go ahead to implement call back feature
can u please give me a clear cut command to get the client .cs file
can u also please tell me any modifications to be made in the service .config file so as to allow meta data exchange possible
Regards
Sandeep
Sandeep Kulkarni
|
|
|
|
|
Hello,
I have a webBrowser control on my windows form. I also have a textBox, in which I allow my user to enter a letter of a word and hit a button to highlight all the occurances of the entered letter/word.
Here's the button code:
webBrowser1.Document.Body.InnerHtml = webBrowser1.Document.Body.InnerHtml.Replace(textBox1.Text, "<font color=\"red\">" + textBox1.Text + "</font>");
The problem is, if the user enters 'a', for instance, every single 'a' will be replaced and that's a huge problem. Imagine I have: <a href="url">link</a>! And maybe it gets worse if he enters: < or >.
How can I solve this?
Thanks in advance.
|
|
|
|
|
You could use a regular expression to do the pattern matching.
only two letters away from being an asset
|
|
|
|
|
I have added comboboxcolumn in datagridview. It is working fine till adding different values to different cells.
But, at the time of selection, i have to do double click on that perticular cell to populate that combobox. I am confused!! what to do for this. I need it working with a single click.
Can anybody help me as i am new to C#.
Thanks in advance.
|
|
|
|
|
What is the easiest way to save a database password in my xml settings file? I'm currently writing all my db connection settings to an xml file. How can I write out the password so that people cannot read it?
Thanks
Tom
Tom Wright
tawright915@gmail.com
|
|
|
|
|
I guess you need to come up with some sort of encryption ( or better yet, find one in the system.cryptography namespace ) and use it to hide the password.
|
|
|
|
|
You can use one of the crypting alorithms under the System.Security.Cryptography namespace. These algorithms will quite help you. And there are a lot of info about these algorithms on the net if you are interested in. My favourite one is the Rijndael algorithm.
On the other hand you can make your own algorithm . Like when writing the passwords to the xml file -if the passwords you are protecting are not as important- simply taking the complement of all characters, and when reading back again taking the complement of all characters. This is not the way to stop crackers but at least it is a way .
Good luck.
.:: Something is Wrong ::.
|
|
|
|
|
i'd be tempted to use a hash in this situation rather than a 2-way encrypt
this article's got loads of info on hashing / salts and challenge response systems
http://www.developerfusion.co.uk/show/4679/1/
i guess it depends on how secure you want these things to be
Russ
|
|
|
|
|
|
Hi all,
how to open a text file
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
Google is broken where you live ?
here
|
|
|
|
|
hi,
I know how to browse a file and read the data from the file into a richtextbox in windowsform but my problem is I am not able print each file as it is but I am able to print just as appending to each line using the following code:
code :
OpenFileDialog dlg = new OpenFileDialog();
dlg.Title = "Open text file";
dlg.InitialDirectory = @"c:\";
dlg.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
if (dlg.ShowDialog() == DialogResult.OK)
{
StreamReader sr = File.OpenText(dlg.FileName);
string s = sr.ReadLine();
StringBuilder sb = new StringBuilder();
while (s != null)
{
sb.Append(s);
s = sr.ReadLine();
}
sr.Close();
this.richTextBox1.Text = sb.ToString();
}
can you please help me to read file as it is with newline characters to richtexbox
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|