|
If you also have the code of that application than why not debug that. and see on which line it throws an exception.
|
|
|
|
|
I want to run an application in Vista.
How to run as administrator automatic?
|
|
|
|
|
You have to inject a manifest containing the desired execution level (requireAdministrator).
If you search with these keywords you'll find all you need.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
There are n number of clients and all are accessing one server. Data, which is in dataset(disconnected mode) shows at client machine. If one of the client changes the data at his local machine, it should reflect in other systems also, without refreshing the data.
Please let me know How to handle this scenario in order to avoid redundant data. Hope my question is clear.
|
|
|
|
|
Krish Agn wrote: it should reflect in other systems also, without refreshing the data
By magic. Thats the only way if you don't want to refresh the data.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ok. Or else, need to restrict other users not to make any changes(insert, delete, update) while one client is modifying the data.
|
|
|
|
|
As you are working with disconnected datasets basically you can't. What you need to do is to check if changes have been made when updating the main database. This is usually done by timestamps or record version numbers.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi, i've got a built in MS VS C# 2005 Express
i'd like to "Convert" it to MS VS C# 2005 pro
anyone
thanks
Have Fun
Never forget it
|
|
|
|
|
It needs converting, it doesn't just open ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
By Defult with VS Express and has an Icon of VS Express yes
but i'd just like to see it like with an VS Por Icon and So...
i know it's a bit petty
Have Fun
Never forget it
|
|
|
|
|
Does the reverse work? I've got Pro at work and Express at home, can I move a project freely between then providing it doesn't use any of the Pro-specific features?
|
|
|
|
|
am developing an windows application where i am using MSI plessey TTF font in this font i need to calculate check digit so how can i do that check digit calaculation
|
|
|
|
|
private string msiplessey(string abc)
{
string value = "";
string values = "";
string adds = "";
string evenvalues = "";
string evenval = "";
string evenadds = "";
string resultadd = "";
string fval = "";
long add = 0;
long abcd;
long evenadd = 0;
long result;
int checkvalue = 0;
int finalresult;
for (int i = abc.Length - 1; i > -1; i -= 2)
{
value += abc.Substring(i, 1);
}
for (int j = value.Length - 1; j >= 0; j--)
{
values += value.Substring(j, 1);
}
abcd = (Convert.ToInt64(values) * 2);
string oddvalue = abcd.ToString();
for (int k = 0; k < oddvalue.Length; k++)
{
adds = oddvalue.Substring(k, 1);
add = add + Convert.ToInt64(adds);
}
for (int l = abc.Length - 2; l > -1; l -= 2)
{
evenvalues += abc.Substring(l, 1);
}
for (int m = evenvalues.Length - 1; m >= 0; m--)
{
evenval += evenvalues.Substring(m, 1);
}
for (int n = 0; n < evenval.Length; n++)
{
evenadds = evenval.Substring(n, 1);
evenadd = evenadd + Convert.ToInt64(evenadds);
}
result = add + evenadd;
resultadd = result.ToString();
finalresult = Convert.ToInt32(resultadd.Length);
fval = resultadd.Substring(finalresult - 1);
checkvalue = (10 - (Convert.ToInt32(fval)));
if (checkvalue == 10)
{
checkvalue = 0;
}
else
{
checkvalue = (10 - (Convert.ToInt32(fval)));
}
return checkvalue.ToString();
}
|
|
|
|
|
Hi there.
I think string and String class are equivalent.
Is it true ?
What are the different between them ?
modified on Tuesday, May 27, 2008 3:04 PM
|
|
|
|
|
M-Dayyan wrote: I think string and String class are equivalent.
Is it true ?
string is a synonym for System.String
|
|
|
|
|
|
Hi Colin,
Not on topic but you may know...
Consider the declarations below:
<br />
<br />
public Delegate void Testing1();<br />
public delegate void Testing();<br />
<br />
The first declaration will not compile. I thought delegate and System.Delegate were the same things?
Cheers,
|
|
|
|
|
No its not the same thing..
"Delegate" is the baseclass that all delegates derive from.
(containing methods like DynamicInvoke etc)
The "delegate" keyword will tell the compiler that it should output a class deriving from Delegate.
(delegates are classes in IL)
So "Delegate" is more like object/Object.
While "delegate" is like the "class" keyword.
eg:
public class SomeClass : Object
public delegate void SomeDelegate () /* : Delegate */
|
|
|
|
|
Java's Properties class (http://java.sun.com/javase/6/docs/api/java/util/Properties.html[^]) is an easy way to serialize a bunch of properties to and from a file. I am trying to port a Java application that makes heavy use of this class, to C#. What is the easiest way to emulate this behavior?
I thought about XML serialization, but that doesn't work because all the field names have to be specified in advance. Any ideas?
|
|
|
|
|
How about a Hashtable. The Java properties class extends Java's implementation of a hashtable, so why not use a Hashtable in C# also?
|
|
|
|
|
Hey Colin,
That's true, it does extend hashtable - but the real value of the Properties class comes in the utilities it provides for saving/loading that hashtable's contents to streams in different formats (XML, flat file, etc.) This capability is what I am looking for. If I don't find it I'll have to write it and post it here
|
|
|
|
|
using application/ user settings in c# is at least as easy as properties in java. however, c# settings are serialized in xml, whereas properties are not.
|
|
|
|
|
I have a predefined user control designed at design time, and want it to load a form at runtime
it seems simple but i can't get it to work
pls help
|
|
|
|
|
Don't you just make an instance of the control and the add it to the form, like so:
MyCtrl control = new MyCtrl();
control.ClientSize = new Size(100,25);
control.Location = new Point(3,3);
...
myMainForm.Controls.Add(control);
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Yes thanks!!!
I used the same way but made an error in the namespace
|
|
|
|