|
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.
|
|
|
|
|
veluru krishna wrote: while (s != null)
{
sb.Append(s);
sb.Append(Environment.NewLine);
s = sr.ReadLine();
}
|
|
|
|
|
How to OPEN and OVERWRITE a binary. Pls Give me Sample Coding.
K.Alex
|
|
|
|
|
Look at the System.IO.File[^] static class and the System.IO.FileStream[^] class.
Also, search the web for articles on how to do this; there are hundreds of tutorials and examples on how to do this.
|
|
|
|
|
Hi, I want to test my little text editor app on another computer but when I have sent things like this to friends over msn, they get an error, is there someway of bundling the framework with the program or is the only way to turn it into an installation type thing with the framework with it?
Thanks.
|
|
|
|
|
They can just download and install the framework. No, there's no way around it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey Chris,
That's not 100% accurate
take a look at:
http://www.thinstall.com/solutions/net_virtual.php
--
If you think the chess rules are not fair, first beat Anand, Kasparov and Karpov then you can change them.
Moral is, don't question the work of others if you don't know the reason why they did it.
|
|
|
|
|
I know there are products which allow you to create a free standing exe, but pointing that out just muddies the waters. None of the solutions I know of are cheap, and really, I think they are a bad idea in any case.
|
|
|
|
|
Bundle your app with the .NET framework. Alternately, use the bootstrapper built-in to VS to generate a setup program that downloads and installs the .NET framework only if required.
|
|
|
|
|
Hi Code Project Team.
Someone know how set the progressbar layout to vertical direction?
Thanks in advanced.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|