|
It also says the following:
Target InvocationException was unhandled.
Exception has been thrown by the target of an invocation.
|
|
|
|
|
Hi,
I have some class libraries, which I dont want the client to use.
How can we secure our dll in such a way that if someone else adds our dll to his project then it gives some error or may e do not allow to add it.
|
|
|
|
|
|
i wrote a simple server that sends it's public key to the client using (RSACryptoServiceProvider),
rsa.ToXmlString(false) . at client it creates an xml file. i want the client to read the xml file and get the key.
I'm expecting support
|
|
|
|
|
prasadbuddhika wrote: i want the client to read the xml file and get the key
If its sent as an xml file you can read it as such.
prasadbuddhika wrote: I'm expecting support
Thats a bit rude - heard of a little word called PLEASE?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
prasadbuddhika wrote: i wrote a simple server that sends it's public key to the client using (RSACryptoServiceProvider),
rsa.ToXmlString(false)
. at client it creates an xml file. i want the client to read the xml file and get the key.
And what's your question? All you've done is made some statements, so we can't figure out what you want.
prasadbuddhika wrote: I'm expecting support
I'm expecting Salma Hayek to come round to my house tonight and perform unspeakable acts on me that will leave me cross eyed for a fortnight. That's not likely to happen either.
|
|
|
|
|
How to display image in datagrid in windows application.
Plz help me out...
Thanks
V K Gupta
|
|
|
|
|
i found this link[^]
may be you can compare it in c#
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi,
I did that before, but while doing a database + C# application.
I show the image in both grid(smaller) and picturebox(larger)
Try search for <b>store image in database</b> here in codeproject.
It doesn´t look that good showing it only in the grid!!!
If you aren´t building a database, and just want to put image in a grid, i tell you that is not the best display for it.
Good Luck
nelsonpaixao@yahoo.com.br
|
|
|
|
|
I am using listview control in details view in vs2003.
Here, how i m using
foreach(DataRow dr in dtAddress.Rows)
{
ListViewItem Lv;
Lv = lvAddress.Items.Add(dr["Address"].ToString());
Lv.SubItems.Add("value for In");
Lv.SubItems.Add("value for Out");
.
.
}
View got generated like this
---------------------
StationID IN Out
---------------------
A 0 1
B 2 0
. . .
.
.
& so on, working fine.(Getting in vertical way)
But I want to show this in other way, like this.(Horizontal way)
StationID A B . .
In 0 2
Out 1 0
for this i am doing like this
int i = 0;
foreach(DataRow dr in dtAddress.Rows)
{
lvAddress.Columns.Add(dr["StationID"].ToString(), 70, HorizontalAlignment.Left);
}
I got the all station as Column Name, but how to add corresponding In, Out fields.
Thanks & regards
Humdum
|
|
|
|
|
Hi Guys,
Is it possible to create a similar sort of dialog using C#?
http://www.bartdesmet.net/images/shutdownblocking02.jpg
Although, I've been working with C# for a while, I have no idea where to get started on this.
Any help, guys?
Damn, it feels good to be back here after this while. :p ...after a year of working with Linux Scripts, Java and Oracle, I'm seriously out of touch.
|
|
|
|
|
Well, you can set the transparency key and opacity which might acheive what you want. If not you'll have to look up using Layered Windows
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
float aspectRatio = 1280 / 1024;
Console.WriteLine(aspectRatio.ToString());
RESULT?
1
float aspectRatio = 1280 / 800;
Console.WriteLine(aspectRatio.ToString());
RESULT?
1
float aspectRatio = 1280 / 500;
Console.WriteLine(aspectRatio.ToString());
RESULT?
2
Any idea why this might be?
|
|
|
|
|
try
float aspectRatio = 1280f / 500f;
what you're doing is calculating with integers and assigning the result to float. you need to calculate with floats.
|
|
|
|
|
The compilers understands the right side expressions to be integers. You only get a decent result with float aspectRatio = (float)1280 / (float)500;
|
|
|
|
|
I see. Thanks to you both.
|
|
|
|
|
The result of an arithmetic operation on two integers is an integer. To get the float value, you must do explicit casting.
|
|
|
|
|
Hi,
You need to type cast the expression to float like the following:
float aspectRatio = (float)1280 / 1024;
MessageBox.Show(aspectRatio.ToString());
Or
float aspectRatio = (float)1280 / 500;
MessageBox.Show(aspectRatio.ToString());
This will fix the issue.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hello gurus,
I have a context menu shared by 3 controls.
Those controls are simply panels that have the same context menu.
I would like to know how I it is possible to know which panel is the owner of the context menu and called the click event.
I thought the sender parameter of the click event was the owner of the context menu but it is not. So, how can I know the owner of the context menu???
I hope my question was clear.
Thanks in advance for your answers.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
sender is the one. Have you tried casting sender to a panel instance?
Panel panel = sender as Panel;
if(panel != null)
|
|
|
|
|
I'm getting a null value.
There is no spoon.
|
|
|
|
|
Is your sender NULL or the casting failed? Step into the code and check what value sender has.
|
|
|
|
|
The casting gave me a null vaue.
That's really odd.
There is no spoon.
|
|
|
|
|
Hey guys,
Ive got a small program that communicates with an external fingerprint scanner, im using the manufacturers SDK via a dotNet wrapper. Now for this to work the DLL needs to be registered with the regsvr32 command.
Is there a way i can programmatically check that my DLL has been registered?
Thanks
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
RegistryKey clsid=Registry.ClassesRoot.OpenSubKey("CLSID");
string[] ClsIDs=clsid.GetSubKeyNames();
string subkey="";
for (int i=0; i<clsids.length;> {
subkey=ClsIDs[i];
if (subkey.Substring(0,1)!="{") continue;
RegistryKey cls=Registry.ClassesRoot.OpenSubKey("CLSID\\"+subkey+"\\InprocServer32");
if (cls==null) continue;
string x=cls.GetValue("","").ToString();
}
|
|
|
|