|
Ask this question in the correct forum.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
what do you mean by that? I have axWebBrowser1 a webbrowser on a windows form
|
|
|
|
|
Well, I stopped reading when I realized your code wasn't inside a <pre> tag and properly formatted.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
now i have put them inside the tag. Do you see any error what i am trying to do
|
|
|
|
|
|
I am using
void diaryListView_MouseMove(object sender, MouseEventArgs e)
{
ListViewHitTestInfo lvhti;
lvhti = diaryListView.HitTest(e.X, e.Y);
ListViewItem item = diaryListView.GetItemAt(e.X, e.Y);
}
to ascertain which row I am over in a sortable ListView.
How can I search through a dataTable for a match for all the columns in the ListView row please?
|
|
|
|
|
we devlop program for big ISP company
have 3 SQL table
Provider Table [Combobox1]
ID Name
1 prov1
2 prov2
3 Prov3
////
Location Table [Combobox2]
ID Name
1 Loc1
2 Loc2
3 Loc3
////
End_User Table [Listview1]
ID Name Provider_ID Location_ID
1 ab 1 2
2 bc 1 3
3 cd null 1
4 de 2 null
////
Actually we add "All Provider" to provider combo also "All Lcoation" for location combo to get all even null. value for both "All Provider" & "All Location" set to 0
I can get fill listview user with specific provider
like
var user = from s in db.End_User
where s.Provider_ID == comboprov.value...
slect s
foreach(.......
this good if all location slected in comoboboxlocation or nonvalue select)
i need to fill full four condition in this one statement for Linq to sql
A- prov = 2 & Loc = 0(all)
B- prov = 0(all) & loc = 1
c- prov = 1 & loc = -1(nothinselect)
D- prov = -1(nothinselect) & Loc = 3
something like
var user = from s in db.End_User
where s.Provider_ID = {"*" @(if combopro.value == 0) || combopro.value} + {s.Location_ID = {"*" @(if comboloc.value == 0) || combopro.value}
select s.
foreach(.......
Thank you...
modified on Tuesday, November 11, 2008 10:39 AM
|
|
|
|
|
Hi
If I develop a dll that deals with most of my data security in C++ or Delphi for example, a malicious user could replace it with a bad copy and this way it would void my security.
Is it the same in C#? When I add a dependency it may run with malicious copies (with the same metadata)?
In other Windows Application I would just check the dll CRC before using it... Would that be enough in C#?
Thanks,
Dirso.
|
|
|
|
|
.NET assemblies can be signed, that prevents tampering like this.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Looks like a nice solution... Let me see if I can work it out
Thank you so much!!!
Dirso
|
|
|
|
|
Other than the signing that was mentioned in the other post to your question, you can use an obfuscator. With an obfuscator you can scramble an assembly so that it cannot be decompiled and obfuscation also allows you to embed watermarks that you can check when an application starts. (All of this, of course, depends upon the obfuscator you use). I happen to use Spices Obfuscator from 9rays.net, but the company seems to be dying so I wouldn't look into getting that particular obfuscator.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
That would be nice. I hope to find something cheap... I use Aspack for years and it was always a good product, but sadly it works with native windows applications only.
Thanks,
Dirso.
|
|
|
|
|
i wrote a simple server i want it to run in my local machine, but before doing that i want to know what are the ports currently in use and the applications that are using those ports, how can i get these information
|
|
|
|
|
Socket.Select
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hi guyzs,
I am trying to create forum in my site and i am in need of guide for that, can anyone give me link which help me for that or some guide for that......
|
|
|
|
|
|
|
PHP in C# messageboard ...
|
|
|
|
|
|
Could always direct him over to the Linux/Unix board...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi all!
I am just playing around trying to learn more about C# and I wrote the contents of textBox1.Text to a file on my hard drive using System.IO, the following way:
string[] lines = new string[] { textBox1.Text };
string filepath = "C:\\Users\\Jase\\JTS\\myfile.txt";
File.WriteAllLines(filepath, lines);
..And it works perfectly. But when I started to type the word File (at the beginning of File.Write AllLines.) the IDE IntelliSense thing popped up and I noticed there is an Encrypt option. Then it got me thinking... Does this actually encrypt the file? I tried the following code to encrypt but does not work:
string[] lines = new string[] { textBox1.Text };
string filepath = "C:\\Users\\Jase\\JTS\\myfile.txt";
File.Encrypt(filepath, lines);
Does anybody have any thoughts/ideas/suggestions? I've looked on Google and MSDN and some other forums and haven't found anything that helps. I'd appreciate any help that I can get .
Thanks for readin'.
j.t.
|
|
|
|
|
Have you looked at the documentation?
MSND Library: File.Encrypt method[^]
You can't use the Encrypt method instead of the WriteAllLines method. You use the Encrypt method on an existing file, so you have to save the file first.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for the reply I have checked that page several times but I can't use any of the code that's on there. Everytime I debug, I get about 20 errors. No matter what I change, or remove I get more errors. I ended up trimming most of the code down to:
private void EncryptFileLickLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
string FileName = "C:\\Users\\Jase\\Documents\\jt.txt";
File.Encrypt(FileName);
}
catch (Exception)
{
}
..The file already exists, but it still won't work.
Regards,
j.t.
|
|
|
|
|
jay_t55 wrote: but it still won't work.
What do you mean by not working? can you explain?
|
|
|
|
|
jay_t55 wrote: I tried the following code to encrypt but does not work:
Login to some other user account and try to open the encrypted file? File.Encrypt will encrypt the file and give access to the user account where this code is executed. AFAIK, this works only with NTFS file system.
|
|
|
|