|
i will wait for the answer from others but come on!! I am not that bad!!
I want to force restart because i have kicthen monitors hungig on the wall and it's very difficult to restart manually because the CPR is not in an accessibale place so I want to restart every day in the off peak time to refresh the memeory and avoid PC problems caused by PC running for many days without restarting.
Just wanted to explain the reason..........
|
|
|
|
|
Sure, but if I knew I couldn't tell you anyway.
|
|
|
|
|
it's ok.. i really appreciate because we also have to educate not just to give answers
|
|
|
|
|
Hi,
jrahma wrote: I want to know hopw can Iorce restart windows using Windows API & C# and make sure no program will stop the process
The ExitWindowsEx Function[^] with the EWX_FORCE flag will prevent usermode applications from processing the WM_QUERYENDSESSION or WM_ENDSESSION messages. The downside is that by not sending these messages... the applications will not have a chance to exit cleanly.
Best Wishes,
-David Delaune
|
|
|
|
|
do you havethe example in C# please?
|
|
|
|
|
|
Ehhhxcellent!
|
|
|
|
|
Are you so lazy to write code even after someone has pointed you towards the right direction ?
|
|
|
|
|
Hi,
I am refering to the MSDN site and created the modeless dialog as mentioned and calling them.
http://msdn.microsoft.com/en-us/library/ms229591%28VS.80%29.aspx
The TAB keys are working fine.
But I found a problem, if the C# code (in the form) is calling some unmanaged code to get some data, its taking unusually high amount of time.
The same code does not take much time if form.Show() is called. When called as suggested in MSDN it takes a lot of time.
Any help on this will be great.
Saleem
|
|
|
|
|
Hi all,
public interface IAttribute<T>
{
string Name
{
get;
}
T Value
{
get;
}
}
public class Attribute<T> : IAttribute<T>
{
public string Name
{
get;
private set;
}
public T Value
{
get;
private set;
}
}
public class Path
{
public static Path CreatePath(params IAttribute<T>[] attribute)
{
}
}
public class AttributeString<string> : IAttribute<T>
public class AttributeInt<int> : IAttribute<T>
I want to create a path from one or more generic attribute interface.
I can't use
CreatePath<T>(params then it just one type of attribute.
Who can Solve it?
/Gywox
modified on Friday, November 13, 2009 8:23 PM
|
|
|
|
|
Use an array of object? I think part of your post got lost.
|
|
|
|
|
I need an param with a generic attribute interface, where the T is different.
I do not want to write the following:
public static Path CreatePath<T>(params IAttribute<T>[] attribute)
|
|
|
|
|
Other than having the params be an array of object I dunno. But maybe I'm still not clear on what you want to do.
What do you do inside CreatePath?
|
|
|
|
|
I'm building a network communication app and had a windows connection manager question. I am needing to add a virtual LAN to the connection manager which I can then use pass local network data (shared folders/services) through. This virtual lan will be the local system's entry/exit point for my app's data. How can C# accomplish this task?
The virtual LAN will also allow my other apps to 'securely' access the connected network. Services like Hamachi accomplish our goal but due to security requirements we cannot use any 3rd party product.
|
|
|
|
|
i am running the method to get all my users in a group
my only problem is it only get the first 1000 users i have 2500 users in this group how do i change the capacity to 3000
public static ArrayList getUsers()
{
ArrayList excludeGroups = new ArrayList();
ArrayList users = new ArrayList();
excludeGroups.Add("CN=GMDPortal,OU=IT,OU=ADM,DC=corp,DC=ad,DC=ejhospital,DC=com");
foreach (string DEgroup in excludeGroups)
{
DirectoryEntry group = new DirectoryEntry("LDAP://" + DEgroup);
foreach (object dn in group.Properties["member"])
{
users.Add(dn);
}
}
return users;
}
|
|
|
|
|
the LDAP policy on your domain controler has a setting, MaxPageSize . This is the maximum number of records the Active directory will return in any query result set. The default setting is 1000. You will have to ask your domain administrator to change that setting for you.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
is there a method that i can query Ad in group lets say i wanted to get them is groups of 500 until i get all of them
example
|
|
|
|
|
Hi
I have tablelayoutpanel and i put 18 textboxes in it.
I set all tabindex of textboxes ;
when i run my project and at first for example i click on the textbox number 10 and type a word;
that word type in textbox number 1(for the first time if i click on each of the textboxes except textbox1 and i type a word, this word appear in textbox1) !
What should i do?
|
|
|
|
|
farokhian wrote: What should i do?
Short answer: fix your code.
Longer answer: there is obviously something wrong in your form or the code behind. However, without seeing some of the code we can only guess what might be happening. Have you tried running with the debugger to see what happens when you test this?
|
|
|
|
|
how to develope a project (image processing ) in c# ??????????
What APi are neccessary in developing the project?????????????
|
|
|
|
|
C# is a language built on the .Net framework. The .Net framework gives you built in wrappers around most of the windows APIs. The only requirement for programing in .Net is a suitable IDE such as Visual Studio. Advanced programing can take advantage of any available API via the built in Interop services. I suggest you start by learning how to program in .Net before launching into a big project like Image processing.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
rizwana rashid wrote: how to develope a project (image processing ) in c# ??????????
What APi are neccessary in developing the project?????????????
Well, that depends. As you are doing graphics processing, you could choose from GDI+, DirectX or OpenGL. If you're working with WinForms, do GDI+ - if it's WPF, take a look at DirectX.
Have a look at the image processing articles by Christian Graus to get some ideas.
"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
|
|
|
|
|
I am reading an XML file into a dataset to be used by the Report Viewer control. Trouble is that I can't seem to format the date that is in the dataset.
Here is what I'm trying. The date is the second column of the data table.
private DataTable LoadData()
{
// Load data from XML file
DataSet ds = new DataSet();
DataTable tbl;
string myFilePath = (Application.StartupPath + "\\bin\\" + "trd.xml");
ds.ReadXml(myFilePath);
tbl = ds.Tables[0];
foreach (DataRow row in tbl.Rows)
{
//reformat date
row[1] = String.Format("{0:g}", row[1].ToString());
}
return tbl;
}
Any help is greatly appreciated
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
Rafone wrote: Trouble is that I can't seem to format the date that is in the dataset.
That's because you've failed to read the documentation[^]
G is general. What you want is d for the short format or D for the long format.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Well having read the documentation numerous times it really does not mater how I format it the data row is not changing it remains with the formatting from the XML file
(d) Short date: . . . . . . {0 }
is for just the date
(g) General date/short time:. {0:g}
is for the date and time
the date in the XML is
<DateTime>2009-11-07T08:10:00-07:00</DateTime>
and remains even after trying to format it...?
thx
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|