|
sbt1 wrote: As I noted in my original question, that is not what I'm trying to do. I have no interest in writing anything that shows up in facebook, I simply want my standard .Net app to be able to read and write Facebook calendar events.
Yes, I'm aware of that. If you have a look through the documentation that I linked to, you can see that the same API can be used to access facebook data through a winforms application[^]. EventList class is probably what you're looking for, but if you're sure that you've already tried this then... *shrug*
|
|
|
|
|
That looks like just what I am searching for! Thank you Russ.
|
|
|
|
|
I am using VS 2008 on a computer with Windows XP Profession. When I deploy an app which works perfectly on this computer to a machine running Windows Vista, I get strange behavior, exceptions, etc. Is there a way to target my build to Vista?
haudi2
|
|
|
|
|
Look at Environment.OSVersion
|
|
|
|
|
When you do things right, the same code should run on all Windows versions.
Vista offering better protection will force you to be more defensive, e.g. as to where you store writable files.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I want to know hopw can Iorce restart windows using Windows API & C# and make sure no program will stop the process so all programs should be closed and windows must be restarted?
|
|
|
|
|
That's a very bad idea; no one wants a computer to shutdown out from under them.
As I recall, there is an API method to display a dialog to ask the user if he wants to shutdown, but I don't remember what it is.
|
|
|
|
|
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?
|
|
|
|