|
In general "servers" do not have control of client machines. But there is a special class of servers that do, they are called "Domain Controlers", and as such can perform task such as shutdown a client computer.
|
|
|
|
|
Nope. If a server does something to my client machine I did not ask for, it will have been its last action. It is called server for a reason, it is not called boss.
|
|
|
|
|
Hi all. I want to write soft that will decrypt credentials file. to do this I need to use CredRead function. If anyone know even if a little information about it, please respond.
Thanks,
|
|
|
|
|
Either ask this as a Q & A or in the forums - don't just ask the same question everywhere as it just duplicates work and annoys people.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
See here[^].
It's time for a new signature.
|
|
|
|
|
|
Windows functions are documented in MSDN, so start out here[^].
As this is a native function, and assuming you really need it, you'll need P/Invoke technology. This article[^] may be useful.
However I suggest you make sure first there isn't a managed solution to whatever problem you're having.
|
|
|
|
|
Hi To All......!
Please Help Me To Solve My Problem.
I Have Developed A Payroll Software. Here I've Excel Sheet With Employee Information With Their Salary Structure. What I am Doing Is I have Designed One Form Where I Make User To Select Excel Sheet And Then Transfer The Data From Excel Sheet To My Data Base. It Is Working Fine Without An Error.
The Only Problem I Have Is I am Unable To Show Progress Bar While Transferring Data. I Have Written All The Code In A Class File And On Button Click Of My Form I Have Call The Function Of That Class.
Please Help Me........!
Thanks & Regards
Sanket Patil
.
|
|
|
|
|
Take a look here[^] for some information and sample code.
It's time for a new signature.
|
|
|
|
|
If you have an operation that takes long enough to warrant a progress bar, then it is also taking too long to earn the right to run on the main thread. You must move it to another thread; I suggest you consider a BackgroundWorker.
|
|
|
|
|
Hello,
I am not too experienced with C# GUI development (or any GUI development for that matter!) and I need some advice.
I have a custom third party control which is basically just an image box with a scroller. What I want to do is collect 4 of them in another new custom control and the layout would be something in a 2x2 square grid as follows:
[1][2]
[3][4]
Can someone advice me on where/how I should start? Are there some layout managers that I should use? I would like to keep the whole thing flexible so that I can arrange them into arbitrary rectangular grids.
Hope someone can point me in the right direction.
Many thanks,
Keith
|
|
|
|
|
|
I would like to convert the amount to letter in crystal report, I use the "towords" but a number like 123.23 that gives me one hundred twenty-three 23/100, somebody who can help me thank you
|
|
|
|
|
|
thank you very much for your help, I found a solution but it is not complete.
I used this formula:
if
right(Totext({amount}),2)="00"
then
uppercase(ToWords({amount},0))+" "+"Only"
else
uppercase(ToWords({amount},0))+" AND "+uppercase(ToWords(tonumber(right(Totext({amount}),2)),0))+" "+"Paisa Only"
the resultat of this numbre 1186,86 is: THOUSAND ONE HUNDRED NINETY-SEVEN AND NINETY-SIX Paisa Only
how can I correct this error, how can I convert it as it is, thank you in advance
|
|
|
|
|
My project include 2 main project
1. Dll
2. some GUI that testing the Dll
Everything was OK - until something happened ( i did not done anything on the project setting ) and now when i compile the GUI i get two error massage
Message 1
Unable to copy file "C:\Workspace\Projects\ProjectName\bin\Debug\DllName.dll" to "bin\Debug\DllName.dll". The process cannot access the file 'bin\Debug\DllName.dll' because it is being used by another process.
Message 2
Unable to copy file "C:\Workspace\Projects\ProjectName\bin\Debug\DllName.pdb" to "bin\Debug\DllName.pdb". The process cannot access the file 'bin\Debug\DllName.pdb' because it is being used by another process.
The project is not running and i try to remove the reference from the GUI to the DLL and define it again - but nothing help.
I also close the project thru the Visual studio and open it again - and its still does not compile.
( If i try to compile the DLL alone its compile fine )
How can i solve it ?
Why this happened without changing the project setting ?
Thanks.
|
|
|
|
|
It sounds like the local copy in the GUI's Debug folder hasn't been released. I would try rebooting the machine, Open the solution then before buiding do a Clean.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
|
Hi world of codeproject !
I wanna to import info from *.wab OR *.vcf (windows Address Book ) to sql.
So please give me some solution.
|
|
|
|
|
hi, someone show me how can i write a procedure inside of a procedure. ofcourse just in C# environments.
|
|
|
|
|
You can't.
C# does not support nested procedures.
Nested classes, yes. And those classes can have their own methods (procedures). But not nested procedures.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
You can accomplish something that looks like this (sort of) using a delegate or lambda expression. In my article here[^], I demonstrate this with this section in the method SignInExecute :
private void SignInExecute(object parameter)
{
try
{
string accountName = AccountName;
string password = Password;
bool rememberMe = RememberMe;
Mouse.OverrideCursor = Cursors.Wait;
LoginMessage = string.Empty;
BackgroundTaskManager.RunBackgroundTask(() => { return Login(); },
(result) =>
{
Mouse.OverrideCursor = null;
if (result == null)
{
Mediator.Instance.NotifyColleagues(
ViewModelMessages.UserAuthenticated, false);
LoginMessage = "Unfortunately, Twitter did not recognise" +
" this username and " +
"password. Please try again";
}
else
{
LoginResult(result as XElement);
}
}
);
}
catch
{
LoginMessage = "We are sorry, SongBird was unable" +
" to connect to Twitter. " +
"Please check yournetwork connection and try again.";
}
} Take a look at the portion of code inside RunBackgroundTask to see this in operation.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
I'm trying to populate viewState with ArrayList like this-
ArrayList list = ConvertDataTableToArrayList(dt);<br />
ViewState["QueryList"] = list;<br />
<br />
public ArrayList ConvertDataTableToArrayList(DataTable st)<br />
{<br />
ArrayList query = new ArrayList(dt.Rows.Count);<br />
foreach (DataRow row in dt.Rows)<br />
{<br />
query.Add(row);<br />
}<br />
return query;<br />
<br />
}<br />
But i'm getting this error-
Type 'System.Data.DataRow' in Assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable
How can i need to solve it?
10x
|
|
|
|
|
i'v just red that i cannot use ArrayList in ViewState,
because ViewState needs a serializable object, and ArrayList is not one, because i cannot tell if it's components are serializable.
Is there another way to do this?
|
|
|
|
|
It's not the ArrayList the causes the problem it's the DataRow which is not serialiazable.
1) Try using Session variables (Session["QueryList"])
2) Make a localized object that has properties that match the datarow columns and serialize the datarow
to the object, and use a System.Collections.Generic.List if possible.
|
|
|
|